Setup guide

Connect Hermes

Hermes Agent is an open-source AI agent from Nous Research that runs in the terminal and in chat apps. It connects to CheapTokens as a custom endpoint.

Before you start

The snippets below use claude-sonnet-5-5. Pick another model to update them.

Windows

  1. Install Hermes Agent, then open a new terminal window so the hermes command is found.
    PowerShell
    iex (irm https://hermes-agent.nousresearch.com/install.ps1)
  2. Run the model setup and choose Custom endpoint.
    PowerShell
    hermes model
  3. Enter these values when asked:
    hermes model
    API base URL:  https://cheaptokens.pw/v1
    API key:       YOUR_API_KEY
    Model name:    claude-sonnet-5-5
  4. Or skip the last two steps and edit %USERPROFILE%\.hermes\config.yaml yourself:
    config.yaml
    model:
      default: claude-sonnet-5-5
      provider: custom
      base_url: https://cheaptokens.pw/v1
      api_key: YOUR_API_KEY
      context_length: 200000
  5. Run hermes and send a message. hermes doctor checks the setup if something looks wrong.

macOS

  1. Install Hermes Agent, then open a new terminal window so the hermes command is found.
    Terminal
    curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
  2. Run the model setup and choose Custom endpoint.
    Terminal
    hermes model
  3. Enter these values when asked:
    hermes model
    API base URL:  https://cheaptokens.pw/v1
    API key:       YOUR_API_KEY
    Model name:    claude-sonnet-5-5
  4. Or skip the last two steps and edit ~/.hermes/config.yaml yourself:
    config.yaml
    model:
      default: claude-sonnet-5-5
      provider: custom
      base_url: https://cheaptokens.pw/v1
      api_key: YOUR_API_KEY
      context_length: 200000
  5. Run hermes and send a message. hermes doctor checks the setup if something looks wrong.

Linux

  1. Install Hermes Agent, then open a new terminal window so the hermes command is found.
    Terminal
    curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
  2. Run the model setup and choose Custom endpoint.
    Terminal
    hermes model
  3. Enter these values when asked:
    hermes model
    API base URL:  https://cheaptokens.pw/v1
    API key:       YOUR_API_KEY
    Model name:    claude-sonnet-5-5
  4. Or skip the last two steps and edit ~/.hermes/config.yaml yourself:
    config.yaml
    model:
      default: claude-sonnet-5-5
      provider: custom
      base_url: https://cheaptokens.pw/v1
      api_key: YOUR_API_KEY
      context_length: 200000
  5. Run hermes and send a message. hermes doctor checks the setup if something looks wrong.

Check that it works

Send a short message in Hermes, then open Dashboard → Usage. The request appears there within a few seconds, with its model, tokens and cost.

Good to know

If something goes wrong

What you seeWhat to do
401 or invalid_api_keyThe key is wrong, disabled or has extra spaces. Create a new key and paste it again.
402 or insufficient_quotaYour balance is empty. Top up under Billing.
404 or model_not_foundThe model ID has a typo. Copy it from the models page.
404 on every requestThe base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above).
429Too many requests per minute. Wait a few seconds and retry.

Prefer a guided version? Open the setup wizard →