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

  • The selected Model ID comes from the supported provider
  • macOS, Linux, or Windows WSL2

Install

Install Hermes Agent

Feature quick reference

Manual setup

Use the interactive Hermes Agent model setup as the primary path. Command and environment-variable options remain available as alternatives.

Setup

1

Run the model selector

2

Choose the OpenAI or OpenAI Compatible provider

Select OpenAI or OpenAI Compatible 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 from a supported provider copied from the model plaza
4

Restart Hermes Agent

After updating the config, quit the current Hermes Agent session and start it again.
5

Start Hermes Agent

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 from a supported provider.

Verify the connection

Send a short test prompt. If the tool returns a response without an authentication or Model ID error, the connection works. Fully restart the tool after changing its configuration.

Switch models

Open the model selector or change the Model field in the configuration. Use the exact Model ID from the model plaza, then restart the current session.

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 a supported provider from the model plaza.
  • If authentication fails, check for copied spaces and confirm that the selected Model ID comes from the supported provider.
  • If Hermes still uses the old model after a change, quit the current Hermes Agent session and run hermes again.
  • 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.

Advanced setup

Supported providers

Statuses apply to the BetterToken setup documented on this page.
  • Manual setup: enter the API Key, Base URL, and Model.
  • Not supported: no verified direct setup is currently available.

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.