@pushary/openclaw
v0.1.10
Published
Phone approvals for OpenClaw. Pushary asks you before your AI agent runs a gated tool call, and blocks the call unless you approve it.
Maintainers
Readme
@pushary/openclaw
Approve your OpenClaw agent's risky tool calls from your phone. The call runs only after you tap Approve, and anything else blocks it.
Built for OpenClaw 2026.11.3 or later, including an always-on OpenClaw on a small VPS. The same Pushary account also covers Claude Code, Codex, Cursor and Hermes.
Try an approval in your browser, no account needed · OpenClaw guide
Questions this answers
- How do I approve OpenClaw tool calls from my phone? Run
npx -y pushary@latest setup --agents openclawon the machine that runs OpenClaw. Gated calls, such asexec, then wait for your answer on your phone. - What happens if I don't answer? The call is blocked. A no, no answer, a cancelled request or an unreachable server all block it.
- Can Pushary call me when OpenClaw waits? Not yet. OpenClaw approvals reach you by push.
- Is it free? The plugin is MIT. Phone delivery needs a Pushary plan, from $9.99 a month on the web. New customers start with a 3-day trial, card required.
Phone approvals for OpenClaw. Before your OpenClaw agent runs a gated tool call, Pushary asks you on your phone. The call runs only after you tap Approve. Anything else blocks it.
It is built for an OpenClaw that runs for you alone, often always on, on a small VPS. It works on the Agent and Agent Pro plans, with push approvals on your phone. Phone calls are not available for OpenClaw yet.
What you get after you sign in
- Sign in and pick a plan. New customers start with a 3-day trial.
- Run
npx -y pushary@latest setup --agents openclawon the machine that runs OpenClaw. It installs this plugin and saves your key. - Before OpenClaw runs a gated tool call, the request arrives on your phone (the Pushary app for iOS and Android), on your Mac, or in the dashboard.
- You tap Approve and the call runs. Anything else blocks it. The dashboard keeps a record of what each agent asked and what you answered.
Read the OpenClaw guide for each step, or see OpenClaw approvals on your phone.
Try denying a harmless command
Paste this into an OpenClaw session with the plugin enabled:
Use
execonce to runpwd. If I deny it, stop and tell me what happened.
Tap Deny on the phone. OpenClaw should report that the command was blocked. To check the allow path, send the same prompt again and tap Approve on the new request. The command should return the working directory.
Plans
Each plan starts with a 3-day trial for new customers.
| Plan | Price | What you get | | --- | --- | --- | | Agent | $9.99 a month | One person and every AI agent they run. Approve, deny or answer from your phone or Mac. | | Agent Pro | $19.99 a month | Everything in Agent, plus unlimited notifications, budgets and priority support. |
Phone calls work for Claude Code, Codex, Hermes and the other agents listed there, not yet for OpenClaw.
Install
With the Pushary CLI (recommended)
Run the Pushary CLI on the machine that runs OpenClaw, as the user the gateway runs as:
npx -y pushary@latest setup --agents openclawSetup signs you in, saves your key in ~/.pushary/config.json, writes this plugin to ~/.pushary/openclaw-plugin, and runs:
openclaw plugins install ~/.pushary/openclaw-plugin --force --accept-capabilities
openclaw plugins enable pushary --accept-capabilitiesThe CLI carries the plugin itself, so npx -y pushary@latest upgrade, or running setup again, installs the newer copy. A running gateway picks up the plugin when the install finishes; a stopped one loads it at its next start. Check it with:
openclaw plugins inspect pushary --runtime --jsontypedHooks should list before_tool_call. Requires OpenClaw 2026.11.3 or later and Node 24.16 or later.
If the gateway runs as another user, or as a service without that home folder, put the key in that user's ~/.openclaw/.env and restart the gateway:
PUSHARY_API_KEY=pk_your_keyFrom ClawHub or npm
Install Pushary from ClawHub after reviewing the plugin's requested capabilities:
openclaw plugins install @pushary/openclaw --accept-capabilities
openclaw plugins enable pushary --accept-capabilities
openclaw plugins inspect pushary --runtime --jsonLook for before_tool_call under typedHooks. On OpenClaw 2026.11.7, installing the npm source (npm:@pushary/openclaw) also requires you to review and confirm that source. The ClawHub commands above use the marketplace listing.
Then give it a key. Create one at pushary.com/dashboard/agent/settings, add PUSHARY_API_KEY=pk_your_key to ~/.openclaw/.env, connect your phone on the same page, and restart the gateway. Until it has a key, every gated call is blocked and the reason says how to add one. openclaw plugins update pushary follows newer releases.
Running pushary setup later installs the CLI's own copy over a ClawHub or npm install. Both use the plugin id pushary, so only one is ever loaded.
What it gates
Every
execcall.The
processactions that send input to a running session:write,send-keys,submitandpaste.process send-keyscan type a command into a session thatexecstarted in the background, so it asks likeexecdoes.list,poll,log,kill,clearandremovedo not ask.The actions that could switch the gate off or change OpenClaw itself:
pluginsinstall,enable,disable,uninstall,reloadandreloadAndResume;gatewayupdate.run; and everyopenclawaction that changes config, plugins, agents, channels or the gateway. Their read actions (pluginslist,inspectandsearch;gatewayconfig.getandconfig.schema.lookup;openclawstatus,config_get,plugin_listand the other reads) do not ask. An action the plugin does not know asks.Every
automations(also calledcron) action exceptstatus,list,get,runsandnext_check. A scheduled job can run a command outsidebefore_tool_call, so adding, changing, running or waking one asks.Every
terminalaction exceptreadandlist.terminal inputtypes into a shared operator terminal.Every
nodesaction except the reads:status,describe,pending,notify,camera_list,notifications_listand thedevice_*reads.nodes runruns a command on a paired machine,approvepairs a new one, and the camera, screen and location actions take data from it.Every
sessions_spawnwithruntime: "acp". An ACP session runs Codex, Claude Code or another harness, whose own tool calls never reach this plugin, so starting one asks.A
sessions_spawnwith acwdoutside the agent's workspace or in itshooksor.openclawfolder, or with aprojectId,projectGitUrlorworktree, in camelCase or snake_case. The question names the folder. OpenClaw resolves a relativecwdfrom the gateway's working folder and expands~,~/or~\withOPENCLAW_HOMEwhen it is set, so the plugin checks those readings as well as the workspace one.Every
write,editorapply_patchinto OpenClaw's own files: anything inside an OpenClaw state directory,~/.config/openclaw(where Linux keepsgateway.env),~/.pushary, the.envin the gateway's working folder, the config file set byOPENCLAW_CONFIG_PATH, and the launchd and systemd files OpenClaw installs for its gateway. The one exception is the agent's own workspace when it lives inside the state directory, which is OpenClaw's default (~/.openclaw/workspace). The workspacehooksand.openclawfolders always ask, wherever the workspace is, because OpenClaw loads code from them: hooks fromhooks, and plugins from.openclaw/extensions, which it finds before the installed ones. The plugin resolves~,@references and symlinks before it decides, and lands a relative path in the agent's workspace both as OpenClaw names it and where its links lead. A path it cannot resolve asks, including one through a symbolic link whose target does not exist yet, and on macOS one under/System/Volumes/Data,/.volor/.nofollow, which reach the same files by another name. A file with more than one name, a hard link, asks too, because a write changes it under every name; deleting or moving one asks as well. So does any path that is not plain: one with surrounding whitespace, a URL scheme such asfile://, a:other than in a drive prefix, any of? < > | * ", a percent escape such as%2F, or an ASCII control character. OpenClaw resolves a URL differently in its default, workspace-only and sandbox setups and strips a trailing</arg_value>>, the other characters are not valid in a Windows file name, and a percent escape would change meaning if OpenClaw ever decoded it. A#, or a%not followed by two hex digits, is an ordinary character to OpenClaw in any path that is not a URL, so a path such assrc/C#/Program.csor100%.mdis judged by where it lands, like any other. On macOS and Windows, a path asks when it, or a folder the plugin compares it with, has a character Node cannot compare the way macOS does, such as one newer than Node's Unicode tables. In a sandbox it does not map an absolute path inside the container, such as/workspace/hooks/x.js, to the host folder OpenClaw writes, so such a write does not ask. Writes anywhere else run without asking.
To gate more tools, list their OpenClaw tool ids. The list adds to the defaults above; it never replaces them:
{
plugins: {
entries: {
pushary: {
enabled: true,
config: { gatedTools: ["message", "browser"] },
},
},
},
}Ids are read the way OpenClaw names its tools: bash means exec, cron means automations and tool_call means dispatch_action. An entry that is not a tool id gates nothing, and the plugin logs it as an error when it starts. OpenClaw does not mark a tool call as a message send, a payment or a public post, so gate those by naming the tool that does it, such as message.
What happens to a gated call
| Pushary says | The call | | --- | --- | | You answer yes | Runs | | You answer anything else | Blocked, and the agent is told not to retry | | No answer before the wait ends | Blocked, and the question is withdrawn | | OpenClaw cancels the run | Blocked, and the question is withdrawn | | The agent was stopped from Pushary | Blocked | | No phone, browser or Slack is connected | Blocked, with a link to connect one | | Pushary cannot be reached, rejects the key or sends a reply the plugin cannot read | Blocked | | The call is longer than 4,000 characters once secrets are redacted | Blocked without asking, because Pushary could not show all of it | | Your delivery mode keeps approvals off the phone, or a When away push window passes with no answer | Withdrawn in Pushary and handed to OpenClaw's own approval prompt, which blocks the call when nobody can answer there. On an OpenClaw older than 2026.11.3 the call is blocked instead |
A missing answer never becomes an approval. A plugin error or timeout blocks the call: OpenClaw fails closed when a before_tool_call hook throws or runs out of time, and the plugin turns its own errors into a block rather than relying on that.
What is sent to Pushary
For each gated call, the plugin sends one ask_user request to https://pushary.com/api/mcp/mcp, with your key in the Authorization header. It holds:
- The question. For a command, its first 160 characters, with a note when the command is longer. For a file change, the path. This is what the notification shows; open the request to read the whole call before you answer.
- The full call. For
exec, the whole command, and before it the environment it sets and every other parameter, such ashost,node,securityandask. The question names the environment variables. Forwrite,editandapply_patch, the path, the number of lines or changes, and the lines removed and added. For every other tool, its parameters as JSON. - Where it comes from. The agent name (
OpenClaw, orOpenClaw - <agent id>), the tool name, the working directory and whether it asked for elevated mode, the OpenClaw session id or key (hashed when it is longer than 128 characters), a machine id (the onepushary setupsaved in~/.pushary/machine-id, or else a hash of the host name), a random request id, and when the plugin stops waiting.
Before anything is sent, the plugin removes what it can recognise as a secret:
- Key and token formats it knows: Pushary keys,
sk-keys (OpenAI, Anthropic), Stripe, GitHub, GitLab, Slack, Google, AWS access key ids, npm, xAI and JWTs, plus private key blocks and long base64-like strings of 40 or more characters. - Passwords in URLs,
BearerandAuthorizationvalues, and the value of anything named like a password, token, secret, API key, access key, client secret or private key. In JSON this holds at any depth, whatever the value. - For a complete write to a
.envfile (.env,.env.*or a name ending in.env, such asgateway.env), Pushary receives the variable names when every line is a comment, blank, or a plain assignment: an uppercaseNAME, and a value that is unquoted, or quoted on one line with no backslash or inner quote. A file with any other line, such as a value spread over several lines, sends neither names nor values. For an edit or patch, Pushary receives the paths and omits the dotenv change contents because a fragment can start inside a value. A patch that moves a file into or out of a.envfile omits the contents of every file in it. A path that is not plain, with surrounding whitespace, a URL scheme, a:anywhere but in a drive prefix such asC:\at the start, or any of? < > | * ", a percent escape such as%2E, or an ASCII control character, is treated as a.envfile, because OpenClaw can resolve it to one. This check decides from the path as written and does not follow symbolic or hard links, so a write through a link to a.envfile is sent as a write to the link. A file change the plugin cannot read is withheld too: awriteoreditwhosepathis a.envfile, and, when any parameter name or value mentions.env, awriteoreditwithout apathor anapply_patchwhose patch it cannot read. Pushary then receives the path, the names in patch headers that start a line, or[dotenv file name not sent], plus where the call comes from, as listed above, and no other parameter.
Redaction works from these patterns. A secret in a command that matches none of them, such as a password with spaces passed to a flag of its own, is sent as written. The plugin leaves the rest of a command as it is so you can see what will run.
Characters you could not see, such as zero-width spaces, text direction overrides and terminal escape codes, are sent as visible codes like \u{202E}.
While it waits, the plugin sends only the question id, to check for your answer or to withdraw the question. It sends no analytics and talks to no other host.
How long it waits
The plugin asks OpenClaw for a five minute before_tool_call budget and stops waiting ten seconds before it, so it has time to withdraw the question. If you set plugins.entries.pushary.hooks.timeouts.before_tool_call or hooks.timeoutMs, the plugin reads that value and ends its wait before it instead.
Where the key comes from
PUSHARY_API_KEYin the gateway's environment, which OpenClaw also loads from~/.openclaw/.env.apiKeyin~/.pushary/config.json, or the file named byPUSHARY_CONFIG_FILE.
With no key, every gated call is blocked and the reason says how to fix it.
Removing it
npx -y pushary@latest cleanClean uninstalls the plugin and puts back the plugins.entries.pushary settings you had before setup. Without the plugin, OpenClaw's own exec approvals still apply, and nothing reaches your phone.
Limits
- The gate covers the tools listed above and any you add. It does not see other tools: for example the file-transfer plugin's
file_writeis not gated unless you add it togatedTools. - ACP sessions set to approve everything, and CLI backends, run tools inside the external harness. Those tool calls never reach
before_tool_call, so the plugin cannot gate them. - A command that runs a script file shows the command, not what the script contains. A call longer than 4,000 characters is blocked, so an agent may split it this way: read the script before you approve it.
- This is an approval layer, not a sandbox. Pair it with OpenClaw's own sandboxing and
tools.fs.workspaceOnly. - The plugin talks only to
https://pushary.comandhttps://www.pushary.com, the hosts the CLI uses. Any otherPUSHARY_BASE_URLblocks every gated call, so a changed setting cannot point it at a server that always says yes. - The plugin is not told which folder a tool runs in. It resolves a relative path against the agent's workspace, as OpenClaw names it and where its links lead, any folder inside it, and the gateway's working folder, and a spawned session in any other folder asks first. A run started some other way in a folder inside OpenClaw's state is not covered.
- Config
$includefiles outside the state directory, including roots named byOPENCLAW_INCLUDE_ROOTS, are not protected. - Windows has not been tested.
- Pushary's tool rules from the dashboard are not evaluated on the machine. Every gated call asks.
- Another plugin that rewrites tool parameters can change what runs, including a plugin that runs before this one: 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 wait is held inside one gateway process. If the gateway restarts during a wait, OpenClaw drops the call and the question stays in Pushary until it expires.
Related repositories
- Pushary plugin for Hermes: phone approvals for Hermes Agent, another agent that often runs always on.
- Pushary skill: the skill, and
npx -y pushary@latest setupfor Claude Code, Codex, Gemini CLI and more. - Pushary for Mac: answer from the notch on your Mac.
License
MIT
