How to set up Hermes Agent with a 5abeer API key
Install Hermes Agent, add 5abeer as a custom provider in config.yaml with your API key and run it on models paid from your 5abeer balance.
On this page
- What you get
- Before you start
- With a subscription: the 5abeer AI app
- Manual setup
- Install Hermes
- Add the settings
- Run it
- Pick a model
- If you get an error
- Questions
- Hermes changed my custom_providers section. Is that a problem?
- Do I need a Nous Portal or OpenRouter account?
- Where is my key stored?
- How is a request billed?
To run Hermes Agent on 5abeer, install Hermes, then add a custom provider named 5abeer to ~/.hermes/config.yaml with the 5abeer base URL, your 5abeer API key and a default model. Run hermes in the terminal and ask for anything; every request is paid from your 5abeer balance. With a subscription, the 5abeer AI app does this setup for you.
What you get#
- Hermes as it ships, with 5abeer ready as a custom provider.
- The Claude, GPT and Gemini models available in Hermes, below their official price.
- Usage and cost per key in your dashboard.
Before you start#
- A terminal on macOS, Linux or Windows.
- An API key for the provider of the model you will use (create one). The config below uses a Claude model, so it needs a key for Claude models.
With a subscription: the 5abeer AI app#
If you have a 5abeer subscription that includes Hermes, the 5abeer AI app sets it up on your subscription in one click, with no API key and no files to edit. The app runs on Mac, Windows and Linux; details in What each plan runs. With an API key, follow the manual setup below.
Manual setup#
Install Hermes#
curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bashThe first command also works inside WSL2 on Windows.
Add the settings#
Add these settings to
~/.hermes/config.yaml, keeping your other settings if the file already exists. The key lives inside the file, so replaceYOUR_5ABEER_API_KEYwith your key.config.yamlmodel: default: claude-sonnet-5.5 provider: 5abeer custom_providers: - name: 5abeer base_url: https://api.5abeer.ai/v1 api_key: YOUR_5ABEER_API_KEY api_mode: chat_completions models: claude-sonnet-5.5: {}~/.hermes/config.yaml
Run it#
TerminalhermesAsk for anything. If a reply comes back, you're set. For the newer full-screen interface, run
hermes --tui.
Pick a model#
These models run in Hermes today. Add the model id under models in the provider section, then set it on the default line, or switch inside Hermes with /model. Remember that each key works only with its own provider's models.
Claude Sonnet 5.5DefaultInput$0.60Output$3Context1M
Claude Opus 5.5Input$1.20Output$6Context1M
GPT-6.1 SolInput$0.60Output$3Context922K
Gemini 4 ArgonInput$0.60Output$3Context—Claude Fable 5.1Input$3Output$15Context—
Claude Fable 5Input$3Output$15Context1M
Claude Opus 4.6Input$1.50Output$7.50Context1M
Claude Opus 4.7Input$1.50Output$7.50Context1M
Claude Opus 5Input$1.50Output$7.50Context1M
Claude Sonnet 5Input$0.60Output$3Context1M
Claude Sonnet 4.6Input$0.90Output$4.50Context1M
Claude Haiku 4.5Input$0.30Output$1.50Context200K
GPT-6 AstraInput$3Output$15Context—
GPT-6 SolInput$0.60Output$3Context922K
GPT-6 LunaInput$0.03Output$0.15Context922K
GPT-5.6 LunaInput$0.06Output$0.36Context400K
GPT-5.6 TerraInput$0.60Output$3.60Context400K
GPT-5.6 SolInput$1.20Output$6Context400K
GPT-5.5Input$1.50Output$9Context1.05M
GPT-5.4Input$0.75Output$4.50Context1.05M
GPT-5.4 MiniInput$0.23Output$1.35Context400K
GPT-5.2Input$0.53Output$4.20Context272K
Gemini 2.5 ProInput$0.38Output$3Context1M
Gemini 3.8 FlashInput$0.23Output$1.13Context—
Gemini 3 FlashInput$0.15Output$0.90Context1M
Gemini 3.1 ProInput$0.60Output$3.60Context1M
Official price from the provider's page, checked October 19, 2026.
All models and pricesIf you get an error#
INVALID_API_KEY: the key in the file is wrong or was copied only in part.MODEL_PLATFORM_NOT_ALLOWED: the model belongs to a provider other than the key's.INSUFFICIENT_BALANCE: your balance doesn't cover this request.
Every code and what it means is in Errors and fixes.
Questions#
Hermes changed my custom_providers section. Is that a problem?#
No. Hermes reads the custom_providers list used above, and hermes update may move it into its newer providers section. Your 5abeer settings keep working after the move.
Do I need a Nous Portal or OpenRouter account?#
No. With the 5abeer provider set as the default, Hermes sends your requests to 5abeer with your 5abeer key.
Where is my key stored?#
In ~/.hermes/config.yaml on your machine, as plain text. Don't share the file, and replace the key there if you create a new one.
How is a request billed?#
Each request is paid from your balance by the tokens it uses, at the model's 5abeer price. Details in Pricing and balance.
Was this page helpful?