346 pages for sonnet.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Configure your agent
Claude Code CLI · in the page
agent-sdk/configuration
…mmarize the open TODOs in this repo", options: { model: "claude-sonnet-5", allowedTools: ["Read", "Glob", "Grep"], maxTurns: 8, cwd: "/path/to/repo", }, })) { if (message.type ==…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…del` | No | Model override for this agent. Accepts an alias such as `"sonnet"`, `"opus"`, `"haiku"`, or `"inherit"`, or a full model ID. When you omit it, Claude Code picks the model in the [subagent…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…rrides the default model for this subagent model="sonnet", ), "test-runner": AgentDefinition( description="Runs and analyzes tes…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…lowing tools are available by default only on Claude Opus 4.7, Claude Sonnet 4.6, Claude Haiku 4.5, and earlier models. On every other model, including model IDs Claude Code doesn't recognize, they ar…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…Platform, the SDK decides by model generation: * **Claude Opus 4.5, Sonnet 4.5, Haiku 4.5, and later**: tool search is on by default. * **Earlier Agent Platform models**: the SDK loads tool definiti…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…rride for this agent. Accepts an alias such as `'fable'`, `'opus'`, `'sonnet'`, `'haiku'`, `'inherit'`, or a full model ID. `'inherit'` uses the main model. When you omit it, Claude Code picks the mod…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…e={null} Spawn 4 teammates to refactor these modules in parallel. Use Sonnet for each teammate. ``` Claude Code picks each teammate's model from the first of these that applies: 1. The model your sp…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…The following example dispatches one session on Opus and the next on Sonnet: ```text theme={null} /model opus refactor auth /model sonnet run the test suite ``` Each background session can run on a…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…access enabled * Access to desired Claude models (for example, Claude Sonnet 4.6) in Amazon Bedrock * AWS CLI installed and configured (optional - only needed if you don't have another mechanism for g…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…at people used to do with prompt wording. Claude Fable 5.2, Opus 5.5, Sonnet 5.5, and Haiku 5.5 default to `medium`, which is plenty for everyday feature work with a clear scope. The times you'd move…
Claude Code changelog
Claude Code CLI · in the page
changelog
…ges * Fixed `DISABLE_PROMPT_CACHING_OPUS` and `DISABLE_PROMPT_CACHING_SONNET` having no effect on `[1m]`, other-region and undated spellings of the default model * Fixed `/artifacts` and the Artifact…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…198 or later. | | 1M token context window | Available | Fable models, Sonnet 5 and later, and Opus 4.7 and later run with the 1M window by default; see [Extended context](https://code.claude.com/docs/…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…ier: 0.85 overrides: - upstream: bedrock-eu model: claude-sonnet-4-6 input: 3.30 output: 16.50 cache_read: 0.33 cache_write: 4.125 ``` | Field | Required | Descrip…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…- match: {} cli: {availableModels: [claude-opus-4-8, claude-sonnet-4-6], enforceAvailableModels: true} ``` Tell developers in a pinned team to start Claude Code with `--model platform-claud…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…, and `/rename`**: pass the value as an argument, for example `/model sonnet`, instead of opening the terminal picker or slider. The argument forms follow each command's [availability notes](https://c…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…IDs as the direct Claude API. The default aliases `fable`, `opus`, `sonnet`, and `haiku` resolve to Claude Code's built-in defaults for Claude Platform on AWS, which can lag the newest release. With…
Scan your codebase for vulnerabilities
Claude Code CLI · in the page
claude-security
…an. A few supporting steps, such as mapping the repository, use the [`sonnet` alias](https://code.claude.com/docs/en/model-config#model-aliases) instead. * **Provider**: scans run on a paid plan, with…
CLI reference
Claude Code CLI · in the page
cli-reference
…advisor.md) for this session with a model alias, `fable`, `opus`, or `sonnet`, or a full model ID. Takes precedence over the `advisorModel` setting for the session. `fable` requires [Fable access](htt…
Commands
Claude Code CLI · in the page
commands
…for guidance at key moments during a task. Accepts `fable`, `opus`, `sonnet`, or a full model ID. `fable` requires [Fable access](/docs/en/advisor#choose-an-advisor-model). Without an argument, opens…
Communications kit
Claude Code CLI · in the page
communications-kit
…n the same models as the Claude app, and you can switch mid-session. *Sonnet* is the workhorse default for everyday feature work, bugs, tests, and reviews. Reach for *Opus* on large refactors, gnarly…
Explore the context window
Claude Code CLI · in the page
context-window
…eed a larger window rather than a smaller conversation, Fable models, Sonnet 5 and later, Haiku 5.5, Opus 4.6 and later, and Sonnet 4.6 support a 1 million token context window. See [Extended context]…
Manage costs effectively
Claude Code CLI · in the page
costs
…changes: 0 lines added, 0 lines removed Usage by model: claude-sonnet-4-6: 1.2k input, 5.3k output, 940.0k cache read, 50.0k cache write ($0.55) ``` These totals reset when `/clear` starts a…
Desktop application
Claude Code CLI · in the page
desktop
…all users on the Anthropic API and requires Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a [Fable model](https://code.claude.com/docs/en/model-config.md#work-with-fable). Organization…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `ANTHROPIC_DEFAULT_SONNET_MODEL` | Model ID that the `sonnet` alias resolves to, and that `opusplan` uses when Plan Mode is no…
Error reference
Claude Code CLI · in the page
errors
…your weekly limit` / `You've hit your Opus limit` / `You've hit your Sonnet limit` | [Usage limits](#youve-hit-your-session-limit) | | `Usage credits required for 1M context` | [Usage limits](#usage-…
Speed up responses with fast mode
Claude Code CLI · in the page
fast-mode
…is supported on Fable 5.2, Opus 5.5, Opus 5, and Opus 4.8, but not on Sonnet, Haiku, or other models. For the models on Google Cloud's Agent Platform, see [Use fast mode on Agent Platform](#use-fast-m…
Feature availability
Claude Code CLI · in the page
feature-availability
…search isn't supported on models earlier than Claude Opus 4.5, Claude Sonnet 4.5, and Claude Haiku 4.5 * **Subagents**: when the main conversation runs Fable, the built-in [Explore subagent](https://c…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…md): ```yaml theme={null} claude_args: "--max-turns 5 --model claude-sonnet-5 --mcp-config /path/to/config.json" ``` Common arguments: * `--max-turns`: limit the number of conversation turns * `--m…
Use Claude Code GitHub Actions with cloud providers
Claude Code CLI · in the page
github-actions-cloud-providers
…bedrock: "true" > claude_args: '--model us.anthropic.claude-sonnet-4-6' > ``` > > > [!TIP] > > > > Bedrock model IDs include a cross-region inference profile prefix such as `us.`. Use the pr…
Claude Code GitLab CI/CD
Claude Code CLI · in the page
gitlab-ci-cd
…k include region-specific prefixes (for example, `us.anthropic.claude-sonnet-4-6`). Pass the desired model via your job configuration or prompt if your workflow supports it. ### Agent Platform job ex…
Glossary
Claude Code CLI · in the page
glossary
…eaper. Effort is supported on Fable models, on Opus 4.6 and later, on Sonnet 4.6 and later, and on Haiku 5.5. Learn more: [Adjust effort level](https://code.claude.com/docs/en/model-config.md#adjust-…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…rm API enabled * Access to desired Claude models (for example, Claude Sonnet 4.6) * Google Cloud SDK (`gcloud`) installed and configured * Quota allocated in desired GCP region To sign in with your o…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…`, and `/rename` accept the value as an argument, for example `/model sonnet`, and `/mcp` with no argument prints a text summary of server status. These forms follow each command's [availability notes…
Hooks reference
Claude Code CLI · in the page
hooks
…Explore"` | Type of specialized agent to use | | `model` | string | `"sonnet"` | Optional model alias to override the default | When a foreground Agent call completes, your [PostToolUse hook](#postto…
How Claude Code works
Claude Code CLI · in the page
how-claude-code-works
….com/docs/en/model-config.md) are available with different tradeoffs. Sonnet handles most coding tasks well. Opus provides stronger reasoning for complex architectural decisions. Switch with `/model`…
Interactive mode
Claude Code CLI · in the page
interactive-mode
…Enable or disable extended thinking mode. Has no effect on Opus 5.5, Sonnet 5.5, Haiku 5.5, or the Fable models, which always use extended thinking. Works on macOS without configuring Option as Meta…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…\ > -H "content-type: application/json" \ > -d '{"model": "claude-sonnet-4-6", "max_tokens": 1, "messages": [{"role": "user", "content": "."}]}' > ``` > [tab] PowerShell > > ```powershell theme={…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…-usage) unless `ANTHROPIC_DEFAULT_HAIKU_MODEL` pins one | The default Sonnet model, or the main model once one is selected, as the [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md#4-…
Roll out an LLM gateway for your organization
Claude Code CLI · in the page
llm-gateway-rollout
…to an upstream model. Claude Code sends a model name such as `claude-sonnet-4-6` in each request; in most gateway products the mapping is a model list or routing table in the gateway's own configurat…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…E_TOOL_SEARCH=false` and a model earlier than Claude Opus 4.5, Claude Sonnet 4.5, and Claude Haiku 4.5 on Google Cloud's Agent Platform. For an `ANTHROPIC_BASE_URL` gateway, see [Tool search through a…
How Claude remembers your project
Claude Code CLI · in the page
memory
…1M context window**: 200,000 characters on Claude Opus 4.6 and Claude Sonnet 4.6, and 150,000 characters on later models 3. In Bash or Zsh, run `wc -m path/to/CLAUDE.md` to print your file's character…
Claude Code on Microsoft Foundry
Claude Code CLI · in the page
microsoft-foundry
…names as the model variables in step 4: * Claude Opus * Claude Sonnet * Claude Haiku When you configure a deployment, you also choose its [hosting option](https://platform.claude.com/doc…
Model configuration
Claude Code CLI · in the page
model-config
…e-alias-resolution) for your hardest and longest-running tasks | | **`sonnet`** | Uses the latest Sonnet model for daily coding tasks | | **`opus`** | Uses the latest Opus model for complex reasoning…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…l identifier for the model that made the change (for example, "claude-sonnet-5") #### Pull request counter Incremented when Claude Code creates a pull request or merge request through a shell comman…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…ude.com/docs/en/claude-platform-on-aws.md), Claude Opus 4.6 or later, Sonnet 4.6 or later, Haiku 5.5, or a [Fable model](https://code.claude.com/docs/en/model-config.md#work-with-fable). On Amazon Bed…
Test plugins with evals
Claude Code CLI · in the page
plugin-evals
…the model Claude Code uses for background tasks. Pass `--judge-model sonnet` or a full model ID to choose the judge yourself. #### Choose graders that give a stable signal An `llm` grader asks a mo…
Add components to a plugin
Claude Code CLI · in the page
plugins/components
…y issues. Use after edits to authentication or input handling. model: sonnet --- You are a security reviewer. Read the changed files and report injection, authentication, and secrets-handling risks.…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…, the cache stays intact by default on Fable 5.1 and later, Opus 5.5, Sonnet 5.5, and Haiku 5.5. See [Changing effort level](#changing-effort-level) below. > [!TIP] > > Pick your model and effort lev…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…r`, and `/rename`: pass the value as an argument, for example `/model sonnet` or `/effort high`. From mobile and web, `/model` and `/effort` take the argument in place of the terminal picker or slider…
Claude Code settings
Claude Code CLI · in the page
settings
…ocs/en/advisor). Accepts the model aliases `"fable"`, `"opus"`, and `"sonnet"`, or a full model ID. `"fable"` requires [Fable 5 access](/docs/en/advisor#choose-an-advisor-model). Written automatically…