Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

679 pages for env.

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

claude-tag Claude Code CLI · in the page claude-tag …py,.csv,.txt,.yaml,.yml,.xml,.sql,.sh,.bash,.zsh,.graphql,.gql,.toml,.env,.go,.rs,.rb,.java,.kt,.swift,.c,.cpp,.cc,.h,.hpp,.cs,.php,.dart,.lua,.r,.scala,.ini,.cfg,.conf,.log,.dockerfile,.makefile,.git… CLI reference Claude Code CLI · in the page cli-reference …. Also unavailable when you turn off [feature-flag fetching](/docs/en/env-vars#features-that-need-feature-flag-fetching). Requires Claude Code v2.1.213 or later… Code Review Claude Code CLI · in the page code-review …actively) * You set [`CLAUDE_CODE_DISABLE_BACKGROUND_TASKS`](/docs/en/env-vars) to `1`, which also turns off every other background task feature ### Let Claude start the review Claude can start `/co… Review locally with /code-review Claude Code CLI · in the page code-review-local …teractively). * Set [`CLAUDE_CODE_DISABLE_BACKGROUND_TASKS`](/docs/en/env-vars) to `1`, which also turns off every other background task feature * Run `/code-review` again while an earlier review is s… Commands Claude Code CLI · in the page commands …ears for every user. Availability depends on your platform, plan, and environment. For example, `/desktop` only shows on macOS and x64 Windows when signed in with a Claude subscription, and `/upgrade`… Common workflows Claude Code CLI · in the page common-workflows …irectory listings, set [`CLAUDE_CODE_DISABLE_FILE_MENTIONS`](/docs/en/env-vars#variables) to `1` in your shell or in the [`env` block](/docs/en/env-vars#set-variables-in-settings-files) of user settin… Communications kit Claude Code CLI · in the page communications-kit …ce to land | | Install command tested on at least one machine in your environment | Catches proxy or firewall issues before everyone hits them at once | | Security and data-handling link ready ([Data… Explore the context window Claude Code CLI · in the page context-window …memory#auto-memory' }, { t: 0.06, kind: 'auto', label: 'Environment info', tokens: 280, color: '#6B6964', vis: 'hidden', desc: 'Working directory, platform, shell, OS ver… Run Claude Code behind a corporate launcher Claude Code CLI · in the page corporate-launcher …LAUDE\_CODE\_PROCESS\_WRAPPER in settings** Set the variable in the `env` block of a settings file so the detached background service inherits it. A shell `export` isn't enough: the background servic… Manage costs effectively Claude Code CLI · in the page costs …ENTAL_AGENT_TEAMS=1` in your [settings.json](/docs/en/settings.md) or environment to enable them. See [enable agent teams](/docs/en/agent-teams.md#enable-agent-teams). ## Reduce token usage Token co… Message your other Claude Code sessions Claude Code CLI · in the page cross-session-messaging …each other, including on a [self-hosted runner](/docs/en/self-hosted-environments). A session inside WSL 2 and a native Windows session on the same computer can't reach each other either. To require… Data usage Claude Code CLI · in the page data-usage …stead of locally. Sessions your organization routes to a [self-hosted environment](/docs/en/self-hosted-environments) run on infrastructure you control; for what stays on your machines and what still… Debug your configuration Claude Code CLI · in the page debug-your-config …t, then user. Some settings can also be set by command-line flags or [environment variables](/docs/en/env-vars.md), which act as another override layer. When a setting doesn't seem to apply, the value… Launch sessions from links Claude Code CLI · in the page deep-links …aude Code running and the prompt pre-filled. **Linux** Most desktop environments provide `xdg-open`, which passes the URL to the registered handler: ```bash theme={null} xdg-open "claude-cli://open… Desktop application Claude Code CLI · in the page desktop …. ## Start a session Before you send your first message, choose the environment, project folder, permission mode, and model in the row under the prompt box: * **Environment**: use the environment s… Claude Desktop on Linux (beta) Claude Code CLI · in the page desktop-linux …`sudo usermod -aG kvm $USER`, then log out and back in. Some desktop environments grant the logged-in user access to `/dev/kvm` without the group, but Cowork also needs `/dev/vhost-vsock`, which only… Get started with the desktop app Claude Code CLI · in the page desktop-quickstart …en, choose a project and give Claude something to do. **1. Choose an environment and folder** In the [row under the prompt box](/docs/en/desktop.md#start-a-session), click the first control, the env… Schedule recurring tasks in Claude Code Desktop Claude Code CLI · in the page desktop-scheduled-tasks …t `scheduled-tasks/<task-name>/` under [`CLAUDE_CONFIG_DIR`](/docs/en/env-vars) if you set that variable. To remove that folder, delete it yourself. You can also list, create, edit, and pause tasks b… Claude Code Desktop in WSL Claude Code CLI · in the page desktop-wsl …tribution, using its Linux toolchain and native Linux paths, the same environment your project targets. Use a WSL session when your repository lives inside the distribution's filesystem. Working on t… Development containers Claude Code CLI · in the page devcontainer …rs > Run Claude Code inside a dev container for consistent, isolated environments across your team. A [development container](https://containers.dev/), or dev container, lets you define an identical… Error reference Claude Code CLI · in the page errors …request-header-value) | | `Invalid ANTHROPIC_CUSTOM_HEADERS · Fix the environment variable` | [Authentication](#invalid-request-header-value) | | `Invalid request header from the environment · Fix the… Speed up responses with fast mode Claude Code CLI · in the page fast-mode …managed infrastructure or a [self-hosted runner](/docs/en/self-hosted-environments). Requires Claude Code v2.1.271 or later in the session's environment. Type `/fast on` in the session to turn fast m… Extend Claude Code Claude Code CLI · in the page features-overview …book. **Put guardrails in hooks.** An instruction like "never edit `.env`" in CLAUDE.md or a skill is a request, not a guarantee. A `PreToolUse` hook that blocks the edit is enforcement. If a rule mu… Fullscreen rendering Claude Code CLI · in the page fullscreen …itch or save anything. You can also set the `CLAUDE_CODE_NO_FLICKER` environment variable before starting Claude Code: ```bash theme={null} CLAUDE_CODE_NO_FLICKER=1 claude ``` For how the [`tui`](/… Run Claude Code through a gateway Claude Code CLI · in the page gateways …ons aren't used or charged. Setting [`ANTHROPIC_AUTH_TOKEN`](/docs/en/env-vars) for a gateway you run, or signing in to a Claude apps gateway with `/login`, turns off subscription login for that sessi… Use Claude Code GitHub Actions with cloud providers Claude Code CLI · in the page github-actions-cloud-providers …rtex: "true" claude_args: '--model claude-sonnet-5' env: ANTHROPIC_VERTEX_PROJECT_ID: ${{ steps.auth.outputs.project_id }} CLOUD_ML_REGION: us-east5 ``` **Micros… Claude Code with GitHub Enterprise Server Claude Code CLI · in the page github-enterprise-server …cts you to your GHES instance to create the app in one click. If your environment blocks the redirect flow, an [alternative manual setup](#manual-setup) is available. **1. Open Git providers settings… Claude Code GitLab CI/CD Claude Code CLI · in the page gitlab-ci-cd …e Code. 2. **Provider abstraction**: Use the provider that fits your environment: * Claude API (SaaS) * Amazon Bedrock (IAM-based access, cross-region options) * Google Cloud's Agent Platfor… Glossary Claude Code CLI · in the page glossary …d) ### Agentic harness The tools, context management, and execution environment that turn a language model into a capable coding agent. Claude Code is the harness; Claude is the model inside it. The… Keep Claude working toward a goal Claude Code CLI · in the page goal …omatic retries off, set [`CLAUDE_CODE_GOAL_CHECKIN_MINUTES`](/docs/en/env-vars) to `0`, which also turns [check-ins](#background-work-defers-evaluation) off. ### Background work defers evaluation If… Claude Code on Google Cloud's Agent Platform Claude Code CLI · in the page google-vertex-ai …`gcloud`, a service account key file, or credentials already in your environment. The wizard asks for your project and region, verifies which Claude models your project can invoke, and lets you pin t… Run Claude Code programmatically Claude Code CLI · in the page headless …ystem keychain. For the Anthropic API, set `ANTHROPIC_API_KEY` in the environment, with a key created in the [Claude Console](https://platform.claude.com), or supply an `apiKeyHelper` in the `--settin… Set up Claude Code (local mode) for a HIPAA-ready organization Claude Code CLI · in the page hipaa-setup …ing point. Your organization is responsible for deciding what its own environment needs and for confirming that its configuration meets those needs. The following sample sets four keys that you could… Hooks reference Claude Code CLI · in the page hooks …for example when Claude executes a `cd` command. Useful for reactive environment management with tools like direnv | | `DirectoryAdded` | When a working directory is added mid-session via `/add-dir`… Automate actions with hooks Claude Code CLI · in the page hooks-guide …protected files Prevent Claude from modifying sensitive files like `.env`, `package-lock.json`, or anything in `.git/`. Claude receives feedback explaining why the edit was blocked, so it can adjust… How Claude Code works Claude Code CLI · in the page how-claude-code-works …erent from inline code assistants that only see the current file. ## Environments and interfaces The [agentic loop](#the-agentic-loop), [tools](#tools), and capabilities are the same everywhere you… Interactive mode Claude Code CLI · in the page interactive-mode …ound tasks off with [`CLAUDE_CODE_DISABLE_BACKGROUND_TASKS`](/docs/en/env-vars#variables) or by starting in [bare mode](/docs/en/headless.md#start-faster-with-bare-mode), the command stops at its time… JetBrains IDEs Claude Code CLI · in the page jetbrains …whatever you select afterward. To exclude a sensitive file such as `.env`, add a [`Read` deny rule](/docs/en/permissions#read-and-edit) for its path. A matching deny rule prevents both the selected t… Customize keyboard shortcuts Claude Code CLI · in the page keybindings …n your terminal and the [`CLAUDE_CODE_BS_AS_CTRL_BACKSPACE`](/docs/en/env-vars) environment variable | | Caps Lock | Not delivered to terminal applications | ## Terminal conflicts Some shortcuts may… Set up Claude Code in a monorepo or large codebase Claude Code CLI · in the page large-codebases …to that area: ```markdown packages/api/CLAUDE.md theme={null} Copy `.env.example` to `.env` before running anything. Tests and the dev server fail without it. Write database queries with the Knex que… Legal and compliance Claude Code CLI · in the page legal-and-compliance …er credentials — for example, configuring an API key in a development environment, secrets manager, or machine image for use by the customer's own authorized users — provided the resulting usage is bi… Other LLM gateways Claude Code CLI · in the page llm-gateway …tings file and put the gateway's `ANTHROPIC_BASE_URL` in that file's `env` block. Claude Code then refuses a session pointed anywhere else, including at Anthropic directly or at a developer's own prox… Connect Claude Code to an LLM gateway Claude Code CLI · in the page llm-gateway-connect …To authenticate Claude Code to the gateway, set your credential in an environment variable. Which variable depends on what your gateway team told you: | Set the credential in | Use when | | :- | :- |… Claude Code gateway compatibility guide Claude Code CLI · in the page llm-gateway-protocol …To receive them, set [`CLAUDE_CODE_GATEWAY_HINT_HEADERS=1`](/docs/en/env-vars) for your developers, for example in the `env` block of [managed settings](/docs/en/managed-settings.md) * Any other back… Roll out an LLM gateway for your organization Claude Code CLI · in the page llm-gateway-rollout …ery matches on error wording, so wrapping errors in the gateway's own envelope breaks it, unless the envelope's message carries one of the `capability_rejected:` tokens a [Claude apps gateway substitu… Control MCP server access for your organization Claude Code CLI · in the page managed-mcp …", "args": ["--config", "/etc/company/mcp-config.json"], "env": { "COMPANY_API_URL": "https://internal.example.com" } } } } ``` ### Authenticate with per-user credenti… Deploy managed settings Claude Code CLI · in the page managed-settings …s.json theme={null} { "permissions": { "deny": [ "Read(./.env)", "Read(./secrets/**)" ], "disableBypassPermissionsMode": "disable" }, "allowManagedPermissionRulesOnly": t… Connect Claude Code to tools via MCP Claude Code CLI · in the page mcp …ripts. Claude Code sets `CLAUDE_PROJECT_DIR` in the spawned server's environment to the project root, so your server can resolve project-relative paths without depending on the working directory. Thi… Connect to MCP servers Claude Code CLI · in the page mcp-quickstart …\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 whic… How Claude remembers your project Claude Code CLI · in the page memory …interactive multi-phase flow instead, set the `CLAUDE_CODE_NEW_INIT` environment variable to `1` before you run `/init`. Set it in your shell or in the `env` block of a settings file, as shown in [Se…
Feedback