Documentation Index
Fetch the complete documentation index at: https://docs.anyapi.ai/llms.txt
Use this file to discover all available pages before exploring further.
Hermes Agent
Hermes Agent is an open-source, terminal-native autonomous coding and task agent by Nous Research. It features persistent memory, agent-created skills, and a messaging gateway with 21 platform adapters (Telegram, Discord, Slack, Google Chat, WhatsApp, Signal, SMS, Email, and more).AnyAPI is not a built-in provider in Hermes Agent. You configure it as a named custom OpenAI-compatible provider via the
custom_providers: list.Quick Start
Store the key as a secret
Add the key to
~/.hermes/.env (Hermes keeps secrets separate from settings):Run the provider wizard
- Select Custom endpoint (self-hosted / VLLM / etc.)
- Provider name:
anyapi - Base URL:
https://api.anyapi.ai/v1 - API key env var:
ANYAPI_API_KEY - Default model:
openai/gpt-4o(or any model from the AnyAPI catalog)
Manual Configuration
For full control, edit the config files directly instead of usinghermes model.
Set the API key
~/.hermes/.env:
Configure provider and model
~/.hermes/config.yaml:
Verify
Model Format
AnyAPI uses thevendor/model format. Always include the vendor prefix:
Advanced Configuration
Context window
Context window
Set the context length for the default model:For per-model overrides:
Auxiliary (side) models
Auxiliary (side) models
Hermes runs side LLM tasks (vision, compression, title generation, etc.) and lets you override the model per task:Tasks not overridden inherit from the main
model: block.Fallback providers
Fallback providers
A list of backups Hermes tries when the primary model fails:
Anthropic-style endpoint
Anthropic-style endpoint
AnyAPI also exposes Anthropic’s
/v1/messages format for Claude models:Configuration Examples
- GPT-4o
- Gemini 2.5 Pro
- Multi-model with fallbacks
Gateway Mode
When running Hermes as a messaging gateway (Telegram, Discord, Slack, etc.), the configuration is identical. Restart the service after changes:Troubleshooting
No API key / provider not found
No API key / provider not found
Hermes can’t find your AnyAPI key.
- Verify the env file:
grep ANYAPI ~/.hermes/.env - Re-run the wizard:
hermes model→ Custom endpoint - Confirm YAML uses
key_env: ANYAPI_API_KEY(or the aliasapi_key_env:)
Authentication failed (HTTP 401)
Authentication failed (HTTP 401)
Your key is invalid, revoked, or has no credits.
- Validate the key at dash.anyapi.ai
- Check your balance/quota
- Reissue the key if needed
Model not found / Bad Request (HTTP 400)
Model not found / Bad Request (HTTP 400)
The model ID is unknown or missing the vendor prefix.
- List the live catalog:
curl -H "Authorization: Bearer $ANYAPI_API_KEY" https://api.anyapi.ai/v1/models - Use
vendor/modelform (e.g.openai/gpt-4o, not baregpt-4o)
Base URL errors
Base URL errors
The endpoint must be exactly
https://api.anyapi.ai/v1 — no trailing slash, no /chat/completions suffix (Hermes appends that automatically).Schema validation warnings
Schema validation warnings
If Hermes warns about unknown YAML keys, check that you are using:
custom_providers:(plural list), notcustom_provider:auxiliary.<task>.provider, notauxiliary_providers:model.context_length, notcontext_limits:
Rate limiting (HTTP 429)
Rate limiting (HTTP 429)
Check usage at dash.anyapi.ai, upgrade your plan, or route side tasks to cheaper models via
auxiliary.*.Best Practices
- Keep credentials in
.env, never inconfig.yaml - Configure fallbacks — AnyAPI gives you many providers behind one key, use them for resilience
- Route side tasks to small models — use
auxiliary.*with cheaper models likeopenai/gpt-4o-mini - Always use
vendor/modelformat — bare model names will not resolve - Monitor usage at dash.anyapi.ai
Support
- AnyAPI Dashboard: dash.anyapi.ai
- AnyAPI Discord: Discord community
- AnyAPI Email: support@anyapi.ai
- Hermes Agent Issues: github.com/NousResearch/hermes-agent/issues