AI Provider Overview
Choose from OpenRouter, OpenAI, or Anthropic as your AI backend for YeePilot
YeePilot supports three AI providers out of the box. Each provider offers different models, pricing tiers, and capabilities. You can switch between them at any time or configure automatic failover so YeePilot keeps working even if your primary provider goes down.
Supported Providers
OpenRouter
OpenRouter is a unified gateway that gives you access to 100+ models from multiple AI labs through a single API key, including models that are completely free to use.
| Detail | Value |
|---|---|
| Base URL | https://openrouter.ai/api/v1 |
| Default model | openai/gpt-oss-120b:free |
| Get your key | openrouter.ai (opens in new tab) |
OpenRouter is the default provider for new YeePilot installations because it offers free-tier models that let you get started without any upfront cost. As your needs grow, you can switch to premium models or a direct provider.
# Set up YeePilot with OpenRouter
yeepilot setup --provider openrouterOpenAI
OpenAI provides the GPT family of models, including GPT-4o, GPT-4, and more.
| Detail | Value |
|---|---|
| Base URL | https://api.openai.com/v1 |
| Default model | gpt-4o |
| Get your key | platform.openai.com (opens in new tab) |
OpenAI models are well-suited for general-purpose server management tasks and offer strong tool-calling support.
# Set up YeePilot with OpenAI
yeepilot setup --provider openaiAnthropic
Anthropic provides the Claude family of models, including Claude Sonnet 4 and Claude Opus.
| Detail | Value |
|---|---|
| Base URL | https://api.anthropic.com/v1 |
| Default model | claude-sonnet-4-20250514 |
| Get your key | console.anthropic.com (opens in new tab) |
Anthropic models excel at careful reasoning and following complex multi-step instructions, making them a strong choice for intricate server administration tasks.
# Set up YeePilot with Anthropic
yeepilot setup --provider anthropicSwitching Providers
You can switch your AI provider at any time using the setup wizard or by editing your configuration directly.
Using the Setup Wizard
yeepilot setup --providerThis walks you through selecting a provider and entering your API key.
Editing Configuration
Open your config file at ~/.yeepilot/config.yaml and update the ai.provider field:
ai:
provider: openai # openrouter, openai, or anthropic
api_key: sk-... # Your API key for the selected providerAfter changing the configuration, your next YeePilot session will use the new provider automatically.
Automatic Failover
YeePilot includes built-in failover support. If your primary provider experiences an outage or returns errors, YeePilot automatically switches to a backup provider to keep your session running.
Failover behavior includes:
- Automatic switching -- if the primary provider fails, YeePilot tries the next configured provider
- Cooldown periods -- failed providers are temporarily taken out of rotation to avoid repeated errors
- Seamless recovery -- once a failed provider comes back online, it re-enters the rotation
To take full advantage of failover, configure API keys for multiple providers:
ai:
provider: anthropic
api_key: sk-ant-...
failover:
- provider: openai
api_key: sk-...
- provider: openrouter
api_key: sk-or-...With this configuration, if Anthropic goes down, YeePilot falls back to OpenAI, and then to OpenRouter if OpenAI also fails.
Choosing the Right Provider
| Consideration | Recommended Provider |
|---|---|
| Free to get started | OpenRouter |
| Best general-purpose performance | OpenAI (GPT-4o) |
| Best reasoning for complex tasks | Anthropic (Claude Sonnet 4) |
| Maximum model variety | OpenRouter |
| Highest reliability needs | Configure failover across all three |
No matter which provider you choose, YeePilot's command safety system, sandbox isolation, and confirmation prompts work identically. The provider only affects the AI reasoning -- all security layers remain fully active.