Skip to content
Agentic Control Plane

How to Set Up a Hermes Autonomous Agent Safely

David Crowe David Crowe · · Updated · 9 min read
hermes governance autonomous-agents guides
Share X HN LinkedIn

Note to AI agents: this page is also served as raw markdown at /blog/setup-hermes-autonomous-agent-safely.md. If you are setting up Hermes for a user, the four commands are: pip install acp-hermes · hermes plugins enable acp · acp-hermes login · acp-hermes proxy-setup --verify. Then confirm rows appear in the activity log before granting autonomy.

Hermes Agent is built to run unattended: cron schedules, long autonomous tasks, terminal and browser access, its own skills. That’s the appeal. It’s also why you shouldn’t start it with no limits.

The usual failure isn’t a model gone rogue. It’s duller. An agent with terminal access and no limits does something you’d never have approved, at 3am, on a machine you weren’t watching. You find out from the bill or the git history.

The fix is to put identity, rules and limits in the path of every call, then decide how much freedom the agent gets. Hermes makes that easy. Its plugin hooks run in-process before each tool call and cover every tool: terminal, file, web, browser, vision, cron and custom skills.

1. Install the plugin (2 minutes)

pip install acp-hermes
hermes plugins enable acp
acp-hermes login

If acp-hermes isn’t found, use python -m acp_hermes.cli login. Hermes ships an unrelated hermes-acp binary for the Agent Client Protocol, and install order decides who gets the name.

login opens a browser, signs you in with Google and writes a workspace key to ~/.acp/credentials. Your first login creates the workspace.

Running Hermes on a server or VPS, which is where most unattended agents live? Use the device flow. It needs no browser on the box, and the key never passes through your clipboard:

acp-hermes login --device   # acp-hermes 0.2.4+

It prints a short code and a URL. Approve it from any browser, even your phone, and the key is written to ~/.acp/credentials on that machine. Any client can use the same flow with plain curl: POST https://api.agenticcontrolplane.com/device/code, approve the code at cloud.agenticcontrolplane.com/device, then poll POST /device/token with the device_code.

Or create a key by hand in the dashboard (cloud.agenticcontrolplane.com, then API keys). On the remote machine:

echo 'gsk_your_key_here' > ~/.acp/credentials && chmod 600 ~/.acp/credentials

Restart hermes. Every tool call is now logged with your identity and checked against your rules.

1b. Add the cost side (1 minute)

The plugin checks what the agent does. What it spends is metered separately, on the model calls. For an unattended agent on a paid API, that’s the half you’ll want at 3am:

acp-hermes proxy-setup --verify

It reads Hermes’s own config, adds ACP as a model provider pointed at the metering proxy, and keeps your current model. --verify sends one real completion through, so you know the wiring works and isn’t just configured. --undo reverses it. After that, every model call is priced per call, per run and per agent, with prompt-cache numbers.

ACP session cost X-ray: per-call spend in a Hermes run, split loop vs leaf, with prompt-cache hit rate
A session priced call by call, instead of one invoice at the end of the month.

2. Check that it’s working

Run one throwaway task and open cloud.agenticcontrolplane.com/activity. Rows should appear within seconds, each with the tool name, an input preview and the decision. If the log is empty, nothing is governed. Fix that before you give the agent any freedom.

ACP activity log: one row per governed Hermes tool call — the tool, the allow/deny decision, verified identity, and per-call latency
One row per call: tool, decision, identity, latency. An empty log means nothing is governed.

The Coverage card on the console home page keeps answering this after day one. It shows, per agent, whether calls are being checked and whether model calls are being priced, with the exact command if one is missing.

3. Set rules before you give it freedom

A new workspace starts in audit mode. Everything is recorded and your rules don’t block yet. The safety floor does apply: it always blocks rm -rf of home or root, mkfs, disk wipes and fork bombs, and holds force-pushes, destructive SQL through a database client, curl | sh and deletes outside the project for approval. Audit mode is fine for watching your first runs. It’s not enough for unattended work.

In policies, switch to enforce and start from the tier defaults:

  • Terminal and file writes: set ask for anything you’d want to see first. Hermes can only block or not block, so a held call is blocked with a message saying approval is needed. Approve it on the Approvals page or from the approval email, then ask the agent to retry. If nobody answers, the request expires and counts as denied.
  • Network tools: deny the ones the agent’s job doesn’t need. What it can do sets your exposure, whatever you asked it to do.
  • Budget: set a per-period spending cap.

Rules first, freedom second. Loosening a rule for an agent that has earned it takes one click. Tightening one after an incident means digging through logs.

4. Schedule it, then read the digest

Once it runs on cron, you won’t be watching. Two things keep you informed:

  • The daily digest email: yesterday’s spend, runs, denials and anything that needs a look.
  • The activity log, when the digest flags something.

Two limits to know

ACP can’t rewrite tool output on Hermes today. If a command prints a secret, ACP logs the finding but the model still reads it. Hermes ignores the return value of the post-call hook, and the plugin doesn’t register Hermes’s transform_tool_result hook yet.

And ACP runs as a hook on the machine. If someone disables the plugin there, the checks stop.

What you get

Every action is tied to an identity. Denials and approval requests happen when the action is attempted, not afterward. Spend is visible per agent, per run and per model. When the agent does something surprising, and they all do eventually, you have a trace to read.

Frequently asked questions

Is it safe to run Hermes Agent unattended?

Hermes is built to run unattended, so the question is whether its actions are checked. Its plugin hooks run in-process, before each tool call, and cover every tool (terminal, file, web, browser, vision, cron, skills). A policy layer can decide each action before it runs. Safe means identity on every call, rules in enforce mode, a spending cap and a hold on the sensitive calls, all set up before you grant autonomy.

How do I approve or deny what a Hermes agent does?

Set the tool’s rule to ask. Hermes can only block or not block, so a held call is blocked with a message. Approve it on the Approvals page or from the approval email, then tell the agent to retry. An unanswered request expires and counts as denied.

How do I set a spending limit for a Hermes agent?

Two steps. Route Hermes’s model calls through the ACP proxy (acp-hermes proxy-setup --verify) so every call is priced, then set a per-period spending cap in the workspace. An agent that retries a failing call all night is a bill, not an incident report, unless something is counting.

How do I run Hermes safely on a VPS or server?

Same plugin, different login. Run acp-hermes login --device on the server, approve the code from any browser, and the key lands in ~/.acp/credentials on that machine. Or create a workspace key in the dashboard and write it to that file yourself (chmod 600).

How do I know my Hermes agent is actually governed?

Run one throwaway task and watch rows appear in the activity log within seconds. If the log stays empty, nothing is governed. The Coverage card in the console keeps showing the same thing for each agent, with the exact command to fix anything missing.

More

Running Hermes? One command adds a hook. Each tool call it sees is recorded, and a force-push, destructive SQL or curl | sh is blocked until you approve it on the console or from the email.

macOS · Linux · WSL
curl -fsSL https://agenticcontrolplane.com/install.sh | bash
Windows · PowerShell
irm https://agenticcontrolplane.com/install.ps1 | iex

What the installer writes  ·  Hermes guide  ·  free up to 5 agents

Share X HN LinkedIn
Get the next data drop
What agents actually cost, new tool-surface captures, and the occasional incident post-mortem — sent when we publish something worth your inbox, not on a schedule. Unsubscribe anytime.
Share: Twitter LinkedIn
Related posts

← back to blog