OpenClaw 命令速查

OpenClaw CLI 命令在线速查:涵盖技能管理、Agent 部署、MCP 集成、配置管理等常用命令,点击命令即可复制。

未找到匹配的命令,请尝试其他关键词

会话管理

操作命令
启动交互会话openclaw
单次执行openclaw run "你的指令"
继续会话openclaw continue
列出历史openclaw history
清除历史openclaw history clear
查看状态openclaw status
查看版本openclaw --version

技能管理

⚠️ 技能(Skills)是 OpenClaw 的核心功能模块
操作命令
列出技能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 部署

操作命令
部署 Agentopenclaw agent deploy agent-name
停止 Agentopenclaw agent stop agent-name
重启 Agentopenclaw agent restart agent-name
查看状态openclaw agent status agent-name
查看日志openclaw agent logs agent-name
列出 Agentsopenclaw agent list
配置 Agentopenclaw agent config agent-name
删除 Agentopenclaw agent delete agent-name

MCP 集成

⚠️ MCP (Model Context Protocol) 允许连接外部工具和服务
操作命令
列出 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 Keyopenclaw 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

② Agent 部署失败

根因:资源不足或配置错误 · 解法:检查日志并调整配置
操作命令
查看日志openclaw agent logs agent-name --tail 50
验证配置openclaw agent validate agent-name

③ MCP 连接超时

根因:网络问题或服务不可达 · 解法:检查网络和服务器状态
操作命令
测试连接openclaw mcp ping server-name
查看状态openclaw mcp status server-name

④ 权限被拒绝

根因:文件系统或网络权限不足 · 解法:使用 sudo 或调整权限
操作命令
检查权限ls -la ~/.openclaw/
修复权限chmod -R 755 ~/.openclaw/
您的足迹: