OpenRouter Setup
OpenRouter provides unified access to multiple AI models including Claude, GPT-4, Gemini, Llama, Qwen, DeepSeek, and more through a single API.
Why OpenRouter?
- Multiple Models: Access 100+ AI models from one provider
- Best Pricing: Competitive rates across all models
- No Vendor Lock-in: Switch between models easily
- Free Trial: $1 free credit with OAuth sign-in
- Usage Analytics: Track your API usage and costs
Setup Methods
OAuth Sign-In (Easiest)
Perfect for getting started quickly with no API key needed.
Steps:
- Click the Settings icon (⚙️) in the AI Chat panel
- Select “OpenRouter” as your provider
- Click “Sign in with OpenRouter”
- You’ll be redirected to OpenRouter in a new tab
- Authorize Browser Operator to access your account
- Return to Browser Operator - you’re automatically logged in!
- Select your preferred model from the dropdown
Note: OAuth tokens expire after 30 days and will need re-authentication.
API Key Setup
Recommended for production use and advanced users.
Steps:
- Visit OpenRouter Keys and sign up/sign in
- Click “Create Key” to generate a new API key
- Give your key a name (e.g., “Browser Operator”)
- Copy the API key (starts with
sk-or-v1-...) - In Browser Operator:
- Click the Settings icon in AI Chat panel
- Select “OpenRouter” as provider
- Paste your API key in the API Key field
- Click “Fetch Models” to load available models
- Select your preferred model
- Click “Save”
API Key Security:
- Keep your API key private
- Don’t share it or commit it to version control
- Rotate keys regularly for security
Choosing a Model (2025)
OpenRouter offers 400+ models. Here are some popular choices:
For General Use
- Claude 4.5 Sonnet (
anthropic/claude-4.5-sonnet) - Best overall performance, excellent reasoning - Gemini 2.5 Pro (
google/gemini-2.5-pro) - Great for long context and analysis
For Speed & Cost
- Gemini 2.5 Flash (
google/gemini-2.5-flash) - Free, lightning fast - Claude 4.5 Haiku (
anthropic/claude-4.5-haiku) - Fast and affordable
Pricing (2025)
OpenRouter uses pass-through pricing with no markup. Platform fee: 5.5% on credit card purchases (5% crypto). Bring-your-own-key (BYOK) also supported.
Free Model Limits:
- Without credits: 50 requests/day
- With ≥$10 credits purchased: 1,000 requests/day
Check current pricing at OpenRouter Models.
Managing Credits
Adding Credits
- Visit OpenRouter Account
- Click “Add Credits”
- Choose your amount ($10, $25, $50, or custom)
- Complete payment with credit card
Monitoring Usage
- Visit OpenRouter Activity
- View your usage by:
- Model
- Date range
- Cost breakdown
- Request count
Setting Spending Limits
- Go to OpenRouter Settings
- Set daily or monthly spending limits
- Receive alerts when approaching limits
- Automatic cutoff when limit reached
Troubleshooting
“Invalid API Key” Error
- Verify your key starts with
sk-or-v1- - Check that you copied the entire key
- Ensure your key hasn’t been revoked
- Try generating a new key
“Insufficient Credits” Error
- Check your balance at OpenRouter Account
- Add more credits to continue using the service
- Free OAuth users: add payment method for continued access
Models Not Loading
- Check your internet connection
- Click “Fetch Models” again in settings
- Try refreshing the Browser Operator window
- Verify OpenRouter API status at status.openrouter.ai
OAuth Token Expired
- Click “Sign in with OpenRouter” again
- Authorize the application
- You’ll be logged back in automatically
Next Steps
- User Guide - Learn Browser Operator features
- Developer Guide - Build custom agents
- OpenRouter Documentation - Learn more about OpenRouter
Support
- OpenRouter Issues: OpenRouter Discord
- Browser Operator Issues: GitHub Issues
- Community: Browser Operator Discord