- ls -lh /root/.openclaw/openclaw.json
复制代码
您好,您执行命令,看下这个文件存在吗?
没有的话,手动创建下
然后添加
- {
- "meta": {
- "lastTouchedVersion": "2026.3.13",
- "lastTouchedAt": "2026-03-30T06:41:42.039Z"
- },
- "wizard": {
- "lastRunAt": "2026-03-30T06:41:16.945Z",
- "lastRunVersion": "2026.3.13",
- "lastRunCommand": "onboard",
- "lastRunMode": "local"
- },
- "models": {
- "mode": "merge",
- "providers": {
- "宝塔": {
- "baseUrl": "https://www.bt.cn/plugin_api/chat/openai/v1",
- "apiKey": "--",
- "api": "openai-completions",
- "headers": {
- "uid": "83633",
- "access-key": "wnwp38Ll5dNVi7RTuvkMwyxFP2ZMROhz",
- "appid": "bt_app_001"
- },
- "models": [
- {
- "id": "qwen3.5-plus",
- "name": "qwen3.5-plus",
- "reasoning": true,
- "input": [
- "text",
- "image"
- ],
- "cost": {
- "input": 0,
- "output": 0,
- "cacheRead": 0,
- "cacheWrite": 0
- },
- "contextWindow": 200000,
- "maxTokens": 8192
- }
- ]
- }
- }
- },
- "agents": {
- "defaults": {
- "model": {
- "primary": "宝塔/qwen3.5-plus"
- },
- "models": {
- "宝塔/qwen3.5-plus": {}
- },
- "workspace": "/root/.openclaw/workspace"
- },
- "list": [
- {
- "id": "main",
- "subagents": {
- "allowAgents": [
- "*"
- ]
- }
- },
- {
- "id": "agent_f1c2d4c7",
- "name": "旅行规划师",
- "workspace": "/root/.openclaw/workspace-agent_f1c2d4c7",
- "agentDir": "/root/.openclaw/agents/agent_f1c2d4c7/agent",
- "identity": {
- "name": "行程规划与旅行规划"
- }
- },
- {
- "id": "agent_3cc637f6",
- "name": "日程规划助手",
- "workspace": "/root/.openclaw/workspace-agent_3cc637f6",
- "agentDir": "/root/.openclaw/agents/agent_3cc637f6/agent",
- "identity": {
- "name": "个人日程优化师与日常规划助手"
- }
- }
- ]
- },
- "tools": {
- "profile": "full"
- },
- "commands": {
- "native": "auto",
- "nativeSkills": "auto",
- "restart": true,
- "ownerDisplay": "raw"
- },
- "session": {
- "dmScope": "per-channel-peer"
- },
- "gateway": {
- "port": 18789,
- "mode": "local",
- "bind": "lan",
- "controlUi": {
- "allowedOrigins": [
- "http://127.0.0.1:18789"
- ],
- "dangerouslyAllowHostHeaderOriginFallback": true,
- "allowInsecureAuth": true,
- "dangerouslyDisableDeviceAuth": true
- },
- "auth": {
- "mode": "token",
- "token": "04e6c4b7e9eeda261dce5c3771ccd619874a06d988b20c8e"
- },
- "tailscale": {
- "mode": "off",
- "resetOnExit": false
- }
- }
- }
复制代码
|