OpenClaw 速查表
完整命令参考指南。一键复制命令,提升工作效率。
设置与配置
9 条
交互式初始化
openclaw setup --wizard快速入门
openclaw onboard交互式配置
openclaw configure健康检查与修复
openclaw doctor安全审计
openclaw security audit --fix获取配置值
openclaw config get agents.defaults.model.primary设置配置值
openclaw config set agents.defaults.timeoutSeconds 300删除配置项
openclaw config unset agents.defaults.timeoutSeconds全局标志
# Use dev environment
openclaw --dev status
# Use custom profile
openclaw --profile work gateway status
# Output JSON
openclaw status --json
# Disable colors
openclaw logs --no-colorGateway
14 条
检查 Gateway 状态
openclaw gateway status启动 Gateway
openclaw gateway start停止 Gateway
openclaw gateway stop重启 Gateway
openclaw gateway restart安装为服务
openclaw gateway install卸载服务
openclaw gateway uninstall前台运行
openclaw gateway run调用 RPC 方法
openclaw gateway call --method config.patch --params '{"skills.enabled":["notion"]}'健康探测
openclaw gateway probe --timeout 5000发现 Gateway
openclaw gateway discover跟踪日志
openclaw logs --follow显示最后 N 行
openclaw logs --limit 200纯文本日志
openclaw logs --plainJSON 日志
openclaw logs --json消息渠道
11 条
列出渠道
openclaw channels list检查渠道状态
openclaw channels status --probe查看渠道日志
openclaw channels logs --channel telegram --lines 50添加 Telegram 机器人
openclaw channels add --channel telegram --account alerts --name "Alerts Bot" --token $TELEGRAM_BOT_TOKEN添加 Discord 机器人
openclaw channels add --channel discord --account work --name "Work Bot" --token $DISCORD_BOT_TOKEN添加 WhatsApp
openclaw channels add --channel whatsapp添加 Google Chat
openclaw channels add --channel googlechat --account default --name "GChat Bot"移除渠道
openclaw channels remove --channel discord --account work删除渠道配置
openclaw channels remove --channel discord --account work --delete登录渠道
openclaw channels login --channel whatsapp登出渠道
openclaw channels logout --channel whatsapp --account default技能与插件
16 条
列出技能
openclaw skills list列出可用技能
openclaw skills list --eligible获取技能信息
openclaw skills info seo-blog-generator检查技能要求
openclaw skills check搜索技能
npx clawhub search email安装技能
npx clawhub install email同步技能
npx clawhub sync列出插件
openclaw plugins list获取插件信息
openclaw plugins info voicecall安装插件
openclaw plugins install --path ./custom-plugin启用插件
openclaw plugins enable voicecall禁用插件
openclaw plugins disable voicecall检查插件
openclaw plugins doctor内存状态
openclaw memory status重建索引
openclaw memory index搜索内存
openclaw memory search "OpenClaw setup commands"模型
16 条
检查模型状态
openclaw models status列出所有模型
openclaw models list --all列出本地模型
openclaw models list --local按提供商列出
openclaw models list --provider anthropic设置主模型
openclaw models set claude-3-5-sonnet-20241022设置图像模型
openclaw models set-image claude-3-5-sonnet-20241022添加认证(交互式)
openclaw models auth add设置令牌认证
openclaw models auth setup-token --provider anthropic粘贴令牌
openclaw models auth paste-token --provider openai --token $OPENAI_API_KEY检查认证过期
openclaw models status --check列出别名
openclaw models aliases list添加别名
openclaw models aliases add "claude" "claude-3-5-sonnet-20241022"列出回退
openclaw models fallbacks list添加回退
openclaw models fallbacks add "claude-3-5-sonnet-20241022" "gpt-4o"扫描模型
openclaw models scan --set-default --yes按约束扫描
openclaw models scan --max-params 100000 --max-age-days 30 --concurrency 3浏览器
25 条
浏览器状态
openclaw browser status启动浏览器
openclaw browser start停止浏览器
openclaw browser stop重置配置
openclaw browser reset-profile列出标签页
openclaw browser tabs打开 URL
openclaw browser open --url https://docs.openclaw.ai聚焦标签页
openclaw browser focus --target-id e12关闭标签页
openclaw browser close --target-id e12截图
openclaw browser screenshot --target-id e12 --type pngDOM 快照
openclaw browser snapshot --format aria --target-id e12导航到 URL
openclaw browser navigate --url https://example.com --target-id e12点击元素
openclaw browser click --ref button-submit --target-id e12输入文本
openclaw browser type --text "Hello OpenClaw" --input-ref textarea-message --target-id e12按键
openclaw browser press --key Enter --target-id e12悬停元素
openclaw browser hover --ref menu-item --target-id e12拖放
openclaw browser drag --start-ref draggable --end-ref drop-zone --target-id e12选择选项
openclaw browser select --ref country-select --values "USA" --target-id e12上传文件
openclaw browser upload --ref file-input --path /tmp/document.pdf --target-id e12填写表单
openclaw browser fill --fields '[{"ref":"name","value":"John"},{"ref":"email","value":"john@example.com"}]' --target-id e12创建配置
openclaw browser create-profile --name "Shopping" --color "#FF5A2D"删除配置
openclaw browser delete-profile --name "Shopping"列出配置
openclaw browser profiles执行 JavaScript
openclaw browser evaluate --fn "document.title" --target-id e12获取控制台日志
openclaw browser console --level error --target-id e12导出为 PDF
openclaw browser pdf --target-id e12节点
19 条
列出节点
openclaw nodes list列出已连接节点
openclaw nodes list --connected描述节点
openclaw nodes describe --node my-iphone重命名节点
openclaw nodes rename --node my-iphone --name "Personal iPhone"在节点上运行命令
openclaw nodes run --node my-iphone --command "openclaw status"调用节点方法
openclaw nodes invoke --node my-iphone --command camera_snap --params '{"facing":"back"}'列出待处理请求
openclaw nodes pending批准请求
openclaw nodes approve --node my-iphone拒绝请求
openclaw nodes reject --node unknown-device列出摄像头
openclaw nodes camera list --node my-iphone拍照
openclaw nodes camera snap --node my-iphone --facing back --max-width 1920 --quality high录制视频
openclaw nodes camera clip --node my-iphone --facing back --duration 30s --invoke-timeout 40000画布快照
openclaw nodes canvas snapshot --node my-iphone --format png --max-width 1920显示画布
openclaw nodes canvas present --node my-iphone --x 100 --y 200 --width 600 --height 400隐藏画布
openclaw nodes canvas hide --node my-iphone导航画布
openclaw nodes canvas navigate --node my-iphone --url https://example.com在画布上执行
openclaw nodes canvas eval --node my-iphone --js "document.body.style.backgroundColor='red'"屏幕录制
openclaw nodes screen record --node my-iphone --duration 60 --fps 30 --out /tmp/recording.mp4获取位置
openclaw nodes location get --node my-iphone --accuracy precise --location-timeout 10000系统与定时任务
15 条
入队事件
openclaw system event --text "Daily summary check"立即触发事件
openclaw system event --text "Check emails" --mode now最后心跳
openclaw system heartbeat last启用心跳
openclaw system heartbeat enable禁用心跳
openclaw system heartbeat disable系统状态
openclaw system presence列出定时任务
openclaw cron list --all定时任务状态
openclaw cron status添加定时任务
openclaw cron add --name "daily-summary" --at "2026-02-11T09:00:00Z" --system-event "Check emails and calendar"添加循环任务
openclaw cron add --name "hourly-check" --every 3600000 --message "Check for new messages"添加 Cron 表达式任务
openclaw cron add --name "weekly-report" --cron "0 9 * * 1" --message "Generate weekly report"运行任务
openclaw cron run --id daily-summary启用任务
openclaw cron enable --id daily-summary禁用任务
openclaw cron disable --id daily-summary查看任务历史
openclaw cron runs --id daily-summary --limit 10Top 10 命令
10 条
完整诊断
openclaw status --deep重启 Gateway
openclaw gateway restart验证连接
openclaw channels status发现能力
openclaw skills list故障排查
openclaw logs --follow检查 AI 访问
openclaw models status启用自动化
openclaw browser start管理定时任务
openclaw cron list自动修复问题
openclaw doctor自定义行为
openclaw config get agents.defaults.model.primary
openclaw config set agents.defaults.timeoutSeconds 300