title, source, author, published, created, description, tags
| title |
source |
author |
published |
created |
description |
tags |
| OpenClaw 完整配置文档 |
|
shenwei |
|
|
|
|
OpenClaw 完整配置文档
最后更新: 2026-03-15 20:30
1. 概览
- 版本: 2026.3.13
- Gateway 状态: 运行中 (pid 30771)
- Gateway 端口: 18789
- 绑定地址: 127.0.0.1 (loopback)
- 配置文件: ~/.openclaw/openclaw.json
2. Agent 列表
| Agent ID |
名称 |
Workspace |
模型 |
路由规则 |
| main |
(默认) |
~/.openclaw/workspace |
MiniMax-M2.5 |
0 (默认) |
| xinghui |
星辉 |
~/.openclaw/workspace-agent-xinghui |
MiniMax-M2.5 |
1 (telegram bot1) |
| xingyao |
星曜 |
~/.openclaw/workspace-agent-xingyao |
MiniMax-M2.5 |
1 (telegram bot2) |
2.1 路由绑定 (Bindings)
| Agent |
匹配条件 |
| xinghui |
channel: telegram, accountId: bot1 |
| xingyao |
channel: telegram, accountId: bot2 |
3. Workspace 目录
| Workspace |
路径 |
说明 |
| main |
~/.openclaw/workspace |
默认工作空间 |
| xinghui |
~/.openclaw/workspace-agent-xinghui |
星辉工作空间 |
| xingyao |
~/.openclaw/workspace-agent-xingyao |
星曜工作空间 |
4. 可用模型 (Models)
4.1 MiniMax Portal
| 模型 ID |
名称 |
上下文窗口 |
最大输出 |
思考模式 |
| MiniMax-M2.5 |
MiniMax M2.5 |
200K |
8192 |
否 |
| MiniMax-M2.5-highspeed |
MiniMax M2.5 Highspeed |
200K |
8192 |
是 |
| MiniMax-M2.5-Lightning |
MiniMax M2.5 Lightning |
200K |
8192 |
是 |
4.2 DeepSeek (自定义 Provider)
| 模型 ID |
名称 |
上下文窗口 |
最大输出 |
| deepseek-reasoner |
deepseek-reasoner |
16K |
4096 |
| deepseek-chat |
deepseek-chat |
16K |
4096 |
4.3 默认模型配置
- 主模型: minimax-portal/MiniMax-M2.5
- 备用模型:
- custom-api-deepseek-reasoner/deepseek-reasoner
- custom-api-deepseek-chat/deepseek-chat
- minimax-portal/MiniMax-M2.5-highspeed
- minimax-portal/MiniMax-M2.5-Lightning
5. 频道 (Channels)
5.1 Telegram 配置
| Account |
Bot Token |
DM策略 |
群组策略 |
状态 |
| default |
8414432613:AAG9hvKfILGSsbc1EMEZW1QVym9Quc5aHWk |
pairing |
open |
已配置 |
| bot1 |
8709222939:AAEfvZrvvU5vZFsmacsR5nmpkJ2Jb5JgfRg |
pairing |
allowlist |
已配置 |
| bot2 |
8414432613:AAG9hvKfILGSsbc1EMEZW1QVym9Quc5aHWk |
pairing |
allowlist |
已配置 |
5.2 全局 Telegram 配置
5.3 待修复问题
⚠️ 警告: 以下 account 的 groupPolicy 是 allowlist,但 groupAllowFrom 为空,会导致群消息被静默丢弃:
- channels.telegram (全局)
- channels.telegram.accounts.bot1
- channels.telegram.accounts.bot2
解决方案: 添加 sender IDs 到 groupAllowFrom,或将 groupPolicy 改为 "open"
6. 已安装技能 (Skills)
| 技能名称 |
路径 |
状态 |
| accli |
~/.openclaw/skills/accli |
✅ 已安装 |
| apple-notes |
~/.openclaw/skills/apple-notes |
✅ 已安装 |
| apple-reminders |
~/.openclaw/skills/apple-reminders |
✅ 已安装 |
| gog |
~/.openclaw/skills/gog |
✅ 已安装 |
| ontology |
~/.openclaw/skills/ontology |
✅ 已安装 |
| self-improving-agent |
~/.openclaw/skills/self-improving-agent |
✅ 已安装 |
7. 认证 (Auth)
7.1 Auth Providers
| Provider |
模式 |
说明 |
| minimax-portal |
oauth |
MiniMax OAuth 认证 |
8. Gateway 配置
| 配置项 |
值 |
| 端口 |
18789 |
| 模式 |
local |
| 绑定 |
loopback (127.0.0.1) |
| 认证模式 |
token |
| Tailscale |
off |
8.1 禁止命令 (Deny Commands)
以下命令在节点上被禁止执行:
- camera.snap
- camera.clip
- screen.record
- contacts.add
- calendar.add
- reminders.add
- sms.send
9. 插件 (Plugins)
| 插件 |
状态 |
| telegram |
✅ 启用 |
| minimax-portal-auth |
✅ 启用 |
10. 文件结构
11. 常用命令
文档生成时间: 2026-03-15 20:30