# Hermes Agent — OpenGen Setup

> Register the remote OAuth MCP server with the Hermes CLI or config.yaml.

- **Client kind:** Local agent
- **Integration approach:** HTTP MCP with OAuth or OpenGen CLI
- **Verification status:** LIVE OAUTH + TOOLS VERIFIED
- **Reviewed:** 2026-11-30
- **Canonical HTML:** https://opengen.dev/docs/clients/hermes
- **Source reference:** [Hermes MCP documentation](https://hermes-agent.nousresearch.com/docs/user-guide/features/mcp)

## Agent Prompt

```text
Walk the user through connecting Hermes Agent to OpenGen (https://opengen.dev/mcp for authenticated read+generate OAuth, https://opengen.dev/mcp/readonly for zero-auth catalog discovery, or @opengen-dev/cli for shell workflows) following https://opengen.dev/docs/clients/hermes.md. Review configuration commands before running them, keep credentials out of prompts and version control, and verify read-only access (balance / find_models / opengen doctor) before proposing any paid generation.
```

## Setup Steps

1. Run the Hermes CLI command below (or merge the mcp_servers entry into Hermes config.yaml without replacing other configuration).
2. Complete OpenGen’s browser sign-in and workspace consent when prompted, or run hermes mcp login opengen from a fresh terminal.
3. Check connection and tool discovery with hermes mcp test opengen before allowing generation. Remote or headless sessions may need a different callback arrangement.

## Configuration & Commands

### Client configuration command · review before running

```bash
hermes mcp add opengen --url https://opengen.dev/mcp --auth oauth
```

### Equivalent config.yaml entry to merge into your settings

```yaml
mcp_servers:
  opengen:
    url: "https://opengen.dev/mcp"
    auth: oauth
```

## Verification Evidence & Cautions

**Recorded evidence (2026-11-30):** Hermes Agent v0.16.0 (2026-11-30, 484d99f): verified live OAuth 2.1 PKCE browser login, hermes mcp test opengen (Connected, 6/6 tools discovered), and hermes chat registration of 6 OpenGen tools + 2 MCP resource utilities against https://opengen.dev/mcp. Local LLM turns were blocked by unconfigured Hermes inference provider keys (not OpenGen); LLM tool invocation, token refresh, and billable generation remain pending.

**Important boundaries:** Hermes Agent v0.16.0 completed live OAuth 2.1 PKCE browser login, live tool discovery via hermes mcp test opengen (Connected, 6/6 tools discovered), and hermes chat tool registration (6 OpenGen tools + 2 MCP resource utilities) against https://opengen.dev/mcp (484d99f) on 2026-11-30; local LLM turns were blocked by unconfigured Hermes inference provider keys (not OpenGen). LLM tool invocation, token refresh, and billable generation remain pending.

## Related Links

- [All Agent Clients & Support Matrix](https://opengen.dev/docs/clients.md)
- [MCP Integration Guide](https://opengen.dev/docs/mcp.md)
- [Quickstart Guide](https://opengen.dev/docs/quickstart.md)
- [Installable Skill (skill.md)](https://opengen.dev/skill.md)
- [AI Index (llms.txt)](https://opengen.dev/llms.txt)
