Skip to main content
Run phaseo hermes to set Phaseo as Hermes Agent’s custom endpoint with its own key, or set the same four Hermes settings and one .env line yourself.

Set up with the Phaseo CLI

If Hermes is missing, the CLI shows the official Nous Research installer command and asks before running it. On macOS and Linux the installer needs sh, bash and curl. Setup then:
  1. Saves your current values of model.provider, model.base_url, model.default and model.key_env, so removal can restore them.
  2. Creates a Phaseo CLI: Hermes Agent API Key that expires after 90 days and has a $100 monthly spend limit.
  3. Writes the key to Hermes’ .env file as OPENAI_API_KEY, inside a block that starts with # >>> phaseo managed (do not edit) and ends with # <<< phaseo managed. Your other lines are left alone, and the key never appears on a command line.
  4. Runs hermes config set to point Hermes at Phaseo:
model.key_env tells Hermes to send OPENAI_API_KEY to the custom endpoint. Without it, Hermes sends that key only to OpenAI’s own hosts, and requests reach Phaseo without a key. Phaseo asks Hermes where its .env file is (hermes config env-path), which covers profiles and other overrides. If Hermes can’t say, the CLI uses the .env in HERMES_HOME, or ~/.hermes/.env (%LOCALAPPDATA%\hermes\.env on native Windows). Hermes keeps provider keys in this plaintext file, so protect it like any other key file. Run phaseo hermes again to replace an expired key or change the model. It keeps the settings saved on the first run.

Configure Hermes manually

Add your Phaseo API key to Hermes’ .env file:
.env
Then point Hermes at Phaseo:
Run hermes config env-path to find the .env file Hermes reads.

Check it works

Restart active Hermes sessions so they use the Phaseo endpoint and key. Run hermes config get model.base_url --json to confirm it returns https://api.phaseo.app/v1, then send a short prompt and confirm the request appears in Settings → Usage → Logs.

Remove Phaseo

This restores the four model settings saved during setup (or unsets the ones that weren’t set), removes Phaseo’s block from .env, deletes the CLI’s saved state in ~/.config/phaseo/integrations/hermes.json, and revokes the key. Restart active Hermes sessions so they reload the restored configuration.

Fix common problems

For other agents and the provider values every agent needs, see Coding Agents.
Last modified on November 5, 2026