Search the documentation
22 pages for anthropic_model.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…values](/docs/en/settings-reference#env) in project settings, so an `ANTHROPIC_MODEL` or provider variable set there applies to background sessions in that directory. Cloud provider selection, such…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…del carries them: * When you select a primary model with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, background tasks use that model. When Claude Code starts the session on the model you se…
Claude Code changelog
Claude Code CLI · in the page
changelog
…/model` pick still overrides it and persists across restarts (unlike `ANTHROPIC_MODEL`) * Added `notify_when_idle` to cross-session `SendMessage`: ask another Claude Code session on this machine to…
CLI reference
Claude Code CLI · in the page
cli-reference
…rrides the [`model`](/docs/en/settings-reference#model) setting and [`ANTHROPIC_MODEL`](/docs/en/model-config#environment-variables)…
Desktop application
Claude Code CLI · in the page
desktop
…| | `ANTHROPIC_MODEL` env var | Model dropdown next to the send button…
Environment variables
Claude Code CLI · in the page
env-vars
…ings key, and which one Claude Code reads first differs per key. For `ANTHROPIC_MODEL` and `CLAUDE_CODE_AUTO_CONNECT_IDE`, Claude Code reads the variable first and uses the `model` or `autoConnectIde`…
Error reference
Claude Code CLI · in the page
errors
…tive mode (`-p`)**: pass `--model` with a valid alias or ID, or set [`ANTHROPIC_MODEL`](/docs/en/env-vars). The error text shows `Run --model` on this surface. * **Agent SDK**: the error text omits th…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…del carries them: * When you select a primary model with `--model`, `ANTHROPIC_MODEL`, or the `model` setting, background tasks use that model. When Claude Code starts the session on the model you se…
Hooks reference
Claude Code CLI · in the page
hooks
…ble. A hook process inherits the parent environment, so it can read `$ANTHROPIC_MODEL` if you set it in your shell, but that value doesn't change when you switch models with `/model` during a session.…
Roll out an LLM gateway for your organization
Claude Code CLI · in the page
llm-gateway-rollout
…he two variables matches your configuration | | `ANTHROPIC_MODEL` or [`ANTHROPIC_DEFAULT_HAIKU_MODEL`](/docs/en/model-config)…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…session**: a managed `model` is a default, not a lock. `--model` and `ANTHROPIC_MODEL` still pick the model for that session, so deploy [`availableModels`](/docs/en/settings-reference#availablemodels)…
Model configuration
Claude Code CLI · in the page
model-config
…with `claude --model <alias|name>` 3. **Environment variable**: set `ANTHROPIC_MODEL=<alias|name>` 4. **Settings**: configure permanently in your settings file using the `model` field 5. **[Default f…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…and command toggles * Model selection and behavior settings, such as `ANTHROPIC_MODEL`, `DISABLE_PROMPT_CACHING`, and `CLAUDE_CODE_EFFORT_LEVEL` * Context window and compaction settings, such as `DISA…
Manage sessions
Claude Code CLI · in the page
sessions
…ired or isn't allowed by `availableModels`, when a `--model` flag or `ANTHROPIC_MODEL`-family environment variable picks one at launch, or on providers that use provider-specific deployment IDs, such…
Claude Code settings
Claude Code CLI · in the page
settings
…| Override the default model to use for Claude Code. `--model` and [`ANTHROPIC_MODEL`](/docs/en/model-config#environment-variables) override this for one session…
Claude Code settings reference
Claude Code CLI · in the page
settings-reference
…model * **Per-session overrides**: `--model` takes precedence over [`ANTHROPIC_MODEL`](/docs/en/env-vars), and both take precedence over this key for one session, including over a managed `model`; an…
Build an MCP client
Model Context Protocol · in the page
docs/2024-11-05/develop/build-client
…load" require "json" require "mcp" class MCPClient ANTHROPIC_MODEL = "claude-sonnet-4-20250514" def initialize @mcp_client = nil @transport = nil @ant…
Build an MCP client
Model Context Protocol · in the page
docs/2025-03-26/develop/build-client
…load" require "json" require "mcp" class MCPClient ANTHROPIC_MODEL = "claude-sonnet-4-20250514" def initialize @mcp_client = nil @transport = nil @ant…
Build an MCP client
Model Context Protocol · in the page
docs/2025-06-18/develop/build-client
…load" require "json" require "mcp" class MCPClient ANTHROPIC_MODEL = "claude-sonnet-4-20250514" def initialize @mcp_client = nil @transport = nil @ant…
Build an MCP client
Model Context Protocol · in the page
docs/2025-11-25/develop/build-client
…load" require "json" require "mcp" class MCPClient ANTHROPIC_MODEL = "claude-sonnet-4-20250514" def initialize @mcp_client = nil @transport = nil @ant…
Build an MCP client
Model Context Protocol · in the page
docs/2026-07-28/develop/build-client
…load" require "json" require "mcp" class MCPClient ANTHROPIC_MODEL = "claude-opus-5" def initialize @mcp_client = nil @transport = nil @anthropic_clie…
Build an MCP client
Model Context Protocol · in the page
docs/draft/develop/build-client
…load" require "json" require "mcp" class MCPClient ANTHROPIC_MODEL = "claude-opus-5" def initialize @mcp_client = nil @transport = nil @anthropic_clie…