API 参考文档

参考文档

完整的 CLI 命令、配置项和 API 接口参考文档

openclaw onboard

初始化 OpenClaw,配置模型和渠道

用法
openclaw onboard [options]
选项
--skip-channels跳过渠道配置
--skip-models跳过模型配置
--config <path>指定配置文件路径
openclaw gateway

启动 API 网关服务

用法
openclaw gateway [command] [options]
选项
start启动网关
stop停止网关
restart重启网关
--port <port>指定端口
openclaw channels

管理消息渠道

用法
openclaw channels [command]
选项
list列出所有渠道
pair配对新渠道
remove <id>移除渠道
status查看渠道状态
openclaw models

管理 AI 模型配置

用法
openclaw models [command]
选项
list列出已配置的模型
add添加新模型
test <model>测试模型连接
set-default <model>设置默认模型
openclaw sessions

管理对话会话

用法
openclaw sessions [command]
选项
list列出所有会话
show <id>查看会话详情
clear <id>清除会话历史
export <id>导出会话数据
openclaw doctor

诊断系统问题

用法
openclaw doctor
选项
--fix自动修复问题
--verbose显示详细信息
Talk with Us