Anthropic · Checked October 13, 2026

How do I run Claude Sonnet 5.5 in Claude Code, OpenCode or Codex?

Use a Standard Compute key with the model ID anthropic/claude-sonnet-5.5: Sonnet 5.5 is on every monthly plan from $19, a fixed compute budget where new requests get HTTP 402 at 100%. The same key works in Claude Code, OpenCode and Codex.

ModelAnthropic's mid-tier Claude 5.5 model, described by Anthropic as its best combination of speed and intelligence, with adaptive thinking.
Model IDanthropic/claude-sonnet-5.5Short form claude-sonnet-5.5 also works
Base URLhttps://api.stdcmpt.com/v1Claude Code uses https://api.stdcmpt.com
Context1M tokens at Anthropic, with 128K max outputA request here takes up to about 850K input and 50K output tokens
InputText, images and files
Reasoninglow, medium, high, xhigh or max, set per model on the Models page

Copy a working config

Pick your agent and paste the config. In Claude Code, use the full ID: Claude Code's own sonnet shortcut means smart routing on Standard Compute.

terminal/v1/messages
# Install the Standard Compute launcher once
curl -fsSL https://standardcompute.com/cli/install.sh | sh

# Start Claude Code on your key, pinned to anthropic/claude-sonnet-5.5
standardcompute launch claude -- --model anthropic/claude-sonnet-5.5

# Or configure it yourself. No /v1 here: Claude Code adds /v1/messages.
export ANTHROPIC_BASE_URL=https://api.stdcmpt.com
export ANTHROPIC_AUTH_TOKEN=YOUR_API_KEY
export ANTHROPIC_MODEL=anthropic/claude-sonnet-5.5
# Set every slot: Claude Code's own claude-*-5-5 names return model_not_found
export ANTHROPIC_DEFAULT_OPUS_MODEL=anthropic/claude-sonnet-5.5
export ANTHROPIC_DEFAULT_SONNET_MODEL=anthropic/claude-sonnet-5.5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=anthropic/claude-sonnet-5.5
claude

Replace YOUR_API_KEY with a key from the dashboard. This config reads your key from STANDARDCOMPUTE_API_KEY; export it with a key from the dashboard. Full setup: Claude Code, OpenCode, Codex CLI.

What it costs

Per 1M tokensSonnet 5.5Sonnet 5
Input$2.00$2.00
Cache hit$0.10$0.20
5-minute cache write$2.50$2.50
Output$10.00$10.00

Anthropic standard API rates. Source: Anthropic API pricing, checked October 13, 2026.

A 90K-token Claude Code turn on Sonnet 5.5
11,700 fresh input × $2.00/M$0.0234
78,300 cache hits × $0.10/M$0.0078
700 output × $10.00/M$0.0070
One turn$0.0382

Averages from coding-agent traffic on our gateway, Sep 13 to Oct 12, 2026: 87% of prompt tokens are cache hits and a turn returns about 700 tokens. Vendor list prices.

Agents mostly re-read a cached prompt, so the halved cache rate is where Sonnet 5.5 saves against Sonnet 5. The $19 Starter plan's $19 budget covers roughly 500 turns like this one.

What works differently here

  • Typing /model sonnet in Claude Code does not select Sonnet 5.5. Claude Code's short names (sonnet, opus, haiku) are treated as smart routing so old setups keep working. Use anthropic/claude-sonnet-5.5 to pin it.
  • Adding Sonnet 5.5 to the catalog did not change anyone's saved selection. If your Models page holds Sonnet 5, routed requests keep going to Sonnet 5 until you swap it.
  • The Messages endpoint ignores Claude Code's thinking setting and returns no thinking blocks; set the reasoning level under Customize on the Models page. A plan here is not a Claude Pro or Max subscription.

Other ways to run Claude Sonnet 5.5

Anthropic APIPay per tokenFirst-party, pay per token. Batch requests are 50% off and prompt caching is yours to set up.
Claude Pro / MaxSubscriptionClaude Code's native login. Usage runs in session and weekly limits rather than a token bill.
Bedrock / Vertex / FoundryPay per tokenCloud billing for procurement teams. On Bedrock the ID is anthropic.claude-sonnet-5-5.
Standard ComputeMonthly planOne key for Claude Code, Codex and OpenCode, drawing on a monthly compute budget.

FAQ

Why does /model sonnet not give me Sonnet 5.5?

On the Messages API, the names sonnet, opus and haiku (and older dated Claude IDs) mean smart routing, so existing Claude Code installs keep working. Pin Sonnet 5.5 with its full ID.

Sonnet 5 or Sonnet 5.5?

On Anthropic's list Sonnet 5.5 is never more expensive: input, output and cache writes cost the same, and cache hits cost half. For a cache-heavy coding agent that makes Sonnet 5.5 the more efficient default.

Sonnet 5.5 or Opus 5.5 for Claude Code?

Sonnet 5.5 for most sessions: Opus 5.5 costs twice as much per token ($4 / $20). Select both on the Models page and keep the model on standardcompute if you want hard requests to reach Opus automatically.

Sources: Anthropic API pricing; Anthropic models overview

Create your key

Sign in, create a key in the dashboard and paste it into the config above.

Get your API key