@agentapprove/openclaw

中文文档
0.2.17发布于 2026/08/31SEE LICENSE IN LICENSEES Module零依赖近 30 天下载 3879

Agent Approve plugin for OpenClaw - approve or deny AI agent tool calls from your iPhone and Apple Watch

原始使用文档
文档目录9 节
  1. Why Agent Approve?
  2. Important
  3. How it works
  4. Install
  5. Setup
  6. Configuration
  7. Requirements
  8. Supported agents
  9. Links

@agentapprove/openclaw

Agent Approve plugin for OpenClaw. Approve or deny AI agent tool calls from your iPhone and Apple Watch.

Why Agent Approve?

  • Visibility -- see what your OpenClaw agent is doing in real time from your mobile device
  • Centralized policy -- define your default stance (allow, deny, or ask) and manage custom allowlists and denylists for tools, parameters, and commands
  • Mobile approval -- when human approval is required, review and respond from your iPhone or Apple Watch with a tap

You decide the rules. Agent Approve enforces them.

Important

  • A valid Agent Approve subscription is required to use this plugin.
  • You must download the iOS app, run npx agentapprove, and pair your device.
  • If a valid token is not configured, tool calls are blocked with setup guidance.

How it works

This plugin hooks into OpenClaw's agent loop to enforce your approval policy:

  • before_tool_call -- evaluates each tool call against your policy. Auto-allows or auto-denies based on your lists, or sends an approval request to your device when manual review is needed.
  • after_tool_call -- logs tool completion to your activity feed
  • command/message events -- monitors session activity

Install

openclaw plugins install @agentapprove/[email protected]

Setup

  1. Download Agent Approve from the App Store and start your 7-day free trial
  2. Follow the in-app onboarding which will prompt you to run the installer on each machine where you have agents:
npx agentapprove

The installer handles pairing, token setup, and plugin activation. Select OpenClaw when prompted for which agents to configure.

  1. Restart the OpenClaw gateway to load the plugin

That's it. Tool calls will now be evaluated against your policy, and approval requests will appear on your paired device when needed.

Configuration

Plugin settings in ~/.openclaw/openclaw.json:

{
  "plugins": {
    "entries": {
      "openclaw": {
        "enabled": true,
        "config": {
          "apiUrl": "https://api.agentapprove.com",
          "apiVersion": "v001",
          "timeout": 300,
          "failBehavior": "ask",
          "privacyTier": "full",
          "agentName": "OpenClaw"
        }
      }
    }
  }
}
SettingDefaultDescription
tokenfrom ~/.agentapprove/envOptional explicit API token override
apiUrlhttps://api.agentapprove.comAgent Approve API base URL
apiVersionv001API version prefix
timeout300Seconds to wait for an approval response
failBehavioraskDefault policy when API is unreachable: allow, deny, or ask
privacyTierfullWhat tool data is stored in event logs: minimal, summary, or full
debugfalseWrite debug logs to ~/.agentapprove/hook-debug.log
agentNameOpenClawDisplay name sent with approval events
e2eEnabledfrom ~/.agentapprove/envToggle E2E key loading for hosted installs

For hosted or containerized OpenClaw installs, you can keep secrets in the service environment and reference them from openclaw.json using OpenClaw's config substitution, for example "token": "${AGENTAPPROVE_TOKEN}".

Requirements

  • OpenClaw runtime
  • Agent Approve iOS app and active subscription ($14.99/month, 7-day free trial)

Supported agents

Agent Approve works with OpenClaw, OpenCode, Claude Code, Cursor, OpenAI Codex, Google Antigravity, VS Code Copilot, Copilot CLI, Windsurf, Pi, Hermes, OpenHands, and more. Run npx agentapprove to configure multiple agents at once.

版本与发布记录

@agentapprove/openclaw 共发布 26 个版本,首次发布于 2026/02/25;过去 12 个月发布了 26 个版本。

版本发布日期距今
0.2.17latest2026/08/312 个月前
0.2.162026/07/203 个月前
0.2.152026/07/193 个月前
0.2.142026/07/044 个月前
0.2.132026/07/044 个月前
0.2.112026/05/195 个月前

关于 @agentapprove/openclaw 的常见问题

@agentapprove/openclaw 是什么?

Agent Approve plugin for OpenClaw - approve or deny AI agent tool calls from your iPhone and Apple Watch

如何安装 @agentapprove/openclaw?

在项目目录运行 npm install @agentapprove/openclaw,或使用 pnpm add / yarn add / bun add。

@agentapprove/openclaw 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/agentapprove__openclaw 是否存在。

@agentapprove/openclaw 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@agentapprove/openclaw 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@agentapprove/openclaw 可以商用吗?

@agentapprove/openclaw 使用 SEE LICENSE IN LICENSE 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@agentapprove/openclaw 的下载量有多少?

根据 npm 官方下载统计,@agentapprove/openclaw 在 2026/10/05 – 2026/11/03 这 30 天内被下载 3,879 次,日均约 129 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@agentapprove/openclaw 还在维护吗?

最新版本 0.2.17 发布于 2026/08/31(2 个月前);至今共发布 26 个版本,其中过去 12 个月发布了 26 个;首次发布于 2026/02/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。