CLI 参考文档
此页面描述了当前的 CLI 行为。如果命令发生更改,请更新此文档。命令页面
setuponboardconfigureconfigcompletiondoctordashboardbackupresetuninstallupdatemessageagentagentsacpstatushealthsessionsgatewaylogssystemmodelsmemorydirectorynodesdevicesnodeapprovalssandboxtuibrowsercrondnsdocshookswebhookspairingqrplugins(插件命令)channelssecuritysecretsskillsdaemon(网关服务命令的传统别名)clawbot(传统别名命名空间)voicecall(插件;如果已安装)
全局标志
--dev:将状态隔离在~/.openclaw-dev下并移动默认端口。--profile <name>:将状态隔离在~/.openclaw-<name>下。--no-color:禁用 ANSI 颜色。--update:openclaw update的简写(仅限源码安装)。-V,--version,-v:打印版本并退出。
输出样式
- ANSI 颜色和进度指示器仅在 TTY 会话中渲染。
- OSC-8 超链接在支持的终端中呈现为可点击链接;否则我们回退到纯文本 URL。
--json(以及在支持的地方使用--plain)会禁用样式以获得干净的输出。--no-color禁用 ANSI 样式;也会遵守NO_COLOR=1。- 长时间运行的命令显示进度指示器(支持时使用 OSC 9;4)。
调色板
OpenClaw 使用龙虾调色板进行 CLI 输出。accent(#FF5A2D):标题、标签、主要高亮。accentBright(#FF7A3D):命令名称、强调。accentDim(#D14A22):次要高亮文本。info(#FF8A5B):信息值。success(#2FBF71):成功状态。warn(#FFB020):警告、回退、注意。error(#E23D2D):错误、失败。muted(#8B7F77):弱化、元数据。
src/terminal/palette.ts(“龙虾调色板”)。
命令树
openclaw voicecall)。
安全性
openclaw security audit— 审计配置和本地状态以查找常见的安全隐患。openclaw security audit --deep— 尽力而为的实时 Gateway 网关 探测。openclaw security audit --fix— 收紧安全默认值并对状态/配置进行 chmod 设置。
密钥
openclaw secrets reload— 重新解析引用并原子交换运行时快照。openclaw secrets audit— 扫描明文残留、未解析的引用和优先级漂移(--allow-exec以在审计期间执行 exec 提供商)。openclaw secrets configure— 提供商设置 + SecretRef 映射 + 预检/应用的交互式助手(--allow-exec以在预检和包含 exec 的应用流程期间执行 exec 提供商)。openclaw secrets apply --from <plan.json>— 应用先前生成的计划(支持--dry-run;使用--allow-exec以允许在试运行和包含 exec 的写入计划中使用 exec 提供商)。
插件
管理扩展及其配置:openclaw plugins list— 发现插件(使用--json获取机器输出)。openclaw plugins inspect <id>— 显示插件详细信息(info是别名)。openclaw plugins install <path|.tgz|npm-spec|plugin@marketplace>— 安装插件(或将插件路径添加到plugins.load.paths)。openclaw plugins marketplace list <marketplace>— 在安装之前列出市场条目。openclaw plugins enable <id>/disable <id>— 切换plugins.entries.<id>.enabled。openclaw plugins doctor— 报告插件加载错误。
Memory
对MEMORY.md + memory/*.md 进行向量搜索:
openclaw memory status— 显示索引统计信息。openclaw memory index— 重新索引内存文件。openclaw memory search "<query>"(或--query "<query>")— 对内存进行语义搜索。
Chat slash commands
聊天消息支持/... 命令(文本和原生)。请参阅 /tools/slash-commands。
亮点:
/status用于快速诊断。/config用于持久化的配置更改。/debug用于仅运行时的配置覆盖(内存,非磁盘;需要commands.debug: true)。
设置 + 新手引导
setup
初始化配置 + 工作区。
选项:
--workspace <dir>:代理工作区路径(默认~/.openclaw/workspace)。--wizard:运行新手引导。--non-interactive:无提示运行新手引导。--mode <local|remote>:新手引导模式。--remote-url <url>:远程 Gateway(网关) URL。--remote-token <token>:远程 Gateway(网关) 令牌。
--non-interactive、--mode、--remote-url、--remote-token)时,新手引导将自动运行。
onboard
用于网关、工作区和技能的交互式新手引导。
选项:
--workspace <dir>--reset(在引导前重置配置 + 凭证 + 会话)--reset-scope <config|config+creds+sessions|full>(默认config+creds+sessions;使用full也可以删除工作区)--non-interactive--mode <local|remote>--flow <quickstart|advanced|manual>(manual 是 advanced 的别名)--auth-choice <setup-token|token|chutes|openai-codex|openai-api-key|openrouter-api-key|ollama|ai-gateway-api-key|moonshot-api-key|moonshot-api-key-cn|kimi-code-api-key|synthetic-api-key|venice-api-key|gemini-api-key|zai-api-key|mistral-api-key|apiKey|minimax-api|minimax-api-lightning|opencode-zen|opencode-go|custom-api-key|skip>--token-provider <id>(非交互式;与--auth-choice token一起使用)--token <token>(非交互式;与--auth-choice token一起使用)--token-profile-id <id>(非交互式;默认值:<provider>:manual)--token-expires-in <duration>(非交互式;例如365d,12h)--secret-input-mode <plaintext|ref>(默认plaintext;使用ref来存储提供商默认环境变量引用而不是明文密钥)--anthropic-api-key <key>--openai-api-key <key>--mistral-api-key <key>--openrouter-api-key <key>--ai-gateway-api-key <key>--moonshot-api-key <key>--kimi-code-api-key <key>--gemini-api-key <key>--zai-api-key <key>--minimax-api-key <key>--opencode-zen-api-key <key>--opencode-go-api-key <key>--custom-base-url <url>(非交互式;与--auth-choice custom-api-key或--auth-choice ollama一起使用)--custom-model-id <id>(非交互式;与--auth-choice custom-api-key或--auth-choice ollama一起使用)--custom-api-key <key>(非交互式;可选;与--auth-choice custom-api-key一起使用;省略时回退到CUSTOM_API_KEY)--custom-provider-id <id>(非交互式;可选的自定义提供商 ID)--custom-compatibility <openai|anthropic>(非交互式;可选;默认openai)--gateway-port <port>--gateway-bind <loopback|lan|tailnet|auto|custom>--gateway-auth <token|password>--gateway-token <token>--gateway-token-ref-env <name>(非交互式;将gateway.auth.token作为环境变量 SecretRef 存储;要求设置该环境变量;不能与--gateway-token结合使用)--gateway-password <password>--remote-url <url>--remote-token <token>--tailscale <off|serve|funnel>--tailscale-reset-on-exit--install-daemon--no-install-daemon(alias:--skip-daemon)--daemon-runtime <node|bun>--skip-channels--skip-skills--skip-health--skip-ui--node-manager <npm|pnpm|bun>(pnpm recommended; bun not recommended for Gateway(网关) runtime)--json
configure
交互式配置向导(模型、渠道、技能、网关)。
config
非交互式配置辅助工具(get/set/unset/file/validate)。在没有子命令的情况下运行 openclaw config 将启动向导。
子命令:
config get <path>:打印配置值(点/括号路径)。config set:支持四种赋值模式:- 值模式:
config set <path> <value>(JSON5 或字符串解析) - SecretRef 构建器模式:
config set <path> --ref-provider <provider> --ref-source <source> --ref-id <id> - 提供商构建器模式:
config set secrets.providers.<alias> --provider-source <env|file|exec> ... - 批处理模式:
config set --batch-json '<json>'或config set --batch-file <path>
- 值模式:
config set --dry-run:在不写入openclaw.json的情况下验证赋值(默认跳过 exec SecretRef 检查)。config set --allow-exec --dry-run:选择加入 exec SecretRef 干运行检查(可能会执行提供商命令)。config set --dry-run --json:发出机器可读的干运行输出(检查 + 完整性信号、操作、已检查/跳过的引用、错误)。config set --strict-json:要求对路径/值输入进行 JSON5 解析。--json仍然是干运行输出模式之外严格解析的传统别名。config unset <path>:删除一个值。config file:打印活动配置文件路径。config validate:在不启动网关的情况下根据架构验证当前配置。config validate --json:发出机器可读的 JSON 输出。
doctor
健康检查 + 快速修复(配置 + 网关 + 传统服务)。
选项:
--no-workspace-suggestions:禁用工作区内存提示。--yes:接受默认值而不提示(无头模式)。--non-interactive:跳过提示;仅应用安全迁移。--deep:扫描系统服务以查找额外的网关安装。
渠道辅助工具
channels
管理聊天渠道账户(WhatsApp/Telegram/Discord/Google Chat/Slack/Mattermost (插件)/Signal/iMessage/Microsoft Teams)。
子命令:
channels list:显示已配置的渠道和身份验证配置文件。channels status:检查网关可达性和渠道运行状况(--probe运行额外检查;使用openclaw health或openclaw status --deep进行网关运行状况探测)。- 提示:当
channels status检测到常见错误配置时,会打印带有建议修复方法的警告(然后指向openclaw doctor)。 channels logs:显示网关日志文件中的最近渠道日志。channels add:当未传递标志时使用向导式设置;标志切换到非交互模式。- 向仍使用单账户顶级配置的渠道添加非默认账户时,OpenClaw 会在写入新账户之前将账户范围值移动到
channels.<channel>.accounts.default中。 - 非交互式
channels add不会自动创建/升级绑定;仅限渠道的绑定将继续匹配默认账户。
- 向仍使用单账户顶级配置的渠道添加非默认账户时,OpenClaw 会在写入新账户之前将账户范围值移动到
channels remove:默认禁用;传递--delete以在不提示的情况下删除配置条目。channels login:交互式渠道登录(仅 WhatsApp Web)。channels logout:退出渠道会话(如果支持)。
--channel <name>:whatsapp|telegram|discord|googlechat|slack|mattermost|signal|imessage|msteams--account <id>:渠道账户 ID(默认为default)--name <label>:账户的显示名称
channels login 选项:
--channel <channel>(默认whatsapp;支持whatsapp/web)--account <id>--verbose
channels logout 选项:
--channel <channel>(默认whatsapp)--account <id>
channels list 选项:
--no-usage:跳过模型提供商使用/配额快照(仅限 OAuth/API 后端支持)。--json:输出 JSON(除非设置了--no-usage,否则包含使用情况)。
channels logs 选项:
--channel <name|all>(默认all)--lines <n>(默认200)--json
skills
列出并检查可用的技能及就绪信息。
子命令:
skills search [query...]:搜索 ClawHub 技能。skills install <slug>:将技能从 ClawHub 安装到当前工作区。skills update <slug|--all>:更新已跟踪的 ClawHub 技能。skills list:列出技能(未提供子命令时的默认操作)。skills info <name>:显示某个技能的详细信息。skills check:就绪与缺失需求的摘要。
--eligible:仅显示就绪的技能。--json:输出 JSON(无样式)。-v,--verbose:包含缺失的详细信息。
openclaw skills search、openclaw skills install 和 openclaw skills update。
pairing
跨渠道批准 Gateway(网关) 配对请求。
子命令:
pairing list [channel] [--channel <channel>] [--account <id>] [--json]pairing approve <channel> <code> [--account <id>] [--notify]pairing approve --channel <channel> [--account <id>] <code> [--notify]
devices
管理网关设备配对条目和按角色的设备令牌。
子命令:
devices list [--json]devices approve [requestId] [--latest]devices reject <requestId>devices remove <deviceId>devices clear --yes [--pending]devices rotate --device <id> --role <role> [--scope <scope...>]devices revoke --device <id> --role <role>
webhooks gmail
Gmail Pub/Sub hook 设置 + 运行器。参见 /automation/gmail-pubsub。
子命令:
webhooks gmail setup(需要--account <email>;支持--project、--topic、--subscription、--label、--hook-url、--hook-token、--push-token、--bind、--port、--path、--include-body、--max-bytes、--renew-minutes、--tailscale、--tailscale-path、--tailscale-target、--push-endpoint、--json)webhooks gmail run(相同标志的运行时覆盖)
dns setup
广域发现 DNS 帮助程序(CoreDNS + Tailscale)。参见 /gateway/discovery。
选项:
--apply:安装/更新 CoreDNS 配置(需要 sudo;仅限 macOS)。
消息传递 + 代理
message
统一出站消息传递 + 渠道操作。
参见:/cli/message
子命令:
message send|poll|react|reactions|read|edit|delete|pin|unpin|pins|permissions|search|timeout|kick|banmessage thread <create|list|reply>message emoji <list|upload>message sticker <send|upload>message role <info|add|remove>message channel <info|list>message member infomessage voice statusmessage event <list|create>
openclaw message send --target +15555550123 --message "Hi"openclaw message poll --channel discord --target channel:123 --poll-question "Snack?" --poll-option Pizza --poll-option Sushi
agent
通过 Gateway(网关)(或嵌入式 --local)运行一次 agent 回合。
必填:
--message <text>
--to <dest>(用于会话密钥和可选投递)--session-id <id>--thinking <off|minimal|low|medium|high|xhigh>(仅限 GPT-5.2 + Codex 模型)--verbose <on|full|off>--channel <whatsapp|telegram|discord|slack|mattermost|signal|imessage|msteams>--local--deliver--json--timeout <seconds>
agents
管理隔离的 agent(工作区 + 身份验证 + 路由)。
agents list
列出已配置的 agent。
选项:
--json--bindings
agents add [name]
添加一个新的隔离 agent。除非传递了标志(或 --non-interactive),否则运行引导向导;在非交互模式下,--workspace 是必需的。
选项:
--workspace <dir>--model <id>--agent-dir <dir>--bind <channel[:accountId]>(可重复)--non-interactive--json
channel[:accountId]。当省略 accountId 时,OpenClaw 可以通过渠道默认值/插件挂钩解析账户范围;否则它是没有明确账户范围的渠道绑定。
agents bindings
列出路由绑定。
选项:
--agent <id>--json
agents bind
为 agent 添加路由绑定。
选项:
--agent <id>--bind <channel[:accountId]>(可重复)--json
agents unbind
移除代理的路由绑定。
选项:
--agent <id>--bind <channel[:accountId]>(可重复)--all--json
agents delete <id>
删除代理并清理其工作区和状态。
选项:
--force--json
acp
运行连接 IDE 与 Gateway(网关) 的 ACP 网桥。
有关完整的选项和示例,请参阅 acp。
status
显示已链接会话的健康状况和最近的接收者。
选项:
--json--all(完整诊断;只读,可粘贴)--deep(探测通道)--usage(显示模型提供商的使用情况/配额)--timeout <ms>--verbose--debug(--verbose的别名)
- 概览在可用时包括 Gateway(网关) + 节点主机服务状态。
使用情况跟踪
当 OAuth/API 凭证可用时,OpenClaw 可以显示提供商的使用情况/配额。 显示方式:/status(在可用时添加简短的提供商使用情况行)openclaw status --usage(打印完整的提供商细分)- macOS 菜单栏(上下文下的使用情况部分)
- 数据直接来自提供商的使用情况端点(而非估算值)。
- 提供商:Anthropic、GitHub Copilot、OpenAI Codex OAuth,以及通过捆绑的
google插件的 Gemini CLI 和已配置的 Antigravity。 - 如果不存在匹配的凭证,使用情况将被隐藏。
- 详情:请参阅使用情况跟踪。
health
从正在运行的 Gateway(网关) 获取健康状况。
选项:
--json--timeout <ms>--verbose
sessions
列出存储的会话会话。
选项:
--json--verbose--store <path>--active <minutes>
重置 / 卸载
reset
重置本地配置/状态(保留已安装的 CLI)。
选项:
--scope <config|config+creds+sessions|full>--yes--non-interactive--dry-run
--non-interactive需要--scope和--yes。
uninstall
卸载 Gateway 服务 + 本地数据(CLI 保留)。
选项:
--service--state--workspace--app--all--yes--non-interactive--dry-run
--non-interactive需要--yes和显式作用域(或--all)。
Gateway(网关)
gateway
运行 WebSocket Gateway(网关)。
选项:
--port <port>--bind <loopback|tailnet|lan|auto|custom>--token <token>--auth <token|password>--password <password>--password-file <path>--tailscale <off|serve|funnel>--tailscale-reset-on-exit--allow-unconfigured--dev--reset(重置开发配置 + 凭证 + 会话 + 工作区)--force(终止端口上的现有监听器)--verbose--claude-cli-logs--ws-log <auto|full|compact>--compact(--ws-log compact的别名)--raw-stream--raw-stream-path <path>
gateway service
管理 Gateway(网关) 服务 (launchd/systemd/schtasks)。
子命令:
gateway status(默认探测 Gateway(网关) RPC)gateway install(服务安装)gateway uninstallgateway startgateway stopgateway restart
gateway status默认使用服务的解析端口/配置检测 Gateway(网关) RPC(可通过--url/--token/--password覆盖)。gateway status支持--no-probe、--deep、--require-rpc和--json用于脚本编写。- 当检测到时,
gateway status也会显示遗留或额外的网关服务(--deep会添加系统级扫描)。以配置文件命名的 OpenClaw 服务被视为一等公民,不会被标记为“额外”。 gateway status打印 CLI 使用的配置路径与服务可能使用的配置(服务环境变量)的对比,以及解析后的检测目标 URL。- 如果在当前命令路径中未解析网关身份验证 SecretRefs,
gateway status --json仅在检测连接/身份验证失败时报告rpc.authWarning(检测成功时将抑制警告)。 - 在 Linux systemd 安装中,状态令牌漂移检查包括
Environment=和EnvironmentFile=单元源。 gateway install|uninstall|start|stop|restart支持--json用于脚本编写(默认输出保持人类可读)。gateway install默认使用 Node 运行时;不建议使用 bun(WhatsApp/Telegram 错误)。gateway install选项:--port、--runtime、--token、--force、--json。
logs
通过 Gateway(网关) 跟踪 RPC 文件日志。
注意:
- TTY 会话呈现彩色、结构化视图;非 TTY 会话回退到纯文本。
--json发出以行分隔的 JSON(每行一个日志事件)。
gateway <subcommand>
Gateway(网关) CLI 助手(对 RPC 子命令使用 --url、--token、--password、--timeout、--expect-final)。
当您传递 --url 时,CLI 不会自动应用配置或环境凭据。
请显式包含 --token 或 --password。缺少显式凭据将导致错误。
子命令:
gateway call <method> [--params <json>]gateway healthgateway statusgateway probegateway discovergateway install|uninstall|start|stop|restartgateway run
config.apply(验证 + 写入配置 + 重启 + 唤醒)config.patch(合并部分更新 + 重启 + 唤醒)update.run(运行更新 + 重启 + 唤醒)
config.set/config.apply/config.patch 时,如果配置已存在,请传递来自
config.get 的 baseHash。
模型
有关回退行为和扫描策略,请参阅 /concepts/models。 Anthropic 设置令牌(已支持):models (根)
openclaw models 是 models status 的别名。
根选项:
--status-json(models status --json的别名)--status-plain(models status --plain的别名)
models list
选项:
--all--local--provider <name>--json--plain
models status
选项:
--json--plain--check(退出 1=已过期/缺失,2=即将过期)--probe(对已配置的身份验证配置文件进行实时探测)--probe-provider <name>--probe-profile <id>(重复或逗号分隔)--probe-timeout <ms>--probe-concurrency <n>--probe-max-tokens <n>
--probe 运行实时请求(可能会消耗令牌并触发速率限制)。
models set <model>
设置 agents.defaults.model.primary。
models set-image <model>
设置 agents.defaults.imageModel.primary。
models aliases list|add|remove
选项:
list:--json、--plainadd <alias> <model>remove <alias>
models fallbacks list|add|remove|clear
选项:
list:--json、--plainadd <model>remove <model>clear
models image-fallbacks list|add|remove|clear
选项:
list:--json、--plainadd <model>remove <model>clear
models scan
选项:
--min-params <b>--max-age-days <days>--provider <name>--max-candidates <n>--timeout <ms>--concurrency <n>--no-probe--yes--no-input--set-default--set-image--json
models auth add|setup-token|paste-token
选项:
add: 交互式身份验证助手setup-token:--provider <name>(默认为anthropic)、--yespaste-token:--provider <name>,--profile-id <id>,--expires-in <duration>
models auth order get|set|clear
选项:
get:--provider <name>,--agent <id>,--jsonset:--provider <name>,--agent <id>,<profileIds...>clear:--provider <name>,--agent <id>
系统
system event
将系统事件加入队列,并可选择触发心跳(Gateway(网关) RPC)。
必填:
--text <text>
--mode <now|next-heartbeat>--json--url,--token,--timeout,--expect-final
system heartbeat last|enable|disable
心跳控制(Gateway(网关) RPC)。
选项:
--json--url,--token,--timeout,--expect-final
system presence
列出系统在线条目(Gateway(网关) RPC)。
选项:
--json--url,--token,--timeout,--expect-final
Cron
管理计划任务(Gateway(网关) RPC)。参见 /automation/cron-jobs。 子命令:cron status [--json]cron list [--all] [--json](默认为表格输出;使用--json获取原始输出)cron add(别名:create;需要--name和--at|--every|--cron中的一个,以及--system-event|--message中的一个负载)cron edit <id>(补丁字段)cron rm <id>(别名:remove,delete)cron enable <id>cron disable <id>cron runs --id <id> [--limit <n>]cron run <id> [--force]
cron 命令都接受 --url、--token、--timeout、--expect-final。
节点主机
node 运行 无头节点主机 或将其作为后台服务进行管理。请参阅
openclaw node。
子命令:
node run --host <gateway-host> --port 18789node statusnode install [--host <gateway-host>] [--port <port>] [--tls] [--tls-fingerprint <sha256>] [--node-id <id>] [--display-name <name>] [--runtime <node|bun>] [--force]node uninstallnode stopnode restart
node从环境/配置解析网关认证(无--token/--password标志):OPENCLAW_GATEWAY_TOKEN/OPENCLAW_GATEWAY_PASSWORD,然后是gateway.auth.*。在本地模式下,节点主机故意忽略gateway.remote.*;在gateway.mode=remote中,gateway.remote.*根据远程优先级规则参与。- 节点主机认证解析仅遵守
OPENCLAW_GATEWAY_*环境变量。
节点
nodes 与 Gateway(网关) 通信并以已配对的节点为目标。请参阅 /nodes。
常用选项:
--url、--token、--timeout、--json
nodes status [--connected] [--last-connected <duration>]nodes describe --node <id|name|ip>nodes list [--connected] [--last-connected <duration>]nodes pendingnodes approve <requestId>nodes reject <requestId>nodes rename --node <id|name|ip> --name <displayName>nodes invoke --node <id|name|ip> --command <command> [--params <json>] [--invoke-timeout <ms>] [--idempotency-key <key>]nodes run --node <id|name|ip> [--cwd <path>] [--env KEY=VAL] [--command-timeout <ms>] [--needs-screen-recording] [--invoke-timeout <ms>] <command...>(mac 节点或无头节点主机)nodes notify --node <id|name|ip> [--title <text>] [--body <text>] [--sound <name>] [--priority <passive|active|timeSensitive>] [--delivery <system|overlay|auto>] [--invoke-timeout <ms>](仅限 mac)
nodes camera list --node <id|name|ip>nodes camera snap --node <id|name|ip> [--facing front|back|both] [--device-id <id>] [--max-width <px>] [--quality <0-1>] [--delay-ms <ms>] [--invoke-timeout <ms>]nodes camera clip --node <id|name|ip> [--facing front|back] [--device-id <id>] [--duration <ms|10s|1m>] [--no-audio] [--invoke-timeout <ms>]
nodes canvas snapshot --node <id|name|ip> [--format png|jpg|jpeg] [--max-width <px>] [--quality <0-1>] [--invoke-timeout <ms>]nodes canvas present --node <id|name|ip> [--target <urlOrPath>] [--x <px>] [--y <px>] [--width <px>] [--height <px>] [--invoke-timeout <ms>]nodes canvas hide --node <id|name|ip> [--invoke-timeout <ms>]nodes canvas navigate <url> --node <id|name|ip> [--invoke-timeout <ms>]nodes canvas eval [<js>] --node <id|name|ip> [--js <code>] [--invoke-timeout <ms>]nodes canvas a2ui push --node <id|name|ip> (--jsonl <path> | --text <text>) [--invoke-timeout <ms>]nodes canvas a2ui reset --node <id|name|ip> [--invoke-timeout <ms>]nodes screen record --node <id|name|ip> [--screen <index>] [--duration <ms|10s>] [--fps <n>] [--no-audio] [--out <path>] [--invoke-timeout <ms>]
nodes location get --node <id|name|ip> [--max-age <ms>] [--accuracy <coarse|balanced|precise>] [--location-timeout <ms>] [--invoke-timeout <ms>]
Browser
Browser控制CLI(专用的Chrome/Brave/Edge/Chromium)。请参阅openclaw browser和Browser工具。
通用选项:
--url,--token,--timeout,--json--browser-profile <name>
browser statusbrowser startbrowser stopbrowser reset-profilebrowser tabsbrowser open <url>browser focus <targetId>browser close [targetId]browser profilesbrowser create-profile --name <name> [--color <hex>] [--cdp-url <url>]browser delete-profile --name <name>
browser screenshot [targetId] [--full-page] [--ref <ref>] [--element <selector>] [--type png|jpeg]browser snapshot [--format aria|ai] [--target-id <id>] [--limit <n>] [--interactive] [--compact] [--depth <n>] [--selector <sel>] [--out <path>]
browser navigate <url> [--target-id <id>]browser resize <width> <height> [--target-id <id>]browser click <ref> [--double] [--button <left|right|middle>] [--modifiers <csv>] [--target-id <id>]browser type <ref> <text> [--submit] [--slowly] [--target-id <id>]browser press <key> [--target-id <id>]browser hover <ref> [--target-id <id>]browser drag <startRef> <endRef> [--target-id <id>]browser select <ref> <values...> [--target-id <id>]browser upload <paths...> [--ref <ref>] [--input-ref <ref>] [--element <selector>] [--target-id <id>] [--timeout-ms <ms>]browser fill [--fields <json>] [--fields-file <path>] [--target-id <id>]browser dialog --accept|--dismiss [--prompt <text>] [--target-id <id>] [--timeout-ms <ms>]browser wait [--time <ms>] [--text <value>] [--text-gone <value>] [--target-id <id>]browser evaluate --fn <code> [--ref <ref>] [--target-id <id>]browser console [--level <error|warn|info>] [--target-id <id>]browser pdf [--target-id <id>]
文档搜索
docs [query...]
搜索实时文档索引。
TUI
tui
打开连接到Gateway(网关)的终端UI。
选项:
--url <url>--token <token>--password <password>--session <key>--deliver--thinking <level>--message <text>--timeout-ms <ms>(默认为agents.defaults.timeoutSeconds)--history-limit <n>
本页面源自 openclaw/openclaw,由 BeaversLab 翻译,遵循 MIT 协议 发布。