mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Complete rename of all OpenClaw/OPENCLAW/openclaw references to Hanzo Bot/BOT/bot naming convention: - Env vars: OPENCLAW_* → BOT_* (18 patterns) - Config: ~/.openclaw/ → ~/.bot/, openclaw.json → bot.json - Packages: @openclaw/* → @hanzo/bot-* - Domains: openclaw.ai → hanzo.bot - Mobile: OpenClawKit → BotKit, bundle IDs ai.openclaw → ai.hanzo.bot - mDNS: _openclaw-gw._tcp → _bot-gw._tcp - Docker: CMD hanzo-bot.mjs, BOT_PREFER_PNPM, BOT_DOCKER_APT_PACKAGES - CI: docker-release.yml adds :latest tag on main branch
1.8 KiB
1.8 KiB
read_when, summary, title, x-i18n
| read_when | summary | title | x-i18n | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
`hanzo-bot devices` 的 CLI 参考(设备配对 + token 轮换/撤销) | devices |
|
hanzo-bot devices
管理设备配对请求和设备范围的 token。
命令
hanzo-bot devices list
列出待处理的配对请求和已配对的设备。
hanzo-bot devices list
hanzo-bot devices list --json
hanzo-bot devices approve <requestId>
批准待处理的设备配对请求。
hanzo-bot devices approve <requestId>
hanzo-bot devices reject <requestId>
拒绝待处理的设备配对请求。
hanzo-bot devices reject <requestId>
hanzo-bot devices rotate --device <id> --role <role> [--scope <scope...>]
为特定角色轮换设备 token(可选更新 scope)。
hanzo-bot devices rotate --device <deviceId> --role operator --scope operator.read --scope operator.write
hanzo-bot devices revoke --device <id> --role <role>
为特定角色撤销设备 token。
hanzo-bot devices revoke --device <deviceId> --role node
通用选项
--url <url>:Gateway 网关 WebSocket URL(配置后默认使用gateway.remote.url)。--token <token>:Gateway 网关 token(如需要)。--password <password>:Gateway 网关密码(密码认证)。--timeout <ms>:RPC 超时。--json:JSON 输出(推荐用于脚本)。
注意事项
- Token 轮换会返回新 token(敏感信息)。请像对待密钥一样对待它。
- 这些命令需要
operator.pairing(或operator.admin)scope。