跳至主要內容

工程手冊 / RELEASE 2.1.220

Claude Code CLI 完整參考

單一可搜尋介面,整合本機遞迴 help、官方文件與已發布設定 schema,並保留每筆資料的可用性差異。

閱讀完整使用指南 → CAPTURED 2026-07-31 · darwin-arm64
CMD
61
FLAGS
233
SLASH
104
CONFIG
151
ENV
308
634 筆顯示中
01

命令路徑

runtime-confirmed 來自已安裝版本;展開項目可查看旗標與範例。

claude 已由 runtime 確認 需檢視 75 個旗標
claude [options] [command] [prompt]

Start Claude Code interactively, run a headless prompt, or manage a session.

-p, --print

Print a non-interactive response and exit.

已由 runtime 確認 一般
--add-dir <directories>

Add directories Claude may read and edit for this session.

已由 runtime 確認 一般
--agent <agent>

Use a named agent for this session.

已由 runtime 確認 需檢視
--agents <json>

Define session subagents with a JSON object.

已由 runtime 確認 需檢視
--allow-dangerously-skip-permissions

Control Claude Code allow dangerously skip permissions behavior.

已由 runtime 確認 高風險
--allowed-tools, --allowedTools <tools>

Grant matching tools without a permission prompt.

已由 runtime 確認 需檢視
--append-system-prompt <prompt>

Append text to the default system prompt.

已由 runtime 確認 需檢視
--ax-screen-reader

Control Claude Code ax screen reader behavior.

已由 runtime 確認 一般
--background, --bg

Control Claude Code background behavior.

已由 runtime 確認 一般
--bare

Control Claude Code bare behavior.

已由 runtime 確認 一般
--settings <file-or-json>

Load additional settings from a file or inline JSON.

已由 runtime 確認 需檢視
--system-prompt <prompt>

Replace the default system prompt in print mode.

已由 runtime 確認 需檢視
--mcp-config <configs>

Load MCP servers from JSON files or inline JSON.

已由 runtime 確認 需檢視
--plugin-dir <paths>

Load plugins from directories for this session.

已由 runtime 確認 需檢視
--betas <betas>

Include API beta headers for requests.

已由 runtime 確認 一般
--brief

Enable the compact runtime presentation.

已由 runtime 確認 一般
--chrome

Control Claude Code chrome behavior.

已由 runtime 確認 一般
-c, --continue

Continue the most recent conversation in the current directory.

已由 runtime 確認 一般
--dangerously-skip-permissions

Control Claude Code dangerously skip permissions behavior.

已由 runtime 確認 高風險
-d, --debug <filter>

Enable debug mode, optionally filtering categories.

已由 runtime 確認 一般
--debug-file <path>

Write debug logs to a file and enable debug mode.

已由 runtime 確認 需檢視
--disable-slash-commands

Control Claude Code disable slash commands behavior.

已由 runtime 確認 一般
--disallowed-tools, --disallowedTools <tools>

Remove matching tools from the model-visible tool set.

已由 runtime 確認 需檢視
--effort <level>

Set the reasoning effort level for the session.

已由 runtime 確認 一般
--exclude-dynamic-system-prompt-sections

Control Claude Code exclude dynamic system prompt sections behavior.

已由 runtime 確認 需檢視
--fallback-model <model>

Use a fallback model when the primary model is overloaded.

已由 runtime 確認 一般
--file <specs>

Download file resources at startup using file specifications.

已由 runtime 確認 需檢視
--fork-session

Control Claude Code fork session behavior.

已由 runtime 確認 一般
-r, --resume <session>

Resume a session by ID or name, or open the session picker.

已由 runtime 確認 一般
--forward-subagent-text

Control Claude Code forward subagent text behavior.

已由 runtime 確認 需檢視
--output-format <format>

Select print-mode output: text, json, or stream-json.

已由 runtime 確認 一般
--from-pr <pr>

Resume a session linked to a pull request.

已由 runtime 確認 一般
-h, --help

Control Claude Code help behavior.

已由 runtime 確認 一般
--ide

Control Claude Code ide behavior.

已由 runtime 確認 一般
--include-hook-events

Control Claude Code include hook events behavior.

已由 runtime 確認 一般
--include-partial-messages

Control Claude Code include partial messages behavior.

已由 runtime 確認 一般
--input-format <format>

Select print-mode input: text or stream-json.

已由 runtime 確認 一般
--json-schema <schema>

Validate print-mode structured output against a JSON Schema.

已由 runtime 確認 一般
--max-budget-usd <amount>

Stop print-mode execution at an approximate dollar budget.

已由 runtime 確認 一般
--model <model>

Choose a model alias or full model ID.

已由 runtime 確認 一般
-n, --name <name>

Name the session.

已由 runtime 確認 一般
--no-chrome

Control Claude Code no chrome behavior.

已由 runtime 確認 一般
--no-session-persistence

Control Claude Code no session persistence behavior.

已由 runtime 確認 一般
--permission-mode <mode>

Start in a selected permission mode.

已由 runtime 確認 需檢視
--plugin-url <urls>

Load plugins from URLs for this session.

已由 runtime 確認 需檢視
--prompt-suggestions

Control Claude Code prompt suggestions behavior.

已由 runtime 確認 一般
--remote-control, --rc <name>

Start an interactive session with Remote Control enabled.

已由 runtime 確認 一般
--remote-control-session-name-prefix <prefix>

Prefix automatically generated Remote Control session names.

已由 runtime 確認 一般
--replay-user-messages

Replay stream-json user messages on stdout for acknowledgement.

已由 runtime 確認 一般
--safe-mode

Control Claude Code safe mode behavior.

已由 runtime 確認 一般
--session-id <uuid>

Use a specific UUID for the new conversation.

已由 runtime 確認 一般
--setting-sources <sources>

Choose which setting scopes to load.

已由 runtime 確認 一般
--strict-mcp-config

Control Claude Code strict mcp config behavior.

已由 runtime 確認 需檢視
--tmux

Control Claude Code tmux behavior.

已由 runtime 確認 一般
-w, --worktree <name>

Start Claude in an isolated git worktree.

已由 runtime 確認 一般
--tools <tools>

Restrict the tools available to Claude.

已由 runtime 確認 需檢視
--verbose

Control Claude Code verbose behavior.

已由 runtime 確認 一般
-v, --version

Control Claude Code version behavior.

已由 runtime 確認 一般
--advisor <model>

Enable the server-side advisor tool with a selected model.

條件式 一般
--append-subagent-system-prompt <prompt>

Append instructions to every subagent system prompt in print mode.

官方文件 需檢視
--append-system-prompt-file <file>

Append a file to the default system prompt in print mode.

官方文件 需檢視
--channels <channels>

Enable selected development channels for the session.

條件式 一般
--cloud

Start a Claude Code on the web session.

條件式 一般
--dangerously-load-development-channels

Control Claude Code dangerously load development channels behavior.

條件式 需檢視
--enable-auto-mode

Control Claude Code enable auto mode behavior.

條件式 一般
--exec <command>

Run a PTY-backed shell command as a background job with --background.

官方文件 需檢視
--init

Control Claude Code init behavior.

官方文件 一般
--init-only

Control Claude Code init only behavior.

官方文件 一般
--maintenance

Control Claude Code maintenance behavior.

官方文件 需檢視
--max-turns <turns>

Limit agentic turns in print mode.

官方文件 一般
--permission-prompt-tool <tool>

Delegate permission prompts to an MCP tool in print mode.

官方文件 需檢視
--remote

Control Claude Code remote behavior.

官方文件 一般
--system-prompt-file <file>

Replace the default system prompt with a file in print mode.

官方文件 需檢視
--teleport

Control Claude Code teleport behavior.

條件式 一般
--teammate-mode <mode>

Select the agent-team teammate display mode.

條件式 一般
範例 claudeclaude -p "Explain this repository"claude --resume auth-refactorclaude --permission-mode plan

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference · @anthropic-ai/claude-code 2.1.220 package metadata

claude agents 已由 runtime 確認 一般 16 個旗標
claude agents [options]

Open agent view or query active background sessions.

--add-dir <directory>

Set add dir for this command.

已由 runtime 確認 一般
--agent <agent>

Set agent for this command.

已由 runtime 確認 一般
--all

Set all for this command.

已由 runtime 確認 一般
--allow-dangerously-skip-permissions

Set allow dangerously skip permissions for this command.

已由 runtime 確認 高風險
--cwd <path>

Set cwd for this command.

已由 runtime 確認 一般
--dangerously-skip-permissions

Set dangerously skip permissions for this command.

已由 runtime 確認 高風險
--effort <level>

Set effort for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
--json

Set json for this command.

已由 runtime 確認 一般
--mcp-config <config>

Set mcp config for this command.

已由 runtime 確認 一般
--model <model>

Set model for this command.

已由 runtime 確認 一般
--permission-mode <mode>

Set permission mode for this command.

已由 runtime 確認 一般
--plugin-dir <path>

Set plugin dir for this command.

已由 runtime 確認 一般
--setting-sources <sources>

Set setting sources for this command.

已由 runtime 確認 一般
--settings, -or-json <file-or-json>

Set settings for this command.

已由 runtime 確認 一般
--strict-mcp-config

Set strict mcp config for this command.

已由 runtime 確認 一般
範例 claude agents --json

來源: Claude Code 2.1.220 recursive local help

claude auth 已由 runtime 確認 一般 1 個旗標
claude auth [options] [command]

Manage Claude Code authentication.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude auth status

來源: Claude Code 2.1.220 recursive local help

claude auth login 已由 runtime 確認 需檢視 5 個旗標
claude auth login [options]

Sign in with a Claude subscription or Anthropic Console account.

--claudeai

Set claudeai for this command.

已由 runtime 確認 需檢視
--console

Set console for this command.

已由 runtime 確認 需檢視
--email <email>

Set email for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 需檢視
--sso

Set sso for this command.

已由 runtime 確認 需檢視
範例 claude auth login --console

來源: Claude Code 2.1.220 recursive local help

claude auth logout 已由 runtime 確認 需檢視 1 個旗標
claude auth logout [options]

Sign out from the current Anthropic account.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視
範例 claude auth logout

來源: Claude Code 2.1.220 recursive local help

claude auth status 已由 runtime 確認 一般 3 個旗標
claude auth status [options]

Inspect authentication state for scripts or humans.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--json

Set json for this command.

已由 runtime 確認 一般
--text

Set text for this command.

已由 runtime 確認 一般
範例 claude auth status --json

來源: Claude Code 2.1.220 recursive local help

claude auto-mode 已由 runtime 確認 一般 1 個旗標
claude auto-mode [options] [command]

Inspect, critique, or reset automatic permission-mode rules.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude auto-mode config

來源: Claude Code 2.1.220 recursive local help

claude auto-mode config 已由 runtime 確認 一般 1 個旗標
claude auto-mode config [options]

Print the effective automatic permission-mode configuration.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude auto-mode config

來源: Claude Code 2.1.220 recursive local help

claude auto-mode critique 已由 runtime 確認 一般 2 個旗標
claude auto-mode critique [options]

Ask a model to critique custom automatic permission rules.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--model <model>

Set model for this command.

已由 runtime 確認 一般
範例 claude auto-mode critique --model sonnet

來源: Claude Code 2.1.220 recursive local help

claude auto-mode defaults 已由 runtime 確認 一般 2 個旗標
claude auto-mode defaults [options]

Print the shipped automatic permission-mode rule set.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--label <prefix>

Set label for this command.

已由 runtime 確認 一般
範例 claude auto-mode defaults --label "Git Destructive"

來源: Claude Code 2.1.220 recursive local help

claude auto-mode reset 已由 runtime 確認 需檢視 2 個旗標
claude auto-mode reset [options]

Remove user autoMode settings and restore shipped defaults.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視
-y, --yes

Set yes for this command.

已由 runtime 確認 需檢視
範例 claude auto-mode reset --yes

來源: Claude Code 2.1.220 recursive local help

claude doctor 已由 runtime 確認 一般 1 個旗標
claude doctor [options]

Run read-only installation and settings diagnostics.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude doctor

來源: Claude Code 2.1.220 recursive local help

claude gateway 已由 runtime 確認 需檢視 2 個旗標
claude gateway [options]

Start the administrator-managed Claude apps gateway.

--config <path>

Set config for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude gateway --config gateway.yaml

來源: Claude Code 2.1.220 recursive local help

claude install 已由 runtime 確認 需檢視 2 個旗標
claude install [options] [target]

Install or reinstall a selected native Claude Code release.

--force

Set force for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 需檢視
範例 claude install stable

來源: Claude Code 2.1.220 recursive local help

claude mcp 已由 runtime 確認 一般 1 個旗標
claude mcp [options] [command]

Configure Model Context Protocol servers.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude mcp list

來源: Claude Code 2.1.220 recursive local help

claude mcp add 已由 runtime 確認 需檢視 8 個旗標
claude mcp add [options] <name> <commandOrUrl> [args...]

Add a stdio, SSE, or HTTP MCP server.

--callback-port <port>

Set callback port for this command.

已由 runtime 確認 一般
--client-id <clientId>

Set client id for this command.

已由 runtime 確認 一般
--client-secret

Set client secret for this command.

已由 runtime 確認 需檢視
-e, --env <env>

Set env for this command.

已由 runtime 確認 需檢視
-H, --header <header>

Set header for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
-t, --transport <transport>

Set transport for this command.

已由 runtime 確認 一般
範例 claude mcp add --transport http sentry https://mcp.sentry.dev/mcp

來源: Claude Code 2.1.220 recursive local help

claude mcp add-from-claude-desktop 已由 runtime 確認 需檢視 2 個旗標
claude mcp add-from-claude-desktop [options]

Import MCP servers from Claude Desktop on supported systems.

-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude mcp add-from-claude-desktop --scope user

來源: Claude Code 2.1.220 recursive local help

claude mcp add-json 已由 runtime 確認 需檢視 3 個旗標
claude mcp add-json [options] <name> <json>

Add an MCP server from a JSON configuration object.

--client-secret

Set client secret for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude mcp add-json calendar '{"type":"http","url":"https://example.com/mcp"}'

來源: Claude Code 2.1.220 recursive local help

claude mcp get 已由 runtime 確認 一般 1 個旗標
claude mcp get [options] <name>

Inspect one configured MCP server and its approval state.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude mcp get sentry

來源: Claude Code 2.1.220 recursive local help

claude mcp list 已由 runtime 確認 一般 1 個旗標
claude mcp list [options]

List configured MCP servers and health-check approved servers.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude mcp list

來源: Claude Code 2.1.220 recursive local help

claude mcp login 已由 runtime 確認 需檢視 2 個旗標
claude mcp login [options] <name>

Run the OAuth flow for a configured remote MCP server.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視
--no-browser

Set no browser for this command.

已由 runtime 確認 需檢視
範例 claude mcp login sentry --no-browser

來源: Claude Code 2.1.220 recursive local help

claude mcp logout 已由 runtime 確認 需檢視 1 個旗標
claude mcp logout [options] <name>

Clear stored OAuth credentials for an MCP server.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視
範例 claude mcp logout sentry

來源: Claude Code 2.1.220 recursive local help

claude mcp remove 已由 runtime 確認 需檢視 2 個旗標
claude mcp remove [options] <name>

Remove an MCP server from a selected configuration scope.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude mcp remove sentry --scope user

來源: Claude Code 2.1.220 recursive local help

claude mcp reset-project-choices 已由 runtime 確認 一般 1 個旗標
claude mcp reset-project-choices [options]

Reset approvals and rejections for project .mcp.json servers.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視
範例 claude mcp reset-project-choices

來源: Claude Code 2.1.220 recursive local help

claude mcp serve 已由 runtime 確認 需檢視 3 個旗標
claude mcp serve [options]

Expose Claude Code tools as a local stdio MCP server.

-d, --debug

Set debug for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
--verbose

Set verbose for this command.

已由 runtime 確認 一般
範例 claude mcp serve

來源: Claude Code 2.1.220 recursive local help

claude plugin 已由 runtime 確認 一般 1 個旗標
claude plugin|plugins [options] [command]

Manage Claude Code plugins and marketplaces.

別名: plugins
-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude plugin list

來源: Claude Code 2.1.220 recursive local help

claude plugin details 已由 runtime 確認 一般 1 個旗標
claude plugin details [options] <name>

Show a plugin component inventory and projected token cost.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude plugin details code-review

來源: Claude Code 2.1.220 recursive local help

claude plugin disable 已由 runtime 確認 需檢視 3 個旗標
claude plugin disable [options] [plugin]

Disable one or all enabled plugins at a scope.

-a, --all

Set all for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude plugin disable code-review --scope project

來源: Claude Code 2.1.220 recursive local help

claude plugin enable 已由 runtime 確認 需檢視 2 個旗標
claude plugin enable [options] <plugin>

Enable a disabled plugin at a scope.

-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude plugin enable code-review --scope project

來源: Claude Code 2.1.220 recursive local help

claude plugin eval 已由 runtime 確認 需檢視 18 個旗標
claude plugin eval [options] [command] [target]

Run scored evaluation cases against a plugin.

--ablation <mode>

Set ablation for this command.

已由 runtime 確認 一般
--allow-tools <tools>

Set allow tools for this command.

已由 runtime 確認 一般
--case <glob>

Set case for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
--json <path>

Set json for this command.

已由 runtime 確認 一般
--judge-model <model>

Set judge model for this command.

已由 runtime 確認 一般
--keep-temp

Set keep temp for this command.

已由 runtime 確認 一般
--max-cost-usd <usd>

Set max cost usd for this command.

已由 runtime 確認 一般
--model <model>

Set model for this command.

已由 runtime 確認 一般
--no-scaffold

Set no scaffold for this command.

已由 runtime 確認 需檢視
--output-dir <dir>

Set output dir for this command.

已由 runtime 確認 一般
--publish-report

Set publish report for this command.

已由 runtime 確認 需檢視
--report <path>

Set report for this command.

已由 runtime 確認 一般
--runs <n>

Set runs for this command.

已由 runtime 確認 一般
--scaffold

Set scaffold for this command.

已由 runtime 確認 需檢視
--tag <tag>

Set tag for this command.

已由 runtime 確認 一般
--threshold <0..1>

Set threshold for this command.

已由 runtime 確認 一般
--verbose

Set verbose for this command.

已由 runtime 確認 一般
範例 claude plugin eval ./my-plugin --report report.html

來源: Claude Code 2.1.220 recursive local help

claude plugin eval init 已由 runtime 確認 需檢視 2 個旗標
claude plugin eval init [options] [name]

Author an eval suite interactively or create a bare case.

--bare

Set bare for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude plugin eval init --bare regression

來源: Claude Code 2.1.220 recursive local help

claude plugin init 已由 runtime 確認 需檢視 6 個旗標
claude plugin init|new [options] <name>

Scaffold a skills-directory plugin.

別名: plugin new
--author <name>

Set author for this command.

已由 runtime 確認 一般
--author-email <email>

Set author email for this command.

已由 runtime 確認 一般
--description <text>

Set description for this command.

已由 runtime 確認 一般
-f, --force

Set force for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 一般
--with <components>

Set with for this command.

已由 runtime 確認 一般
範例 claude plugin init my-plugin --with commands skills hooks

來源: Claude Code 2.1.220 recursive local help

claude plugin install 已由 runtime 確認 需檢視 3 個旗標
claude plugin install|i [options] <plugin>

Install a plugin from a configured marketplace.

別名: plugin i
--config <key=value>

Set config for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 需檢視
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude plugin install code-review@claude-plugins-official

來源: Claude Code 2.1.220 recursive local help

claude plugin list 已由 runtime 確認 一般 3 個旗標
claude plugin list [options]

List installed or marketplace-available plugins.

--available

Set available for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
--json

Set json for this command.

已由 runtime 確認 一般
範例 claude plugin list --json

來源: Claude Code 2.1.220 recursive local help

claude plugin marketplace 已由 runtime 確認 一般 1 個旗標
claude plugin marketplace [options] [command]

Manage plugin marketplace sources.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude plugin marketplace list

來源: Claude Code 2.1.220 recursive local help

claude plugin marketplace add 已由 runtime 確認 需檢視 3 個旗標
claude plugin marketplace add [options] <source>

Register a plugin marketplace source.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
--sparse <paths>

Set sparse for this command.

已由 runtime 確認 一般
範例 claude plugin marketplace add anthropics/claude-plugins-official

來源: Claude Code 2.1.220 recursive local help

claude plugin marketplace list 已由 runtime 確認 一般 2 個旗標
claude plugin marketplace list [options]

List configured plugin marketplaces.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--json

Set json for this command.

已由 runtime 確認 一般
範例 claude plugin marketplace list --json

來源: Claude Code 2.1.220 recursive local help

claude plugin marketplace remove 已由 runtime 確認 需檢視 2 個旗標
claude plugin marketplace remove|rm [options] <name>

Remove a configured plugin marketplace.

別名: plugin marketplace rm
-h, --help

Display help for this command.

已由 runtime 確認 需檢視
--scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude plugin marketplace remove example

來源: Claude Code 2.1.220 recursive local help

claude plugin marketplace update 已由 runtime 確認 需檢視 1 個旗標
claude plugin marketplace update [options] [name]

Refresh one or all configured plugin marketplaces.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude plugin marketplace update

來源: Claude Code 2.1.220 recursive local help

claude plugin prune 已由 runtime 確認 需檢視 4 個旗標
claude plugin prune|autoremove [options]

Remove auto-installed plugin dependencies no longer needed.

別名: plugin autoremove
--dry-run

Set dry run for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
-y, --yes

Set yes for this command.

已由 runtime 確認 需檢視
範例 claude plugin prune --dry-run

來源: Claude Code 2.1.220 recursive local help

claude plugin tag 已由 runtime 確認 需檢視 6 個旗標
claude plugin tag [options] [path]

Validate a plugin version and create an annotated release tag.

--dry-run

Set dry run for this command.

已由 runtime 確認 一般
-f, --force

Set force for this command.

已由 runtime 確認 需檢視
-h, --help

Display help for this command.

已由 runtime 確認 一般
-m, --message <msg>

Set message for this command.

已由 runtime 確認 一般
--push

Set push for this command.

已由 runtime 確認 需檢視
--remote <name>

Set remote for this command.

已由 runtime 確認 一般
範例 claude plugin tag --dry-run

來源: Claude Code 2.1.220 recursive local help

claude plugin uninstall 已由 runtime 確認 需檢視 5 個旗標
claude plugin uninstall|remove [options] <plugin>

Uninstall a plugin and optionally prune dependencies.

別名: plugin remove
-h, --help

Display help for this command.

已由 runtime 確認 需檢視
--keep-data

Set keep data for this command.

已由 runtime 確認 需檢視
--prune

Set prune for this command.

已由 runtime 確認 需檢視
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
-y, --yes

Set yes for this command.

已由 runtime 確認 需檢視
範例 claude plugin uninstall example --scope user

來源: Claude Code 2.1.220 recursive local help

claude plugin update 已由 runtime 確認 需檢視 2 個旗標
claude plugin update [options] <plugin>

Update an installed plugin.

-h, --help

Display help for this command.

已由 runtime 確認 一般
-s, --scope <scope>

Set scope for this command.

已由 runtime 確認 需檢視
範例 claude plugin update example

來源: Claude Code 2.1.220 recursive local help

claude plugin validate 已由 runtime 確認 一般 2 個旗標
claude plugin validate [options] <path>

Validate plugin structure and metadata.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--strict

Set strict for this command.

已由 runtime 確認 一般
範例 claude plugin validate ./my-plugin --strict

來源: Claude Code 2.1.220 recursive local help

claude project 已由 runtime 確認 一般 1 個旗標
claude project [options] [command]

Manage local Claude Code project state.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude project purge --dry-run

來源: Claude Code 2.1.220 recursive local help

claude project purge 已由 runtime 確認 高風險 5 個旗標
claude project purge [options] [path]

Delete Claude Code local state for one or all projects.

--all

Set all for this command.

已由 runtime 確認 高風險
--dry-run

Set dry run for this command.

已由 runtime 確認 高風險
-h, --help

Display help for this command.

已由 runtime 確認 高風險
-i, --interactive

Set interactive for this command.

已由 runtime 確認 高風險
-y, --yes

Set yes for this command.

已由 runtime 確認 高風險
範例 claude project purge ~/work/repo --dry-run

來源: Claude Code 2.1.220 recursive local help

claude setup-token 已由 runtime 確認 需檢視 1 個旗標
claude setup-token [options]

Generate a long-lived OAuth token for CI and scripts.

-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude setup-token

來源: Claude Code 2.1.220 recursive local help

claude ultrareview 已由 runtime 確認 需檢視 3 個旗標
claude ultrareview [options] [target]

Run an ultrareview non-interactively.

-h, --help

Display help for this command.

已由 runtime 確認 一般
--json

Set json for this command.

已由 runtime 確認 一般
--timeout <minutes>

Set timeout for this command.

已由 runtime 確認 一般
範例 claude ultrareview 1234 --json

來源: Claude Code 2.1.220 recursive local help

claude update 已由 runtime 確認 需檢視 1 個旗標
claude update|upgrade [options]

Check for and install Claude Code updates.

別名: upgrade
-h, --help

Display help for this command.

已由 runtime 確認 一般
範例 claude update

來源: Claude Code 2.1.220 recursive local help

claude attach 已由 runtime 確認 需檢視 0 個旗標
claude attach <id>

Attach this terminal to a background session.

沒有此命令專屬的旗標。

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude daemon 已由 runtime 確認 一般 3 個旗標
claude daemon [subcommand] [options]

Inspect and manage the on-demand background-session supervisor.

--json-path <path>

Set json path for this command.

已由 runtime 確認 一般
--log-file <path>

Set log file for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude daemon run 已由 runtime 確認 需檢視 3 個旗標
claude daemon run [json-path]

Run the background-session supervisor in the foreground.

--json-path <path>

Set json path for this command.

已由 runtime 確認 一般
--log-file <path>

Set log file for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude daemon status 已由 runtime 確認 一般 1 個旗標
claude daemon status

Show supervisor process, version, uptime, and workers.

-h, --help

Display help for this command.

已由 runtime 確認 一般

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude daemon logs 已由 runtime 確認 一般 1 個旗標
claude daemon logs

Tail the supervisor log until interrupted.

-h, --help

Display help for this command.

已由 runtime 確認 一般

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude daemon uninstall 已由 runtime 確認 需檢視 1 個旗標
claude daemon uninstall

Remove a previously installed background service where supported.

-h, --help

Display help for this command.

已由 runtime 確認 需檢視

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude daemon stop 已由 runtime 確認 需檢視 3 個旗標
claude daemon stop [options]

Stop the supervisor and its background sessions.

--any

Set any for this command.

已由 runtime 確認 一般
--keep-workers

Set keep workers for this command.

已由 runtime 確認 一般
-h, --help

Display help for this command.

已由 runtime 確認 一般

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude logs 已由 runtime 確認 一般 0 個旗標
claude logs <id>

Print recent terminal output for a background session.

沒有此命令專屬的旗標。

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude respawn 已由 runtime 確認 需檢視 1 個旗標
claude respawn <id>|--all

Restart a background session with its conversation intact.

--all

Set all for this command.

已由 runtime 確認 一般

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude rm 已由 runtime 確認 需檢視 0 個旗標
claude rm <id>

Remove a background session and its worktree while retaining its transcript.

沒有此命令專屬的旗標。

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude stop 已由 runtime 確認 需檢視 0 個旗標
claude stop <id>

Stop a background session while retaining its conversation.

別名: kill

沒有此命令專屬的旗標。

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

claude remote-control 條件式 需檢視 3 個旗標
claude remote-control [options]

Run a Remote Control server without a local interactive session.

-n, --name <name>

Name the session.

官方文件 一般
--remote-control-session-name-prefix <prefix>

Prefix automatically generated Remote Control session names.

官方文件 一般
--verbose

Control Claude Code verbose behavior.

官方文件 一般
範例 claude remote-control --name "My Project"

來源: Official Claude Code CLI reference

02

互動命令

在 Claude Code session 開頭輸入的命令;平台、方案與環境限制會明確標示。

/add-dir 官方文件

Run Claude Code's documented /add-dir interactive command.

來源: Official Claude Code commands reference
/advisor 條件式

Run Claude Code's documented /advisor interactive command.

來源: Official Claude Code commands reference
/agents 官方文件

Manage project and user subagent definitions.

來源: Official Claude Code commands reference
/autofix-pr 條件式

Run Claude Code's documented /autofix-pr interactive command.

來源: Official Claude Code commands reference
/background 條件式

Run Claude Code's documented /background interactive command.

來源: Official Claude Code commands reference
/batch 官方文件

Run Claude Code's documented /batch interactive command.

來源: Official Claude Code commands reference
/branch 官方文件

Run Claude Code's documented /branch interactive command.

別名: /fork 來源: Official Claude Code commands reference
/btw 官方文件

Run Claude Code's documented /btw interactive command.

來源: Official Claude Code commands reference
/bug 官方文件

Run Claude Code's documented /bug interactive command.

來源: Official Claude Code commands reference
/cd 官方文件

Run Claude Code's documented /cd interactive command.

來源: Official Claude Code commands reference
/chrome 條件式

Run Claude Code's documented /chrome interactive command.

來源: Official Claude Code commands reference
/claude-api 條件式

Run Claude Code's documented /claude-api interactive command.

來源: Official Claude Code commands reference
/clear 官方文件

Clear the current conversation context.

來源: Official Claude Code commands reference
/code-review 官方文件

Run Claude Code's documented /code-review interactive command.

來源: Official Claude Code commands reference
/color 官方文件

Run Claude Code's documented /color interactive command.

來源: Official Claude Code commands reference
/compact 官方文件

Run Claude Code's documented /compact interactive command.

來源: Official Claude Code commands reference
/config 官方文件

Open the tabbed settings and status interface.

來源: Official Claude Code commands reference
/context 官方文件

Visualize context-window usage and optimization opportunities.

來源: Official Claude Code commands reference
/copy 官方文件

Run Claude Code's documented /copy interactive command.

來源: Official Claude Code commands reference
/cost 官方文件

Run Claude Code's documented /cost interactive command.

來源: Official Claude Code commands reference
/dataviz 條件式

Run Claude Code's documented /dataviz interactive command.

來源: Official Claude Code commands reference
/debug 官方文件

Run Claude Code's documented /debug interactive command.

來源: Official Claude Code commands reference
/deep-research 條件式

Run Claude Code's documented /deep-research interactive command.

來源: Official Claude Code commands reference
/design-login 條件式

Run Claude Code's documented /design-login interactive command.

來源: Official Claude Code commands reference
/design-sync 條件式

Run Claude Code's documented /design-sync interactive command.

來源: Official Claude Code commands reference
/desktop 條件式

Run Claude Code's documented /desktop interactive command.

別名: /app 來源: Official Claude Code commands reference
/diff 官方文件

Run Claude Code's documented /diff interactive command.

來源: Official Claude Code commands reference
/doctor 官方文件

Diagnose installation and settings issues and optionally fix them.

來源: Official Claude Code commands reference
/effort 官方文件

Run Claude Code's documented /effort interactive command.

來源: Official Claude Code commands reference
/exit 官方文件

Run Claude Code's documented /exit interactive command.

別名: /quit 來源: Official Claude Code commands reference
/export 官方文件

Run Claude Code's documented /export interactive command.

來源: Official Claude Code commands reference
/fast 條件式

Run Claude Code's documented /fast interactive command.

來源: Official Claude Code commands reference
/feedback 官方文件

Run Claude Code's documented /feedback interactive command.

來源: Official Claude Code commands reference
/fewer-permission-prompts 官方文件

Run Claude Code's documented /fewer-permission-prompts interactive command.

來源: Official Claude Code commands reference
/focus 條件式

Run Claude Code's documented /focus interactive command.

來源: Official Claude Code commands reference
/fork 官方文件

Run Claude Code's documented /fork interactive command.

來源: Official Claude Code commands reference
/goal 官方文件

Run Claude Code's documented /goal interactive command.

來源: Official Claude Code commands reference
/heapdump 官方文件

Run Claude Code's documented /heapdump interactive command.

來源: Official Claude Code commands reference
/help 官方文件

Run Claude Code's documented /help interactive command.

來源: Official Claude Code commands reference
/hooks 官方文件

Inspect hook handlers registered for tool and lifecycle events.

來源: Official Claude Code commands reference
/ide 官方文件

Run Claude Code's documented /ide interactive command.

來源: Official Claude Code commands reference
/init 官方文件

Create a starter CLAUDE.md project guide.

來源: Official Claude Code commands reference
/insights 官方文件

Run Claude Code's documented /insights interactive command.

來源: Official Claude Code commands reference
/install-github-app 條件式

Run Claude Code's documented /install-github-app interactive command.

來源: Official Claude Code commands reference
/install-slack-app 條件式

Run Claude Code's documented /install-slack-app interactive command.

來源: Official Claude Code commands reference
/keybindings 官方文件

Run Claude Code's documented /keybindings interactive command.

來源: Official Claude Code commands reference
/login 官方文件

Run Claude Code's documented /login interactive command.

來源: Official Claude Code commands reference
/logout 官方文件

Run Claude Code's documented /logout interactive command.

來源: Official Claude Code commands reference
/loop 官方文件

Run Claude Code's documented /loop interactive command.

別名: /proactive 來源: Official Claude Code commands reference
/mcp 官方文件

Inspect MCP servers, tools, resources, prompts, and authentication.

來源: Official Claude Code commands reference
/memory 官方文件

Open and manage CLAUDE.md memory files.

來源: Official Claude Code commands reference
/mobile 條件式

Run Claude Code's documented /mobile interactive command.

來源: Official Claude Code commands reference
/model 官方文件

Run Claude Code's documented /model interactive command.

來源: Official Claude Code commands reference
/passes 官方文件

Run Claude Code's documented /passes interactive command.

來源: Official Claude Code commands reference
/permissions 官方文件

Review and edit tool permission rules.

別名: /allowed-tools 來源: Official Claude Code commands reference
/plan 官方文件

Run Claude Code's documented /plan interactive command.

來源: Official Claude Code commands reference
/plugin 官方文件

Browse and manage Claude Code plugins.

來源: Official Claude Code commands reference
/powerup 官方文件

Run Claude Code's documented /powerup interactive command.

來源: Official Claude Code commands reference
/pr-comments 歷史項目

Run Claude Code's documented /pr-comments interactive command.

來源: Official Claude Code commands reference
/privacy-settings 條件式

Run Claude Code's documented /privacy-settings interactive command.

來源: Official Claude Code commands reference
/radio 條件式

Run Claude Code's documented /radio interactive command.

來源: Official Claude Code commands reference
/recap 官方文件

Run Claude Code's documented /recap interactive command.

來源: Official Claude Code commands reference
/release-notes 官方文件

Run Claude Code's documented /release-notes interactive command.

來源: Official Claude Code commands reference
/reload-plugins 官方文件

Reload active plugins without restarting the session.

來源: Official Claude Code commands reference
/reload-skills 官方文件

Re-scan skill directories without restarting the session.

來源: Official Claude Code commands reference
/remote-control 條件式

Run Claude Code's documented /remote-control interactive command.

別名: /rc 來源: Official Claude Code commands reference
/remote-env 條件式

Run Claude Code's documented /remote-env interactive command.

來源: Official Claude Code commands reference
/rename 官方文件

Run Claude Code's documented /rename interactive command.

來源: Official Claude Code commands reference
/resume 官方文件

Resume a conversation by ID or name, or open the session picker.

別名: /continue 來源: Official Claude Code commands reference
/review 官方文件

Run Claude Code's documented /review interactive command.

來源: Official Claude Code commands reference
/rewind 官方文件

Restore conversation context and optionally file changes to a checkpoint.

別名: /checkpoint, /undo 來源: Official Claude Code commands reference
/run 官方文件

Run Claude Code's documented /run interactive command.

來源: Official Claude Code commands reference
/run-skill-generator 官方文件

Run Claude Code's documented /run-skill-generator interactive command.

來源: Official Claude Code commands reference
/sandbox 官方文件

Run Claude Code's documented /sandbox interactive command.

來源: Official Claude Code commands reference
/schedule 官方文件

Run Claude Code's documented /schedule interactive command.

來源: Official Claude Code commands reference
/scroll-speed 官方文件

Run Claude Code's documented /scroll-speed interactive command.

來源: Official Claude Code commands reference
/security-review 官方文件

Run Claude Code's documented /security-review interactive command.

來源: Official Claude Code commands reference
/setup-bedrock 條件式

Run Claude Code's documented /setup-bedrock interactive command.

來源: Official Claude Code commands reference
/setup-vertex 條件式

Run Claude Code's documented /setup-vertex interactive command.

來源: Official Claude Code commands reference
/simplify 官方文件

Run Claude Code's documented /simplify interactive command.

來源: Official Claude Code commands reference
/skills 官方文件

List skills and control their visibility to Claude.

來源: Official Claude Code commands reference
/stats 官方文件

Run Claude Code's documented /stats interactive command.

來源: Official Claude Code commands reference
/status 官方文件

Run Claude Code's documented /status interactive command.

來源: Official Claude Code commands reference
/statusline 官方文件

Run Claude Code's documented /statusline interactive command.

來源: Official Claude Code commands reference
/stickers 條件式

Run Claude Code's documented /stickers interactive command.

來源: Official Claude Code commands reference
/stop 條件式

Run Claude Code's documented /stop interactive command.

來源: Official Claude Code commands reference
/subtask 官方文件

Run Claude Code's documented /subtask interactive command.

來源: Official Claude Code commands reference
/tasks 官方文件

Inspect and manage background tasks.

別名: /bashes 來源: Official Claude Code commands reference
/team-onboarding 條件式

Run Claude Code's documented /team-onboarding interactive command.

來源: Official Claude Code commands reference
/teleport 條件式

Pull a Claude Code on the web session into this terminal.

別名: /tp 來源: Official Claude Code commands reference
/terminal-setup 條件式

Run Claude Code's documented /terminal-setup interactive command.

來源: Official Claude Code commands reference
/theme 官方文件

Run Claude Code's documented /theme interactive command.

來源: Official Claude Code commands reference
/tui 官方文件

Run Claude Code's documented /tui interactive command.

來源: Official Claude Code commands reference
/ultraplan 條件式

Run Claude Code's documented /ultraplan interactive command.

來源: Official Claude Code commands reference
/ultrareview 條件式

Run Claude Code's documented /ultrareview interactive command.

來源: Official Claude Code commands reference
/upgrade 條件式

Run Claude Code's documented /upgrade interactive command.

來源: Official Claude Code commands reference
/usage 官方文件

Run Claude Code's documented /usage interactive command.

來源: Official Claude Code commands reference
/usage-credits 條件式

Run Claude Code's documented /usage-credits interactive command.

來源: Official Claude Code commands reference
/verify 官方文件

Run Claude Code's documented /verify interactive command.

來源: Official Claude Code commands reference
/vim 歷史項目

Run Claude Code's documented /vim interactive command.

來源: Official Claude Code commands reference
/voice 條件式

Run Claude Code's documented /voice interactive command.

來源: Official Claude Code commands reference
/web-setup 條件式

Run Claude Code's documented /web-setup interactive command.

來源: Official Claude Code commands reference
/workflows 官方文件

Run Claude Code's documented /workflows interactive command.

來源: Official Claude Code commands reference
/plugin-dev:create-plugin 原始碼預覽

Run the public plugin-dev asset workflow for creating a Claude Code plugin.

來源: Public Claude Code v2.1.220 plugin assets
03

設定鍵

官方設定表與公開 JSON Schema top-level keys 的聯集。

$schema url

Enable editor validation against the published Claude Code settings schema.

官方文件
advisorModel string

Configure Claude Code's advisorModel setting.

官方文件
agent string

Configure Claude Code's agent setting.

官方文件
agentPushNotifEnabled boolean

Configure Claude Code's agentPushNotifEnabled setting.

官方文件
allowAllClaudeAiMcps boolean

Configure Claude Code's allowAllClaudeAiMcps setting.

官方文件
allowedChannelPlugins array

Configure Claude Code's allowedChannelPlugins setting.

官方文件
allowedHttpHookUrls array

Configure Claude Code's allowedHttpHookUrls setting.

官方文件
allowedMcpServers array

Configure Claude Code's allowedMcpServers setting.

官方文件
allowManagedHooksOnly boolean

Configure Claude Code's allowManagedHooksOnly setting.

官方文件
allowManagedMcpServersOnly boolean

Configure Claude Code's allowManagedMcpServersOnly setting.

官方文件
allowManagedPermissionRulesOnly boolean

Configure Claude Code's allowManagedPermissionRulesOnly setting.

官方文件
alwaysThinkingEnabled boolean

Configure Claude Code's alwaysThinkingEnabled setting.

官方文件
apiKeyHelper string

Configure Claude Code's apiKeyHelper setting.

官方文件 敏感
askUserQuestionTimeout string

Configure Claude Code's askUserQuestionTimeout setting.

官方文件
attribution object

Configure Claude Code's attribution setting.

官方文件
autoCompactEnabled boolean

Configure Claude Code's autoCompactEnabled setting.

官方文件
autoConnectIde boolean

Configure Claude Code's autoConnectIde setting.

官方文件
autoInstallIdeExtension boolean

Configure Claude Code's autoInstallIdeExtension setting.

官方文件
autoMemoryDirectory string

Configure Claude Code's autoMemoryDirectory setting.

官方文件
autoMemoryEnabled boolean

Configure Claude Code's autoMemoryEnabled setting.

官方文件
autoMode object

Customize automatic permission-mode classification rules.

官方文件
autoMode.classifyAllShell boolean

Configure Claude Code's autoMode.classifyAllShell setting.

官方文件
autoScrollEnabled boolean

Configure Claude Code's autoScrollEnabled setting.

官方文件
autoUpdatesChannel string

Configure Claude Code's autoUpdatesChannel setting.

官方文件
availableModels array

Configure Claude Code's availableModels setting.

官方文件
awaySummaryEnabled boolean

Configure Claude Code's awaySummaryEnabled setting.

官方文件
awsAuthRefresh string

Configure Claude Code's awsAuthRefresh setting.

官方文件 敏感
awsCredentialExport string

Configure Claude Code's awsCredentialExport setting.

官方文件 敏感
axScreenReader boolean

Configure Claude Code's axScreenReader setting.

官方文件
blockedMarketplaces array

Configure Claude Code's blockedMarketplaces setting.

官方文件
browserExternalPageTools string

Configure Claude Code's browserExternalPageTools setting.

官方文件
channelsEnabled boolean

Configure Claude Code's channelsEnabled setting.

官方文件
claudeMd string

Configure Claude Code's claudeMd setting.

官方文件
claudeMdExcludes array

Configure Claude Code's claudeMdExcludes setting.

官方文件
cleanupPeriodDays integer

Configure Claude Code's cleanupPeriodDays setting.

官方文件
companyAnnouncements array

Configure Claude Code's companyAnnouncements setting.

官方文件
defaultShell string

Configure Claude Code's defaultShell setting.

官方文件
deniedMcpServers array

Configure Claude Code's deniedMcpServers setting.

官方文件
diffTool string

Configure Claude Code's diffTool setting.

官方文件
disableAgentView boolean

Configure Claude Code's disableAgentView setting.

官方文件
disableAllHooks boolean

Configure Claude Code's disableAllHooks setting.

官方文件
disableArtifact boolean

Configure Claude Code's disableArtifact setting.

官方文件
disableAutoMode string

Configure Claude Code's disableAutoMode setting.

官方文件
disableBrowserExternalNavigation boolean

Configure Claude Code's disableBrowserExternalNavigation setting.

官方文件
disableBundledSkills boolean

Configure Claude Code's disableBundledSkills setting.

官方文件
disableClaudeAiConnectors boolean

Configure Claude Code's disableClaudeAiConnectors setting.

官方文件
disableDeepLinkRegistration string

Configure Claude Code's disableDeepLinkRegistration setting.

官方文件
disabledMcpjsonServers array

Configure Claude Code's disabledMcpjsonServers setting.

官方文件
disableMobileSimulatorTools boolean

Configure Claude Code's disableMobileSimulatorTools setting.

官方文件
disableRemoteControl boolean

Configure Claude Code's disableRemoteControl setting.

官方文件
disableSideloadFlags boolean

Configure Claude Code's disableSideloadFlags setting.

官方文件
disableSkillShellExecution boolean

Configure Claude Code's disableSkillShellExecution setting.

官方文件
disableWorkflows boolean

Configure Claude Code's disableWorkflows setting.

官方文件
editorMode string

Configure Claude Code's editorMode setting.

官方文件
effortLevel string

Set the default reasoning effort level.

官方文件
emojiCompletionEnabled boolean

Configure Claude Code's emojiCompletionEnabled setting.

官方文件
enableAllProjectMcpServers boolean

Configure Claude Code's enableAllProjectMcpServers setting.

官方文件
enableArtifact boolean

Configure Claude Code's enableArtifact setting.

官方文件
enabledMcpjsonServers array

Configure Claude Code's enabledMcpjsonServers setting.

官方文件
enabledPlugins object

Enable or disable plugins by their plugin@marketplace identifier.

官方文件
enforceAvailableModels boolean

Configure Claude Code's enforceAvailableModels setting.

官方文件
env object

Set environment variables for every Claude Code session; values can contain secrets.

官方文件 敏感
externalEditorContext boolean

Configure Claude Code's externalEditorContext setting.

官方文件
extraKnownMarketplaces object

Declare additional plugin marketplaces in team settings.

官方文件
fallbackModel array

Configure Claude Code's fallbackModel setting.

官方文件
fastMode boolean

Configure Claude Code's fastMode setting.

官方文件
fastModePerSessionOptIn boolean

Configure Claude Code's fastModePerSessionOptIn setting.

官方文件
feedbackSurveyRate number

Configure Claude Code's feedbackSurveyRate setting.

官方文件
fileCheckpointingEnabled boolean

Configure Claude Code's fileCheckpointingEnabled setting.

官方文件
fileSuggestion object

Configure Claude Code's fileSuggestion setting.

官方文件
footerLinksRegexes array

Configure Claude Code's footerLinksRegexes setting.

官方文件
forceLoginGatewayUrl string

Configure Claude Code's forceLoginGatewayUrl setting.

官方文件
forceLoginMethod string

Configure Claude Code's forceLoginMethod setting.

官方文件
forceLoginOrgUUID object

Configure Claude Code's forceLoginOrgUUID setting.

官方文件
forceRemoteSettingsRefresh boolean

Configure Claude Code's forceRemoteSettingsRefresh setting.

官方文件
gcpAuthRefresh string

Configure Claude Code's gcpAuthRefresh setting.

官方文件 敏感
hooks object

Register shell, prompt, agent, or HTTP handlers for Claude Code lifecycle events.

官方文件
httpHookAllowedEnvVars array

Configure Claude Code's httpHookAllowedEnvVars setting.

官方文件 敏感
includeCoAuthoredBy boolean

Configure Claude Code's includeCoAuthoredBy setting.

官方文件 敏感
includeGitInstructions boolean

Configure Claude Code's includeGitInstructions setting.

官方文件
inputNeededNotifEnabled boolean

Configure Claude Code's inputNeededNotifEnabled setting.

官方文件
language string

Configure Claude Code's language setting.

官方文件
leftArrowOpensAgents boolean

Configure Claude Code's leftArrowOpensAgents setting.

官方文件
managedMcpServers array

Configure Claude Code's managedMcpServers setting.

官方文件
minimumVersion string

Configure Claude Code's minimumVersion setting.

官方文件
model string

Set the default Claude model alias or full model ID.

官方文件
modelOverrides object

Configure Claude Code's modelOverrides setting.

官方文件
otelHeadersHelper string

Configure Claude Code's otelHeadersHelper setting.

官方文件 敏感
outputStyle string

Configure Claude Code's outputStyle setting.

官方文件
parentSettingsBehavior string

Configure Claude Code's parentSettingsBehavior setting.

官方文件
permissionExplainerEnabled boolean

Configure Claude Code's permissionExplainerEnabled setting.

官方文件
permissions object

Define allow, ask, deny, additional-directory, and permission-mode policy.

官方文件
plansDirectory string

Configure Claude Code's plansDirectory setting.

官方文件
pluginConfigs object

Configure Claude Code's pluginConfigs setting.

官方文件
pluginSuggestionMarketplaces array

Configure Claude Code's pluginSuggestionMarketplaces setting.

官方文件
pluginTrustMessage string

Configure Claude Code's pluginTrustMessage setting.

官方文件
policyHelper object

Configure Claude Code's policyHelper setting.

官方文件
preferredNotifChannel string

Configure Claude Code's preferredNotifChannel setting.

官方文件
prefersReducedMotion boolean

Configure Claude Code's prefersReducedMotion setting.

官方文件
processWrapper string

Configure Claude Code's processWrapper setting.

官方文件
prUrlTemplate string

Configure Claude Code's prUrlTemplate setting.

官方文件
remote.defaultEnvironmentId string

Configure Claude Code's remote.defaultEnvironmentId setting.

官方文件 敏感
remoteControlAtStartup boolean

Configure Claude Code's remoteControlAtStartup setting.

官方文件
requireCoworkFullVmSandbox boolean

Configure Claude Code's requireCoworkFullVmSandbox setting.

官方文件
requiredMaximumVersion string

Configure Claude Code's requiredMaximumVersion setting.

官方文件
requiredMinimumVersion string

Configure Claude Code's requiredMinimumVersion setting.

官方文件
respectGitignore boolean

Configure Claude Code's respectGitignore setting.

官方文件
respondToBashCommands boolean

Configure Claude Code's respondToBashCommands setting.

官方文件
sandbox object

Configure filesystem, network, credential, and command sandbox policy.

官方文件
showClearContextOnPlanAccept boolean

Configure Claude Code's showClearContextOnPlanAccept setting.

官方文件
showThinkingSummaries boolean

Configure Claude Code's showThinkingSummaries setting.

官方文件
showTurnDuration boolean

Configure Claude Code's showTurnDuration setting.

官方文件
skillListingBudgetFraction number

Configure Claude Code's skillListingBudgetFraction setting.

官方文件
skillListingMaxDescChars integer

Configure Claude Code's skillListingMaxDescChars setting.

官方文件
skillOverrides object

Configure Claude Code's skillOverrides setting.

官方文件
skipDangerousModePermissionPrompt boolean

Configure Claude Code's skipDangerousModePermissionPrompt setting.

官方文件
skippedMarketplaces array

Configure Claude Code's skippedMarketplaces setting.

官方文件
skippedPlugins array

Configure Claude Code's skippedPlugins setting.

官方文件
skipWebFetchPreflight boolean

Configure Claude Code's skipWebFetchPreflight setting.

官方文件
spinnerTipsEnabled boolean

Configure Claude Code's spinnerTipsEnabled setting.

官方文件
spinnerTipsOverride object

Configure Claude Code's spinnerTipsOverride setting.

官方文件
spinnerVerbs object

Configure Claude Code's spinnerVerbs setting.

官方文件
sshConfigs array

Configure Claude Code's sshConfigs setting.

官方文件
sshHostAllowlist array

Configure Claude Code's sshHostAllowlist setting.

官方文件
statusLine object

Configure a command-backed status line.

官方文件
strictKnownMarketplaces array

Configure Claude Code's strictKnownMarketplaces setting.

官方文件
strictPluginOnlyCustomization object

Configure Claude Code's strictPluginOnlyCustomization setting.

官方文件
subagentStatusLine object

Configure Claude Code's subagentStatusLine setting.

官方文件
switchModelsOnFlag boolean

Configure Claude Code's switchModelsOnFlag setting.

官方文件
syntaxHighlightingDisabled boolean

Configure Claude Code's syntaxHighlightingDisabled setting.

官方文件
teammateDefaultModel string

Configure Claude Code's teammateDefaultModel setting.

官方文件
teammateMode string

Configure Claude Code's teammateMode setting.

官方文件
terminalProgressBarEnabled boolean

Configure Claude Code's terminalProgressBarEnabled setting.

官方文件
theme string

Configure Claude Code's theme setting.

官方文件
tui string

Configure Claude Code's tui setting.

官方文件
ultracode boolean

Configure Claude Code's ultracode setting.

官方文件
useAutoModeDuringPlan boolean

Configure Claude Code's useAutoModeDuringPlan setting.

官方文件
verbose boolean

Configure Claude Code's verbose setting.

官方文件
viewMode string

Configure Claude Code's viewMode setting.

官方文件
vimInsertModeRemaps object

Configure Claude Code's vimInsertModeRemaps setting.

官方文件
voice object

Configure Claude Code's voice setting.

官方文件
voiceEnabled boolean

Configure Claude Code's voiceEnabled setting.

官方文件
wheelScrollAccelerationEnabled boolean

Configure Claude Code's wheelScrollAccelerationEnabled setting.

官方文件
workflowKeywordTriggerEnabled boolean

Configure Claude Code's workflowKeywordTriggerEnabled setting.

官方文件
workflowSizeGuideline string

Configure Claude Code's workflowSizeGuideline setting.

官方文件
worktree object

Configure worktree creation, sparse paths, symlinks, and background isolation.

官方文件
worktree.baseRef string

Configure Claude Code's worktree.baseRef setting.

官方文件
worktree.bgIsolation boolean

Configure Claude Code's worktree.bgIsolation setting.

官方文件
worktree.sparsePaths array

Configure Claude Code's worktree.sparsePaths setting.

官方文件
worktree.symlinkDirectories array

Configure Claude Code's worktree.symlinkDirectories setting.

官方文件
wslInheritsWindowsSettings boolean

Configure Claude Code's wslInheritsWindowsSettings setting.

官方文件
04

環境變數

此版本快照所收錄的完整官方環境變數表。

ANTHROPIC_API_KEY ENV

Authenticate direct Anthropic API requests.

官方文件 敏感
ANTHROPIC_AUTH_TOKEN ENV

Supply a bearer token for compatible Anthropic gateways.

官方文件 敏感
ANTHROPIC_AWS_API_KEY ENV

Configure Claude Code behavior through the documented ANTHROPIC_AWS_API_KEY environment variable.

條件式 敏感
ANTHROPIC_AWS_BASE_URL ENV

Configure Claude Code behavior through the documented ANTHROPIC_AWS_BASE_URL environment variable.

條件式
ANTHROPIC_AWS_WORKSPACE_ID ENV

Configure Claude Code behavior through the documented ANTHROPIC_AWS_WORKSPACE_ID environment variable.

條件式
ANTHROPIC_BASE_URL ENV

Route Anthropic API requests through a custom base URL.

官方文件
ANTHROPIC_BEDROCK_BASE_URL ENV

Configure Claude Code behavior through the documented ANTHROPIC_BEDROCK_BASE_URL environment variable.

條件式
ANTHROPIC_BEDROCK_MANTLE_BASE_URL ENV

Configure Claude Code behavior through the documented ANTHROPIC_BEDROCK_MANTLE_BASE_URL environment variable.

條件式
ANTHROPIC_BEDROCK_SERVICE_TIER ENV

Configure Claude Code behavior through the documented ANTHROPIC_BEDROCK_SERVICE_TIER environment variable.

條件式
ANTHROPIC_BETAS ENV

Configure Claude Code behavior through the documented ANTHROPIC_BETAS environment variable.

官方文件
ANTHROPIC_CUSTOM_HEADERS ENV

Configure Claude Code behavior through the documented ANTHROPIC_CUSTOM_HEADERS environment variable.

官方文件 敏感
ANTHROPIC_CUSTOM_MODEL_OPTION ENV

Configure Claude Code behavior through the documented ANTHROPIC_CUSTOM_MODEL_OPTION environment variable.

官方文件
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION ENV

Configure Claude Code behavior through the documented ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION environment variable.

官方文件
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME ENV

Configure Claude Code behavior through the documented ANTHROPIC_CUSTOM_MODEL_OPTION_NAME environment variable.

官方文件
ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES ENV

Configure Claude Code behavior through the documented ANTHROPIC_CUSTOM_MODEL_OPTION_SUPPORTED_CAPABILITIES environment variable.

官方文件
ANTHROPIC_DEFAULT_FABLE_MODEL ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_FABLE_MODEL environment variable.

官方文件
ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_FABLE_MODEL_DESCRIPTION environment variable.

官方文件
ANTHROPIC_DEFAULT_FABLE_MODEL_NAME ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_FABLE_MODEL_NAME environment variable.

官方文件
ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIES ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_FABLE_MODEL_SUPPORTED_CAPABILITIES environment variable.

官方文件
ANTHROPIC_DEFAULT_HAIKU_MODEL ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_HAIKU_MODEL environment variable.

官方文件
ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_HAIKU_MODEL_DESCRIPTION environment variable.

官方文件
ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_HAIKU_MODEL_NAME environment variable.

官方文件
ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES environment variable.

官方文件
ANTHROPIC_DEFAULT_OPUS_MODEL ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_OPUS_MODEL environment variable.

官方文件
ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_OPUS_MODEL_DESCRIPTION environment variable.

官方文件
ANTHROPIC_DEFAULT_OPUS_MODEL_NAME ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_OPUS_MODEL_NAME environment variable.

官方文件
ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES environment variable.

官方文件
ANTHROPIC_DEFAULT_SONNET_MODEL ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_SONNET_MODEL environment variable.

官方文件
ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_SONNET_MODEL_DESCRIPTION environment variable.

官方文件
ANTHROPIC_DEFAULT_SONNET_MODEL_NAME ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_SONNET_MODEL_NAME environment variable.

官方文件
ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES ENV

Configure Claude Code behavior through the documented ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES environment variable.

官方文件
ANTHROPIC_FOUNDRY_API_KEY ENV

Configure Claude Code behavior through the documented ANTHROPIC_FOUNDRY_API_KEY environment variable.

條件式 敏感
ANTHROPIC_FOUNDRY_AUTH_TOKEN ENV

Configure Claude Code behavior through the documented ANTHROPIC_FOUNDRY_AUTH_TOKEN environment variable.

條件式 敏感
ANTHROPIC_FOUNDRY_BASE_URL ENV

Configure Claude Code behavior through the documented ANTHROPIC_FOUNDRY_BASE_URL environment variable.

條件式
ANTHROPIC_FOUNDRY_RESOURCE ENV

Configure Claude Code behavior through the documented ANTHROPIC_FOUNDRY_RESOURCE environment variable.

條件式
ANTHROPIC_MODEL ENV

Configure Claude Code behavior through the documented ANTHROPIC_MODEL environment variable.

官方文件
ANTHROPIC_SMALL_FAST_MODEL ENV

Configure Claude Code behavior through the documented ANTHROPIC_SMALL_FAST_MODEL environment variable.

官方文件
ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION ENV

Configure Claude Code behavior through the documented ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION environment variable.

條件式
ANTHROPIC_VERTEX_BASE_URL ENV

Configure Claude Code behavior through the documented ANTHROPIC_VERTEX_BASE_URL environment variable.

條件式
ANTHROPIC_VERTEX_PROJECT_ID ENV

Configure Claude Code behavior through the documented ANTHROPIC_VERTEX_PROJECT_ID environment variable.

條件式
ANTHROPIC_WORKSPACE_ID ENV

Configure Claude Code behavior through the documented ANTHROPIC_WORKSPACE_ID environment variable.

官方文件
API_FORCE_IDLE_TIMEOUT ENV

Configure Claude Code behavior through the documented API_FORCE_IDLE_TIMEOUT environment variable.

官方文件
API_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented API_TIMEOUT_MS environment variable.

官方文件
AWS_BEARER_TOKEN_BEDROCK ENV

Configure Claude Code behavior through the documented AWS_BEARER_TOKEN_BEDROCK environment variable.

條件式
BASH_DEFAULT_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented BASH_DEFAULT_TIMEOUT_MS environment variable.

官方文件
BASH_MAX_OUTPUT_LENGTH ENV

Configure Claude Code behavior through the documented BASH_MAX_OUTPUT_LENGTH environment variable.

官方文件
BASH_MAX_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented BASH_MAX_TIMEOUT_MS environment variable.

官方文件
CCR_FORCE_BUNDLE ENV

Configure Claude Code behavior through the documented CCR_FORCE_BUNDLE environment variable.

官方文件
CLAUDECODE ENV

Detect a shell spawned by Claude Code; set to 1 in tool shells.

官方文件
CLAUDE_AFK_COUNTDOWN_MS ENV

Configure Claude Code behavior through the documented CLAUDE_AFK_COUNTDOWN_MS environment variable.

官方文件
CLAUDE_AFK_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_AFK_TIMEOUT_MS environment variable.

官方文件
CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS ENV

Configure Claude Code behavior through the documented CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS environment variable.

官方文件
CLAUDE_AGENT_SDK_MCP_NO_PREFIX ENV

Configure Claude Code behavior through the documented CLAUDE_AGENT_SDK_MCP_NO_PREFIX environment variable.

條件式
CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_ASYNC_AGENT_STALL_TIMEOUT_MS environment variable.

官方文件
CLAUDE_AUTOCOMPACT_PCT_OVERRIDE ENV

Configure Claude Code behavior through the documented CLAUDE_AUTOCOMPACT_PCT_OVERRIDE environment variable.

條件式
CLAUDE_AUTO_BACKGROUND_TASKS ENV

Configure Claude Code behavior through the documented CLAUDE_AUTO_BACKGROUND_TASKS environment variable.

官方文件
CLAUDE_AX_SCREEN_READER ENV

Configure Claude Code behavior through the documented CLAUDE_AX_SCREEN_READER environment variable.

官方文件
CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR ENV

Configure Claude Code behavior through the documented CLAUDE_BASH_MAINTAIN_PROJECT_WORKING_DIR environment variable.

官方文件
CLAUDE_CLIENT_PRESENCE_FILE ENV

Configure Claude Code behavior through the documented CLAUDE_CLIENT_PRESENCE_FILE environment variable.

官方文件
CLAUDE_CODE_ACCESSIBILITY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ACCESSIBILITY environment variable.

官方文件
CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ADDITIONAL_DIRECTORIES_CLAUDE_MD environment variable.

官方文件
CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT environment variable.

官方文件
CLAUDE_CODE_ALWAYS_ENABLE_EFFORT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ALWAYS_ENABLE_EFFORT environment variable.

官方文件
CLAUDE_CODE_API_KEY_HELPER_TTL_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_API_KEY_HELPER_TTL_MS environment variable.

官方文件 敏感
CLAUDE_CODE_ARTIFACT_AUTO_OPEN ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ARTIFACT_AUTO_OPEN environment variable.

官方文件
CLAUDE_CODE_ATTRIBUTION_HEADER ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ATTRIBUTION_HEADER environment variable.

官方文件
CLAUDE_CODE_AUTO_COMPACT_WINDOW ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_AUTO_COMPACT_WINDOW environment variable.

官方文件
CLAUDE_CODE_AUTO_CONNECT_IDE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_AUTO_CONNECT_IDE environment variable.

條件式
CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_AWS_CHAIN_RESOLVE_TIMEOUT_MS environment variable.

條件式
CLAUDE_CODE_BRIDGE_SESSION_ID ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_BRIDGE_SESSION_ID environment variable.

官方文件
CLAUDE_CODE_CERT_STORE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_CERT_STORE environment variable.

官方文件
CLAUDE_CODE_CHILD_SESSION ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_CHILD_SESSION environment variable.

官方文件
CLAUDE_CODE_CLIENT_CERT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_CLIENT_CERT environment variable.

官方文件
CLAUDE_CODE_CLIENT_KEY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_CLIENT_KEY environment variable.

官方文件 敏感
CLAUDE_CODE_CLIENT_KEY_PASSPHRASE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_CLIENT_KEY_PASSPHRASE environment variable.

官方文件 敏感
CLAUDE_CODE_CONNECT_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_CONNECT_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_DEBUG_LOGS_DIR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DEBUG_LOGS_DIR environment variable.

官方文件
CLAUDE_CODE_DEBUG_LOG_LEVEL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DEBUG_LOG_LEVEL environment variable.

官方文件
CLAUDE_CODE_DISABLE_1M_CONTEXT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_1M_CONTEXT environment variable.

官方文件
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING environment variable.

官方文件
CLAUDE_CODE_DISABLE_ADVISOR_TOOL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_ADVISOR_TOOL environment variable.

官方文件
CLAUDE_CODE_DISABLE_AGENT_VIEW ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_AGENT_VIEW environment variable.

官方文件
CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN environment variable.

官方文件
CLAUDE_CODE_DISABLE_ARTIFACT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_ARTIFACT environment variable.

官方文件
CLAUDE_CODE_DISABLE_ATTACHMENTS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_ATTACHMENTS environment variable.

官方文件
CLAUDE_CODE_DISABLE_AUTO_MEMORY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_AUTO_MEMORY environment variable.

官方文件
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_BACKGROUND_TASKS environment variable.

官方文件
CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_BEDROCK_CONTENT_TYPE_GUARD environment variable.

條件式
CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_BG_EXIT_HANDOFF environment variable.

官方文件
CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_BG_SHELL_PRESSURE_REAP environment variable.

官方文件
CLAUDE_CODE_DISABLE_BUNDLED_SKILLS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_BUNDLED_SKILLS environment variable.

官方文件
CLAUDE_CODE_DISABLE_CLAUDE_MDS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_CLAUDE_MDS environment variable.

官方文件
CLAUDE_CODE_DISABLE_CRON ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_CRON environment variable.

官方文件
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS environment variable.

條件式
CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS environment variable.

官方文件
CLAUDE_CODE_DISABLE_FAST_MODE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_FAST_MODE environment variable.

官方文件
CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY environment variable.

官方文件
CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING environment variable.

官方文件
CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS environment variable.

官方文件
CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_LEGACY_MODEL_REMAP environment variable.

官方文件
CLAUDE_CODE_DISABLE_MOUSE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_MOUSE environment variable.

官方文件
CLAUDE_CODE_DISABLE_MOUSE_CLICKS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_MOUSE_CLICKS environment variable.

官方文件
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC ENV

Disable nonessential network traffic such as updates and surveys.

官方文件
CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK environment variable.

官方文件
CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_NOTIFICATION_PRESENCE_CHECK environment variable.

官方文件
CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL environment variable.

官方文件
CLAUDE_CODE_DISABLE_POLICY_SKILLS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_POLICY_SKILLS environment variable.

官方文件
CLAUDE_CODE_DISABLE_TERMINAL_TITLE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_TERMINAL_TITLE environment variable.

官方文件
CLAUDE_CODE_DISABLE_THINKING ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_THINKING environment variable.

官方文件
CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_VIRTUAL_SCROLL environment variable.

官方文件
CLAUDE_CODE_DISABLE_WORKFLOWS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_DISABLE_WORKFLOWS environment variable.

官方文件
CLAUDE_CODE_EFFORT_LEVEL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_EFFORT_LEVEL environment variable.

官方文件
CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_APPEND_SUBAGENT_PROMPT environment variable.

官方文件
CLAUDE_CODE_ENABLE_AUTO_MODE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_AUTO_MODE environment variable.

官方文件
CLAUDE_CODE_ENABLE_AWAY_SUMMARY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_AWAY_SUMMARY environment variable.

官方文件
CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_BACKGROUND_PLUGIN_REFRESH environment variable.

官方文件
CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_FEEDBACK_SURVEY_FOR_OTEL environment variable.

官方文件
CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_FINE_GRAINED_TOOL_STREAMING environment variable.

官方文件
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY environment variable.

官方文件
CLAUDE_CODE_ENABLE_OPUS_4_7_FAST_MODE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_OPUS_4_7_FAST_MODE environment variable.

官方文件
CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_PROMPT_SUGGESTION environment variable.

官方文件
CLAUDE_CODE_ENABLE_TASKS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_TASKS environment variable.

官方文件
CLAUDE_CODE_ENABLE_TELEMETRY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_ENABLE_TELEMETRY environment variable.

官方文件
CLAUDE_CODE_EXIT_AFTER_STOP_DELAY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_EXIT_AFTER_STOP_DELAY environment variable.

官方文件
CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS environment variable.

條件式
CLAUDE_CODE_EXTRA_BODY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_EXTRA_BODY environment variable.

官方文件
CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_FILE_READ_MAX_OUTPUT_TOKENS environment variable.

官方文件
CLAUDE_CODE_FORCE_SESSION_PERSISTENCE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_FORCE_SESSION_PERSISTENCE environment variable.

官方文件
CLAUDE_CODE_FORCE_STRIKETHROUGH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_FORCE_STRIKETHROUGH environment variable.

官方文件
CLAUDE_CODE_FORCE_SYNC_OUTPUT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_FORCE_SYNC_OUTPUT environment variable.

官方文件
CLAUDE_CODE_FORK_SUBAGENT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_FORK_SUBAGENT environment variable.

官方文件
CLAUDE_CODE_FORWARD_SUBAGENT_TEXT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_FORWARD_SUBAGENT_TEXT environment variable.

官方文件
CLAUDE_CODE_GIT_BASH_PATH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_GIT_BASH_PATH environment variable.

官方文件
CLAUDE_CODE_GLOB_HIDDEN ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_GLOB_HIDDEN environment variable.

官方文件
CLAUDE_CODE_GLOB_NO_IGNORE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_GLOB_NO_IGNORE environment variable.

官方文件
CLAUDE_CODE_GLOB_TIMEOUT_SECONDS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_GLOB_TIMEOUT_SECONDS environment variable.

官方文件
CLAUDE_CODE_HIDE_CWD ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_HIDE_CWD environment variable.

條件式
CLAUDE_CODE_IDE_HOST_OVERRIDE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_IDE_HOST_OVERRIDE environment variable.

條件式
CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_IDE_SKIP_AUTO_INSTALL environment variable.

條件式
CLAUDE_CODE_IDE_SKIP_VALID_CHECK ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_IDE_SKIP_VALID_CHECK environment variable.

條件式
CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_CONCURRENT_SUBAGENTS environment variable.

官方文件
CLAUDE_CODE_MAX_CONTEXT_TOKENS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_CONTEXT_TOKENS environment variable.

官方文件
CLAUDE_CODE_MAX_OUTPUT_TOKENS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_OUTPUT_TOKENS environment variable.

官方文件
CLAUDE_CODE_MAX_RETRIES ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_RETRIES environment variable.

官方文件
CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_SUBAGENTS_PER_SESSION environment variable.

官方文件
CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_SUBAGENT_SPAWN_DEPTH environment variable.

官方文件
CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_TOOL_USE_CONCURRENCY environment variable.

官方文件
CLAUDE_CODE_MAX_TURNS ENV

Limit agentic turns for SDK and print-mode runs.

官方文件
CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MAX_WEB_SEARCHES_PER_SESSION environment variable.

官方文件
CLAUDE_CODE_MCP_ALLOWLIST_ENV ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MCP_ALLOWLIST_ENV environment variable.

條件式
CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS environment variable.

條件式
CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT environment variable.

條件式
CLAUDE_CODE_NATIVE_CURSOR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_NATIVE_CURSOR environment variable.

官方文件
CLAUDE_CODE_NEW_INIT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_NEW_INIT environment variable.

官方文件
CLAUDE_CODE_NO_FLICKER ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_NO_FLICKER environment variable.

官方文件
CLAUDE_CODE_OAUTH_REFRESH_TOKEN ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OAUTH_REFRESH_TOKEN environment variable.

官方文件
CLAUDE_CODE_OAUTH_SCOPES ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OAUTH_SCOPES environment variable.

官方文件
CLAUDE_CODE_OAUTH_TOKEN ENV

Provide an OAuth token to Claude Code without interactive login.

官方文件 敏感
CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OPUS_4_6_FAST_MODE_OVERRIDE environment variable.

條件式
CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH environment variable.

官方文件
CLAUDE_CODE_OTEL_DIAG_STDERR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OTEL_DIAG_STDERR environment variable.

官方文件
CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OTEL_FLUSH_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS environment variable.

官方文件
CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_OTEL_SHUTDOWN_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE environment variable.

官方文件
CLAUDE_CODE_PERFORCE_MODE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PERFORCE_MODE environment variable.

條件式
CLAUDE_CODE_PLUGIN_CACHE_DIR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PLUGIN_CACHE_DIR environment variable.

官方文件
CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PLUGIN_GIT_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PLUGIN_KEEP_MARKETPLACE_ON_FAILURE environment variable.

官方文件
CLAUDE_CODE_PLUGIN_PREFER_HTTPS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PLUGIN_PREFER_HTTPS environment variable.

官方文件
CLAUDE_CODE_PLUGIN_SEED_DIR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PLUGIN_SEED_DIR environment variable.

官方文件
CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_POWERSHELL_RESPECT_EXECUTION_POLICY environment variable.

條件式
CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS environment variable.

官方文件
CLAUDE_CODE_PROCESS_WRAPPER ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PROCESS_WRAPPER environment variable.

官方文件
CLAUDE_CODE_PROPAGATE_TRACEPARENT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PROPAGATE_TRACEPARENT environment variable.

官方文件
CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST environment variable.

條件式
CLAUDE_CODE_PROXY_RESOLVES_HOSTS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_PROXY_RESOLVES_HOSTS environment variable.

官方文件
CLAUDE_CODE_REMOTE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_REMOTE environment variable.

條件式
CLAUDE_CODE_REMOTE_SESSION_ID ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_REMOTE_SESSION_ID environment variable.

條件式
CLAUDE_CODE_RESUME_INTERRUPTED_TURN ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_RESUME_INTERRUPTED_TURN environment variable.

官方文件
CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_RESUME_INTERRUPTED_TURN_MAX_AGE_MS environment variable.

官方文件
CLAUDE_CODE_RESUME_PROMPT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_RESUME_PROMPT environment variable.

官方文件
CLAUDE_CODE_RETRY_WATCHDOG ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_RETRY_WATCHDOG environment variable.

官方文件
CLAUDE_CODE_SAFE_MODE ENV

Start with CLAUDE.md, plugins, skills, hooks, and MCP disabled.

官方文件
CLAUDE_CODE_SCRIPT_CAPS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SCRIPT_CAPS environment variable.

官方文件
CLAUDE_CODE_SCROLL_SPEED ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SCROLL_SPEED environment variable.

官方文件
CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SESSIONEND_HOOKS_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_SESSION_ID ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SESSION_ID environment variable.

官方文件
CLAUDE_CODE_SHELL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SHELL environment variable.

官方文件
CLAUDE_CODE_SHELL_PREFIX ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SHELL_PREFIX environment variable.

官方文件
CLAUDE_CODE_SIMPLE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SIMPLE environment variable.

官方文件
CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT environment variable.

官方文件
CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_ANTHROPIC_AWS_AUTH environment variable.

條件式
CLAUDE_CODE_SKIP_AWS_CRED_CACHE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_AWS_CRED_CACHE environment variable.

條件式
CLAUDE_CODE_SKIP_BEDROCK_AUTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_BEDROCK_AUTH environment variable.

條件式
CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_FAST_MODE_NETWORK_ERRORS environment variable.

官方文件
CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_FAST_MODE_ORG_CHECK environment variable.

官方文件
CLAUDE_CODE_SKIP_FOUNDRY_AUTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_FOUNDRY_AUTH environment variable.

條件式
CLAUDE_CODE_SKIP_MANTLE_AUTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_MANTLE_AUTH environment variable.

條件式
CLAUDE_CODE_SKIP_PROMPT_HISTORY ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_PROMPT_HISTORY environment variable.

官方文件
CLAUDE_CODE_SKIP_VERTEX_AUTH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SKIP_VERTEX_AUTH environment variable.

條件式
CLAUDE_CODE_STOP_HOOK_BLOCK_CAP ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_STOP_HOOK_BLOCK_CAP environment variable.

官方文件
CLAUDE_CODE_SUBAGENT_MODEL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SUBAGENT_MODEL environment variable.

官方文件
CLAUDE_CODE_SUBPROCESS_ENV_SCRUB ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SUBPROCESS_ENV_SCRUB environment variable.

官方文件
CLAUDE_CODE_SYNC_PLUGIN_INSTALL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SYNC_PLUGIN_INSTALL environment variable.

官方文件
CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SYNC_PLUGIN_INSTALL_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_SYNC_SKILLS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SYNC_SKILLS environment variable.

官方文件
CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SYNC_SKILLS_INSTALL_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SYNC_SKILLS_WAIT_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_SYNTAX_HIGHLIGHT ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_SYNTAX_HIGHLIGHT environment variable.

官方文件
CLAUDE_CODE_TASK_LIST_ID ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_TASK_LIST_ID environment variable.

官方文件
CLAUDE_CODE_TEAM_TEARDOWN_PARK_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_TEAM_TEARDOWN_PARK_TIMEOUT_MS environment variable.

官方文件
CLAUDE_CODE_TMPDIR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_TMPDIR environment variable.

官方文件
CLAUDE_CODE_TMUX_TRUECOLOR ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_TMUX_TRUECOLOR environment variable.

條件式
CLAUDE_CODE_USE_ANTHROPIC_AWS ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_USE_ANTHROPIC_AWS environment variable.

條件式
CLAUDE_CODE_USE_BEDROCK ENV

Route model requests through Amazon Bedrock.

條件式
CLAUDE_CODE_USE_FOUNDRY ENV

Route model requests through Microsoft Foundry.

條件式
CLAUDE_CODE_USE_MANTLE ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_USE_MANTLE environment variable.

條件式
CLAUDE_CODE_USE_NATIVE_FILE_SEARCH ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_USE_NATIVE_FILE_SEARCH environment variable.

官方文件
CLAUDE_CODE_USE_POWERSHELL_TOOL ENV

Configure Claude Code behavior through the documented CLAUDE_CODE_USE_POWERSHELL_TOOL environment variable.

條件式
CLAUDE_CODE_USE_VERTEX ENV

Route model requests through Google Vertex AI.

條件式
CLAUDE_CONFIG_DIR ENV

Override the Claude Code configuration directory.

官方文件
CLAUDE_DISABLE_ADOPT ENV

Configure Claude Code behavior through the documented CLAUDE_DISABLE_ADOPT environment variable.

官方文件
CLAUDE_EFFORT ENV

Configure Claude Code behavior through the documented CLAUDE_EFFORT environment variable.

官方文件
CLAUDE_ENABLE_BYTE_WATCHDOG ENV

Configure Claude Code behavior through the documented CLAUDE_ENABLE_BYTE_WATCHDOG environment variable.

官方文件
CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK ENV

Configure Claude Code behavior through the documented CLAUDE_ENABLE_BYTE_WATCHDOG_BEDROCK environment variable.

條件式
CLAUDE_ENABLE_STREAM_WATCHDOG ENV

Configure Claude Code behavior through the documented CLAUDE_ENABLE_STREAM_WATCHDOG environment variable.

官方文件
CLAUDE_ENV_FILE ENV

Configure Claude Code behavior through the documented CLAUDE_ENV_FILE environment variable.

官方文件
CLAUDE_PID ENV

Configure Claude Code behavior through the documented CLAUDE_PID environment variable.

官方文件
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX ENV

Configure Claude Code behavior through the documented CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX environment variable.

條件式
CLAUDE_STREAM_IDLE_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented CLAUDE_STREAM_IDLE_TIMEOUT_MS environment variable.

官方文件
DEBUG ENV

Configure Claude Code behavior through the documented DEBUG environment variable.

官方文件
DISABLE_AUTOUPDATER ENV

Configure Claude Code behavior through the documented DISABLE_AUTOUPDATER environment variable.

官方文件
DISABLE_AUTO_COMPACT ENV

Configure Claude Code behavior through the documented DISABLE_AUTO_COMPACT environment variable.

官方文件
DISABLE_COMPACT ENV

Configure Claude Code behavior through the documented DISABLE_COMPACT environment variable.

官方文件
DISABLE_COST_WARNINGS ENV

Configure Claude Code behavior through the documented DISABLE_COST_WARNINGS environment variable.

官方文件
DISABLE_DOCTOR_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_DOCTOR_COMMAND environment variable.

官方文件
DISABLE_ERROR_REPORTING ENV

Configure Claude Code behavior through the documented DISABLE_ERROR_REPORTING environment variable.

官方文件
DISABLE_EXTRA_USAGE_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_EXTRA_USAGE_COMMAND environment variable.

官方文件
DISABLE_FEEDBACK_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_FEEDBACK_COMMAND environment variable.

官方文件
DISABLE_GROWTHBOOK ENV

Configure Claude Code behavior through the documented DISABLE_GROWTHBOOK environment variable.

官方文件
DISABLE_INSTALLATION_CHECKS ENV

Configure Claude Code behavior through the documented DISABLE_INSTALLATION_CHECKS environment variable.

官方文件
DISABLE_INSTALL_GITHUB_APP_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_INSTALL_GITHUB_APP_COMMAND environment variable.

官方文件
DISABLE_INTERLEAVED_THINKING ENV

Configure Claude Code behavior through the documented DISABLE_INTERLEAVED_THINKING environment variable.

官方文件
DISABLE_LOGIN_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_LOGIN_COMMAND environment variable.

官方文件
DISABLE_LOGOUT_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_LOGOUT_COMMAND environment variable.

官方文件
DISABLE_PROMPT_CACHING ENV

Configure Claude Code behavior through the documented DISABLE_PROMPT_CACHING environment variable.

官方文件
DISABLE_PROMPT_CACHING_FABLE ENV

Configure Claude Code behavior through the documented DISABLE_PROMPT_CACHING_FABLE environment variable.

官方文件
DISABLE_PROMPT_CACHING_HAIKU ENV

Configure Claude Code behavior through the documented DISABLE_PROMPT_CACHING_HAIKU environment variable.

官方文件
DISABLE_PROMPT_CACHING_OPUS ENV

Configure Claude Code behavior through the documented DISABLE_PROMPT_CACHING_OPUS environment variable.

官方文件
DISABLE_PROMPT_CACHING_SONNET ENV

Configure Claude Code behavior through the documented DISABLE_PROMPT_CACHING_SONNET environment variable.

官方文件
DISABLE_TELEMETRY ENV

Disable telemetry emission.

官方文件
DISABLE_UPDATES ENV

Configure Claude Code behavior through the documented DISABLE_UPDATES environment variable.

官方文件
DISABLE_UPGRADE_COMMAND ENV

Configure Claude Code behavior through the documented DISABLE_UPGRADE_COMMAND environment variable.

官方文件
DO_NOT_TRACK ENV

Configure Claude Code behavior through the documented DO_NOT_TRACK environment variable.

官方文件
ENABLE_CLAUDEAI_MCP_SERVERS ENV

Configure Claude Code behavior through the documented ENABLE_CLAUDEAI_MCP_SERVERS environment variable.

條件式
ENABLE_PROMPT_CACHING_1H ENV

Configure Claude Code behavior through the documented ENABLE_PROMPT_CACHING_1H environment variable.

官方文件
ENABLE_PROMPT_CACHING_1H_BEDROCK ENV

Configure Claude Code behavior through the documented ENABLE_PROMPT_CACHING_1H_BEDROCK environment variable.

條件式
ENABLE_TOOL_SEARCH ENV

Configure Claude Code behavior through the documented ENABLE_TOOL_SEARCH environment variable.

官方文件
FALLBACK_FOR_ALL_PRIMARY_MODELS ENV

Configure Claude Code behavior through the documented FALLBACK_FOR_ALL_PRIMARY_MODELS environment variable.

官方文件
FORCE_AUTOUPDATE_PLUGINS ENV

Configure Claude Code behavior through the documented FORCE_AUTOUPDATE_PLUGINS environment variable.

官方文件
FORCE_HYPERLINK ENV

Configure Claude Code behavior through the documented FORCE_HYPERLINK environment variable.

官方文件
FORCE_PROMPT_CACHING_5M ENV

Configure Claude Code behavior through the documented FORCE_PROMPT_CACHING_5M environment variable.

官方文件
HTTP_PROXY ENV

Route HTTP requests through a proxy.

官方文件
HTTPS_PROXY ENV

Route HTTPS requests through a proxy.

官方文件
IS_DEMO ENV

Configure Claude Code behavior through the documented IS_DEMO environment variable.

官方文件
MAX_MCP_OUTPUT_TOKENS ENV

Limit MCP tool output before Claude Code warns or truncates.

條件式
MAX_STRUCTURED_OUTPUT_RETRIES ENV

Configure Claude Code behavior through the documented MAX_STRUCTURED_OUTPUT_RETRIES environment variable.

官方文件
MAX_THINKING_TOKENS ENV

Set the fixed thinking-token budget when applicable.

官方文件
MCP_CLIENT_SECRET ENV

Configure Claude Code behavior through the documented MCP_CLIENT_SECRET environment variable.

條件式 敏感
MCP_CONNECTION_NONBLOCKING ENV

Configure Claude Code behavior through the documented MCP_CONNECTION_NONBLOCKING environment variable.

條件式
MCP_CONNECT_TIMEOUT_MS ENV

Configure Claude Code behavior through the documented MCP_CONNECT_TIMEOUT_MS environment variable.

條件式
MCP_OAUTH_CALLBACK_PORT ENV

Configure Claude Code behavior through the documented MCP_OAUTH_CALLBACK_PORT environment variable.

條件式
MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE ENV

Configure Claude Code behavior through the documented MCP_REMOTE_SERVER_CONNECTION_BATCH_SIZE environment variable.

條件式
MCP_SERVER_CONNECTION_BATCH_SIZE ENV

Configure Claude Code behavior through the documented MCP_SERVER_CONNECTION_BATCH_SIZE environment variable.

條件式
MCP_TIMEOUT ENV

Configure Claude Code behavior through the documented MCP_TIMEOUT environment variable.

條件式
MCP_TOOL_TIMEOUT ENV

Set the MCP tool execution timeout.

條件式
NO_PROXY ENV

Configure Claude Code behavior through the documented NO_PROXY environment variable.

官方文件
OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT ENV

Configure Claude Code behavior through the documented OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT environment variable.

官方文件
OTEL_LOG_ASSISTANT_RESPONSES ENV

Configure Claude Code behavior through the documented OTEL_LOG_ASSISTANT_RESPONSES environment variable.

官方文件
OTEL_LOG_RAW_API_BODIES ENV

Configure Claude Code behavior through the documented OTEL_LOG_RAW_API_BODIES environment variable.

官方文件
OTEL_LOG_TOOL_CONTENT ENV

Configure Claude Code behavior through the documented OTEL_LOG_TOOL_CONTENT environment variable.

官方文件
OTEL_LOG_TOOL_DETAILS ENV

Configure Claude Code behavior through the documented OTEL_LOG_TOOL_DETAILS environment variable.

官方文件
OTEL_LOG_USER_PROMPTS ENV

Configure Claude Code behavior through the documented OTEL_LOG_USER_PROMPTS environment variable.

官方文件
OTEL_METRICS_INCLUDE_ACCOUNT_UUID ENV

Configure Claude Code behavior through the documented OTEL_METRICS_INCLUDE_ACCOUNT_UUID environment variable.

官方文件
OTEL_METRICS_INCLUDE_ENTRYPOINT ENV

Configure Claude Code behavior through the documented OTEL_METRICS_INCLUDE_ENTRYPOINT environment variable.

官方文件
OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES ENV

Configure Claude Code behavior through the documented OTEL_METRICS_INCLUDE_RESOURCE_ATTRIBUTES environment variable.

官方文件
OTEL_METRICS_INCLUDE_SESSION_ID ENV

Configure Claude Code behavior through the documented OTEL_METRICS_INCLUDE_SESSION_ID environment variable.

官方文件
OTEL_METRICS_INCLUDE_VERSION ENV

Configure Claude Code behavior through the documented OTEL_METRICS_INCLUDE_VERSION environment variable.

官方文件
SLASH_COMMAND_TOOL_CHAR_BUDGET ENV

Configure Claude Code behavior through the documented SLASH_COMMAND_TOOL_CHAR_BUDGET environment variable.

官方文件
TASK_MAX_OUTPUT_LENGTH ENV

Configure Claude Code behavior through the documented TASK_MAX_OUTPUT_LENGTH environment variable.

官方文件
USE_BUILTIN_RIPGREP ENV

Configure Claude Code behavior through the documented USE_BUILTIN_RIPGREP environment variable.

官方文件
VERTEX_REGION_CLAUDE_3_5_HAIKU ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_3_5_HAIKU environment variable.

條件式
VERTEX_REGION_CLAUDE_3_5_SONNET ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_3_5_SONNET environment variable.

條件式
VERTEX_REGION_CLAUDE_3_7_SONNET ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_3_7_SONNET environment variable.

條件式
VERTEX_REGION_CLAUDE_4_0_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_0_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_4_0_SONNET ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_0_SONNET environment variable.

條件式
VERTEX_REGION_CLAUDE_4_1_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_1_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_4_5_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_5_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_4_5_SONNET ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_5_SONNET environment variable.

條件式
VERTEX_REGION_CLAUDE_4_6_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_6_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_4_6_SONNET ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_6_SONNET environment variable.

條件式
VERTEX_REGION_CLAUDE_4_7_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_7_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_4_8_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_4_8_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_5_OPUS ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_5_OPUS environment variable.

條件式
VERTEX_REGION_CLAUDE_5_SONNET ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_5_SONNET environment variable.

條件式
VERTEX_REGION_CLAUDE_FABLE_5 ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_FABLE_5 environment variable.

條件式
VERTEX_REGION_CLAUDE_HAIKU_4_5 ENV

Configure Claude Code behavior through the documented VERTEX_REGION_CLAUDE_HAIKU_4_5 environment variable.

條件式
05

操作工作流程

PLAYBOOK 01 已由 runtime 確認

Run Claude Code headlessly

Use print mode with bounded turns, structured output, and explicit permissions for scripts and CI.

  1. Start with a bounded text run一般
    claude -p --max-turns 8 "Review the current diff" Print mode writes the final response and exits.
  2. Request machine-readable output一般
    claude -p --output-format json --json-schema '{"type":"object"}' "Summarize the diff" JSON output and a schema make downstream parsing explicit.
  3. Grant only required tools需檢視
    claude -p --allowed-tools "Read" "Grep" "Bash(git diff *)" "Review this change" Narrow permission rules keep automation bounded.

命令 ID: claude

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

PLAYBOOK 02 已由 runtime 確認

Continue or resume a session

Continue the latest conversation, resume a named session, or attach to a background session.

  1. Continue the latest project session一般
    claude --continue Loads the most recent conversation associated with this directory.
  2. Resume a named session一般
    claude --resume auth-refactor Resumes by session ID or user-assigned name.
  3. Attach to a background session一般
    claude attach 7c5dcf5d Connects the current terminal while the session keeps running.

命令 ID: claude · claude.attach

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

PLAYBOOK 03 已由 runtime 確認

Design permission boundaries

Choose a permission mode, add narrow allow rules, and keep bypass mode visibly high risk.

  1. Start in plan mode一般
    claude --permission-mode plan Plan mode supports repository analysis before edits.
  2. Allow specific read-only commands需檢視
    claude --allowed-tools "Read" "Grep" "Bash(git diff *)" Tool-pattern rules are safer than broad shell access.
  3. Troubleshoot customizations safely一般
    claude --safe-mode Safe mode disables project customizations, hooks, plugins, skills, and MCP.

命令 ID: claude

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference · Official Claude Code settings reference

PLAYBOOK 04 已由 runtime 確認

Add and authenticate an MCP server

Register a server at the intended scope, inspect it, and run OAuth separately when required.

  1. Add a remote server需檢視
    claude mcp add --transport http sentry https://mcp.sentry.dev/mcp --scope user Choose local, user, or project scope deliberately.
  2. Inspect approval and health一般
    claude mcp get sentry Unapproved project servers remain pending and are not connected.
  3. Authenticate over SSH需檢視
    claude mcp login sentry --no-browser Prints an authorization URL rather than opening a browser.

命令 ID: claude.mcp.add · claude.mcp.get · claude.mcp.login

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

PLAYBOOK 05 已由 runtime 確認

Install plugins and inspect skills and hooks

Add a trusted marketplace, install at a scope, then inspect the loaded skills and hooks in-session.

  1. Add a marketplace需檢視
    claude plugin marketplace add anthropics/claude-plugins-official Marketplace sources determine which plugins are installable.
  2. Install at project scope需檢視
    claude plugin install code-review@claude-plugins-official --scope project Project scope shares plugin policy with the repository.
  3. Inspect runtime components一般
    Use /skills, /hooks, and /plugin inside Claude Code to verify what loaded.

命令 ID: claude.plugin.marketplace.add · claude.plugin.install

來源: Claude Code 2.1.220 recursive local help · Official Claude Code commands reference · Public Claude Code v2.1.220 plugin assets

PLAYBOOK 06 已由 runtime 確認

Launch and monitor agents

Define a session agent, start work in the background, and inspect active sessions as JSON.

  1. Start a named agent in the background需檢視
    claude --background --agent reviewer "Review the current branch" The command returns a session ID for later management.
  2. List active agents一般
    claude agents --json JSON mode supports external monitoring and orchestration.
  3. Read recent output一般
    claude logs 7c5dcf5d Inspect progress without attaching to the session.

命令 ID: claude · claude.agents · claude.logs

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference

06

版本差異

固定版本 runtime、現行官方文件、公開原始碼資產與歷史介面之間的差異。

claude.drift.docs-flags docs-ahead

The official CLI reference documents flags omitted by Claude Code 2.1.220 root help; they remain docs-confirmed or conditional, never runtime-confirmed by inference.

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference
claude.drift.runtime-flags runtime-ahead

Claude Code 2.1.220 root help exposes --brief, --file, and --help even though they are absent from the official CLI flag table captured on the same date.

來源: Claude Code 2.1.220 recursive local help · Official Claude Code CLI reference
claude.drift.public-repository source-ahead

The public repository contains distributable plugin assets but no built-in CLI implementation source for release 2.1.220.

來源: Public Claude Code v2.1.220 plugin assets · @anthropic-ai/claude-code 2.1.220 package metadata
claude.drift.removed-commands removed

/pr-comments and /vim are retained only as historical documentation entries and must not be presented as current universal commands.

來源: Official Claude Code commands reference
07

證據帳本