Skip to main content
To connect Hermes Agent to BetterToken, prepare an API key, enter the Base URL shown below, and choose a current Model ID from the model plaza.

Key settings

Prerequisites

Additional requirements

  • Copy the exact Model ID from the model plaza.
  • macOS, Linux, Windows 10/11, or WSL2
  • A model with at least a 64K context window for Hermes Agent tool use

Install

Install Hermes Agent

Hermes recommends the Desktop installer for macOS and Windows. Download Hermes Desktop and run the installer for your operating system.
Verify the installation:
WSL2 remains supported, but it is optional. Use it when you specifically need a Linux environment or the web dashboard’s embedded terminal pane.

Feature quick reference

Manual setup

Use the interactive Hermes Agent model setup as the primary path. Edit the configuration files only when you need a manual setup.

Setup

1

Run the model selector

Exit any active Hermes chat first, then run:
2

Choose Custom endpoint

Select Custom endpoint (self-hosted / VLLM / etc.) from the provider list.
3

Fill in the BetterToken config

Enter:
  • Base URL: https://bettertoken.ai/v1
  • API Key: your BetterToken API Key
  • Model: a model ID copied from the model plaza
If Hermes asks for an API mode, choose the OpenAI-compatible Chat Completions option. If it asks for context length, use the value published for that model and make sure it is at least 64K.
4

Start Hermes Agent

You can also run hermes to use the classic terminal interface.

Migrate from OpenClaw

If you already use OpenClaw, first check whether your current Hermes Agent version provides the migration command. Run a dry run before changing anything.
After you confirm the output, run the migration:
After migration, still review the Hermes Agent Base URL, API Key, and model ID. They should match https://bettertoken.ai/v1, your BetterToken API Key, and a model ID.

Verify the connection

Start Hermes with hermes --tui or hermes, then send this short prompt:
The connection works when Hermes returns HERMES_OK without an authentication, endpoint, or Model ID error. Then try one small read-only task before enabling gateways, scheduled tasks, or additional tools.

Switch models

Run hermes model outside a chat to add or reconfigure a provider. Inside an active chat, use /model to switch between providers and models you already configured. Use the exact Model ID from the model plaza.

Common errors

Troubleshooting

  • If requests fail or return no response, confirm that Base URL is exactly https://bettertoken.ai/v1. Do not append /chat/completions in this field.
  • If Hermes reports that the model does not exist, confirm that Model is a model ID from the model plaza.
  • Copy the exact Model ID from the model plaza.
  • If Hermes still uses the old model, exit the chat, run hermes model, save the custom endpoint again, and start a new chat.
  • BetterToken usually does not require an extra User-Agent or custom headers. Only add headers when your custom gateway, tenant routing, observability, or caching layer explicitly requires them.
Do not commit real API Keys to your repository. For team-shared setup, prefer environment variables or local config.

Technical details

This setup uses https://bettertoken.ai/v1. The tool appends the OpenAI-compatible endpoint path. Do not add /chat/completions or /responses unless a specific field explicitly requires it.

Official Hermes references