AWS Bedrock
AWS Bedrock provides Claude models through Amazon’s infrastructure.Configuration
Add to~/.ai-runner/secrets.sh:
Authentication Methods
AWS Bedrock supports three authentication methods:1. AWS Bedrock API Key (Recommended)
2. AWS Access Keys
3. AWS Profile
Usage
Custom Models
Override default models insecrets.sh:
AWS Bedrock Setup
Read the complete AWS Bedrock setup guide
Google Vertex AI
Google Vertex AI provides Claude models through Google Cloud Platform.Configuration
Add to~/.ai-runner/secrets.sh:
Authentication
Vertex AI supports three authentication methods (in precedence order):1. Service Account Key File
2. Application Default Credentials
3. User Credentials
Prerequisites
- Install Google Cloud SDK: https://cloud.google.com/sdk/docs/install
- Authenticate with one of the methods above
- Enable Claude models in Vertex AI Model Garden
Usage
Custom Models
Override default models insecrets.sh:
Regional Overrides
For specific model regional availability:Vertex AI Setup
Read the complete Vertex AI setup guide
Anthropic API
Direct API access to Anthropic’s Claude models.Configuration
Add to~/.ai-runner/secrets.sh:
Getting an API Key
- Sign up at console.anthropic.com
- Navigate to API Keys
- Create a new API key
- Add it to your
secrets.sh
Usage
Custom Models
Override default models insecrets.sh:
If you’re also logged into Claude Pro, you’ll see an “Auth conflict” warning from Claude Code. This is normal - Claude Code will use the API key for billing. The warning is just informational.
Anthropic API Docs
Read the Anthropic API documentation
Microsoft Azure
Microsoft Foundry on Azure provides Claude models through Azure.Configuration
Add to~/.ai-runner/secrets.sh:
Authentication Methods
1. API Key (Recommended)
2. Azure Default Credentials
Usage
Custom Models
Azure model names are deployment names (user-defined). Override insecrets.sh:
Microsoft Foundry Setup
Read the complete Microsoft Foundry setup guide
Vercel AI Gateway
Vercel AI Gateway provides unified access to 100+ models from multiple providers.Configuration
Add to~/.ai-runner/secrets.sh:
Getting a Token
- Visit vercel.com/dashboard/~/ai
- Create a new AI Gateway token
- Add it to your
secrets.sh
Usage with Claude Models
anthropic/model-name form. Override the per-tier
defaults in secrets.sh:
Use Any Model
Vercel AI Gateway supports 100+ models from OpenAI, xAI, Google, Meta, Anthropic, Mistral, DeepSeek, and more — all through one API. Use--model provider/model to run Claude Code with any supported model:
Example Coding Models
Browse All Models
View all available models on Vercel AI Gateway
Configuration for Non-Anthropic Models
When using non-Anthropic models, configure defaults insecrets.sh:
Set as Default Provider
Claude Pro
Uses your Claude Pro/Max subscription. No API keys needed.Prerequisites
- Claude Code installed
- Logged in with Claude subscription:
Usage
This is the default provider if you’re logged into Claude Code with a subscription.
--fable/--best (Claude Fable 5) works with --pro, but availability depends on your Claude subscription plan. If your plan doesn’t include Fable, use an API provider (--apikey, --aws, --vertex) instead.Provider Comparison
Next Steps
Provider Overview
Learn about the provider system
Switching Providers
Switch providers to avoid rate limits