加载中...
加载中...
完整的命令行指令文档,37 个指令等你探索
在 WhatsApp / Telegram / Slack / Discord 等聊天中直接输入使用
/new 或 /reset📋新开对话/重置会话
/new 或 /new haiku/status📋查看当前会话状态、Token 使用量、预估成本
/status/compact📋压缩上下文,将历史对话摘要化以节省 Token
/compact 或 /compact 保留代码讨论/restart📋重启网关(群组中仅所有者可用)
/restart/model📋切换 AI 模型
/model list, /model haiku, /model sonnet, /model opus/model status📋查看当前模型详情
/model status初始化配置和工作空间
openclaw setup [options]示例:
openclaw setupopenclaw setup --wizardopenclaw setup --workspace ~/my-workspace交互式设置向导,配置 Gateway、工作空间和技能
openclaw onboard [options]示例:
openclaw onboardopenclaw onboard --install-daemonopenclaw onboard --reset交互式配置向导(模型、渠道、技能、Gateway)
openclaw configure示例:
openclaw configure非交互式配置助手
openclaw config [get|set|unset] [path] [value]子命令:
示例:
openclaw config get agents.defaults.model.primaryopenclaw config set agents.defaults.model.primary claude-3-opus健康检查和快速修复
openclaw doctor [options]示例:
openclaw doctoropenclaw doctor --deepopenclaw doctor --yes重置本地配置/状态
openclaw reset [options]示例:
openclaw reset --scope configopenclaw reset --scope all --yes卸载 Gateway 服务和本地数据
openclaw uninstall [options]示例:
openclaw uninstall --serviceopenclaw uninstall --all --yes更新 OpenClaw
openclaw update示例:
openclaw updatecommands.descriptions.channels
openclaw channels <subcommand> [options]子命令:
示例:
openclaw channels add --channel telegram --account alerts --token $TOKENopenclaw channels status --probeopenclaw channels list列出已安装技能
openclaw skills [subcommand] [options]子命令:
示例:
openclaw skills listopenclaw skills info coding-opencodeopenclaw skills checkcommands.descriptions.message
openclaw message <subcommand> [options]子命令:
示例:
openclaw message send --target +15555550123 --message "Hi"openclaw message poll --channel discord --target channel:123 --poll-question "选择?" --poll-option A --poll-option BAgent 管理
openclaw agent --message <text> [options]示例:
openclaw agent --message "帮我写个函数"openclaw agent --message "分析这段代码" --thinking列出可用 Agent
openclaw agents <subcommand> [options]子命令:
示例:
openclaw agents listopenclaw agents add my-agent --workspace ./workspaceopenclaw agents delete my-agent --forcecommands.descriptions.acp
openclaw acp [options]Gateway 服务管理
openclaw gateway <subcommand> [options]子命令:
示例:
openclaw gateway startopenclaw gateway restartopenclaw gateway statusopenclaw gateway healthopenclaw gateway run --port 3000查看 Gateway 和系统状态
openclaw status [options]示例:
openclaw statusopenclaw status --deepopenclaw status --usagecommands.descriptions.health
openclaw health [options]示例:
openclaw healthopenclaw health --jsoncommands.descriptions.sessions
openclaw sessions [options]示例:
openclaw sessionsopenclaw sessions --activecommands.descriptions.logs
openclaw logs [options]示例:
openclaw logs --followopenclaw logs --limit 200openclaw logs --plaincommands.descriptions.models
openclaw models <subcommand> [options]子命令:
示例:
openclaw models listopenclaw models statusopenclaw models set claude-3-opusopenclaw models auth setup-token --provider anthropiccommands.descriptions.memory
openclaw memory <subcommand> [options]子命令:
示例:
openclaw memory statusopenclaw memory indexopenclaw memory search "项目配置"commands.descriptions.system
openclaw system <subcommand> [options]子命令:
示例:
openclaw system event --text "提醒:开会"openclaw system heartbeat enable定时任务管理
openclaw cron <subcommand> [options]子命令:
示例:
openclaw cron listopenclaw cron add --name "daily" --every 86400000 --system-event "每日提醒"openclaw cron run --id <jobId> --forcecommands.descriptions.nodes
openclaw nodes <subcommand> [options]子命令:
示例:
openclaw nodes listopenclaw nodes approve --node <nodeId>openclaw nodes notify --node <nodeId> --title "提醒" --body "消息内容"openclaw nodes camera snap --node <nodeId>openclaw nodes run --node <nodeId> --command "ls -la"节点管理命令
openclaw node <subcommand> [options]子命令:
示例:
openclaw node run --host https://gateway.example.com --port 18789openclaw node statusopenclaw node install --host https://gateway.example.comcommands.descriptions.browser
openclaw browser <subcommand> [options]子命令:
示例:
openclaw browser startopenclaw browser open --url https://example.comopenclaw browser screenshot --full-pageopenclaw browser click --ref e12commands.descriptions.security
openclaw security audit [options]commands.descriptions.plugins
openclaw plugins <subcommand> [options]子命令:
示例:
openclaw plugins listopenclaw plugins install <plugin>openclaw plugins enable <plugin>commands.descriptions.hooks
openclaw hooks <subcommand> [options]子命令:
commands.descriptions.webhooks
openclaw webhooks gmail <subcommand> [options]子命令:
commands.descriptions.pairing
openclaw pairing <subcommand> [options]子命令:
示例:
openclaw pairing listopenclaw pairing approve --notifycommands.descriptions.approvals
openclaw approvals <subcommand> [options]子命令:
commands.descriptions.sandbox
openclaw sandbox <subcommand> [options]子命令:
commands.descriptions.dns
openclaw dns setup [options]commands.descriptions.tui
openclaw tui [options]commands.descriptions.docs
openclaw docs [query...]示例:
openclaw docs skills installcommands.descriptions.dashboard
openclaw dashboard