686 pages for input.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Push events into a running session with channels
Claude Code CLI · in the page
channels
…channels in non-interactive mode with `-p`, tools that need terminal input, such as multiple-choice questions and plan mode approval, are disabled so the session never stalls waiting for input. ## S…
Channels reference
Claude Code CLI · in the page
channels-reference
…ly', description: 'Send a message back over this channel', // inputSchema tells Claude what arguments to pass inputSchema: { type: 'object', properties: { chat_id: { ty…
Checkpointing
Claude Code CLI · in the page
checkpointing
…nd and summarize Run `/rewind`, or press `Esc` twice when the prompt input is empty, to open the rewind menu. > [!NOTE] > > In [vim mode](https://code.claude.com/docs/en/interactive-mode.md#vim-edit…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…ded` on a `429`. For example, the gateway replaces Amazon Bedrock's `Input is too long for requested model.` with `capability_rejected: prompt_too_long`. Claude Code [compacts automatically](https://…
Deploy Claude apps gateway on AWS
Claude Code CLI · in the page
claude-apps-gateway-on-aws
…e covers. On a shared or monitored host, pass the password via `--cli-input-json` from a `0600` file instead, the way the bundle's `setup.sh` does. Wait for the instance to come up, which can take se…
Claude apps gateway spend limits
Claude Code CLI · in the page
claude-apps-gateway-spend-limits
…v2.1.218 or later. 4. The unknown-model tier of \$5/\$25 per million input/output tokens, so an ID the meter can't place is never free. The gateway warns at boot and once per ID at runtime when it us…
Use Claude Code in the cloud
Claude Code CLI · in the page
claude-code-on-the-web
…When teleport fetches the session's branch, the fetch never waits for input in your terminal. If git or ssh would ask for a password, a key passphrase, or confirmation of a new SSH host, the fetch fai…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…th as [`scratchpad_dir`](https://code.claude.com/docs/en/hooks#common-input-fields). Scratchpad files last as long as the session's transcript: the [retention sweep](#cleaned-up-automatically) delete…
Let Claude coordinate ongoing work with Projects
Claude Code CLI · in the page
claude-projects
…s in the conversation, a thread hits an error, or a thread needs your input. None appears while you're viewing the project. To also get one each time a thread finishes a turn, or to turn them off for…
claude-tag
Claude Code CLI · in the page
claude-tag
…r w=window;w.mintlify=w.mintlify||{}; var q=w.mintlify.__apiPlaygroundInputsQueue; if(!Array.isArray(q)){q=[];w.mintlify.__apiPlaygroundInputsQueue=q;} w.mintlify.api=w.mintlify.api||{}; w.mintlify.ap…
CLI reference
Claude Code CLI · in the page
cli-reference
…rmat stream-json --verbose --include-partial-messages "query"` | | `--input-format` | Specify input format for print mode (options: `text`, `stream-json`) | `claude -p --input-format stream-json --out…
Configure cloud environments
Claude Code CLI · in the page
cloud-environments
…rkspace's `package.json`, an `.npmrc`, or your `postinstall` script's inputs, add them to the `sha256sum` command that saves the hashes. Otherwise, you keep the old packages after one of those files c…
Run tool calls from code with Code Mode
Claude Code CLI · in the page
code-mode
…EPL`, the tool that runs the code, and read the JavaScript from `tool_input.code`. To check what the code returns, see [Check code output with a hook](#check-code-output-with-a-hook). > [!WARNING] >…
Code Review
Claude Code CLI · in the page
code-review
…c/auth/session.ts:88` | `parseExpiry` silently returns 0 on malformed input | Each finding also appears as an annotation in the **Files changed** tab, marked directly on the relevant diff lines. Impo…
Read and request reviews on a pull request
Claude Code CLI · in the page
code-review-pull-requests
…c/auth/session.ts:88` | `parseExpiry` silently returns 0 on malformed input | A finding that has a line but wasn't posted as an inline comment appears as an annotation in the **Files changed** tab, o…
Commands
Claude Code CLI · in the page
commands
…ropose savings from options such as prompt caching, trimming unneeded input and output tokens, batch processing, effort, and model choice, one change at a time. Run `build-eval` to build an eval set f…
Common workflows
Claude Code CLI · in the page
common-workflows
…d suggest tests for error conditions, boundary values, and unexpected inputs that are often overlooked. *** ### Create pull requests You can create pull requests by asking Claude directly ("create…
Explore the context window
Claude Code CLI · in the page
context-window
…onKey = e => { const tag = e.target.tagName; if (tag === 'INPUT' || tag === 'BUTTON' || tag === 'TEXTAREA' || tag === 'SELECT' || e.target.isContentEditable) return; if (!rootRef.cur…
Run Claude Code behind a corporate launcher
Claude Code CLI · in the page
corporate-launcher
…rting directory inside it, before the `exec`. * **Don't read standard input.** A command that reads it before the `exec`, such as one that asks for a password, can wait for input that doesn't come and…
Manage costs effectively
Claude Code CLI · in the page
costs
…es added, 0 lines removed Usage by model: claude-sonnet-4-6: 1.2k input, 5.3k output, 940.0k cache read, 50.0k cache write ($0.55) ``` These totals reset when `/clear` starts a new session, so th…
Message your other Claude Code sessions
Claude Code CLI · in the page
cross-session-messaging
…` Claude subscribes with the `SendMessage` tool's `notify_when_idle` input, either attached to a message it's sending anyway or on its own. On its own, Claude Code subscribes without starting a turn…
Data usage
Claude Code CLI · in the page
data-usage
…your rating. We do not collect or store any conversation transcripts, inputs, outputs, or other session data as part of the rating prompt itself. Unlike thumbs up/down feedback or `/feedback` reports,…
Launch sessions from links
Claude Code CLI · in the page
deep-links
…rectory the link specified, and the link's prompt text already in the input box. 4. You read the prompt, edit it if you want, and press Enter to send it. The link itself can be hosted anywhere, but t…
Desktop application
Claude Code CLI · in the page
desktop
…on't purchase items, create accounts, or bypass CAPTCHAs without your input. Browsing in the Browser pane uses the same safety model as the [Claude in Chrome extension](https://code.claude.com/docs/en…
Test iOS apps in the simulator
Claude Code CLI · in the page
desktop-ios-simulator
…til the badge clears, so the result reflects the app rather than your input. ### Minimize or close the simulator pane You can minimize or close the simulator pane, and Claude can still use the devic…
Claude Desktop on Linux (beta)
Claude Code CLI · in the page
desktop-linux
…e-use-your-computer) isn't available on Linux. * **Dictation**: voice input isn't available in the Linux desktop app. Use [voice dictation](https://code.claude.com/docs/en/voice-dictation.md) in the C…
Environment variables
Claude Code CLI · in the page
env-vars
…remote session list, from announcing that Claude is waiting for your input mid-work. Background shell commands, such as a dev server, don't hold the running status. The running-status default and the…
Error reference
Claude Code CLI · in the page
errors
…timed-out-during-a-sleep-or-clock-change) | | `Prompt is too long` / `Input is too long for requested model` | [Request errors](#prompt-is-too-long) | | `Prompt is too long · automatic compaction fail…
Speed up responses with fast mode
Claude Code CLI · in the page
fast-mode
…setting](#toggle-fast-mode). * Anthropic's fast mode pricing per MTok input/output: \$16/\$80 on Fable 5.2, \$8/\$40 on Opus 5.5, and \$10/\$50 on Opus 5. * Available to Claude Code users on subscript…
Feature availability
Claude Code CLI · in the page
feature-availability
…latform.claude.com/docs/en/about-claude/models/overview). Vision, PDF input, and extended thinking are model capabilities rather than Claude Code features and work on every provider that offers the mo…
Extend Claude Code
Claude Code CLI · in the page
features-overview
…ct** | Adds to your main window | Uses a separate window with its own input and output tokens | > | **Best for** | Reference material, invocable workflows | Tasks that read many files, parallel work,…
Fullscreen rendering
Claude Code CLI · in the page
fullscreen
…Fullscreen rendering changes how the CLI draws to your terminal. The input box stays fixed at the bottom of the screen instead of moving as output streams in. If the input doesn't move while Claude i…
Claude Code GitHub Actions
Claude Code CLI · in the page
github-actions
…long-lived-token) In workflow files, pass the secret to the matching input: `anthropic_api_key` for an API key, or `claude_code_oauth_token` for an OAuth token. **3. Copy the workflow file** Copy […
Use Claude Code GitHub Actions with cloud providers
Claude Code CLI · in the page
github-actions-cloud-providers
…n cloud account instead, set the Claude Code GitHub Action's provider input and configure your cloud to trust the workflow's OpenID Connect (OIDC) token. The workflow authenticates with that token, so…
Claude Code GitLab CI/CD
Claude Code CLI · in the page
gitlab-ci-cd
…ects context from the thread and repository, builds prompts from that input, and runs Claude Code. 2. **Provider abstraction**: Use the provider that fits your environment: * Claude API (SaaS)…
Claude Code on Google Cloud's Agent Platform
Claude Code CLI · in the page
google-vertex-ai
…hows you the command's output, but can't send the command interactive input. This works well for browser-based authentication flows where the CLI shows a URL and you complete authentication in the bro…
Run Claude Code programmatically
Claude Code CLI · in the page
headless
…keups**: in a run whose prompt you passed as text rather than with `--input-format stream-json`, when Claude has scheduled a [self-paced `/loop` wakeup](https://code.claude.com/docs/en/scheduled-tasks…
Hooks reference
Claude Code CLI · in the page
hooks
…> Reference for Claude Code hook events, configuration schema, JSON input/output formats, exit codes, async hooks, HTTP hooks, prompt hooks, and MCP tool hooks. > [!TIP] > > For a quickstart guide…
Automate actions with hooks
Claude Code CLI · in the page
hooks-guide
…automatically when Claude Code edits files, finishes tasks, or needs input. Format code, send notifications, validate commands, and enforce project rules. Hooks are user-defined shell commands. Clau…
Interactive mode
Claude Code CLI · in the page
interactive-mode
# Interactive mode > Reference for keyboard shortcuts, input modes, and interactive features in Claude Code sessions. ## Keyboard shortcuts > [!NOTE] > > Keyboard shortcuts may vary by platform and…
Customize keyboard shortcuts
Claude Code CLI · in the page
keybindings
…- | | `Global` | Applies everywhere in the app | | `Chat` | Main chat input area | | `Autocomplete` | Autocomplete menu is open | | `Settings` | Settings menu | | `Confirmation` | Permission and confi…
Set up Claude Code in a monorepo or large codebase
Claude Code CLI · in the page
large-codebases
…you can write a script that reads the launch directory from the [hook input](https://code.claude.com/docs/en/hooks.md#common-input-fields), looks it up in a path-to-plugin map committed to the reposit…
Connect Claude Code to an LLM gateway
Claude Code CLI · in the page
llm-gateway-connect
…`env` block. Pass the credential as the action's `anthropic_api_key` input; the action sets it as `ANTHROPIC_API_KEY`, so it reaches the gateway in the `x-api-key` header. For an `x-api-key` gateway…
Claude Code gateway compatibility guide
Claude Code CLI · in the page
llm-gateway-protocol
…tream's value through unchanged. Claude Code reads this header as one input when deciding whether to retry a failed request: `true` marks the response retryable and `false` marks it not retryable. For…
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…ation written for another client's settings file. Each is one of the inputs the four options in [Installing MCP servers](#installing-mcp-servers) take. Find the shape you have below to turn it into t…
Connect to MCP servers
Claude Code CLI · in the page
mcp-quickstart
…ells you where the problem is: > > * The command starts and waits for input: the server itself works. > > Run `claude mcp get <name>` and confirm the command shown there matches what you just ran. I…
How Claude remembers your project
Claude Code CLI · in the page
memory
…/*.ts" --- # API Development Rules - All API endpoints must include input validation - Use the standard error response format - Include OpenAPI documentation comments ``` A path-scoped rule loads w…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…d | | `OTEL_LOG_TOOL_DETAILS` | Enable logging of tool parameters and input arguments in tool events and trace span attributes: Bash commands, MCP server and tool names, skill names, user-authored wor…
Enterprise network configuration
Claude Code CLI · in the page
network-config
…n an `HTTPS_PROXY` value that lacks `http://`, where neither standard input nor standard output is a terminal. That is so when Claude Desktop, an SDK, or cron starts Claude Code. Write the proxy value…
Output styles
Claude Code CLI · in the page
output-styles
…espond. Token usage depends on the style. A style's instructions add input tokens, though prompt caching reduces this cost after the first request in a session. The built-in Explanatory and Learning…