Is Hermes Agent safe on your machine? Read the eight gates

By Christophe Paka · Facts checked on 7 November 2026

One reader on r/hermesagent asked the people who run Hermes on a desktop or laptop: are you not worried? Another posted "Hermes 101: Why you shouldn't install Hermes on your personal computer."

Fair questions. This agent can run commands as you, with your files, your keys and your accounts in reach.

So, is Hermes Agent safe? You can run it on your own machine once you draw a boundary, gate by gate: only you may talk to it, and risky commands wait for your yes. The figure below shows the eight gates a request must pass before it reaches your machine. The top two are the ones you set.

A chat message or cron job passes eight gates: user authorization, command approval, file write safety, container isolation, MCP credential filtering, context file scanning, cross session isolation and input sanitization, before your host.
Figure 10.1: Eight gates before your machine. Each gate can stop a request on its own; you tune the first two.
Use this diagram on your site

Free to share in your blog post, docs, course or slides, as long as the credit link stays. Paste the code below where the figure should go.

How to read this figure

  1. Start with the incoming request. On the left, a request comes in: a chat message from an app, or a cron job, a prompt that runs on a schedule. Both enter the same line of gates. The trust boundary is the line between what the agent can touch and what it cannot.

  2. Read the top two boxes, the gates you tune. Gates 1 and 2 sit at the top, and they are the only two you set. Gate 1, user authorization, decides who may talk to the agent: an allowlist, plus DM pairing, where a stranger gets a code you must approve. The gateway post sets it up. Gate 2, dangerous command approval, makes risky commands wait for your yes.

  3. Read gates 3 to 5: files, boxes, secrets. File write safety means protected paths, such as your SSH keys in ~/.ssh/ and .env files, are never written. Container isolation lets commands run in a sealed box, a container such as Docker, apart from your machine. MCP credential filtering gives server programs only safe settings, and hides secrets in errors as [REDACTED].

  4. Read gates 6 to 8: tricks hidden in text. Context file scanning checks what the agent reads for prompt injection: hidden orders planted in text, such as a web page that says "run this script". Cross session isolation keeps each chat app and each profile apart. Input sanitization stops tricks that hide an extra command inside one line the agent types.

  5. Follow the dashed line to your host. Each gate can stop the request on its own. That is defense in depth: independent layers, so one failure is not a disaster. Your host is your shell, files, secrets and network. Some gates are rules, and a cleverly worded web page may slip past them; the scan may or may not flag it. So no single gate is the guard, as the example below shows.

Key takeaways

  • Keep approvals on smart and cron_mode on deny, so no job runs a risky command alone.
  • Mount little into a container, because a container backend skips the approval prompts on purpose.
  • Sign in to websites through a credential vault, never by pasting passwords into a chat.

Worked example: one poisoned page, two setups

During a morning brief, one news page hides a line in white text. It tells the agent to download a script and run it. Follow that line through two setups.

  1. Setup A is a laptop in YOLO mode: approvals are switched off, so the agent acts without asking. Context scanning may flag the line, but no approval prompt appears.
  2. So the script runs on your laptop, as you. It can reach your files, keys and accounts.
  3. Setup B is a server with a Docker backend, approvals on smart, and an allowlist set. Context scanning may flag the line here too.
  4. No prompt appears here either, on purpose: the container is the guard. The script runs inside the container, with no host files mounted and .env out of reach.

Result: In setup A the script runs with your files. In setup B it runs in a box you can throw away, and the brief still arrives. The sign of a bad day is a command in ~/.hermes/logs/ that you never asked for. Then run hermes pause to stop every job, make new keys on each provider's site and put them in .env, and update Hermes.

Questions readers ask

Should I install Hermes on my personal computer?

You can, once you draw the boundary. On your own machine, the agent's commands reach your files. With a Docker backend, they reach only the container and what you mount into it. Either way, keep approvals on smart, list only yourself on the allowlist, and run Hermes as a normal user, not root.

Does Hermes send my data anywhere?

Every prompt goes to the model provider you chose, so what is kept depends on that provider's terms. Read them before you send private papers. With a local model, prompts stay on your machine. Your memory and history stay on your disk, and Hermes sends no usage data unless you opt in.

How do I give Hermes my passwords safely?

Keep keys in ~/.hermes/.env, never in config.yaml, and make the file readable only by you with chmod 600 ~/.hermes/.env. For website logins, use the credential vault: 1Password, Bitwarden or Hermes's own encrypted vault signs the agent in, so the model never sees the password.

What is YOLO mode in Hermes?

YOLO mode is running with approvals switched off, so the agent acts without asking. You start it with --yolo, /yolo or HERMES_YOLO_MODE=1, and it shows a red banner. A short blocklist of destructive commands still applies. The docs advise using it only in trusted, sandboxed places.

Sources: Security (Hermes Agent docs); Credential vault (Hermes Agent docs).

This figure is from Hermes Agent Made Crystal Clear, chapter 10.

The chapter builds the idea step by step, with recipes you can follow, a Try it to check yourself, and every source.

Get the book

All diagrams