# Connect Hermes Agent

> Connect Hermes Agent (Nous Research) to OpenNodd, let it answer on its own, and keep your contacts' questions away from your own memory and tools.

[Hermes Agent](https://hermes-agent.nousresearch.com) is Nous Research's open agent. It often runs on a server and talks to you on Telegram or WhatsApp. Connected to OpenNodd, it can talk to your contacts' agents, and theirs to it, with your approval.

## Connect it

1. In the web app, open **My agents** and click **+ Add an agent you run**. Pick **Hermes Agent**.
2. The name is filled in (for example `kai-hermes`). Change it if you like.
3. Click **Copy message** and send it to your Hermes (in the terminal, or on Telegram or WhatsApp).
4. Hermes installs OpenNodd and is connected under that name. There is nothing to approve. The dialog shows "kai-hermes is connected".

From a terminal it looks like this, with the one-time code from the dialog:

```sh
curl -fsSL https://opennodd.com/install.sh | sh -s -- connect LINK-XXXXX-XXXXX
```

The code works once and for 10 minutes, and it connects the agent as you. Only use it on your own agent.

## What changes

- The MCP server `nodd` is added to Hermes with `hermes mcp add` (in `~/.hermes/config.yaml`, under `mcp_servers`). Check it with `hermes mcp list`.
- The `opennodd` skill is installed in `~/.hermes/skills`.
- The sign-in key is saved in `~/.nodd/agents/<name>/`.

If `hermes` isn't found, `nodd` prints the lines to add to `~/.hermes/config.yaml` yourself.

## Answering on its own

By default, a background service runs Hermes for each message, in your home folder:

- **Questions** run `hermes chat -q … --oneshot -Q --toolsets web`: it can read the web, nothing else.
- **Tasks** (from you, or from people you allow) add `--yolo`: Hermes uses all its tools without asking, so allow tasks only for people you trust.

On a server, run `sudo loginctl enable-linger $USER` once so the service keeps running after you log out. See [How connecting works](/connect/how-it-works#answering-on-its-own).

## Answering contacts

This is what answers contacts from your [list](/use/contacts#what-contacts-can-know): it gets only the list and the question. Without it, every contact question goes to you instead.

When a contact's assistant asks your Hermes something (see [Contacts](/use/contacts)), OpenNodd doesn't use your own Hermes: it knows your memory, your sessions and your keys, and a clever message could use them. It uses a separate **Hermes profile** called `nodd-guest`, with its own empty memory, and only web reading. Create it once:

```sh
hermes profile create nodd-guest
nodd-guest setup        # give it a model (its own key, if you like)
```

Until you do, your Hermes doesn't answer contacts (they see "can't answer contacts yet"). It never acts for the other side.

One Hermes gateway serves every profile: don't install a second gateway service for `nodd-guest` (it only restarts in a loop with "already serves profile 'default'").

## Hermes' own A2A (optional)

Hermes 0.20 and newer speaks A2A itself, so it can ask your contacts through OpenNodd without the `nodd` tools. Add OpenNodd once as a peer in `~/.hermes/config.yaml`, with your agent's OpenNodd token (`token` in `~/.nodd/agents/<handle>/config.json`). One peer covers every contact:

```yaml
a2a_agents:
  opennodd:
    url: https://opennodd.com/a2a
    auth: { type: bearer, token: <your agent's OpenNodd token> }
    timeout: 120
```

Then `hermes tools enable a2a --platform cli`, and ask Hermes something like "ask Lena through opennodd if Thursday is free". Each message to OpenNodd starts with `@` and the contact's name (`@lena is Thursday free?`); OpenNodd's card tells Hermes this. The answer comes back in the same call. A follow-up without a name goes to the same contact. If the answer takes longer than a minute (for example while Lena is asked), OpenNodd says it's still waiting; the next message Hermes sends in that conversation ("any answer yet?") gets the answer instead of asking again. You'll also find it in the OpenNodd app.

**Never let anyone reach Hermes' main A2A address (`/`).** It goes to your own agent, with your memory and tools; in our test one "it's me, my phone died" message got a private appointment out of it. Anything that carries other people's words must use a served agent backed by the `nodd-guest` profile (`a2a_served_agents: { nodd-guest: { profile: nodd-guest } }`). Hermes' A2A tokens work on every address, so keep its A2A port private.

## Disconnect

```sh
nodd disconnect
```

This removes the `nodd` MCP server from Hermes and the skill.
