Skip to main content
Don’t want to host it yourself? DeepInfra can run Hermes for you — see Hosted Agents: Hermes-Agent.
Hermes Agent is a self-hosted, self-improving autonomous agent by Nous Research. DeepInfra isn’t a built-in provider, but Hermes works with any OpenAI-compatible endpoint (/v1/chat/completions) — so you add DeepInfra as a custom provider and use any LLM from our catalog.

Configure ~/.hermes/config.yaml

Get your API key from the Dashboard.
  • provider: custom is required for any non-built-in OpenAI-compatible endpoint, and base_url overrides provider.
  • The DeepInfra model id passes through verbatim in default — no reformatting needed.
  • api_key falls back to the OPENAI_API_KEY environment variable if omitted, and secrets can live in ~/.hermes/.env instead of the YAML.
  • Set context_length explicitly. Above it’s the model’s full 1M-token window; Hermes needs roughly 64k minimum for agent functionality. Check a model’s window via /v1/openai/models?filter=with_meta.

Interactive alternative

Instead of editing the YAML by hand, run the model wizard and pick the custom endpoint:
Hermes persists the choice and reuses it on every run.

Run it

Learn more

AI Providers

Hermes’ provider overview and custom-endpoint option.

Configuration

The full config.yaml reference.

Chat Completions

DeepInfra’s OpenAI-compatible API.

Authentication

API keys and scoped JWTs.