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 updateif 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
- Open Moonstone and choose Hermes.
- Check How this iPhone connects. Leave it on Automatic unless you want a particular route.
- Tap Copy Message. Moonstone writes the message, sign-in included, so you have nothing to type. Read the full message shows all of it.
- Send it to Hermes and wait for its reply.
- 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, 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.
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
The steps your agent follows
Your agent reads these from this page as Markdown, where they're written out in full.
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:
- Check
hermes --version: 0.22.7 or later. Older: stop and ask the person to runhermes update. - 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>andhermes config set HERMES_DASHBOARD_BASIC_AUTH_PASSWORD <password>. Either way, unless.envhasHERMES_DASHBOARD_BASIC_AUTH_SECRETorconfig.yamlhasdashboard.basic_auth.secret, runhermes config set HERMES_DASHBOARD_BASIC_AUTH_SECRET "$(openssl rand -base64 32)". Without a signing secret, every restart signs Moonstone out. - 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. On a Mac with Automatic, if the Mac is this computer,
http://127.0.0.1:PORTis 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, withdashboard.public_urlset 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 setdashboard.public_urltohttps://<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".
- an address a phone can already reach (over Tailscale, Cloudflare Access, or exe.dev at
- If you changed anything, restart the dashboard as it runs now: through its service if it has one, else with
hermes dashboard --stopand 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. - On the exact address, port included,
curl -s <address>/api/statusmust answer"auth_required": truewith"basic"amongauth_providers. Behind Cloudflare Access, send its two headers. Fix it before replying. - 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>andCF-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.