mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
The docs said ~/.hanzo-bot/hanzo-bot.json (and ~/.hanzo-bot-<profile>, hanzo-bot.plugin.json), which nothing reads: src/config/paths.ts resolves ~/.bot, bot.json and ~/.bot-<profile>, and plugins ship bot.plugin.json. Every such path in docs/ now names what the code opens. Co-authored-by: Hanzo Dev <[email protected]>
1.5 KiB
1.5 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| CLI reference for `hanzo-bot approvals` (exec approvals for gateway or node hosts) |
|
approvals |
hanzo-bot approvals
Manage exec approvals for the local host, gateway host, or a node host.
By default, commands target the local approvals file on disk. Use --gateway to target the gateway, or --node to target a specific node.
Related:
- Exec approvals: Exec approvals
- Nodes: Nodes
Common commands
hanzo-bot approvals get
hanzo-bot approvals get --node <id|name|ip>
hanzo-bot approvals get --gateway
Replace approvals from a file
hanzo-bot approvals set --file ./exec-approvals.json
hanzo-bot approvals set --node <id|name|ip> --file ./exec-approvals.json
hanzo-bot approvals set --gateway --file ./exec-approvals.json
Allowlist helpers
hanzo-bot approvals allowlist add "~/Projects/**/bin/rg"
hanzo-bot approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime"
hanzo-bot approvals allowlist add --agent "*" "/usr/bin/uname"
hanzo-bot approvals allowlist remove "~/Projects/**/bin/rg"
Notes
--nodeuses the same resolver ashanzo-bot nodes(id, name, ip, or id prefix).--agentdefaults to"*", which applies to all agents.- The node host must advertise
system.execApprovals.get/set(macOS app or headless node host). - Approvals files are stored per host at
~/.bot/exec-approvals.json.