Hermes Agent
What is Hermes Agent?
Hermes Agent is a terminal-native autonomous coding and task agent. When Hermes supports an OpenAI-compatible provider, you can route its model calls through JoyToken with a single API key, centralized policy, model routing, wallet checks, and usage attribution.
Hermes configuration keys can differ by version. This page describes the provider contract JoyToken expects: OpenAI-compatible base URL, bearer API key, and auto or a concrete JoyToken model key.
Setup
Step 1: Create a JoyToken API key
Create a dedicated key such as dev-hermes-agent.
Step 2: Set environment variables
Step 3: Configure the Hermes provider
If Hermes exposes a generic OpenAI-compatible provider, use this shape:
Step 4: Start Hermes
Start Hermes using your normal CLI or TUI command. Requests should now go through JoyToken.
Manual Configuration
If Hermes separates primary and auxiliary models, point each JoyToken-backed role explicitly at the JoyToken provider:
Model Format
Recommended starting point:
Monitoring Usage
If Hermes supports custom headers, pass request IDs:
For multi-step runs, include role and step:
Check JoyToken Logs and Usage after the first run.
Why use JoyToken with Hermes Agent?
Cost attribution
Use a dedicated Hermes key, or split keys by role, to separate primary agent cost from background summarization and evaluation.
Policy controls
Apply model, tier, IP, and budget policy before unattended Hermes workflows spend credits.
Model routing
Use auto during evaluation, then pin roles that need deterministic quality or predictable cost.