OpenClaw CLI 命令在线速查:涵盖技能管理、Agent 部署、MCP 集成、配置管理等常用命令,点击命令即可复制。
| 操作 | 命令 |
|---|---|
| 启动交互会话 | openclaw |
| 单次执行 | openclaw run "你的指令" |
| 继续会话 | openclaw continue |
| 列出历史 | openclaw history |
| 清除历史 | openclaw history clear |
| 查看状态 | openclaw status |
| 查看版本 | openclaw --version |
| 操作 | 命令 |
|---|---|
| 列出技能 | openclaw skill list |
| 安装技能 | openclaw skill install skill-name |
| 卸载技能 | openclaw skill uninstall skill-name |
| 创建技能 | openclaw skill create new-skill |
| 编辑技能 | openclaw skill edit skill-name |
| 测试技能 | openclaw skill test skill-name |
| 发布技能 | openclaw skill publish skill-name |
| 搜索技能 | openclaw skill search keyword |
| 操作 | 命令 |
|---|---|
| 部署 Agent | openclaw agent deploy agent-name |
| 停止 Agent | openclaw agent stop agent-name |
| 重启 Agent | openclaw agent restart agent-name |
| 查看状态 | openclaw agent status agent-name |
| 查看日志 | openclaw agent logs agent-name |
| 列出 Agents | openclaw agent list |
| 配置 Agent | openclaw agent config agent-name |
| 删除 Agent | openclaw agent delete agent-name |
| 操作 | 命令 |
|---|---|
| 列出 MCP 服务器 | openclaw mcp list |
| 添加 MCP 服务器 | openclaw mcp add server-name --url http://host:port |
| 移除 MCP 服务器 | openclaw mcp remove server-name |
| 测试连接 | openclaw mcp test server-name |
| 查看工具列表 | openclaw mcp tools server-name |
| 重启 MCP 服务 | openclaw mcp restart server-name |
| 编辑配置 | openclaw mcp config edit |
| 操作 | 命令 |
|---|---|
| 查看配置 | openclaw config show |
| 设置 API Key | openclaw config set api_key YOUR_KEY |
| 设置模型 | openclaw config set model claude-3-opus |
| 设置工作目录 | openclaw config set workspace /path/to/dir |
| 设置日志级别 | openclaw config set log_level debug |
| 重置配置 | openclaw config reset |
| 配置文件路径 | ~/.openclaw/config.yaml |
| 操作 | 命令 |
|---|---|
| 检查依赖 | openclaw skill deps skill-name |
| 安装依赖 | openclaw skill install-deps skill-name |
| 操作 | 命令 |
|---|---|
| 查看日志 | openclaw agent logs agent-name --tail 50 |
| 验证配置 | openclaw agent validate agent-name |
| 操作 | 命令 |
|---|---|
| 测试连接 | openclaw mcp ping server-name |
| 查看状态 | openclaw mcp status server-name |
| 操作 | 命令 |
|---|---|
| 检查权限 | ls -la ~/.openclaw/ |
| 修复权限 | chmod -R 755 ~/.openclaw/ |