We earn a reward if you sign up to SayGM through our links. Your price is the same.
LessPerToken

How to use SayGM with Hermes Agent

Hermes Agent from Nous Research accepts any OpenAI- or Anthropic-compatible endpoint. Pointed at SayGM, Claude Sonnet 5.5 costs $1.03 input and $5.15 output per million tokens, against $2.11 and $10.55 on OpenRouter with its card fee. Setup takes five fields and a test.

The settings

Namesaygm-claude (any name works)
Endpoint URLhttps://api.saygm.com (no /v1)
API ModeAnthropic Messages
Default Modelclaude-sonnet-5-5, or claude-opus-5-5, claude-haiku-5-5, claude-fable-5-2
API KeyYour SayGM key, starting gm_live_

Step by step

  1. Get a SayGM API key. Sign up at SayGM, open the dashboard and create a key. New accounts start with a small credit, so the test below costs you nothing.

  2. Open Settings → Providers → Custom Endpoints. The gear icon is at the top right of the Hermes window. SayGM isn't one of the built-in accounts, so it goes under Custom Endpoints.

    Hermes settings with Providers expanded: Accounts, API keys, Custom Endpoints and Local Models
    Settings → Providers.
  3. Add the endpoint. Click New endpoint and fill in the settings above. Choose Anthropic Messages as the API mode, paste your key into API Key, and leave Use for new chats and Discover models ticked.

    Hermes Edit Endpoint form: name saygm-claude, endpoint https://api.saygm.com, API mode Anthropic Messages, default model claude-sonnet-5-5
    The finished endpoint. Once a key is stored, the field reads "Leave blank to keep current key".
  4. Click Test. Hermes checks the endpoint and fetches SayGM's model list. A pass reads "Endpoint is reachable (Anthropic Messages route served)" with the number of models found. A 401 means the key was pasted wrong.

    Hermes notice: Endpoint is reachable (Anthropic Messages route served). Found 67 models.
    A passing test.

    Check the URL after testing. On our install, Test rewrote the Endpoint URL to https://api.saygm.com/v1. Set it back to https://api.saygm.com before you save.

  5. Pick the default model and save. With Discover models on, the list comes straight from SayGM. Pick claude-sonnet-5-5 for everyday work, then click Save. Older IDs such as claude-fable-5 still appear; choose the 5.5 or 5.2 versions.

    Default Model dropdown listing SayGM's Claude models
    SayGM's Claude models in the Default Model list.
  6. Start a chat. Close Settings. The model picker under the message box now lists SayGM's models with Sonnet 5.5 selected. Send any message to confirm it works.

    Hermes model picker listing Fable 5.2, Haiku 5.5, Opus 5.5 and Sonnet 5.5, with Sonnet 5.5 selected
    Switch models per chat from here.
    A question about prompt caching answered by Claude Sonnet 5.5 through SayGM
    A real answer from Claude Sonnet 5.5, served through SayGM.

Good to know

  • GPT and open models use SayGM's OpenAI-compatible endpoint: add a second endpoint with https://api.saygm.com/v1 and API mode Chat Completions.
  • Caching still matters. Agents resend long context every step, and on Claude caching only happens when the request asks for it. If your bill looks high, see why Claude prompt caching isn't working.
  • Hermes needs at least 64,000 tokens of context. Every Claude model above qualifies.
  • Keep the key in Hermes. Don't paste it into chats or shared config files.
Hermes Custom Endpoints list with three SayGM endpoints: saygm-claude using Anthropic Messages, plus two OpenAI-compatible ones
Our install: Claude through Anthropic Messages (active), plus two OpenAI-compatible SayGM endpoints for other models.

Using Claude Code instead? The same endpoint works there too; current prices for every Claude route are on the cheapest Claude API page.

Pay less for the same models

One URL change. Keep OpenRouter as your backup.

Try SayGM