openclaw approvals¶
Quản lý phê duyệt thực thi cho máy chủ cục bộ, máy chủ gateway hoặc máy chủ nút.
By default, commands target the local approvals file on disk. Use --gateway to target the gateway, or --node to target a specific node.
Liên quan:
- Phê duyệt exec: Exec approvals
- Nút: Nút
Các lệnh thường dùng¶
openclaw approvals get
openclaw approvals get --node <id|name|ip>
openclaw approvals get --gateway
Thay thế phê duyệt từ một tệp¶
openclaw approvals set --file ./exec-approvals.json
openclaw approvals set --node <id|name|ip> --file ./exec-approvals.json
openclaw approvals set --gateway --file ./exec-approvals.json
Trợ giúp danh sách cho phép¶
openclaw approvals allowlist add "~/Projects/**/bin/rg"
openclaw approvals allowlist add --agent main --node <id|name|ip> "/usr/bin/uptime"
openclaw approvals allowlist add --agent "*" "/usr/bin/uname"
openclaw approvals allowlist remove "~/Projects/**/bin/rg"
Ghi chú¶
--nodedùng cùng bộ phân giải nhưopenclaw nodes(id, name, ip, hoặc tiền tố id).--agentmặc định là"*", áp dụng cho tất cả các tác tử.- Máy chủ node phải quảng bá
system.execApprovals.get/set(ứng dụng macOS hoặc máy chủ node headless). - Tệp phê duyệt được lưu theo từng máy chủ tại
~/.openclaw/exec-approvals.json.