Follow Discord
Sweep 10 Nov 2026 · 02:18Z Build v2.1.322 539 read Stable v2.1.311 Latest v2.1.322 Next v2.1.322 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

1,158 pages for head.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Commands Claude Code CLI · in the page commands …, commands, subagents, and skills. In [non-interactive mode](/docs/en/headless) with `-p`, `/import` lists what it found and gives you the command that confirms the import. Add `--dry-run` to preview… Common workflows Claude Code CLI · in the page common-workflows …mits" ``` See [Non-interactive mode](https://code.claude.com/docs/en/headless.md) for output formats, permission flags, and fan-out patterns. ## Next steps > [card] [Best practices](https://code.cl… Communications kit Claude Code CLI · in the page communications-kit …ou use. Then "what's the top-priority issue assigned to me?" and "go ahead and fix it" happen in the same conversation. *Try it now:* ask Claude "set up an MCP connector for [GitHub/Jira/Linear] in t… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …m in the script before the `exec` call. They reach the script first, ahead of the Claude Code command. The following script, written for the value `/opt/corp/launcher --profile cc`, saves the profile… Manage costs effectively Claude Code CLI · in the page costs …ore and skips very short ones. When sessions are left out, the report header shows the analyzed count with the total in parentheses, for example `200 sessions (412 total)`. When [auto mode](https://c… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …irst letters of the session's name and pick the session from the typeahead, the same way you [@-mention a subagent](https://code.claude.com/docs/en/sub-agents.md#invoke-subagents-explicitly). Requires… Launch sessions from links Claude Code CLI · in the page deep-links …opens in whatever state that directory is currently in. The welcome header shows which path it picked so you can confirm the right clone opened. ## Examples The sections below show two common ways… Desktop application Claude Code CLI · in the page desktop …them all at once, from the **Dev servers** menu in the Browser pane's header * Choose whether the Browser keeps cookies after you quit the app with **Keep cookies** in the Browser pane's **⋮** menu, s… Schedule recurring tasks in Claude Code Desktop Claude Code CLI · in the page desktop-scheduled-tasks …, then select **Scheduled**. The group starts collapsed, so click its heading to expand it. **Show** lists **Scheduled** when at least one of your tasks is **Active**, the **Status** a task's detail p… Environment variables Claude Code CLI · in the page env-vars …EY` | API key sent as `X-Api-Key` header. When set, this key is used instead of your Claude Pro, Max, Team, or Enterprise subscription even if you are logged in. In… Error reference Claude Code CLI · in the page errors …token · Fix external auth token` | [Authentication](#invalid-request-header-value) | | `Invalid ANTHROPIC_CUSTOM_HEADERS · Fix the environment variable` | [Authentication](#invalid-request-header-val… Speed up responses with fast mode Claude Code CLI · in the page fast-mode …-sessions), in [non-interactive mode](https://code.claude.com/docs/en/headless.md) with the `-p` flag, `/fast` works only in a session launched with fast mode in its [`--settings`](https://code.claude… Feature availability Claude Code CLI · in the page feature-availability …server-side capability that not every provider exposes. <table> <thead> <tr> <th>Feature</th> <th>Claude subscription</th> <th>Anthropic Console</th> <th>Amazon Bedrock… Fullscreen rendering Claude Code CLI · in the page fullscreen …riants that have no default binding. While you're scrolled up, a dim header row at the top of the conversation shows the most recent prompt that has scrolled above the view. Click the row to jump to… Claude Code GitHub Actions Claude Code CLI · in the page github-actions …| | Workflows | Read and write | The permission set can also change ahead of the features that use it. When the app requests a permission it didn't have before, GitHub prompts the account owner to ap… Glossary Claude Code CLI · in the page glossary …n more: [Start faster with bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode) ### Bundled skills Prompt-based playbooks included with Claude Code, such as `/batch`,… Keep Claude working toward a goal Claude Code CLI · in the page goal …goal` works in [non-interactive mode](https://code.claude.com/docs/en/headless.md), in the [desktop app](https://code.claude.com/docs/en/desktop.md), and through [Remote Control](https://code.claude.c… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …because their Agent Platform serving stacks reject the required beta header. Setting `ENABLE_TOOL_SEARCH=true` doesn't override this. Set `ENABLE_TOOL_SEARCH=false` to disable tool search on every m… Hooks reference Claude Code CLI · in the page hooks …ail and `block-rm.sh` would never run, avoiding the process spawn overhead. The `if` field is optional; without it, every handler in the matched group runs. **4. Hook handler runs** The script inspe… Automate actions with hooks Claude Code CLI · in the page hooks-guide …ears > > > > `notify-send` needs a desktop notification daemon, which headless servers, SSH sessions, and most containers don't have. Test the command directly first: > > > > ```bash theme={null} > >… Interactive mode Claude Code CLI · in the page interactive-mode …iables) or by starting in [bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode), the command stops at its timeout. To change the timeout, set the [Bash timeout environme… JetBrains IDEs Claude Code CLI · in the page jetbrains …and the CLI must present it as the `X-Claude-Code-Ide-Authorization` header to connect. If `CLAUDE_CONFIG_DIR` is set, the lock file is written to `$CLAUDE_CONFIG_DIR/ide/` instead. **Tools exposed… Customize keyboard shortcuts Claude Code CLI · in the page keybindings …gents:previousGroup` | Ctrl+Up, Meta+Up | Jump to the previous [group header](https://code.claude.com/docs/en/agent-view.md#organize-the-list). Requires v2.1.288 or later | | `agents:nextGroup` | Ctrl… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …uctions that worked around an older model's limitation may become overhead once a newer model handles the case on its own. For example, a rule that forces single-file refactors can be deleted once the… Other LLM gateways Claude Code CLI · in the page llm-gateway …ation` and the OAuth capability in `anthropic-beta`; see the [request headers reference](https://code.claude.com/docs/en/llm-gateway-protocol.md#request-headers). ## Related pages * [Gateway overvie… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …me gateways need beyond the base URL and credential, such as a custom header, a credential helper, model discovery, a provider-format base URL, or turning off traffic outside the gateway path. Set the… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …LLM gateway compatible with Claude Code: the endpoints it calls, the headers and body fields to forward, and what breaks when they're stripped. This page documents the requests Claude Code sends to… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …list or routing table in the gateway's own configuration * **Forward headers and body unchanged**: pass `anthropic-beta`, `anthropic-version`, and the request body through in both directions; the [fe… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …n) to read secrets from each user's environment. * [OAuth or per-user headers](https://code.claude.com/docs/en/mcp.md#authenticate-with-remote-mcp-servers) so each user authenticates as themselves. *… Deploy managed settings Claude Code CLI · in the page managed-settings …carrying a [policy key](#how-claude-code-combines-managed-sources), [ahead of remote settings](#which-managed-source-supplies-login-keys) | `forceLoginOrgUUID`, `forceLoginMethod`, and the [gateway lo… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …mcp add --transport http secure-api https://api.example.com/mcp \ --header "Authorization: Bearer your-token" ``` When configuring MCP servers via JSON in `.mcp.json`, `~/.claude.json`, or `claude… Connect to MCP servers Claude Code CLI · in the page mcp-quickstart …r is reachable but needs a browser sign-in, or a token passed with `--header`. See [Connect a server that requires sign-in](#connect-a-server-that-requires-sign-in) | | `✘ Failed to connect` | Server… How Claude remembers your project Claude Code CLI · in the page memory …orts them. * **Structure**: group related instructions under markdown headers and bullets. Organized sections are easier for Claude to follow than dense paragraphs. * **Consistency**: if two instructi… Claude Code on Microsoft Foundry Claude Code CLI · in the page microsoft-foundry …C_FOUNDRY_AUTH_TOKEN` on every request as the `Authorization: Bearer` header. Use this option when another process, such as a host application or a sign-in script, has already obtained an access token… Model configuration Claude Code CLI · in the page model-config …e request. In [non-interactive mode](https://code.claude.com/docs/en/headless.md) with the `-p` flag, and in an Agent SDK application that doesn't show the prompt, Claude Code never asks for consent.… Monitoring Claude Code CLI · in the page monitoring-usage …4317 # 4. Set authentication (if required) export OTEL_EXPORTER_OTLP_HEADERS="Authorization=Bearer your-token" # 5. For debugging: reduce export intervals, and reset them for production use export O… Enterprise network configuration Claude Code CLI · in the page network-config …fails and retries instead of hanging. A request that gets no response headers at all ends in one of two ways: * **Where the first-byte deadline runs**: the first attempt ends no later than that deadl… Output styles Claude Code CLI · in the page output-styles …also works in [non-interactive mode](https://code.claude.com/docs/en/headless.md) and Agent SDK sessions, and from the mobile app or web via [Remote Control](https://code.claude.com/docs/en/remote-co… Choose a permission mode Claude Code CLI · in the page permission-modes …s [`--allowedTools "Bash(npm test)"`](https://code.claude.com/docs/en/headless#auto-approve-tools) to `claude -p`, or set your SDK's [allowed-tools option](https://code.claude.com/docs/en/agent-sdk/pe… Configure permissions Claude Code CLI · in the page permissions …ur working directories. The set includes `ls`, `cat`, `echo`, `pwd`, `head`, `tail`, `grep`, `find`, `wc`, `which`, `diff`, `stat`, `du`, `cd`, and read-only forms of `git`. The set is not configurabl… Platforms and integrations Claude Code CLI · in the page platforms …rvers | Full feature set, [Agent SDK](https://code.claude.com/docs/en/headless.md), [computer use](https://code.claude.com/docs/en/computer-use.md) on macOS (Pro, Max, and Ultra), third-party provider… Test plugins with evals Claude Code CLI · in the page plugin-evals …e-isolated) [non-interactive session](https://code.claude.com/docs/en/headless.md) with only your plugin loaded, sends the prompt, and lets Claude work until it finishes or hits the case's turn or tim… Plugin commands reference Claude Code CLI · in the page plugins/cli-reference …ps://code.claude.com/docs/en/plugins/host-marketplace.md) or [sets a `headersHelper` for its download](https://code.claude.com/docs/en/plugins/host-marketplace#how-users-accept-a-headershelper-command… Add components to a plugin Claude Code CLI · in the page plugins/components …eads a server's stdout as protocol messages only, and accepts message headers up to 64 KiB and a message body up to 32 MiB. Claude Code disconnects a server that exceeds either limit or writes non-pr… Plugin dependencies Claude Code CLI · in the page plugins/dependencies …erence.md#command-plugin-source). It also never runs a dependency's [`headersHelper`](https://code.claude.com/docs/en/plugins/host-marketplace#authenticate-archive-downloads), so users also install a… Host and maintain a marketplace Claude Code CLI · in the page plugins/host-marketplace …quest that a redirect sends to a different origin carries none of the headers you configured on the marketplace source or the plugin entry. After an archive downloads, the install fails when the zip… Install and manage plugins Claude Code CLI · in the page plugins/install …ake that change there. Disabled plugins are grouped under a collapsed header at the bottom of the list. Use these keys on the list: * Type to filter by name or description. * Press **Space** to enabl… Plugin loading reference Claude Code CLI · in the page plugins/loading …L_TRAFFIC` * A session in [bare mode](https://code.claude.com/docs/en/headless.md#start-faster-with-bare-mode) or one you start with `--safe-mode` * A session you start with a [`--setting-sources`](ht… Plugin manifest reference Claude Code CLI · in the page plugins/manifest-reference …Warnings**: an `http://` or `ws://` URL to a non-loopback host, and a header value that looks like a literal credential ## Fields The table lists the top-level keys in `plugin.json`. `name` is the o… Marketplace reference Claude Code CLI · in the page plugins/marketplace-reference …ree-form object for your own fields. Claude Code doesn't read it | | `headers` | object | HTTP headers Claude Code sends when it downloads this entry's [archive](#archive-plugin-source). A header set…
Feedback