155 pages for /env.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Connect Claude Code to tools via MCP
Claude Code CLI · in the page
mcp
…directory whose `.claude` you've set as [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars). Before v2.1.207, Claude Code applied approvals from an untracked `.claude/settings.local.json` even in a folder you'd…
Connect to MCP servers
Claude Code CLI · in the page
mcp-quickstart
…s\YourName\.claude.json`. If you've set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), Claude Code reads `.claude.json` from inside that directory instead. Run `claude mcp get claude-code-docs` to see whi…
How Claude remembers your project
Claude Code CLI · in the page
memory
…k of a settings file, as shown in [Set environment variables](/docs/en/env-vars#set-environment-variables). With it set, `/init` asks which artifacts to set up: CLAUDE.md files, skills, and hooks. It…
Model configuration
Claude Code CLI · in the page
model-config
…Claude Code and set [`CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST`](/docs/en/env-vars), the host's model configuration takes precedence over managed model settings, while a managed `availableModels` allowli…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…NT`, a pair that also [changes where your logs and traces go](/docs/en/env-vars#variables). Set the pair in your shell, user settings, or managed settings; both variables are ignored in [project and l…
Enterprise network configuration
Claude Code CLI · in the page
network-config
…sed request bodies, set [`CLAUDE_CODE_GZIP_REQUEST_BODIES=0`](/docs/en/env-vars) to turn off compression for Claude API, telemetry, and artifact publish requests. `CLAUDE_CODE_CERT_STORE` accepts a c…
Output styles
Claude Code CLI · in the page
output-styles
…o rely on the field, set [`CLAUDE_CODE_SIMPLE_SYSTEM_PROMPT`](/docs/en/env-vars#variables) to `0`, which selects the full prompt on any model. Output styles apply to the main conversation and to a [f…
Choose a permission mode
Claude Code CLI · in the page
permission-modes
…ro, Max, or Team plans in sessions that [fetch feature flags](/docs/en/env-vars#features-that-need-feature-flag-fetching), and `default` otherwise | When the flag, a settings file, or the built-in de…
Configure permissions
Claude Code CLI · in the page
permissions
…se `.claude` subdirectory you've set as [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables). If that `CLAUDE_CONFIG_DIR` directory sits inside a git repository and Claude Code [keeps your local setting…
Recommend your plugin from your CLI
Claude Code CLI · in the page
plugins/cli-hints
…uire v2.1.172 or later The [environment variables reference](/docs/en/env-vars) has the details. The following examples gate on `CLAUDECODE` for the widest reach and emit a hint for a plugin named `…
Plugin commands reference
Claude Code CLI · in the page
plugins/cli-reference
…h flags, and folders named in the [`CLAUDE_CODE_PLUGIN_DIRS`](/docs/en/env-vars#variables) variable, with the managed [`disableSideloadFlags`](/docs/en/settings-reference#disablesideloadflags) setting…
Create a Claude Code plugin
Claude Code CLI · in the page
plugins/create
…list their absolute paths in the [`CLAUDE_CODE_PLUGIN_DIRS`](/docs/en/env-vars#variables) environment variable instead. Claude Code loads each path as it loads a `--plugin-dir` path. These plugins lo…
Host and maintain a marketplace
Claude Code CLI · in the page
plugins/host-marketplace
…tion directory, which is `~/.claude` or [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars#variables). Give an absolute path or a command on `PATH`, because a relative path resolves against that directory, not t…
Install and manage plugins
Claude Code CLI · in the page
plugins/install
…TTPS if it doesn't. Set [`CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1`](/docs/en/env-vars#variables) to skip that check and always clone over HTTPS. The same credentials apply when you run `/plugin install`, `…
Plugin loading reference
Claude Code CLI · in the page
plugins/loading
…lugin-dir` or `--plugin-url`, set [`CLAUDE_CODE_PLUGIN_DIRS`](/docs/en/env-vars#variables), or an Agent SDK app passed the `plugins` option. It loads for that session only | On for the session unless…
Manage mods for your organization
Claude Code CLI · in the page
plugins/mods/admin
…off the WebFetch tool with [`CLAUDE_CODE_DISABLE_WEB_FETCH`](/docs/en/env-vars#variables) or a `WebFetch` [deny rule](/docs/en/permissions#tool-specific-permission-rules), in managed settings or any…
Interface gallery for mods
Claude Code CLI · in the page
plugins/mods/gallery
…creen), and not while [`CLAUDE_CODE_ALT_SCREEN_FULL_REPAINT`](/docs/en/env-vars) is set to `1`. To see the picture, run `/tui fullscreen` at the Claude Code prompt and leave that variable unset. * **A…
Draw in the interface with a mod
Claude Code CLI · in the page
plugins/mods/interface
….1.299 or later. A session that [doesn't fetch feature flags](/docs/en/env-vars#features-that-need-feature-flag-fetching), such as one on Amazon Bedrock, needs 2.1.304 or later. In a `ui.render` hook…
Mods overview
Claude Code CLI · in the page
plugins/mods/overview
….1.299 or later. A session that [doesn't fetch feature flags](/docs/en/env-vars#features-that-need-feature-flag-fetching), such as one on Amazon Bedrock, needs 2.1.304 or later. The [render sites](/do…
Mods reference
Claude Code CLI · in the page
plugins/mods/reference
….1.299 or later. A session that [doesn't fetch feature flags](/docs/en/env-vars#features-that-need-feature-flag-fetching) needs 2.1.304 or later. [Draw in the VS Code extension](/docs/en/plugins/mods/…
Troubleshoot a mod
Claude Code CLI · in the page
plugins/mods/troubleshoot
…eway) session, see [Features that need feature-flag fetching](/docs/en/env-vars#features-that-need-feature-flag-fetching). ## An edit or a value is lost The mod runs, and a change you made or a valu…
Manage Claude Code plugins for your organization
Claude Code CLI · in the page
plugins/org
…and rejects folders named in the [`CLAUDE_CODE_PLUGIN_DIRS`](/docs/en/env-vars#variables) variable the same way | Doesn't restrict `.mcp.json`, `claude mcp add`, or SDK-provided servers. Pair it with…
How Claude Code uses prompt caching
Claude Code CLI · in the page
prompt-caching
…ider base-URL override such as [`ANTHROPIC_BEDROCK_BASE_URL`](/docs/en/env-vars), what stays cached depends on how the gateway handles the [`cache_control` markers](https://platform.claude.com/docs/en…
Continue local sessions from any device with Remote Control
Claude Code CLI · in the page
remote-control
…m, or Microsoft Foundry. * You point [`ANTHROPIC_BASE_URL`](/docs/en/env-vars) at a host other than `api.anthropic.com`, such as an [LLM gateway](/docs/en/llm-gateway) or proxy. Unset the variable t…
Choose a sandbox environment
Claude Code CLI · in the page
sandbox-environments
…e writes runtime files. Unless you set [`CLAUDE_CODE_TMPDIR`](/docs/en/env-vars), that directory is: * **Linux and WSL2**: `/tmp` * **macOS**: `/private/tmp`. `/tmp` is a symlink to that directory…
Configure the sandboxed Bash tool
Claude Code CLI · in the page
sandboxing
…](#protect-credentials), [`CLAUDE_CODE_SUBPROCESS_ENV_SCRUB`](/docs/en/env-vars) | Claude Code builds the sandbox on the open source [`@anthropic-ai/sandbox-runtime`](https://github.com/anthropics/sa…
Run prompts on a schedule
Claude Code CLI · in the page
scheduled-tasks
…mpt) work on every provider, and with [feature-flag fetching](/docs/en/env-vars#features-that-need-feature-flag-fetching) turned off. On Amazon Bedrock, Claude Platform on AWS, Google Cloud's Agent Pl…
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…{null} claude self-hosted-runner --environment-secret-file /etc/claude/environment-secret --exec-path /etc/claude/session-wrapper.sh ``` The runner sets the following in the wrapper's environment: |…
Deploy self-hosted environments to production
Claude Code CLI · in the page
self-hosted-environments-deploy
…null} claude self-hosted-runner --environment-secret-file '/etc/claude/environment-secret' --base-dir '<writable-dir>' --use-anthropic-git-proxy ``` At startup, the runner prints `Registering as opte…
Self-hosted environments quickstart
Claude Code CLI · in the page
self-hosted-environments-quickstart
…ly by its owner. ```bash theme={null} (umask 077 && cat > /etc/claude/environment-secret) ``` Choose a base directory, replacing `<writable-dir>` in the runner command below with an absolute path th…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…hildren as documented in the [environment variable reference](/docs/en/env-vars). `DISABLE_GROWTHBOOK` is related but different: setting `DISABLE_GROWTHBOOK=1` disables feature-flag fetching, and tele…
Test self-hosted environments end to end
Claude Code CLI · in the page
self-hosted-environments-testing
…s on a sentinel phrase in each reply. ```bash theme={null} #!/usr/bin/env bash # End-to-end test against a self-hosted environment, using Stop-hook read-back. # Prereqs: `claude auth login` has been…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…his includes [hooks](/docs/en/hooks), [environment variables](/docs/en/env-vars), and [managed-only settings](/docs/en/managed-settings#managed-only-settings) like `allowManagedPermissionRulesOnly`.…
Manage sessions
Claude Code CLI · in the page
sessions
…ning it again, unless [`CLAUDE_CODE_RESUME_INTERRUPTED_TURN`](/docs/en/env-vars#variables) is set. * Model: the session continues on the model it was using, except in the cases in [Setting your model]…
Claude Code settings
Claude Code CLI · in the page
settings
…off regardless of this setting, set [`MAX_THINKING_TOKENS=0`](/docs/en/env-vars) in `env`, which disables thinking on the Anthropic API except on Fable 5, which cannot have thinking turned off. On [th…
All settings
Claude Code CLI · in the page
settings-reference
…es | Any file | | [`env`](#env) | Set [environment variables](/docs/en/env-vars#in-settings-files) for every session and its subprocesses | Memory and context | Any file | | [`externalEditorContext`](…
Advanced setup
Claude Code CLI · in the page
setup
…ew or WinGet, set [`CLAUDE_CODE_PACKAGE_MANAGER_AUTO_UPDATE`](/docs/en/env-vars) to `1`. Claude Code then runs the upgrade in the background when a new version is available and shows a restart prompt…
Extend Claude with skills
Claude Code CLI · in the page
skills
…before it answers the prompt, set [`CLAUDE_CODE_SYNC_SKILLS`](/docs/en/env-vars#variables) to `1`. Before v2.1.273, terminal sessions downloaded them only in a `-p` run with this variable set. Claude…
Customize your status line
Claude Code CLI · in the page
statusline
…ho "[$MODEL] $BAR $PCT%" ``` ```python Python theme={null} #!/usr/bin/env python3 import json, sys # json.load reads and parses stdin in one step data = json.load(sys.stdin) model = data['model']['d…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…subagents, set [`CLAUDE_CODE_DISABLE_EXPLORE_PLAN_AGENTS=1`](/docs/en/env-vars). Claude reads and explores files directly instead of delegating to them. Requires Claude Code v2.1.198 or later. * In […
Configure your terminal for Claude Code
Claude Code CLI · in the page
terminal-config
…ts status instead. * **[`CLAUDE_CODE_DISABLE_TERMINAL_TITLE`](/docs/en/env-vars#variables)**: if you set this variable to `1`, Claude Code doesn't check for support or report status. Unset it. ## Con…
Tools reference
Claude Code CLI · in the page
tools-reference
…riables persist across Bash commands, set [`CLAUDE_ENV_FILE`](/docs/en/env-vars) to a shell script before launching Claude Code, or use a [SessionStart hook](/docs/en/hooks#persist-environment-variabl…
Troubleshoot installation and login
Claude Code CLI · in the page
troubleshoot-install
…ocal/state`, and `~/.cache`. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), the global config file lives under that directory instead of your home directory. Check whether the directories are w…
Troubleshooting
Claude Code CLI · in the page
troubleshooting
…it for other terminals. * Set [`CLAUDE_CODE_DISABLE_MOUSE=1`](/docs/en/env-vars) on the remote machine so your terminal handles selection for the whole session. ### Search and discovery issues If th…
Find bugs with ultrareview
Claude Code CLI · in the page
ultrareview
…or when you set [`CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC`](/docs/en/env-vars). In an interactive session, Claude Code starts the post when the findings arrive, so keep the session open until the r…
Use Claude Code in VS Code
Claude Code CLI · in the page
vs-code
…check it. If you set [`CLAUDE_CODE_RESUME_INTERRUPTED_TURN`](/docs/en/env-vars#variables) or any other `CLAUDE_CODE_RESUME_` variable in VS Code's environment or in the [`environmentVariables` settin…
Week 36 · August 31 – September 4, 2026
Claude Code CLI · in the page
whats-new/2026-w36
…isn't available in sessions that skip [feature-flag fetching](/docs/en/env-vars#features-that-need-feature-flag-fetching). Run it in an interactive session to open the report in the `/plugin` manager…
Orchestrate subagents at scale with dynamic workflows
Claude Code CLI · in the page
workflows
…roject, visible only to you. If you set [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars), this location is the `workflows/` directory under that path. The save dialog shows the resolved path for the personal…
Command line settings
Claude Documentation · in the page
claude-science/command-line-settings
…ds the `env` file in the data directory (by default `~/.claude-science/env`) when it starts. It applies only a fixed list of variables from the file, which includes `DO_NOT_TRACK` and the proxy variab…
Use Claude Science on a corporate network
Claude Documentation · in the page
claude-science/corporate-networks
…ce app reads a file named `env` in its data folder (`~/.claude-science/env` unless you moved the data folder) when it launches. The file holds `KEY=VALUE` lines (`export KEY=VALUE` also works). Put th…