How to give Hermes an identity

Published

You can give a Hermes agent an identity by adding https://agentregistrar.dev/mcp under mcp_servers in ~/.hermes/config.yaml and authenticating with hermes mcp login agentregistrar. Completing the browser OAuth consent flow binds Hermes to its own agent sub-identity, a dedicated @agents.agentregistrar.dev inbox, and human-backed signup and terms acceptance for supporting services.

Why a Hermes assistant benefits from its own identity

Hermes is often used as an autonomous personal assistant handling research, tool calls, and external service onboarding on your behalf. When it needs an API key or account from a third-party service, pasting your personal passwords into chat or handing over your primary inbox mixes your personal credentials with every tool session.

Giving Hermes a dedicated sub-identity keeps those boundaries clear. Supporting services receive a cryptographic assertion tied to an accountable verified human owner instead of an anonymous bot session. Every time Hermes accepts a provider agreement, Agent Registrar records the acceptance and emails you a copy of the accepted terms. Each sub-identity also sits behind a per-agent kill switch, so you can isolate and revoke Hermes without affecting your other agents or personal accounts.

Configure Hermes and complete OAuth

Add Agent Registrar as a remote OAuth MCP server in ~/.hermes/config.yaml:

mcp_servers:
  agentregistrar:
    url: "https://agentregistrar.dev/mcp"
    auth: oauth
    enabled: true

Next, authenticate and verify the connection from your terminal:

hermes mcp login agentregistrar
hermes mcp test agentregistrar

If Hermes is already running in an active session, run /reload-mcp inside the session so it picks up the updated configuration. Hermes caches the resulting OAuth tokens locally in ~/.hermes/mcp-tokens/agentregistrar.json.

What happens during browser consent

Running hermes mcp login agentregistrar opens the Agent Registrar OAuth consent page in your browser. Sign in, verify your human email address if you have not already done so, and accept the Master Agent Delegation Agreement. On that screen you either create a new agent entry for Hermes or bind the OAuth token to an existing agent sub-identity.

Once you approve consent, Hermes completes the OAuth token exchange and writes the credentials to ~/.hermes/mcp-tokens/agentregistrar.json. Running hermes mcp test agentregistrar confirms that Hermes can connect to https://agentregistrar.dev/mcp, present the cached token, and list the broker's tools without prompting you to log in again.

Verify the prefixed MCP tools

Once connected, Hermes exposes all five Agent Registrar tools under the mcp__agentregistrar__ prefix:

  • mcp__agentregistrar__identity_whoami (identity_whoami) inspects the bound agent ID, active status, human verification state, and inbox address.
  • mcp__agentregistrar__identity_signup (identity_signup) fetches the provider's agent signup document and mints a signed identity assertion that services implementing the Agent Identity Protocol can verify.
  • mcp__agentregistrar__identity_login (identity_login) mints a login assertion for services where the agent already holds an account.
  • mcp__agentregistrar__identity_record_signup (identity_record_signup) logs a completed provider registration against the agent's audit trail.
  • mcp__agentregistrar__inbox_read (inbox_read) reads verification codes and onboarding emails sent to the agent's dedicated inbox.

Test the live binding by sending Hermes a short verification prompt:

Call identity_whoami and report your agent_id, status, and inbox address.

Confirm that the response shows status: "active", a verified human owner, and an @agents.agentregistrar.dev email address before asking Hermes to register with an external service. When you ask Hermes to create an account on a supporting provider, it calls identity_signup to obtain a short-lived assertion, submits the registration directly to the provider, checks inbox_read if email confirmation is required, and logs the completed account with identity_record_signup.

Limits and next steps

Agent Registrar verifies the human owner's email address rather than performing government ID or background checks. The broker never stores provider API keys or sits in the provider's request path, and delegated signup works with any service supporting the Agent Identity Protocol. If you revoke Hermes from your dashboard, Agent Registrar stops issuing new assertions and blocks further inbox access, though revoking the agent does not delete existing accounts already created at third-party providers.

Create an account to give Hermes its own identity.

Related topics

<- Back to topicsBrowse quick answers in the docs FAQ ->