Spaces:
Runtime error
Runtime error
File size: 8,514 Bytes
cd8bd0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | # Providers Guide: Connect AI Models to OmniRoute
> **TL;DR**: A provider is a connection to an AI service (like OpenAI, Anthropic, Google). You need at least one provider to use OmniRoute.
---
## What Is a Provider?
Think of a provider like a **phone carrier**. Just as you need a phone carrier to make calls, you need an AI provider to use AI models. OmniRoute is like a phone that works with **all carriers** β you can switch between them automatically.
### Types of Providers
| Type | What It Is | Examples | Cost |
| -------------- | ------------------------- | --------------------------------- | ---------------------- |
| **Free** | No payment required | Kiro, OpenCode Free, Pollinations | $0 |
| **API Key** | You need an API key | OpenAI, Anthropic, Google | Pay per use |
| **OAuth** | Login with your account | Claude Code, GitHub Copilot | Subscription |
| **Web Cookie** | Uses your browser session | ChatGPT Web, Gemini Web | $0 (uses your account) |
---
## Quick Start: Connect Your First Provider
### Option A: Free Provider (No Credit Card)
1. Open the dashboard at `http://localhost:20128`
2. Go to **Providers** β **Add Provider**
3. Select one of these free providers:
- **Kiro AI** β Free Claude models (no auth needed)
- **OpenCode Free** β Free GPT models (no auth needed)
- **Pollinations** β Free GPT-5, Claude, Gemini (no key needed)
- **LongCat** β 50M tokens/day free
- **Cloudflare AI** β 50+ models, 10K neurons/day
4. Click **Connect**
5. Done! You now have free AI access.
### Option B: API Key Provider (Paid)
1. Get an API key from the provider's website:
- **OpenAI**: https://platform.openai.com/api-keys
- **Anthropic**: https://console.anthropic.com/
- **Google**: https://aistudio.google.com/apikey
- **DeepSeek**: https://platform.deepseek.com/
- **Groq**: https://console.groq.com/
2. Open the dashboard at `http://localhost:20128`
3. Go to **Providers** β **Add Provider**
4. Select your provider
5. Paste your API key
6. Click **Connect**
7. Done! You now have access to that provider's models.
### Option C: OAuth Provider (Subscription)
1. Open the dashboard at `http://localhost:20128`
2. Go to **Providers** β **Add Provider**
3. Select your provider (e.g., Claude Code, GitHub Copilot)
4. Click **Connect with OAuth**
5. Login with your account
6. Done! You now have access to your subscription models.
---
## Best Free Providers
These providers offer **free access** with no credit card:
| Provider | Free Quota | Models | How to Connect |
| ----------------- | ---------------- | ---------------------------------------- | -------------- |
| **Kiro AI** | 50 credits/month | Claude Sonnet 4.5, Haiku 4.5, Opus 4.6 | No auth needed |
| **OpenCode Free** | Unlimited | GPT-4o, Claude, Gemini | No auth needed |
| **Pollinations** | No key needed | GPT-5, Claude, Gemini, DeepSeek, Llama 4 | No auth needed |
| **LongCat** | 50M tokens/day | LongCat-Flash-Lite | No auth needed |
| **Cloudflare AI** | 10K neurons/day | 50+ models | No auth needed |
| **NVIDIA NIM** | ~40 RPM | 129 models | API key needed |
| **Cerebras** | 1M tokens/day | Qwen3 235B, GPT-OSS 120B | API key needed |
| **Qwen** | Unlimited | Qwen3-coder-plus/flash/next | No auth needed |
| **Qoder** | Unlimited | Kimi-K2, DeepSeek-R1, Qwen3-coder | No auth needed |
**Tip**: Connect multiple free providers for **unlimited free AI** with automatic fallback!
---
## Best Paid Providers
These providers offer **high-quality models** with API keys:
| Provider | Best Models | Cost | Free Tier |
| ------------- | --------------------------- | ---------------------- | ------------------ |
| **OpenAI** | GPT-5, GPT-4o | $2.50-$10/1M tokens | $5 free credits |
| **Anthropic** | Claude Opus 4.6, Sonnet 4.6 | $3-$15/1M tokens | $5 free credits |
| **Google** | Gemini 2.5 Pro, Flash | $0.075-$1.25/1M tokens | 1,500 req/day free |
| **DeepSeek** | DeepSeek V4 | $0.14-$0.28/1M tokens | 5M free tokens |
| **Groq** | Llama 4, Mixtral | $0.05-$0.27/1M tokens | 30 RPM free |
| **xAI** | Grok 3 | $0.30-$0.60/1M tokens | β |
---
## How to Connect a Provider (Step-by-Step)
### Step 1: Open the Dashboard
Go to `http://localhost:20128` in your browser.
### Step 2: Go to Providers
Click **Providers** in the sidebar.
### Step 3: Click Add Provider
Click the **+ Add Provider** button.
### Step 4: Select Your Provider
Browse the list or search for your provider. Click on it.
### Step 5: Enter Credentials
- **Free providers**: No credentials needed β just click **Connect**
- **API key providers**: Paste your API key
- **OAuth providers**: Click **Connect with OAuth** and login
### Step 6: Test the Connection
Click **Test Connection** to verify it works.
### Step 7: Done!
Your provider is now connected. You can use it with `model: "auto"` or specify the provider directly.
---
## Using Multiple Providers
OmniRoute works best with **multiple providers**. This gives you:
- **Automatic fallback** β If one provider fails, OmniRoute tries the next
- **Cost optimization** β OmniRoute picks the cheapest provider for each request
- **Speed optimization** β OmniRoute picks the fastest provider for each request
- **Quality optimization** β OmniRoute picks the best provider for each task
### Recommended Setup
Connect at least **3 providers** for the best experience:
1. **One free provider** (Kiro, OpenCode Free, or Pollinations) β Always available
2. **One fast provider** (Groq, Cerebras) β For quick responses
3. **One quality provider** (OpenAI, Anthropic, Google) β For complex tasks
Then use `model: "auto"` and OmniRoute will automatically pick the best one for each request.
---
## Provider-Specific Setup
### OpenAI
1. Get API key: https://platform.openai.com/api-keys
2. In OmniRoute: Providers β Add Provider β OpenAI
3. Paste API key β Connect
### Anthropic
1. Get API key: https://console.anthropic.com/
2. In OmniRoute: Providers β Add Provider β Anthropic
3. Paste API key β Connect
### Google (Gemini)
1. Get API key: https://aistudio.google.com/apikey
2. In OmniRoute: Providers β Add Provider β Gemini
3. Paste API key β Connect
### DeepSeek
1. Get API key: https://platform.deepseek.com/
2. In OmniRoute: Providers β Add Provider β DeepSeek
3. Paste API key β Connect
### Groq
1. Get API key: https://console.groq.com/
2. In OmniRoute: Providers β Add Provider β Groq
3. Paste API key β Connect
---
## Common Questions
### "Do I need to pay to use OmniRoute?"
**No!** OmniRoute is free and open-source. You can use free providers (Kiro, OpenCode Free, Pollinations) without paying anything. You only pay if you choose to use paid providers.
### "Which provider should I start with?"
Start with **Kiro AI** β it's free, requires no API key, and gives you access to Claude models. Then add more providers as needed.
### "Can I use multiple providers at once?"
**Yes!** That's the whole point of OmniRoute. Connect multiple providers and use `model: "auto"` to let OmniRoute pick the best one for each request.
### "What if a provider goes down?"
OmniRoute automatically skips failed providers and tries the next one. You don't need to do anything.
### "How do I disconnect a provider?"
Go to Providers β click on the provider β click **Disconnect**.
### "Can I use my existing API keys?"
**Yes!** If you already have API keys for OpenAI, Anthropic, Google, etc., you can use them in OmniRoute. Just paste them when connecting the provider.
---
## What's Next?
- **[Auto-Combo Guide](./AUTO-COMBO-GUIDE.md)** β Let OmniRoute pick the best AI for you
- **[Free Tiers Guide](./FREE-TIERS-GUIDE.md)** β Get free AI with no credit card
- **[Troubleshooting](./TROUBLESHOOTING.md)** β Fix common issues
- **[Provider Reference](../reference/PROVIDER_REFERENCE.md)** β Full list of 226 providers
|