You now have the AgentGuard Security Engine integrated. All Agent operations must pass security review — use ag_* tools instead of native operations.
This is a general-purpose AI Agent security engine for intercepting and auditing command execution, file I/O, and network access. It does not handle any form of digital asset management or financial transactions.
AgentGuard provides four layers of protection to ensure agents cannot bypass security controls:
setup.sh installs the AgentGuard binary to a system path and starts the daemon. Users must manually add tools.deny entries to openclaw.json to disable native exec/ write/ edit/ apply_patch/ process tools at the Gateway layer. Agents are physically unable to call blocked native tools. Rollback: manually delete the tools.deny entries in openclaw.json to restore native tools.ag_* tool calls are reviewed against command blacklists/whitelists, file path controls, and domain whitelists.⚠️ Native dangerous tools are blocked at the Gateway layer. You can only use the
ag_*tools listed below to perform operations.
ag_* ToolReplacesSecurityag_execute_command``exec / processCommand blacklist + dangerous command interception + output redactionag_read_file``readSensitive path blocking (.ssh/, system credential store, browser data) + content redactionag_write_file``write / edit / apply_patchPath access control + write content redaction checkag_list_directory``read (directory)Directory access controlag_http_request``browser / network toolsDomain whitelist + data exfiltration prevention
ag_* ToolPurposeag_skill_checkCheck if a skill/plugin is on the security whitelistag_statusView engine status: mode / audit stats / Panic state
ag_* ToolPurposeag_panicEmergency stop — immediately reject all subsequent operationsag_resumeResume normal operation
ag_* tools for all command, file, and network operations. Do not use native exec, read, write, apply_patch, process to bypass security.ag_* returns Intercepted, do not attempt to bypass — inform the user the operation was blocked and why.Awaiting Approval, tell the user to approve in the Dashboard.setup.sh in the skill directory (installs from local binary, no network download)agentguard daemon startag_status anytime to check current security state.ag_panic for emergency stop when suspicious behavior is detected.Audit logs viewable at: http://127.0.0.1:19821
Features: real-time operation timeline / audit statistics / rule configuration / one-click Panic
agentguard daemon stop — stop the daemontools.deny entries in openclaw.jsonrm /usr/local/bin/agentguard — remove the binary你现在集成了 AgentGuard 安全引擎。所有 Agent 操作必须经过安全审核,你需要使用 ag_* 系列工具替代原生操作。
本工具为通用 AI Agent 安全防护引擎,用于拦截和审计 Agent 的命令执行、文件读写及网络访问操作,不涉及任何形式的数字资产管理或金融交易功能。
AgentGuard 通过 四层防护 确保 Agent 无法绕过安全监管:
setup.sh 将 AgentGuard 二进制文件安装到系统路径并启动守护进程。用户需在 openclaw.json 中手动添加 tools.deny 条目以在 Gateway 层禁用原生 exec/ write/ edit/ apply_patch/ process 工具。Agent 物理上无法调用 被封锁的原生工具。 回滚方式:手动删除 openclaw.json 中的 tools.deny 条目即可恢复原生工具。ag_* 工具调用经命令黑白名单、文件路径控制、域名白名单审核⚠️ 原生危险工具已在 Gateway 层被封锁,你只能使用下方
ag_*工具执行操作。
ag_* 工具替代原生工具安全能力ag_execute_command``exec / process命令黑白名单 + 危险命令拦截 + 输出脱敏ag_read_file``read敏感路径拦截 (.ssh/, 系统凭证存储, 浏览器数据) + 内容脱敏ag_write_file``write / edit / apply_patch路径访问控制 + 写入内容脱敏检查ag_list_directory``read (目录)目录访问控制ag_http_request``browser / 网络工具域名白名单 + 数据外泄防护
ag_* 工具用途ag_skill_check检查 Skill/插件是否在安全白名单中ag_status查看引擎状态:运行模式 / 审计统计 / Panic 状态
ag_* 工具用途ag_panic紧急暂停 — 立即拒绝所有后续操作ag_resume恢复正常运行
ag_* 工具 执行所有命令、文件和网络操作。不得使用 exec、 read、 write、 apply_patch、 process 等原生工具绕过安全检查。ag_* 工具返回 拦截 信息时, 不要尝试绕过,向用户说明操作被安全策略拦截及原因。等待审批 时,告知用户正在等待审批,请在 Dashboard 中操作。setup.sh(从本地 binary 安装,无需网络下载)agentguard daemon startag_status 查看当前安全状态。ag_panic 紧急暂停。所有操作的审计日志可在本地 Dashboard 查看: http://127.0.0.1:19821
Dashboard 提供:实时操作时间线 / 审计统计图表 / 规则配置 / 一键 Panic
agentguard daemon stop 停止守护进程openclaw.json 中的 tools.deny 条目rm /usr/local/bin/agentguard 移除 binary