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
- A CheapTokens account with some balance. Create one if you haven't.
- Your API key from Dashboard → API key. It starts with
ct_live_. - Any text model from the models page. They all work over the OpenAI Chat Completions format.
The snippets below use claude-sonnet-5-5. Pick another model to update them.
Windows
-
Install Hermes Agent, then open a new terminal window so the
hermescommand is found.PowerShelliex (irm https://hermes-agent.nousresearch.com/install.ps1)
-
Run the model setup and choose Custom endpoint.PowerShell
hermes model
-
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
-
Or skip the last two steps and edit
%USERPROFILE%\.hermes\config.yamlyourself:config.yamlmodel: default: claude-sonnet-5-5 provider: custom base_url: https://cheaptokens.pw/v1 api_key: YOUR_API_KEY context_length: 200000
-
Run
hermesand send a message.hermes doctorchecks the setup if something looks wrong.
macOS
-
Install Hermes Agent, then open a new terminal window so the
hermescommand is found.Terminalcurl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
-
Run the model setup and choose Custom endpoint.Terminal
hermes model
-
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
-
Or skip the last two steps and edit
~/.hermes/config.yamlyourself:config.yamlmodel: default: claude-sonnet-5-5 provider: custom base_url: https://cheaptokens.pw/v1 api_key: YOUR_API_KEY context_length: 200000
-
Run
hermesand send a message.hermes doctorchecks the setup if something looks wrong.
Linux
-
Install Hermes Agent, then open a new terminal window so the
hermescommand is found.Terminalcurl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash
-
Run the model setup and choose Custom endpoint.Terminal
hermes model
-
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
-
Or skip the last two steps and edit
~/.hermes/config.yamlyourself:config.yamlmodel: default: claude-sonnet-5-5 provider: custom base_url: https://cheaptokens.pw/v1 api_key: YOUR_API_KEY context_length: 200000
-
Run
hermesand send a message.hermes doctorchecks 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
- Hermes refuses models with less than 64,000 tokens of context.
context_length: 200000tells it the size for a model it doesn't know. - To switch model inside a session, type
/model custom:claude-sonnet-5-5. - Hermes needs a model that supports tool calling.
If something goes wrong
| What you see | What to do |
|---|---|
401 or invalid_api_key | The key is wrong, disabled or has extra spaces. Create a new key and paste it again. |
402 or insufficient_quota | Your balance is empty. Top up under Billing. |
404 or model_not_found | The model ID has a typo. Copy it from the models page. |
| 404 on every request | The base URL is wrong. Check whether this tool needs the /v1 ending (see the steps above). |
| 429 | Too many requests per minute. Wait a few seconds and retry. |
Prefer a guided version? Open the setup wizard →