1,296 pages for type.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Modifying system prompts
Claude Code CLI · in the page
agent-sdk/modifying-system-prompts
…for it: * **Minimal default**: when you don't set `systemPrompt` in TypeScript or `system_prompt` in Python, the SDK uses a minimal prompt that covers tool calling but omits the rest of the `claude_…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…the variables in `ClaudeAgentOptions.env` (Python) or `options.env` (TypeScript). Use this when different agents in the same process need different telemetry settings. In Python, `env` is merged on t…
Agent SDK overview
Claude Code CLI · in the page
agent-sdk/overview
…context management that power Claude Code, programmable in Python and TypeScript. ## Compare the Agent SDK to other Claude tools The Agent SDK, the CLI, the Client SDK, and Managed Agents differ in…
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…ocs/en/permissions.md#precedence-among-rules-hooks-and-mods). In the TypeScript SDK, if you set [`permissionPrompts: 'none'`](/docs/en/agent-sdk/typescript#options), your callback isn't called at thi…
Plugins in the SDK
Claude Code CLI · in the page
agent-sdk/plugins
…ing their local file system paths in your options configuration. The `type` field must be `"local"`, the only value the SDK accepts. The SDK supports loading multiple plugins from different locations.…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…lete API reference for the Python Agent SDK, including all functions, types, and classes. ## Installation Install the package into a virtual environment. On recent Debian, Ubuntu, and Homebrew Pytho…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
# Quickstart > Get started with the Python or TypeScript Agent SDK to build AI agents that work autonomously Use the Agent SDK to build an AI agent that reads your code, finds bugs, and fixes them,…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…t entries during a query and `load` to read them back for resume. ```typescript TypeScript theme={null} // Exported from @anthropic-ai/claude-agent-sdk as // SessionStore, SessionKey, SessionStoreEnt…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…hat in one process | [`ClaudeSDKClient` (Python) or `continue: true` (TypeScript)](#automatic-session-management). The SDK tracks the session for you with no ID handling. | | Pick up where you left of…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…ds skills from the filesystem locations governed by `settingSources` (TypeScript) or `setting_sources` (Python) * **Automatically discovered**: once filesystem settings load, the SDK discovers skill m…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…set `include_partial_messages` (Python) or `includePartialMessages` (TypeScript) to `true` in your options. This causes the SDK to yield `StreamEvent` messages containing raw API events as they arriv…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…e there first, or change the filename to point at your own image. ```typescript TypeScript theme={null} import { query, type SDKUserMessage } from "@anthropic-ai/claude-agent-sdk"; import { readFile…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…ed JSON from agent workflows using JSON Schema, Zod, or Pydantic. Get type-safe, structured data after multi-turn tool use. Structured outputs let you define the exact shape of data you want back fro…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…lly**: use the `agents` parameter in your `query()` options. See the [TypeScript](/docs/en/agent-sdk/typescript.md#agentdefinition) and [Python](/docs/en/agent-sdk/python.md#agentdefinition) reference…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…This default set applies in Claude Code v2.1.268 and later, which the TypeScript Agent SDK bundles from v0.3.268. On a model that doesn't have the tools by default, unless you opt a session in, you s…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…anges that count. Set the value in the `env` option on `query()`. In TypeScript, `env` replaces the subprocess environment, so spread `...process.env` to keep inherited variables. In Python, `env` is…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…an IDE or a service manager, often run with a different `PATH`. The TypeScript SDK looks for the CLI in its bundled platform package and the path you set in `pathToClaudeCodeExecutable`. Match the m…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…from the persisted session. This guide shows you how to detect each type of request and respond appropriately. ## Detect when Claude needs input Pass a `canUseTool` callback in your query options.…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…the agent panel to select a teammate, then press Enter to view it and type to message it directly. Works in any terminal, no extra setup required. * **Split panes**: each teammate gets its own pane. Y…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…appear the next time you open agent view. **2. Dispatch a session** Type a prompt describing a task and press `Enter`. A new background session starts on that task and appears as a row showing wheth…
Run agents in parallel
Claude Code CLI · in the page
agents
…e current session, named background subagents appear in the @-mention typeahead with their status. The `/agents` command prints a notice pointing to the subagent file locations. To [create and edit cu…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…mand menu](/docs/en/commands.md#how-the-command-menu-matches-what-you-type); type it in full. **3. Follow the wizard prompts** Choose how you authenticate to AWS: an AWS profile detected from your `…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…s there the next time Claude publishes the artifact from a prompt you type at the terminal Claude picks the artifact's title and a browser-tab icon that matches what the page is, such as a chart or a…
Authentication
Claude Code CLI · in the page
authentication
…`Enter` to continue. You can authenticate with any of these account types: * **Claude Pro or Max subscription**: log in with your claude.ai account. Subscribe at [claude.com/pricing](https://claude…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…hen possible (eg. import { foo } from 'bar') # Workflow - Be sure to typecheck when you're done making a series of code changes - Prefer running single tests, and not the whole test suite, for perfor…
Claude Code changelog
Claude Code CLI · in the page
changelog
…s/claude-code/blob/main/CHANGELOG.md). Longer releases are grouped by type of change, with long lists of improvements and bug fixes collapsed. Run `claude --version` to check your installed version.…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…service to configure. Once you install and enable fakechat, you can type in the browser and the message arrives in your Claude Code session. Claude replies, and the reply shows up back in the browse…
Channels reference
Claude Code CLI · in the page
channels-reference
…[Bun](https://bun.sh) as the runtime for its built-in HTTP server and TypeScript support. You can use [Node](https://nodejs.org) or [Deno](https://deno.com) instead; the only requirement is the [MCP S…
Checkpointing
Claude Code CLI · in the page
checkpointing
…focuses on, highlight a **Summarize** option with the arrow keys and type instructions where the row reads **add context (optional)**, then press `Enter`. Selecting the option with its number key sum…
Use Claude Code with Chrome
Claude Code CLI · in the page
chrome
…that group when the session ends depends on how it ends: * When you type `/clear`, Claude Code closes the group, open pages included, unless work that survives the clear is still running * When you…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…/device_authorization", "token_endpoint": "…/oauth/token", "grant_types_supported": ["urn:ietf:params:oauth:grant-type:device_code", "refresh_token"] } ``` The response includes additional fields…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…is the override mechanism for IdP-specific behavior, such as `access_type: offline` for Google refresh tokens, `domain_hint` for some Entra tenants, or `acr_values` for step-up flows. Cannot override…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…opes: [openid, profile, email]` and `oidc.extra_auth_params: { access_type: offline, prompt: consent }`. > [!WARNING] > > Refresh tokens let the gateway renew a developer's session silently, without…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…ont with a target group that health-checks the gateway. `--ip-address-type ipv4` matters: an internal dual-stack ALB publishes public-range AAAA records, which the `/login` private-network check rejec…
Deploy Claude apps gateway on Google Cloud
Claude Code CLI · in the page
claude-apps-gateway-on-gcp
…ens: scopes: [openid, profile, email] extra_auth_params: { access_type: offline, prompt: consent } session: jwt_secret: ${GATEWAY_JWT_SECRET} # GKE: ${file:/secrets/jwt-secret} st…
Claude apps gateway spend limits
Claude Code CLI · in the page
claude-apps-gateway-spend-limits
…d_limits \ -H "x-api-key: $GATEWAY_ADMIN_WRITE_KEY" \ -H "Content-Type: application/json" \ -d '{"scope": {"type": "organization"}, "amount": "50000", "period": "monthly"}' ``` This request lay…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…/docs/en/cloud-environments.md#setup-scripts). It queues messages you type during provisioning and sends them once the session is ready. > [!NOTE] > > `--cloud` creates cloud sessions. `--remote-cont…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…dren: [{ id: 'claude-md', label: 'CLAUDE.md', type: 'file', icon: 'md', color: '#6A9BCC', badge: 'committed', oneLiner: 'Project instructions Cl…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…ither `ANTHROPIC_AWS_API_KEY` or AWS credentials before the call. ```typescript theme={null} import { query } from "@anthropic-ai/claude-agent-sdk"; process.env.CLAUDE_CODE_USE_ANTHROPIC_AWS = "1";…
claude-tag
Claude Code CLI · in the page
claude-tag
<!DOCTYPE html><html lang="en" class="inter_1d81deff-module__CYM0aG__variable papermono_89c757f2-module__6aS5zq__variable dark" data-banner-state="visible" data-assistant-state="closed" data-page-mode…
CLI reference
Claude Code CLI · in the page
cli-reference
…| `claude -c -p "Check for type errors"` | | `claude -r "<session>" "query"` | Resume session by ID or name…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…](#add-a-secret-without-the-role) that takes one host * **Environment type**: an Anthropic-hosted cloud environment that already exists. A [self-hosted environment](/docs/en/self-hosted-environments)…
Code Review
Claude Code CLI · in the page
code-review
…ration targets production code; a docs repo, a config repo, or a prototype might want a much narrower definition. State explicitly which classes of finding are Important and which are Nit at most. You…
Customize Code Review
Claude Code CLI · in the page
code-review-customize
…## Do not report - Anything CI already enforces: lint, formatting, type errors - Generated files under `src/gen/` and any `*.lock` file - Test-only code that intentionally violates production rules…
Review locally with /code-review
Claude Code CLI · in the page
code-review-local
…th, and have Claude apply the fixes. `/code-review` is a command you type at the Claude Code prompt, in the session where you're working. Claude reviews the changes on your branch, looks for correctn…
Commands
Claude Code CLI · in the page
commands
…models, manage permissions, clear context, run a workflow, and more. Type `/` to see the commands available to you, or type `/` followed by letters to filter. [How the command menu matches what you t…
Common workflows
Claude Code CLI · in the page
common-workflows
…> [!TIP] > > Tips: > > * File paths can be relative or absolute > * Type `@` to open a path suggestion menu, then press Enter or Tab to accept the highlighted path and Enter again to send the messag…
Communications kit
Claude Code CLI · in the page
communications-kit
…ed biology content on Opus 5 or Sonnet 5.5 is refused. *Try it now:* type `/model` and pick Sonnet if you haven't already. It is the right default for most tasks. 📖 Model configuration → https://cod…
Let Claude use your computer from the CLI
Claude Code CLI · in the page
computer-use
…e computer use in the Claude Code CLI so Claude can open apps, click, type, and see your screen on macOS. Test native apps, debug visual issues, and automate GUI-only tools without leaving your termin…
Explore the context window
Claude Code CLI · in the page
context-window
…: '#8A8880' }, user: { badge: 'you', detail: 'You typed this', badgeBg: 'rgba(85,138,66,0.15)', badgeColor: '#6BA656' }, claude: { badge: 'claude',…