# Use default tier (Opus)ai --aws# Use specific tierai --aws --opus task.mdai --aws --sonnet task.mdai --aws --haiku quick-fix.md
--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.
# Use default tier (Opus)ai --vertex# Use specific tierai --vertex --opus task.mdai --vertex --sonnet task.mdai --vertex --haiku quick-fix.md
--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.
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.
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:
When using non-Anthropic models, configure defaults in secrets.sh:
# Use a non-Anthropic model as default for Vercelexport CLAUDE_MODEL_SONNET_VERCEL="xai/grok-code-fast-1"# Set a specific background/small-fast modelexport CLAUDE_SMALL_FAST_MODEL_VERCEL="xai/grok-code-fast-1"# Fable 5 (--fable/--best) slug; override if Vercel's catalog differsexport CLAUDE_MODEL_FABLE_VERCEL="anthropic/claude-fable-5"
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.
# Use default tier (Opus)ai --pro# Use specific tierai --pro --opus task.mdai --pro --sonnet task.mdai --pro --haiku quick-fix.md
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.