Hermes Agent setup
Set up Hermes Agent notifications and phone approvals in one command. The Pushary plugin sends Hermes's dangerous-command approvals and questions to your phone.
Updated
Pushary sends Hermes Agent notifications and approvals to your phone. A Python plugin adds Pushary tools to Hermes, makes Pushary the transport for Hermes's dangerous-command approvals, and routes Hermes's questions to your phone. You get a push when Hermes marks a run as failed, and you can approve or deny a flagged command from your lock screen while Hermes runs.
Set it up
npx -y pushary@latest setupOn Windows PowerShell, run npx.cmd -y pushary@latest setup. The CLI needs Node.js 20.17+, 22.13+ or 23.5+.
Scan the QR code with your phone
Setup shows a QR code first. Scan it with your phone's camera or the Pushary app. Sign in or create an account, check that the code on your phone matches the one in your terminal, then tap Approve on Connect this computer? and allow notifications.
New accounts start a 3-day free trial, then pay $9.99 a month. A card is needed to start the trial. If this computer already has a Pushary key, setup reuses it and skips this step.
Pick Hermes
Setup asks Which agents do you use? with the agents it found already selected. Keep Hermes selected. To skip the question, run npx -y pushary@latest setup --agents hermes.
Setup writes the Pushary plugin to ~/.hermes/plugins/pushary, the folder where Hermes keeps your own plugins. That folder survives hermes update. Setup then turns the plugin on with Hermes's own commands:
hermes plugins enable pushary
hermes config set security.approval.transport pushary
hermes config set security.approval.transport_fallback builtinAnswer the test question
Setup sends a test push, then a test question. Answer it on your phone. The terminal says You're set once your answer arrives.
Restart Hermes
Hermes loads plugins when it starts. Restart it so it loads Pushary:
hermes gateway restartIf you use Hermes in the terminal, start a new session too.
On a Mac you can use Pushary Isle instead. Connecting your agents there writes the same plugin to ~/.hermes/plugins/pushary, turns it on with the same Hermes commands, and saves your key in ~/.pushary/config.json, where the plugin reads it. It needs Hermes installed, with the hermes command working.
Install from the Hermes plugin catalog
Pushary is listed in the Hermes Agent plugin catalog, so Hermes can install it for you:
hermes plugins install pusharyThe catalog installs the release Nous reviewed, pinned to a commit. On Hermes v2026.9.11, run hermes update before installing: that release can read the catalog but lacks the redaction function the pinned plugin needs, so its approval cards would arrive without the command. Then select Pushary as the approval transport, as shown in Set it up by hand. If the install did not ask for your API key, save it in Hermes:
hermes config set PUSHARY_API_KEY pk_xxx.xxxThe catalog's release can be older than the one setup installs. Check version in ~/.hermes/plugins/pushary/plugin.yaml, or in the catalog entry linked above before you install. A copy older than 0.8.1 cannot tell Pushary when Hermes marks a run as failed, so the push for that run says Hermes finished. A catalog copy leaves Hermes's clarify questions in Hermes's own prompt; a copy that setup or the Mac app installed sends them to your phone. If setup or the Mac app finds a catalog copy in ~/.hermes/plugins/pushary, it keeps it and only changes the settings. From 0.8.0, a catalog copy reads your key only through Hermes, as the catalog requires, so save it with hermes config set PUSHARY_API_KEY. Never install a second copy over an existing one.
What setup changes on your computer
| File | What changes |
|---|---|
~/.hermes/plugins/pushary | The Pushary plugin. A .pushary-install.json file in the folder records that Pushary installed it. |
~/.hermes/config.yaml | Changed only through hermes plugins enable pushary and hermes config set. Enables the plugin and selects Pushary as the approval transport, with Hermes's own prompt as the fallback. |
~/.hermes/.env | Only when you agree to gate the shell on a container terminal backend: PUSHARY_GATE_TOOLS, changed through hermes config set. |
~/.pushary/setup/hermes-plugin.json | A record of what config.yaml and PUSHARY_GATE_TOOLS had before, so npx -y pushary@latest clean can put them back. Setups from before October 2026 kept it in hermes-config.json, which is left as it was. |
~/.pushary/config.json and ~/.pushary/env | Your API key. The plugin reads PUSHARY_API_KEY through Hermes first, then ~/.pushary/config.json. Your shell profile gets one line that loads ~/.pushary/env and holds no key. |
The settings in ~/.hermes/config.yaml after setup:
plugins:
enabled:
- pushary
security:
approval:
transport: pushary
transport_fallback: builtinSetup does not turn off Hermes's clarify tool. While the plugin setup or the Mac app installed is loaded, it sends clarify questions to pushary_ask. If the plugin is missing, or it is a catalog copy, Hermes asks them in its own prompt. If an older Pushary setup added clarify to agent.disabled_toolsets, setup takes it out again, unless it kept a catalog copy.
If an older Pushary setup installed hermes-plugin-pushary into Hermes's Python with pip, setup removes that copy, so Hermes loads the one in ~/.hermes/plugins/pushary.
Check that it works
npx -y pushary@latest doctorDoctor checks your key and plan, that the plugin is in ~/.hermes/plugins/pushary and enabled, that approvals go through Pushary, that questions go through Pushary, and whether Hermes checks dangerous commands on your terminal backend. It also says whether the running Hermes has loaded the plugin: the plugin writes a file to ~/.hermes/plugin-data/pushary/loaded/ when Hermes loads it. If doctor says to restart Hermes, run hermes gateway restart. Doctor sends a real test push. Add --roundtrip to send a test question too.
Then ask Hermes to do something its dangerous-command check flags, such as deleting a scratch folder. Your phone buzzes with Hermes's four choices.
Approve Hermes's dangerous commands from your phone
Hermes already detects dangerous commands and asks a person before it runs them. With security.approval.transport: pushary, that question goes to your phone instead of a terminal nobody is watching. On a container terminal backend Hermes skips this check, so read Container terminal backends if you use one. You get the same four choices Hermes offers in the terminal:
| Choice | Effect |
|---|---|
| Allow once | Runs this command. |
| Allow for this session | Runs it, and stops asking for the rest of the session. |
| Always allow | Runs it, and writes a standing allow rule. |
| Deny | Blocks it. The agent is told you did not consent. |
How long your phone has depends on your approval mode. In Always, it is Hermes's own approvals.timeout (300 seconds by default). In When away, your phone has the push window, then Hermes's own prompt takes over.
transport_fallback: builtin makes the transport safe to leave on. If your key is missing, your mode is In agent, or no device can be reached, Pushary steps aside (withdrawing any question it already sent) and Hermes asks in its own prompt. If cancellation says stop, or Pushary cannot confirm the withdrawal, the command is denied. A network failure while Pushary waits never reopens approval silently. Remove the transport_fallback line and an unreachable Pushary becomes a denial instead.
Gate named tools with PUSHARY_GATE_TOOLS
To gate specific tools rather than Hermes's dangerous-command set, list them in PUSHARY_GATE_TOOLS. The check runs in the plugin's blocking pre_tool_call hook.
hermes config set PUSHARY_GATE_TOOLS terminal,write_file
hermes config set PUSHARY_GATE_TIMEOUT_MS 25000
hermes gateway restarthermes config set saves both in ~/.hermes/.env, which Hermes loads for the gateway and the terminal, including a gateway that runs as a service. An export in your shell profile reaches only a Hermes you start from that shell.
| Outcome | Result |
|---|---|
| You approve | The tool runs. |
| You deny | The tool is blocked, and the agent is told why. |
| No answer in the window | The tool is blocked. |
| Pushary unreachable, or no API key | The tool is blocked. |
| No phone, browser or Slack channel connected | The tool is blocked, with that as the reason. |
Hermes abandons any pre_tool_call callback that outlives plugins.hook_callback_timeout (30 seconds by default). The plugin keeps its wait inside that limit. PUSHARY_GATE_TIMEOUT_MS defaults to 55000 and is capped by it. Raise plugins.hook_callback_timeout to give your phone longer, up to the plugin's own limit of 55 seconds.
When Pushary is also the selected transport, the transport wins. The hook hands the call to Hermes's own approval gate, which gets the full 300-second window and the four choices. Always allow on such a call creates a standing rule for the whole tool name, including future calls with different arguments. Choose Allow once when you mean only the call on screen.
Hermes approvals off (dangerously skip permissions)
Hermes's approvals.mode: off turns off its native approval enforcement. Hermes then raises no dangerous-command approvals, so the Pushary transport has nothing to send. Plain MCP, the plugin's question tools and the skill only make questions cooperative: the agent decides whether to ask, so they are not an enforced gate. PUSHARY_GATE_TOOLS with no transport selected asks Pushary directly from the plugin's own hook. With the transport selected, it hands the call to Hermes's approval gate instead.
Container terminal backends
Hermes runs shell commands on its terminal backend, set with terminal.backend in ~/.hermes/config.yaml. When config.yaml sets none, Hermes uses TERMINAL_ENV from ~/.hermes/.env, and local if that is unset too. On a container backend, Hermes treats the container as the boundary and skips its own dangerous-command check:
| Backend | Hermes's dangerous-command check |
|---|---|
local, ssh | Runs |
docker | Skipped, unless Hermes mounts a host folder into the container: a host path in docker_volumes, or, with docker_mount_cwd_to_workspace: true, the folder Hermes starts in. Both can also be set in ~/.hermes/.env as TERMINAL_DOCKER_VOLUMES and TERMINAL_DOCKER_MOUNT_CWD_TO_WORKSPACE. Some Hermes releases do not mount a start folder under /root or /workspace, so doctor treats that setting alone as a maybe |
modal, daytona, vercel_sandbox | Skipped |
singularity, sprites, and other backends from a plugin | Skipped when the plugin marks the backend as a sandbox. Hermes does not ship these backends, so doctor says they may skip the check |
Pushary gets dangerous-command approvals through Hermes, so where Hermes skips its check, none of them reach your phone. Your own approvals.deny rules still block what they name. Pushary then gates only the tools listed in PUSHARY_GATE_TOOLS.
npx -y pushary@latest doctor names your backend and says when this applies. To gate every shell command Hermes runs:
npx -y pushary@latest setup --agents hermes --hermes-gate-terminal
hermes gateway restartnpx -y pushary@latest setup run at a terminal without --agents asks the same question when it finds such a backend, and the answer defaults to No. With --agents, or with nobody to answer, setup asks nothing: without the flag it changes nothing and prints the command. It adds terminal to PUSHARY_GATE_TOOLS with hermes config set, which saves it in ~/.hermes/.env, where Hermes loads it for both the gateway and the terminal. It keeps the tools already in the list, and it records the old value so npx -y pushary@latest clean puts it back. To make the change yourself:
hermes config set PUSHARY_GATE_TOOLS terminal
hermes gateway restartYour phone is then asked before each shell command runs, including read-only ones like ls, so a busy agent asks often. With Pushary as the approval transport, you get Hermes's four choices: choose Allow for this session to stop the questions for the rest of that session. Always allow covers every later terminal call, which turns the gate off: Hermes saves it as plugin_rule:terminal in command_allowlist in config.yaml, and doctor warns when it finds it. Remove that entry and restart the gateway to turn the gate back on. Without Pushary as the transport, each question is a plain yes or no. How long your phone has is in Gate named tools with PUSHARY_GATE_TOOLS. Hermes skips the same check for its execute_code tool on these backends, so add execute_code to the list if you use that tool.
When Hermes loads the plugin on one of the backends above that skips the check, and PUSHARY_GATE_TOOLS does not name terminal, the plugin logs one warning with the command that fixes it. It cannot tell whether another plugin backend skips the check, so it stays quiet there, and doctor says the backend may skip it.
Run Hermes on a server
Hermes can run on an always-on server, such as a VPS, and reach you through its gateway. Pushary works there the same way: set it up over SSH, then keep the gateway running as a service.
Set it up over SSH
Sign in to the server as the user that runs Hermes, and run setup there. The CLI needs Node.js 20.17+, 22.13+ or 23.5+ on the server.
ssh you@your-server
npx -y pushary@latest setup --agents hermesSetup prints its QR code in your terminal, as it does on your own computer. Scan it with your phone's camera or the Pushary app. If the code does not fit in your terminal window, open the link printed under it on your phone instead.
If you cannot scan at all, copy an API key from Agent settings to a file on the server and pipe it in, so it never lands in your shell history. Setup then reuses that key:
npx -y pushary@latest login --with-token < key.txt
npx -y pushary@latest setup --agents hermesRestart the gateway
Hermes loads plugins when it starts:
hermes gateway restartThen run npx -y pushary@latest doctor over the same SSH session.
Keep it running across reboots
Use Hermes's own service command, so the gateway starts at boot and comes back if it stops:
hermes gateway install
sudo loginctl enable-linger $USEROn Linux, hermes gateway install adds a user service, and loginctl enable-linger starts it at boot without anyone signing in. To install a system service instead, run sudo hermes gateway install --system. On a Mac, hermes gateway install adds a launchd agent that starts when you sign in.
Run setup as the same user, with the same home folder, as the gateway service. The plugin lives in ~/.hermes/plugins/pushary and reads your key from ~/.pushary/config.json. A service does not read your shell profile, so an export PUSHARY_API_KEY line there does not reach it. To keep the key with Hermes instead, run hermes config set PUSHARY_API_KEY pk_xxx.xxx, which saves it in ~/.hermes/.env.
A container terminal backend is common on a server. Check Container terminal backends before you leave Hermes running: on most of them Hermes skips its own approvals.
Hermes notifications and tools
The plugin registers 8 native Hermes tools:
| Tool | What it does |
|---|---|
pushary_notify | Send a push with optional rich context. |
pushary_ask | Ask a question: yes or no, multiple choice, or free text. |
pushary_wait | Poll once for the answer to a question created with wait=false. |
pushary_cancel | Cancel a pending question. |
pushary_remind | Schedule, list or cancel a personal reminder. Pushary sends it even after Hermes exits. |
pushary_propose_scope | Ask you to agree a file boundary or record a promise before a run. |
pushary_enroll | Connect one of your application's end users (Partner plan). |
pushary_ask_end_user | Ask an enrolled end user (Partner plan). |
Automatic notifications:
- Failed runs: when Hermes marks a turn as failed, your phone gets a push that reads "Hermes run failed" with the reason Hermes gives. It follows your updates setting. A turn that ends cleanly is recorded without a push. A tool call that fails along the way, such as a
grepthat finds nothing, does not reach your phone, because Hermes recovers from it. A provider error that stops Hermes before it finishes the turn, such as a rejected API key, sends no push. - Session end: set
PUSHARY_AUTO_NOTIFY_SESSION_END=1to get a summary with tool and error counts when a session ends. Completed sessions use task-completion routing.
Hermes redacts gated argument summaries, targets and the reason a turn failed before they are shortened or sent. If the host redactor is missing or fails, that detail is left out.
An approval carries the command up to 4,000 characters. So does a terminal call gated with PUSHARY_GATE_TOOLS when Pushary is not Hermes's approval transport. Other gated tools send a summary of their arguments of up to 500 characters. With Pushary as the approval transport, which setup selects, a gated call of any tool reaches Pushary as Hermes's own four-choice approval, carrying a label instead of the command and that 500-character summary, and plugin 1.0.9 leaves that unchanged. From plugin 1.0.9 a command longer than 4,000 characters is cut so that it ends with … [truncated], and Pushary records the approval as risky, with "Pushary could not check this step", because a step after the cut was never read. When the question is a yes or no, as for a gated terminal call when Pushary is not Hermes's approval transport, or a Hermes approval that offers only Allow once and Deny, Pushary app 1.0.66 or later shows the risky card, whose Approve asks for Face ID, Touch ID or the passcode, and its notification offers Deny only. Hermes's usual four-choice approval keeps its choices as they are, and the … [truncated] mark at the end of the command is the only sign of the cut. An older plugin cuts without the mark, so its long commands are judged on the first 4,000 characters.
For questions, pushary_ask does its first wait and one server-directed poll per call; use pushary_wait with the same id while pending. Follow answered, status and handoffAction (or nextAction). Do not create a duplicate question or cancel a pending one because a poll ended. Cancel a live question before moving it to the current chat, stop if cancellation says stop, and if cancellation loses a race, poll once for one second and honor the winning answer. Silence is never approval.
Environment variables
| Variable | What it does |
|---|---|
PUSHARY_API_KEY | Your API key, read through Hermes, so ~/.hermes/.env works too. Overrides the key in ~/.pushary/config.json. |
PUSHARY_CONFIG_FILE | Read the key from a different file than ~/.pushary/config.json. A copy from the catalog or copied by hand reads neither file. |
PUSHARY_AGENT_NAME | Label shown in notifications. Defaults to Hermes. Example: "Hermes - daily-briefing". |
PUSHARY_AUTO_NOTIFY_SESSION_END | Set to 1 to get notified when sessions end. |
PUSHARY_GATE_TOOLS | Comma-separated tool names to gate in pre_tool_call. Set it with hermes config set so the gateway reads it from ~/.hermes/.env. |
PUSHARY_GATE_TIMEOUT_MS | How long the per-tool gate waits, in milliseconds. Defaults to 55000. |
When to use Pushary and when to use Hermes's chat platforms
Hermes can also talk to you through chat platforms such as Telegram, Discord and Slack. Use Pushary when you have no active chat open, when a quick decision should reach your lock screen, when a background task or cron job finishes, or when Hermes flags a dangerous command. Use the active chat platform when you are already in the conversation and the question is part of it.
Set it up by hand
Hermes now manages its own Python, and it does not support installing plugins into it with pip. Install Pushary as a folder plugin instead.
Copy the pushary_plugin folder from Pushary/hermes-plugin-pushary to ~/.hermes/plugins/pushary:
git clone --depth 1 https://github.com/Pushary/hermes-plugin-pushary /tmp/hermes-plugin-pushary
mkdir -p ~/.hermes/plugins
cp -R /tmp/hermes-plugin-pushary/pushary_plugin ~/.hermes/plugins/pusharyTurn it on with Hermes's own commands:
hermes config set security.approval.transport pushary
hermes config set security.approval.transport_fallback builtin
hermes plugins enable pusharySave your key in Hermes. A copy you placed by hand reads the key only through Hermes, not from ~/.pushary/config.json:
hermes config set PUSHARY_API_KEY pk_xxx.xxxRestart Hermes with hermes gateway restart, then run npx -y pushary@latest doctor.
A copy made by hand does not send Hermes's clarify questions to your phone, and setup will not overwrite it. To switch to setup later, delete ~/.hermes/plugins/pushary first.
Use MCP instead of the plugin
You can connect Hermes to the Pushary MCP server instead. Add this to ~/.hermes/config.yaml:
mcp_servers:
pushary:
url: https://pushary.com/api/mcp/mcp
headers:
Authorization: "Bearer ${PUSHARY_API_KEY}"Then install the Pushary skill, so Hermes knows when to notify you and how to choose between Pushary and the active chat platform:
hermes skills tap add Pushary/pushary-skill
hermes skills install pusharyThe MCP route gives Hermes the agent tools under their MCP names (send_notification, ask_user, wait_for_answer, cancel_question and propose_scope). It has none of the plugin's automatic notifications and no approval transport.
Turn it off
There is no pushary disconnect for Hermes. Use Hermes's own commands instead, then restart Hermes:
- To send approvals back to the terminal, run
hermes config unset security.approval.transport. - To turn the plugin off, run
hermes plugins disable pushary. Hermes then asks itsclarifyquestions in its own prompt again.
npx -y pushary@latest clean removes Pushary from this computer, for every agent. For Hermes it removes the plugin folder with hermes plugins remove pushary if Pushary installed it, puts the approval settings and PUSHARY_GATE_TOOLS back from ~/.pushary/setup/hermes-plugin.json, and deletes that record and the older hermes-config.json. A copy from the Hermes plugin catalog stays in place, switched off unless it was on before setup. While Pushary Isle is installed, clean leaves a Hermes setup the app connected, and the key the app saved for it, to the app. Add --dry-run to see what it would change first.
Troubleshooting
Pushary stopped working after hermes update
Hermes now runs from Python it manages itself, so the pip copy that older Pushary setups installed no longer loads. Run npx -y pushary@latest setup --agents hermes to move to the plugin folder. npx -y pushary@latest upgrade does the same when it installs a newer version. On a Mac, update Pushary Isle and reopen it: it moves Hermes over when it starts. Then run hermes gateway restart.
Setup says the Hermes CLI was not found
Setup looks for hermes on your PATH, then in ~/.local/bin, /opt/homebrew/bin and /usr/local/bin. Install Hermes, check that hermes runs in a new terminal, then run setup again.
Setup says a pushary plugin it did not install is in the way
~/.hermes/plugins/pushary holds a plugin that neither Pushary nor hermes plugins install put there. Remove that folder, then run setup again.
Setup says Hermes would not report its settings
Setup reads Hermes's settings with hermes config get. Run hermes update, then run setup again.
Setup wrote the plugin but Hermes refused a settings change
Run hermes plugins enable pushary, then run setup again. Or run the commands in Set it up by hand yourself.
Doctor says to restart Hermes
The plugin is installed, but the running Hermes started before it, or still runs an older Pushary plugin. Run hermes gateway restart, and start a new terminal session if you use one.
Doctor says approvals stay in the terminal
security.approval.transport is not pushary in ~/.hermes/config.yaml. Run npx -y pushary@latest setup --agents hermes again, or set it by hand.
Doctor says no dangerous-command approvals reach your phone
Hermes uses a container terminal backend, where it skips its own dangerous-command check, and PUSHARY_GATE_TOOLS does not name terminal. Run npx -y pushary@latest setup --agents hermes --hermes-gate-terminal, then hermes gateway restart. See Container terminal backends.
Next steps
Hermes notifications
What Hermes sends to your phone, and when.
Set your approval rules
Choose which actions run on their own and which wait for you.
Human in the loop
How questions, answers and timeouts work across agents.
Hermes phone calls
Pushary calls you when Hermes needs your answer and you miss the push.