Skip to main content
Cloud providers offer powerful AI models through APIs, with pay-as-you-go pricing and no local hardware requirements.

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:

2. AWS Access Keys

3. AWS Profile

Usage

--fable/--best on Bedrock needs a one-time data-sharing enablement. Fable 5 is a Mythos-class Covered Model: Anthropic retains inputs/outputs for 30 days with human review on every platform that offers it (direct API, Pro, Bedrock, Vertex, Azure) — this is a property of the model, not of Bedrock. Bedrock’s default mode doesn’t share data with the provider, so it won’t serve Fable until you enable provider data sharing; until then requests fail mid-session with 400 data retention mode 'default' is not available for this model.There is no console UI — enable it at the account level via the Data Retention API:
Bedrock-specific caveat: once enabled, Fable traffic leaves AWS’s data/security boundary (it goes to Anthropic). --apikey and --azure don’t need this step — not because they retain less, but because their standard config already shares with Anthropic. The only way to avoid 30-day retention entirely is to not use Fable (stay on --opus). See Anthropic’s data-retention policy for Mythos-class models.

Custom Models

Override default models in secrets.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

  1. Install Google Cloud SDK: https://cloud.google.com/sdk/docs/install
  2. Authenticate with one of the methods above
  3. Enable Claude models in Vertex AI Model Garden

Usage

--fable/--best on Vertex needs a one-time data-sharing enablement. Fable 5 is a Mythos-class Covered Model (30-day retention + human review on every platform that offers it — a model property, not Vertex-specific). Vertex won’t serve it until you enable data sharing for the anthropic publisher; until then requests fail with 403 ... requires data sharing to be enabled for publisher 'anthropic'.Enable it (project-level), either way:
  • Console (simplest): open the Claude Fable 5 model card in Vertex AI Model Garden and accept the data-sharing terms.
  • API: call setPublisherModelConfig, setting the field named in your 403 (data_sharing_enabled_provider) to anthropic:
--apikey and --azure don’t need this step (their standard config already shares with Anthropic). To avoid 30-day retention entirely, don’t use Fable — stay on --opus. See Claude on Vertex AI.

Custom Models

Override default models in secrets.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

  1. Sign up at console.anthropic.com
  2. Navigate to API Keys
  3. Create a new API key
  4. Add it to your secrets.sh

Usage

Custom Models

Override default models in secrets.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:
Or provide the full URL:

Authentication Methods

2. Azure Default Credentials

Usage

Custom Models

Azure model names are deployment names (user-defined). Override in secrets.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

  1. Visit vercel.com/dashboard/~/ai
  2. Create a new AI Gateway token
  3. Add it to your secrets.sh

Usage with Claude Models

Vercel slugs use the 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 in secrets.sh:
Automatic small/fast model: When you use --model with a non-Anthropic model (e.g., xai/grok-code-fast-1), the background model is automatically set to the same model. This avoids mixing providers (e.g., xAI for main work + Anthropic for background). For Anthropic models on Vercel, the background model defaults to Haiku as usual.

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.
Claude Pro has rate limits. When you hit a limit, switch to an API provider with --resume to continue your work.

Provider Comparison

Next Steps

Provider Overview

Learn about the provider system

Switching Providers

Switch providers to avoid rate limits