---
title: Connect Hermes
description: Sign Moonstone in to your Hermes dashboard by sending your agent one message.
read_when: Connecting Moonstone to Hermes Agent for the first time, signing in again, or adding another device
url: https://moonstone.chat/docs/connect-hermes
---

# Connect Hermes

> Sign Moonstone in to your Hermes dashboard by sending your agent one message.

For agents: every page of these docs is listed at [/docs/llms.txt](/docs/llms.txt). A block marked `text` right after "Send your agent" or "For your agent" is a message the person sends you.

Moonstone connects to Hermes Agent through its web dashboard. Your agent puts the dashboard behind a sign-in that Moonstone made: you send it one message and paste back the address it replies with.

## What you need

- Hermes Agent 0.22.7 or later, with its dashboard. Run `hermes update` if it's older.
- A place where you already talk to Hermes: a chat app, the terminal, or Claude Code or Codex on its computer.

## Connect

1. Open Moonstone and choose **Hermes**.
2. Check **How this iPhone connects**. Leave it on **Automatic** unless you want a particular [route](/docs/anywhere.md).
3. Tap **Copy Message**. Moonstone writes the message, sign-in included, so you have nothing to type. **Read the full message** shows all of it.
4. Send it to Hermes and wait for its reply.
5. Paste the reply, or the address alone, under **Then**.

Moonstone finds Hermes, signs in, and asks which agents to show under **Choose your agents**. On Hermes an agent is a **profile**, with its own chats, and one sign-in covers them all. Moonstone may then ask about a model, your existing chats and [notifications](/docs/notifications.md), and ends on **You're in**.

To change which profiles show, go to **Settings › your gateway › Profiles**. A profile you turn off stays on Hermes.

On a Mac that runs Hermes itself, its own address is enough: `http://127.0.0.1:9119`.

## A dashboard with its own sign-in

If the dashboard already has a sign-in, Hermes keeps it and says so, and Moonstone shows **Sign in to Hermes**. Tap **Sign In** to do it in your browser, or **Use Username and Password**. Moonstone uses that password once and doesn't keep it.

> [!NOTE]
> The sign-in Moonstone makes travels in your message, so it stays in that Hermes chat and in your model provider's logs. Moonstone keeps it for that dashboard alone.

## Staying signed in

When Hermes ends your session, Moonstone signs back in by itself with the sign-in it made. With a sign-in of your own, it asks you again: tap **Sign In Again** in **Settings › your gateway › Connection**.

## Another device

Open Moonstone on the new device. With iCloud, it already knows your Hermes and offers **Bring It Over**: it shows a 2-digit number, which you enter in Moonstone on a device that's already connected. Without iCloud, connect the new device the same way as the first.

## For agents

Moonstone's message is the source of truth. It carries the route and the sign-in. Type each command as written: a script needs the person's approval. It asks for this, in order:

1. Check `hermes --version`: 0.22.7 or later. Older: stop and ask the person to run `hermes update`.
2. Unless the dashboard has a sign-in (then keep it and say so), give it the message's, without repeating the password: `hermes config set HERMES_DASHBOARD_BASIC_AUTH_USERNAME <username>` and `hermes config set HERMES_DASHBOARD_BASIC_AUTH_PASSWORD <password>`. Either way, unless `.env` has `HERMES_DASHBOARD_BASIC_AUTH_SECRET` or `config.yaml` has `dashboard.basic_auth.secret`, run `hermes config set HERMES_DASHBOARD_BASIC_AUTH_SECRET "$(openssl rand -base64 32)"`. Without a signing secret, every restart signs Moonstone out.
3. Work out the address the device reaches the dashboard at. Its port is 9119 unless the dashboard runs elsewhere. A named route is the only one you may use. Each route's steps are in [Reach it from anywhere](https://moonstone.chat/docs/anywhere.md). On a Mac with Automatic, if the Mac is this computer, `http://127.0.0.1:PORT` is enough. Otherwise, on Automatic, the first that fits wins:
   - an address a phone can already reach (over Tailscale, Cloudflare Access, or exe.dev at `https://<vm>.exe.xyz:PORT`): use it, with `dashboard.public_url` set to it;
   - Tailscale Serve, if this computer has Tailscale signed in: keep the dashboard on 127.0.0.1, run `tailscale serve --bg --https=PORT http://127.0.0.1:PORT`, and set `dashboard.public_url` to `https://<Tailscale name>:PORT`;
   - neither: install Tailscale, start its sign-in, send the person the link and end your turn. Carry on when they write "done".
4. If you changed anything, restart the dashboard as it runs now: through its service if it has one, else with `hermes dashboard --stop` and the same start command. Your chat may run inside the dashboard, so run the restart with your terminal's background option, so it outlives your turn. If you can't, give the person the exact command and wait.
5. On the exact address, port included, `curl -s <address>/api/status` must answer `"auth_required": true` with `"basic"` among `auth_providers`. Behind Cloudflare Access, send its two headers. Fix it before replying.
6. Reply with one line on what you changed, then the address alone in a code block. If you kept another sign-in, say so first, in bold, with its username and where its password is set, never the password. With Cloudflare Access in front, add `CF-Access-Client-Id: <client id>` and `CF-Access-Client-Secret: <client secret>` on their own lines under the address, in the same block.

Rules:

- Change only what's missing, and open nothing to the internet.
- Moonstone offers no home-network route for Hermes. The dashboard has no encryption of its own, so a sign-in over plain `http://` would cross the network readable.
- It worked when Moonstone signs in after your last change.
