Skip to content
Docs

Hermes

Hermes is Nous Research's terminal-based coding agent. It ships an AI Gateway provider, so you can reach every model in the gateway catalog from Hermes with one API key and track spend in one place.

The Vercel CLI can do this for you. vercel ai-gateway coding-agents setup --agent hermes provisions a key, adds a vercel-ai-gateway provider to ~/.hermes/config.yaml with model discovery turned on, and exports AI_GATEWAY_API_KEY from a managed block in your shell startup file. Switch models in-session with /model custom:vercel-ai-gateway:<model-id>.

  1. Go to the AI Gateway section in the Vercel dashboard sidebar and click API keys to create a new API key.

  2. Hermes reads AI_GATEWAY_API_KEY from your environment and from ~/.hermes/.env. Export it in your shell:

    Terminal
    export AI_GATEWAY_API_KEY="your-ai-gateway-api-key"

    To persist the key across sessions, add the same line to ~/.hermes/.env instead.

  3. Run the model picker:

    Terminal
    hermes model

    Choose Vercel AI Gateway, then pick a model. Hermes fetches the live catalog with current pricing from the gateway, filtered to language models that support tool calling. Image, video, embedding, and reranking models from the models page don't appear in the picker.

  4. You can also skip the picker and name the provider and model directly:

    Terminal
    hermes --provider ai-gateway -m openai/gpt-5.6-sol

    The provider ID is ai-gateway. Hermes also accepts vercel and vercel-ai-gateway as aliases. Model IDs use the gateway's creator/model-name format.

  5. Hermes supports ai-gateway in fallback chains. Add it to fallback_model in ~/.hermes/config.yaml, or run hermes fallback to configure it interactively. When a fallback activates, Hermes swaps the model and provider mid-session without losing your conversation.

  6. View your usage, spend, and request activity in the AI Gateway section in the Vercel dashboard sidebar. See the observability documentation for more details.

    Hermes identifies itself to the gateway, so its requests are attributable in your analytics.

VariableDescription
AI_GATEWAY_API_KEYYour AI Gateway API key. Required
AI_GATEWAY_BASE_URLOverrides the gateway base URL. Hermes defaults to the gateway's bare /v1 surface. Set it to https://ai-gateway.vercel.sh/coding-agent/v1, the coding agent surface, to identify the traffic as coming from a coding agent

Hermes calls AI Gateway through the OpenAI-compatible Chat Completions API, so any model that supports Chat Completions works.

Last updated July 30, 2026

Was this helpful?

supported.