Human-in-the-loop for OpenClaw

Approve OpenClaw tool calls from your phone.

Install one plugin. Pushary asks you on your phone before OpenClaw runs a gated tool call, and no answer blocks it.

What OpenClaw gives you

The before_tool_call hook

An OpenClaw plugin can register a before_tool_call hook. It runs before the tool, and returning { block: true, blockReason } stops the call and tells the model why. That is where an approval belongs, because it stops the action instead of reporting it afterwards. The Pushary plugin is built on this hook.

Where it stops

  • On its own, the hook reaches a person only through OpenClaw's approvals, such as in a chat app.
  • Nothing reaches your phone, so a tool call waits on a screen you may not be watching.
  • It keeps no record of what was allowed or blocked, or who decided.

The fix

Pushary gets your user's answer.

The Pushary plugin for OpenClaw puts the approval in before_tool_call. By default it gates every exec call and the process actions that type into a running session. It also gates the plugins, gateway and openclaw actions that install, disable or reconfigure plugins, change OpenClaw's config, or update or restart the gateway. These are the tools OpenClaw gives the agent to turn the plugin off. The limits of the gate are listed on this page. OpenClaw waits while Pushary asks you on your phone, and only a yes runs the call. A no, no answer before the wait ends or an unreachable server blocks it.

The Pushary CLI ships the plugin, with the plugin id pushary, for the Agent and Agent Pro plans. Run setup on the machine that runs OpenClaw, over SSH if it is a VPS: it signs you in, saves your key in ~/.pushary/config.json, writes the plugin to ~/.pushary/openclaw-plugin and installs it with OpenClaw's own commands. npx pushary@latest upgrade, or running setup again, installs the newer copy. If the gateway runs as another user, put your key in that user's ~/.openclaw/.env. It needs OpenClaw 2026.11.3 or later and Node 24.16 or later.

bash
npx pushary@latest setup --agents openclaw
check it
openclaw plugins inspect pushary --runtime --json
npx pushary@latest doctor

# ~/.openclaw/.env of the user the gateway runs as
PUSHARY_API_KEY=pk_xxx.xxx

Partner plan: your OpenClaw product asks your own users

This path is for builders. If you ship a product built on OpenClaw and your users approve what it does, call decisions.ask() from @pushary/server in your own before_tool_call hook and pass each user's own id as externalId. Each user connects once with a link and answers in the free Pushary app. The decisions API needs the Partner plan: on Agent and Agent Pro it returns 403. For an OpenClaw you run for yourself, use the plugin above.

Partner plan hook
import { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry"
import { createPusharyServer } from "@pushary/server"

const pushary = createPusharyServer({ apiKey: process.env.PUSHARY_API_KEY! })
const GATED = new Set(["deploy_service", "delete_record", "send_email"])

export default definePluginEntry({
  id: "acme-approvals",
  name: "Acme approvals",
  register(api) {
    api.on("before_tool_call", async (event) => {
      if (!GATED.has(event.toolName)) return
      const d = await pushary.decisions
        .ask({ question: `Allow ${event.toolName}?`, externalId: currentUserId(), type: "confirm" })
        .catch(() => ({ approved: false }))
      if (!d.approved) {
        return { block: true, blockReason: "Your user did not approve this action." }
      }
    })
  },
})

How it works

From install to the first answer

Connect your user once. Put the approval on the risky step. Pushary sends the question, waits for the answer and saves it.

  1. 01

    Run setup where OpenClaw runs

    On the OpenClaw machine, or over SSH on a VPS, run npx pushary@latest setup --agents openclaw. Scan the QR code it prints with your phone and sign in, or pass a key from your dashboard settings with --key.

  2. 02

    Setup installs the plugin

    Setup saves your key in ~/.pushary/config.json, writes the plugin to ~/.pushary/openclaw-plugin, then runs openclaw plugins install and openclaw plugins enable. A running gateway picks it up. A stopped one loads it at its next start.

  3. 03

    Check that it loaded

    Run openclaw plugins inspect pushary --runtime --json. typedHooks should list before_tool_call. npx pushary@latest doctor checks the plugin and your key too.

  4. 04

    Approve from your phone

    When the agent runs exec, your phone asks. Tap Approve and the call runs. A no, or no answer before the wait ends, blocks it.

A question can be a yes or no, a choice from a list, or a typed answer. Every answer is saved.

Before you ship

Things that bite on OpenClaw

Only gated tools ask
By default the plugin gates every exec call, and the process actions that send input to a running session: write, send-keys, submit and paste. It also gates the plugins, gateway and openclaw actions that install, enable, disable, uninstall or reload a plugin, change OpenClaw's config, or update or restart the gateway. These are the tools OpenClaw gives the agent to turn the plugin off. The limits of the gate are listed on this page. Their read actions, such as list, inspect, search and config.get, run without asking. Every automations or cron action except status, list, get, runs and next_check asks, and so does every terminal action except read and list. Any write, edit or apply_patch inside OpenClaw's state directory, ~/.config/openclaw, ~/.pushary or the gateway service files asks too, except in the agent's own workspace, which OpenClaw keeps at ~/.openclaw/workspace by default; writes anywhere else run without asking. process send-keys can type a command into a session that exec started in the background, so it asks too. OpenClaw does not mark a call as a message send, a payment or a public post, so add the tool that does it, such as message, to plugins.entries.pushary.config.gatedTools. The gate covers only the tools it names and any you add, so the file-transfer plugin's file_write is not gated unless you add it. ACP sessions that approve everything and CLI backends run tools inside their own harness, outside before_tool_call, so they are not gated. This is an approval layer, not a sandbox, so pair it with OpenClaw's own sandboxing.
Dashboard rules do not run on the machine
Pushary's tool rules from the dashboard are not evaluated on the machine. Every gated call asks you, so gate the tools that can do harm, not every tool.
The gateway needs the key
Run setup as the user the gateway runs as. If the gateway runs as another user, or as a service without that home folder, put PUSHARY_API_KEY in that user's ~/.openclaw/.env. With no key, every gated call is blocked and the reason says how to fix it.
A gateway restart drops the wait
The wait is held inside one gateway process. If the gateway restarts while a call waits, OpenClaw drops the call, and the question stays in Pushary until it expires after 10 minutes.
Plugins that rewrite parameters
Another plugin that rewrites tool parameters can change what runs, including a plugin that runs before this one, because OpenClaw gives each plugin its own copy of the call and keeps the earlier plugin's rewrite. Pushary shows and approves the parameters it was given.

The Partner plan

Your agent asks your users, not just you

Ship your agent to your users. Each of them approves its risky actions from their phone, under your brand.

$99/ month, every framework included
Start free

Your users never make a Pushary account or pay us.

Your users answer on their own phones

Connect each user once with a link. They install the free Pushary app and answer from the lock screen, with no account of their own.

No answer means no

Run the action only after an explicit Approve. A request that is still waiting, expired or cancelled never counts as a yes. Pushary keeps every request, so your code can pick it up again after a restart.

Reaches them on their phone

The app comes first, because only the app puts Approve and Deny on the lock screen. Browser notifications come next. You build no delivery system.

Every answer saved

Every answer is saved with who answered and when. You can search and export it, and with a callback URL, each answer is also sent to your server as a signed webhook.

FAQ

Questions, answered

Is there a Pushary plugin for OpenClaw?
Yes. The Pushary CLI ships an OpenClaw plugin with the id pushary. Run npx pushary@latest setup --agents openclaw on the machine that runs OpenClaw: setup writes the plugin to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install and openclaw plugins enable. npx pushary@latest upgrade installs newer versions. It needs OpenClaw 2026.11.3 or later and Node 24.16 or later.
Which OpenClaw tool calls ask for my approval?
Every exec call, and the process actions that send input to a running session: write, send-keys, submit and paste. process list, poll, log, kill, clear and remove run without asking. The plugins, gateway and openclaw actions that install, enable, disable, uninstall or reload a plugin, change OpenClaw's config, or update or restart the gateway ask too. These are the tools OpenClaw gives the agent to turn the plugin off, and the limits of the gate are listed on this page. Their read actions run without asking. Every automations or cron action except status, list, get, runs and next_check asks, and so does every terminal action except read and list. Any write, edit or apply_patch inside OpenClaw's state directory, ~/.config/openclaw, ~/.pushary or the gateway service files asks too, except in the agent's own workspace, which OpenClaw keeps at ~/.openclaw/workspace by default; writes anywhere else run without asking. To gate more tools, add their ids to plugins.entries.pushary.config.gatedTools, for example ["message"]. That list adds to the defaults, so exec stays gated while the plugin is on.
What happens if I miss an OpenClaw approval?
The call is blocked and the question is withdrawn. The plugin asks OpenClaw for a five minute before_tool_call budget and stops waiting ten seconds before it ends. If you set your own hook timeout, it stops before that instead. A missing answer never becomes an approval, and a plugin error or timeout blocks the call too.
Can I run OpenClaw on a VPS and approve from my phone?
Yes. Install OpenClaw on the server as its docs say, then run npx pushary@latest setup --agents openclaw over SSH, as the same user the gateway runs as. Setup prints a QR code in the terminal, so you sign in on your phone and need no browser on the server. You can also pass a key with --key.
Where do OpenClaw approvals reach me?
As a push notification on your phone, and on the other places you connected to Pushary, such as a browser or Slack. Answer on any of them, and only a yes runs the call. Phone calls are not available for OpenClaw yet.
I build a product on OpenClaw. Can my users approve what it does?
Yes, on the Partner plan. Call decisions.ask() from @pushary/server in your own before_tool_call hook and pass each user's own id as externalId, so the person the action affects decides. Each user connects once with a link and answers in the free Pushary app, with no Pushary account. On Agent and Agent Pro the decisions API returns 403, so use the plugin for an OpenClaw you run yourself.

Let your OpenClaw agent ask before it acts.

Run one setup command where your agent runs. Each gated call waits for your yes on your phone, and every answer is saved.

Start free

Works on the Agent and Agent Pro plans.