1,054 pages for script.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…Persist sessions to external storage > Mirror Agent SDK session transcripts to your own object store, key-value store, or database so other hosts can resume your sessions. By default, the SDK write…
Work with sessions
Claude Code CLI · in the page
agent-sdk/sessions
…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 off af…
Extend agents with skills
Claude Code CLI · in the page
agent-sdk/skills
…t. Skills are packaged as `SKILL.md` files containing instructions, descriptions, and optional supporting resources. This page also covers [commands in Agent SDK sessions](#commands-in-agent-sdk-sessi…
Stream responses in real-time
Claude Code CLI · in the page
agent-sdk/streaming-output
…`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 arrive, i…
Streaming Input
Claude Code CLI · in the page
agent-sdk/streaming-vs-single-mode
…ere 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 } fr…
Get structured output from agents
Claude Code CLI · in the page
agent-sdk/structured-outputs
…type safety, use [Zod](#type-safe-schemas-with-zod-and-pydantic) (TypeScript) or [Pydantic](#type-safe-schemas-with-zod-and-pydantic) (Python) to define your schema and get strongly typed objects back…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…*: 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) references *…
Track todos
Claude Code CLI · in the page
agent-sdk/todo-tracking
…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 see n…
Scale to many tools with tool search
Claude Code CLI · in the page
agent-sdk/tool-search
…s 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 mer…
Troubleshoot the Agent SDK
Claude Code CLI · in the page
agent-sdk/troubleshooting
…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 messa…
Handle approvals and user input
Claude Code CLI · in the page
agent-sdk/user-input
…ns = ClaudeAgentOptions(can_use_tool=handle_tool_request) ``` ```typescript TypeScript theme={null} import type { CanUseTool } from "@anthropic-ai/claude-agent-sdk"; const handleToolRequest: CanUseT…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…ws**: select a teammate * **Enter**: open the selected teammate's transcript and message it directly * **Escape**: clear the selection. While you're viewing a teammate's transcript, Escape interrupts…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…sions, watch their state at a glance instead of scrolling through transcripts, and step in only when one needs you. Each background session is a full Claude Code conversation that keeps running withou…
Run agents in parallel
Claude Code CLI · in the page
agents
…track each session | | [Dynamic workflows](/docs/en/workflows.md) | A script that runs many subagents and cross-checks their results, for work too big to coordinate one turn at a time or that needs mo…
Claude Code on Amazon Bedrock
Claude Code CLI · in the page
amazon-bedrock
…h environment variables instead of the wizard, for example in CI or a scripted enterprise rollout, follow the steps below. ### 1. Submit use case details Before you invoke an Anthropic model for the…
Share session output as artifacts
Claude Code CLI · in the page
artifacts
…ntrol. Viewers can't save a file from an ordinary download link or a script on the page, because the artifact viewer on claude.ai blocks any download the page starts itself, including links to `data:…
Authentication
Claude Code CLI · in the page
authentication
…thenticate 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.com/pricing?utm_source=claude_co…
Configure auto mode
Claude Code CLI · in the page
auto-mode-config
…e.allow`: exceptions to soft block rules Each is an array of prose descriptions, read as natural-language rules. For tool-pattern-based hard blocks that run before the classifier, use [`permissions.d…
Best practices for Claude Code
Claude Code CLI · in the page
best-practices
…ead in the conversation: a test suite, a build exit code, a linter, a script that diffs output against a fixture, or a [browser screenshot](/docs/en/chrome.md) compared against a design. Run [`/verify…
Champion kit
Claude Code CLI · in the page
champion-kit
…such as an engineering channel, a standup thread, or a pull-request description. | Examples drawn from your own codebase are more persuasive than any external documentation, because colleagues can see…
Claude Code changelog
Claude Code CLI · in the page
changelog
…d), add an `apca(text, background)` function to its palette validator scripts, and say whether a label inside a colored chart fill should be white or near-black * Updated the /claude-api skill: servic…
Push events into a running session with channels
Claude Code CLI · in the page
channels
…reads your Messages database directly and sends replies through AppleScript. It requires macOS and needs no bot token or external service. **1. Grant Full Disk Access** The Messages database at `~/…
Channels reference
Claude Code CLI · in the page
channels-reference
…](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 SDK](…
Checkpointing
Claude Code CLI · in the page
checkpointing
…ange files on disk, and the original messages stay in the session transcript, so Claude can still reference the details. To guide what the summary focuses on, highlight a **Summarize** option with the…
Use Claude Code with Chrome
Claude Code CLI · in the page
chrome
…if a modal dialog (alert, confirm, prompt) is blocking the page. JavaScript dialogs block browser events and prevent Claude from receiving commands. Dismiss the dialog manually, then tell Claude to c…
Claude apps gateway for Amazon Bedrock, Claude Platform on AWS, Google Cloud, and Microsoft Foundry
Claude Code CLI · in the page
claude-apps-gateway
…ork account. They don't need a claude.ai account, an API key, or a subscription, because requests to the model go through the gateway using the organization's upstream credential. Connection is driven…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…visible origin, and optional TLS termination. | Field | Required | Description | | - | - | - | | `host` | No | Bind address. Default `0.0.0.0`. | | `port` | No | Bind port. Default `8080`. | | `publi…
Claude apps gateway deployment and operations
Claude Code CLI · in the page
claude-apps-gateway-deploy
…e analytics streams, so it doesn't send ratings to Anthropic. * **Transcript sharing**: choosing Yes on a survey's transcript-share prompt writes a local file under `~/.claude/feedback-bundles/` inste…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…aws ec2 create-security-group --group-name claude-gateway-alb \ --description "Claude gateway ALB" --vpc-id "$VPC_ID" \ --query GroupId --output text)" GW_SG="$(aws ec2 create-security-group --gro…
Claude apps gateway spend limits
Claude Code CLI · in the page
claude-apps-gateway-spend-limits
…s"}, "amount": "10000", "period": "daily"}' ``` | Field | Values | Description | | - | - | - | | `scope.type` | `user`, `rbac_group`, `organization` | `user` targets one developer by their OpenID Con…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…ration that controls network access, environment variables, and setup scripts. * **Your first environment**: if you don't have one yet, onboarding sets up a **Default** environment with [**Trusted**…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…when: 'Loaded into context at the start of every session', description: 'Project-specific instructions that shape how Claude works in this repository. Put your conventions, common commands, a…
Claude Code on Claude Platform on AWS
Claude Code CLI · in the page
claude-platform-on-aws
…ve already provisioned through Claude Platform on AWS. For the AWS subscription and workspace setup that comes before this, see the [Claude Platform on AWS documentation](https://platform.claude.com/d…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…s card in the conversation or its row in **Overview** to open its transcript in the Overview pane. From there you can: * Read what Claude did, step by step. * Steer the task by writing in the thread'…
claude-tag
Claude Code CLI · in the page
claude-tag
…llbar::-webkit-scrollbar{display:none}</style><link rel="preload" as="script" fetchPriority="low" href="/docs/_next/static/chunks/3fcb76f539c93820.js?dpl=dpl_GCn6nRjMXPzUh9EXsZMh5m1Y5AVp"/><script src…
CLI reference
Claude Code CLI · in the page
cli-reference
…e updates with these commands: | Command | Description…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…e cloud sessions: network access levels, environment variables, setup scripts, and environment caching. > [!NOTE] > > Cloud environments apply to [cloud sessions](/docs/en/claude-code-on-the-web.md),…
Code Review
Claude Code CLI · in the page
code-review
…Team and Enterprise](https://claude.ai/admin-settings/claude-code) subscriptions. It is not available for organizations with [Zero Data Retention](/docs/en/zero-data-retention) enabled or with the [HI…
Code Review costs and usage
Claude Code CLI · in the page
code-review-costs
…in After every push mode**: pushes already trigger reviews, so the subscription doesn't change per-push cost * **`@claude review`**: runs a single review without subscribing to future pushes * **Draft…
Customize Code Review
Claude Code CLI · in the page
code-review-customize
…ant some review but not full scrutiny, set a higher bar instead: "in `scripts/`, only report if near-certain and severe." * **A team rule isn't being checked**: add rules you want flagged on every pul…
Review locally with /code-review
Claude Code CLI · in the page
code-review-local
…ur changes locally, run `/code-review`. To run a cloud review from a script or CI job, use the [`claude ultrareview` subcommand](/docs/en/ultrareview#run-ultrareview-non-interactively), which waits f…
Read and request reviews on a pull request
Claude Code CLI · in the page
code-review-pull-requests
…ds) or click **Re-run** on the check run. ### Read the result from a script To gate a merge or post a summary from your own CI, parse the last line of the Details text with `gh` and jq. That line is…
Commands
Claude Code CLI · in the page
commands
…` only shows on macOS and x64 Windows when signed in with a Claude subscription, and `/upgrade` doesn't show on Enterprise plans. </Note> | Command…
Common workflows
Claude Code CLI · in the page
common-workflows
…rch-to-subagents) to keep your main context clean * [Pipe Claude into scripts](#pipe-claude-into-scripts) for CI and batch processing ## Prompt recipes These are prompt patterns for everyday tasks l…
Communications kit
Claude Code CLI · in the page
communications-kit
…that sends a desktop notification when you finish". It will write the script and wire it up. 📖 Hooks guide → https://code.claude.com/docs/en/hooks-guide ``` ### Day-to-day development **Screenshots…
Let Claude use your computer from the CLI
Claude Code CLI · in the page
computer-use
…tead. * You're on a Pro or Max plan. Run `/status` to confirm your subscription. * You're authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock,…
Explore the context window
Claude Code CLI · in the page
context-window
…tool-search' }, { t: 0.1, kind: 'auto', label: 'Skill descriptions', tokens: 450, color: '#D4A843', vis: 'hidden', desc: 'One-line descriptions of available skills so Cla…
Run Claude Code behind a corporate launcher
Claude Code CLI · in the page
corporate-launcher
…al, which runs however you invoked it. To cover these sessions, put a script named `claude` in a directory earlier on `PATH` that runs your launcher with the real binary; don't replace the managed sym…
Manage costs effectively
Claude Code CLI · in the page
costs
…ocessing hooks. Claude Code charges by API token consumption. For subscription plan pricing (Pro, Max, Team, Enterprise), see [claude.com/pricing](https://claude.com/pricing). Per-developer costs var…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…imits If no notice arrives within 12 hours, Claude Code drops the subscription and tells Claude, so it doesn't keep waiting. Each side's [inbound controls](#control-inbound-messages) apply to a noti…