Summary
Claude Code introduced "fast mode" — same Opus 4.6 model but with an API configuration that prioritizes speed over cost efficiency. It uses the service_tier parameter on the Anthropic Messages API.
Reference: https://code.claude.com/docs/en/fast-mode
Current SDK state
@anthropic-ai/sdk 0.74.0 (latest) supports service_tier?: "auto" | "standard_only" on request, and "standard" | "priority" | "batch" on response.
service_tier: "auto" opts into priority routing when available.
- pi-mono currently pins SDK 0.71.2,
package.json specifies ^0.73.0.
What to implement
packages/ai
- Upgrade
@anthropic-ai/sdk to latest (0.74.0+) to get current service_tier types.
- Add
serviceTier option to AnthropicOptions — pass through to the API as service_tier.
- Expose in
SimpleStreamOptions so callers can opt in without using provider-specific options.
- Surface
service_tier from response in usage/metadata events so callers know which tier was actually used.
packages/coding-agent
- Add
/fast slash command (or equivalent toggle) that sets service_tier: "auto" on the Anthropic provider.
- Persist fast mode across sessions (settings file).
- Show indicator in status line when fast mode is active.
- Auto-fallback: if rate-limited on priority tier, fall back to standard and indicate cooldown.
Pricing context (for docs/UI)
| Mode |
Input (MTok) |
Output (MTok) |
| Fast (<200K) |
$30 |
$150 |
| Fast (>200K) |
$60 |
$225 |
Fast mode is billed to extra usage even if plan usage remains. Only available via Anthropic API (not Bedrock/Vertex/Azure).
Notes
- The SDK input type may expand beyond
"auto" | "standard_only" in future versions. Watch for updates.
- Fast mode can be combined with effort level for maximum speed on simple tasks.
- Consider whether this should generalize to other providers that have similar tiering (e.g., OpenAI
service_tier).
Summary
Claude Code introduced "fast mode" — same Opus 4.6 model but with an API configuration that prioritizes speed over cost efficiency. It uses the
service_tierparameter on the Anthropic Messages API.Reference: https://code.claude.com/docs/en/fast-mode
Current SDK state
@anthropic-ai/sdk0.74.0 (latest) supportsservice_tier?: "auto" | "standard_only"on request, and"standard" | "priority" | "batch"on response.service_tier: "auto"opts into priority routing when available.package.jsonspecifies^0.73.0.What to implement
packages/ai
@anthropic-ai/sdkto latest (0.74.0+) to get currentservice_tiertypes.serviceTieroption toAnthropicOptions— pass through to the API asservice_tier.SimpleStreamOptionsso callers can opt in without using provider-specific options.service_tierfrom response in usage/metadata events so callers know which tier was actually used.packages/coding-agent
/fastslash command (or equivalent toggle) that setsservice_tier: "auto"on the Anthropic provider.Pricing context (for docs/UI)
Fast mode is billed to extra usage even if plan usage remains. Only available via Anthropic API (not Bedrock/Vertex/Azure).
Notes
"auto" | "standard_only"in future versions. Watch for updates.service_tier).