1,300 pages for code.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Configure permissions
Claude Code CLI · in the page
agent-sdk/permissions
…ow` also can't approve an `rm` or `rmdir` command whose target Claude Code recognizes as a [critical path](/docs/en/permission-modes.md#critical-paths), such as `rm -rf ~`. For what that `allow` does…
Plugins in the SDK
Claude Code CLI · in the page
agent-sdk/plugins
# Plugins in the SDK > Load custom plugins to extend Claude Code with skills, agents, hooks, and MCP servers through the Agent SDK Plugins let you extend Claude Code with custom functionality that c…
Agent SDK reference - Python
Claude Code CLI · in the page
agent-sdk/python
…eSDKClient` The Python SDK provides two ways to interact with Claude Code: | Feature | `query()` | `ClaudeSDKClient` | | :- | :- | :- | | **Session** | Creates a new session by default | Reuses same…
Quickstart
Claude Code CLI · in the page
agent-sdk/quickstart
…autonomously Use the Agent SDK to build an AI agent that reads your code, finds bugs, and fixes them, all without manual intervention. **What you'll do:** 1. Set up a project with the Agent SDK 2.…
Securely deploying AI agents
Claude Code CLI · in the page
agent-sdk/secure-deployment
# Securely deploying AI agents > A guide to securing Claude Code and Agent SDK deployments with isolation, credential management, and network controls Claude Code and the Agent SDK can execute code,…
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…decar file rather than the main conversation. Because `projectKey` encodes the working directory, resume or continue from the store from a working directory matching the original run's. In TypeScript…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…only in memory for the duration of the call. In Python, set [`CLAUDE_CODE_SKIP_PROMPT_HISTORY`](/docs/en/env-vars) in the `env` option to suppress transcript writes instead. | ### Continue, resume,…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…dd_dirs` (Python), because the SDK passes those directories to Claude Code as [`--add-dir`](/docs/en/skills#skills-from-additional-directories). If you set `settingSources` explicitly, include `'proje…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…n addition to the usual `AssistantMessage` and `ResultMessage`. Your code then needs to: 1. Check each message's type to distinguish `StreamEvent` from other message types 2. For `StreamEvent`, extr…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…ser", message: { role: "user", content: "Analyze this codebase for security issues" }, parent_tool_use_id: null }; // Wait for conditions or user input await new Promise…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…se the response into a fully-typed object you can use throughout your codebase with autocomplete and type checking. The example below defines a schema for a feature implementation plan with a summary…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…time of the slowest one rather than the sum of all of them. During a code review, you can run `style-checker`, `security-scanner`, and `test-coverage` subagents simultaneously instead of sequentially…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…ude's progress in your application from structured tool calls Claude Code provides the [task-tracking tools](/docs/en/tools-reference.md#task-tool-availability) by default only on the models listed u…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…beta header. `ENABLE_TOOL_SEARCH` can't override this. Before Claude Code v2.1.221, the SDK disabled tool search for all models on Google Cloud's Agent Platform unless you set `ENABLE_TOOL_SEARCH`.…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
# Troubleshoot the Agent SDK > Fix Agent SDK errors when the Claude Code CLI fails to start, the CLI process exits, or a successful result arrives without structured output. This page covers Agent S…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…i/claude-agent-sdk ``` > [!NOTE] > > The SDK bundles a native Claude Code binary for your platform as an optional dependency such as `@anthropic-ai/claude-agent-sdk-darwin-arm64`. Most installs need…
TypeScript SDK V2 session API (removed)
Claude Code CLI · in the page
agent-sdk/typescript-v2-preview
…inue a saved session. This page is kept for reference if you maintain code on Agent SDK 0.2.x or earlier. V2 was an experimental session API that removed the need for async generators and yield coord…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…has approved. In some configurations, such as `dontAsk` mode, Claude Code doesn't call it; the last step of [How permissions are evaluated](/docs/en/agent-sdk/permissions.md#how-permissions-are-evalu…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…ge multiple agents with agent view > Dispatch and manage many Claude Code sessions from one screen. Agent view shows what every session is doing and which ones need your input. Agent view, opened wi…
Run agents in parallel
Claude Code CLI · in the page
agents
# Run agents in parallel > Compare the ways Claude Code can take on multiple tasks at once: subagents, agent view, agent teams, dynamic workflows, and projects. Claude Code has five ways to work on…
Track team usage with analytics
Claude Code CLI · in the page
analytics
# Track team usage with analytics > View Claude Code usage metrics, track adoption, and measure engineering velocity in the analytics dashboard. Claude Code provides analytics dashboards to help org…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
# Share session output as artifacts > Artifacts turn Claude Code's work into live, interactive pages on claude.ai that you can keep private, share with your organization, or publish to a public link.…
Authentication
Claude Code CLI · in the page
authentication
# Authentication > Log in to Claude Code and configure authentication for individuals, teams, and organizations. Claude Code supports multiple authentication methods depending on your setup. Individ…
Auto mode classifier request charges
Claude Code CLI · in the page
auto-mode-classifier-billing
# Auto mode classifier request charges > Resolve the Claude Code notice saying this session isn't eligible for auto mode's no-charge classifier requests: what it means, why it appears, and what to do…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…/en/permission-modes.md#eliminate-prompts-with-auto-mode) lets Claude Code run without routine permission prompts by routing tool calls through a classifier that blocks anything irreversible, destruct…
Champion kit
Claude Code CLI · in the page
champion-kit
# Champion kit > A playbook for engineers advocating Claude Code internally: what to share, how to answer questions, and how to grow adoption on your team. This page is for individual engineers who…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…Use channels to push messages, alerts, and webhooks into your Claude Code session from an MCP server. Forward CI results, chat messages, and monitoring events so Claude can react while you're away.…
Channels reference
Claude Code CLI · in the page
channels-reference
…server that pushes webhooks, alerts, and chat messages into a Claude Code session. Reference for the channel contract: capability declaration, notification events, reply tools, sender gating, and per…
Checkpointing
Claude Code CLI · in the page
checkpointing
…rize Claude's edits and conversation to manage session state. Claude Code automatically tracks Claude's file edits as you work, allowing you to quickly undo changes and rewind to previous states if a…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…de Platform on AWS, Google Cloud, and Microsoft Foundry > Run Claude Code through Amazon Bedrock, Claude Platform on AWS, Google Cloud, or Microsoft Foundry behind a self-hosted gateway with SSO sign…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…s start failing at `token_endpoint` after you set it. Requires Claude Code v2.1.260 or later on the gateway server. | | `extra_auth_params` | No | Extra query parameters appended to the IdP authorizat…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…[!NOTE] > > **Plan your gateway's network first.** At sign-in, Claude Code refuses a Claude apps gateway whose hostname resolves to a public IP address, even one the internet can't reach. > > A Claude…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…ed. ## Architecture  and don't have existing projects in claude.ai chat or Cowork. Projects aren't offered on Team or Enterprise pl…
claude-tag
Claude Code CLI · in the page
claude-tag
…ngth;i++){var n=st[i].name,d=st[i].description;if(!d)continue;try{d=decodeURIComponent(d)}catch(x){} if(n==="country")g.country=d;else if(n==="region")g.region=d;else if(n==="continent")g.continent=d;…
CLI reference
Claude Code CLI · in the page
cli-reference
# CLI reference > Complete reference for Claude Code command-line interface, including commands and flags. ## CLI commands You can start sessions, pipe content, resume conversations, and manage upd…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…nfigure cloud environments > Configure cloud environments for Claude Code cloud sessions: network access levels, environment variables, setup scripts, and environment caching. > [!NOTE] > > Cloud en…
Commands
Claude Code CLI · in the page
commands
# Commands > Complete reference for commands available in Claude Code, including built-in commands and bundled skills. Commands control Claude Code from inside a session. They provide a quick way to…
Common workflows
Claude Code CLI · in the page
common-workflows
# Common workflows > Step-by-step guides for exploring codebases, fixing bugs, refactoring, testing, and other everyday tasks with Claude Code. This page collects short recipes for everyday developm…
Communications kit
Claude Code CLI · in the page
communications-kit
…cements, drip-campaign messages, and FAQ responses for rolling Claude Code out to your engineering organization. This page is for administrators and engineering leads rolling Claude Code out to a tea…
Let Claude use your computer from the CLI
Claude Code CLI · in the page
computer-use
…e use your computer from the CLI > Enable 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 G…
Explore the context window
Claude Code CLI · in the page
context-window
…Explore the context window > An interactive simulation of how Claude Code's context window fills during a session. See what loads automatically, what each file read costs, and when rules and hooks fi…
Manage costs effectively
Claude Code CLI · in the page
costs
…tively > Track token usage, set team spend limits, and reduce Claude Code costs with context management, model selection, extended thinking settings, and preprocessing hooks. Claude Code charges by…
Data usage
Claude Code CLI · in the page
data-usage
…d Max accounts when this setting is on (including when you use Claude Code from these accounts). **Commercial users**: (Team and Enterprise plans, API, 3rd-party platforms, and Claude Gov) maintain e…
Debug your configuration
Claude Code CLI · in the page
debug-your-config
…another file overrode it. This guide shows how to inspect what Claude Code actually loaded so you can narrow down which applies. For installation, authentication, and connectivity problems, see [Trou…
Launch sessions from links
Claude Code CLI · in the page
deep-links
# Launch sessions from links > Open a Claude Code terminal session from a URL. Embed `claude-cli://` links in runbooks, alerts, and dashboards so a click opens Claude Code in the right repo with the…
Desktop application
Claude Code CLI · in the page
desktop
# Desktop application > Get more out of Claude Code Desktop: parallel sessions with Git isolation, drag-and-drop pane layout, integrated terminal and file editor, side chats, computer use, Dispatch s…