快速命令参考和常见任务
curl -fsSL https://openclaw.ai/install.sh | bash
运行入门向导
openclaw onboard --install-daemon
启动网关
openclaw gateway --port 18789
打开控制界面
openclaw dashboard
发送消息
openclaw message send --target +1234567890 --message "你好"
# 检查网关状态 openclaw gateway status # 停止网关 openclaw gateway stop # 重启网关 openclaw gateway restart
# 查看渠道状态 openclaw channels status # 启用渠道 openclaw channels enable telegram # 禁用渠道 openclaw channels disable telegram
# 查看配置 openclaw config get # 设置配置 openclaw config set gateway.port 18790 # 编辑配置 openclaw config edit
# 与代理对话 openclaw agent --message "帮我写一个 Python 脚本" # 使用思考模式 openclaw agent --message "分析这个问题" --thinking high
# 设置主目录 export OPENCLAW_HOME=~/.openclaw # 设置配置路径 export OPENCLAW_CONFIG_PATH=~/.openclaw/config.yml # 设置状态目录 export OPENCLAW_STATE_DIR=~/.openclaw/state
网关无法启动
lsof -i :18789
openclaw gateway --port 18790
配置错误
openclaw doctor
渠道连接失败
openclaw channels status --probe