🤖HermesBlog
Hermes Feature Guides · Part 18/9/2026

Fallback Providers — AI Never Down

Fallback Providers — AI Never Down — easy-to-understand guide based on official docs

Ever had your favorite AI assistant freeze mid-thought, not because of anything you did, but because its servers decided to take an unscheduled nap? It’s like your car’s engine stalling at a red light. You didn’t cause it, but you’re stuck. That’s where Hermes Agent’s Fallback Providers come in—your AI’s spare tire, ready to swap in before you even notice the flat.


Three Layers of Protection

Hermes doesn’t just give you one safety net; it gives you three, working in sequence:

  1. Credential Pools — Rotate multiple API keys from the same provider (e.g., three OpenRouter keys) to spread the load.
  2. Primary Model Fallback — If your main model fails, automatically switch to a model from another provider.
  3. Auxiliary Task Fallback — For small jobs like image recognition, compression, or web scraping, you can assign independent providers so they never disturb your main conversation.

This post focuses on Layer 2: cross-provider switching, the most powerful safety net.


What Problem Does It Solve?

When your primary model hits any of these roadblocks, Hermes automatically switches to a backup—without losing your conversation context:

  • Rate limiting (too many requests)
  • Server overload
  • Expired or invalid API keys
  • Network disconnections

Think of it like a car changing its own tire mid-drive. You don’t feel the bump; you just keep moving.


How to Configure: Two Ways

Method 1: Interactive Command (Beginner-Friendly)

Open your terminal and type:

hermes fallback

It walks you through a menu, just like hermes model. Useful subcommands:

hermes fallback add          # Add a fallback provider
hermes fallback list         # List current fallbacks
hermes fallback remove       # Remove a specific fallback
hermes fallback clear        # Remove all fallbacks

Method 2: Edit the Config File Directly

Open ~/.hermes/config.yaml and add:

fallback_providers:
  - provider: openrouter
    model: anthropic/claude-sonnet-4
  - provider: deepseek
    model: deepseek-chat

Each entry must include both provider and model. The list is tried in order—if the first fails, the second takes over.

Note: The old fallback_model (singular) still works, but the new fallback_providers (plural list) is recommended. If both are set, the new one wins.


Which Providers Are Supported?

Hermes supports a wide range of popular services:

Provider What You Need
OpenRouter OPENROUTER_API_KEY
Anthropic ANTHROPIC_API_KEY
DeepSeek DEEPSEEK_API_KEY
GitHub Copilot GitHub token (OAuth)
Dozens more… See docs

Most just need an environment variable (API key). A few, like GitHub Copilot, require OAuth login.


Summary & Practical Tips

The core idea: Fallback providers are like insurance for your AI conversations. When the main model fails, the backup takes over seamlessly—no lost context, no panic.

Practical advice:

  1. Set up at least 2 fallbacks — one similar to your primary (e.g., another general-purpose model) and one different (e.g., a faster or cheaper option).
  2. Choose different companies — If your main is OpenAI, pick DeepSeek or Anthropic as backup. That way, if one company’s servers go down, the other likely won’t.
  3. Test periodically — Use hermes fallback list to review, and occasionally switch manually to confirm everything works.

When your primary AI takes a sick day, your backup steps in instantly. Your workflow never stops. That’s the peace of mind Hermes Agent gives you—because downtime is for other people.

📖 Official Docs

This article is based on the official Hermes Agent documentation:Official docs › user-guide/configuring-models