Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

env

setting gone documented JSON

A Claude Code settings key, read out of the shipped bundle. It was in the build from v2.1.138 and was gone by v2.1.302.

Set environment variables for every session and its subprocesses

Anthropic's own wording. Read off All settings, captured 2026-10-22.

First seen v2.1.138 9 May 2026
Last seen v2.1.301 15 Oct 2026, gone by v2.1.302
Builds127 / 149on this box, as of v2.1.308
Written about v0.2.27 first named in a changelog, 28 Feb 2025
v2.1.138in the build not in the build never minedv2.1.308

In the changelogs

60

Releases whose published page names env.

  1. v2.1.307
    A managed policy can override CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION

    When a managed policy sets policyOnlyLeads, Claude Code merges admin env blocks even if CLAUDE_CODE_DISABLE_ADMIN_ENV_UNION is set

    found in this entry's text

  2. v2.1.307
    Your BUN_OPTIONS value is now passed on to child processes from more places

    Processes Claude Code starts now keep your BUN_OPTIONS value from the process, settings or system environment, still after --install=disable

    found in this entry's text

  3. v2.1.305
    Timeout hint now notices API_TIMEOUT_MS set in settings

    The hint to raise API_TIMEOUT_MS after a timeout now uses the value from settings too, and only appears when it is above zero

    found in this entry's text

  4. v2.1.302
    Clear gateway message for background sessions opened from another folder

    A background session opened from another folder without its LLM gateway now says so, instead of asking you to log in

    found in this entry's text

  5. v2.1.301
    Hooks are now marked as your organization's or yours before they run

    Claude Code now labels each hook, statusLine and fileSuggestion command as organization-owned or not before running it

    found in this entry's text

  6. v2.1.299
    Requests through a non-Anthropic gateway carry a gateway marker

    When you use a gateway whose address is not a trusted Anthropic host, Claude Code's attribution header adds a cc_gateway marker

    found in this entry's text

  7. v2.1.299
    Claude Code notes when a git-related variable is dropped from a settings file

    When applying environment variables from settings files, Claude Code now records when a git-related key was dropped and reads each layer's own block

    found in this entry's text

  8. v2.1.295
    A new setting limits what your own skills, agents and hooks can do

    Setting CLAUDE_CODE_RESTRICT_PERSONAL_CONFIG stops your own skills, agents and hooks from widening permissions, and makes key hooks required

    found in this entry's text

  9. v2.1.293
    Settings check now lists which environment variables your settings files set

    A check on your settings files now reports the names of environment variables they set, and treats project settings as their own level

    found in this entry's text

  10. v2.1.293
    Desktop app can start its Claude Code through a corporate launcher

    A new managed setting, claudeCodeProcessWrapperEnabled, makes the desktop app start Claude Code through the launcher named in processWrapper

    found in this entry's text

  11. v2.1.290
    Warning when a project's settings try to turn on Claude in Chrome

    Claude Code warns at startup that a project can't turn on Claude in Chrome via CLAUDE_CODE_ENABLE_CFC, and points to /chrome or --chrome

    found in this entry's text

  12. v2.1.288
    Clearer reason when a timeout or env option can't be checked

    Permission explanations for commands wrapped in timeout or env now name the exact option that can't be checked before it runs

    found in this entry's text

  13. v2.1.288
    Plugin language servers can use variables in their options and settings

    Variables in a plugin language server's initializationOptions and settings are now filled in, and an empty command gets a clear error

    found in this entry's text

  14. v2.1.287
    Marketplace source mismatch errors now name extraKnownMarketplaces

    A marketplace whose source does not match its settings entry now gets an error naming extraKnownMarketplaces, and the env check is reworded

    found in this entry's text

  15. v2.1.285
    Admins can turn workflows off through managed settings, with clearer refusals

    Managed settings can now set disableWorkflows or CLAUDE_CODE_DISABLE_WORKFLOWS to block workflows and remote code review, with messages that say why

    found in this entry's text

  16. v2.1.284
    Clearer error when a managed login policy clashes with your API key or token

    When managed settings require a specific sign-in but another credential is set, the error names that credential, where it came from, and how to fix it

    found in this entry's text

  17. v2.1.283
    Cloud sessions cannot rewrite your Claude Code settings through shell commands

    A forwarded shell command that writes your machine's Claude Code settings files is blocked or sent to you for approval

    found in this entry's text

  18. v2.1.283
    CLAUDE_CODE_GB_BASE_URL gets the same settings checks as the proxy variables

    CLAUDE_CODE_GB_BASE_URL joins the proxy, certificate and bridge variables that Claude Code checks when it cleans a settings file

    found in this entry's text

  19. v2.1.282
    Cloud sessions can now start from a git worktree on macOS and Linux

    Starting a cloud session from a linked git worktree now works on macOS and Linux instead of being refused

    found in this entry's text

  20. v2.1.282
    Project settings can only turn telemetry off, and Claude Code now says so

    A project's settings can now turn telemetry export off but not on, and a new warning points to /status to show which variables applied

    found in this entry's text

  21. v2.1.281
    Settings env blocks withheld from some sources when the stored login is pinned

    Code to withhold settings env values from some sources when the stored login is pinned is added but cannot run yet

    found in this entry's text

  22. v2.1.281
    Hooks worker payload carries state

    The data sent to function hooks can now include an optional state field alongside events, calls and env

    found in this entry's text

  23. v2.1.281
    New env vars CLAUDE_CODE_TETHER_LIVE and CLAUDE_CODE_MCP_APPS_HOST added to the protected env-key set

    CLAUDE_CODE_TETHER_LIVE and CLAUDE_CODE_MCP_APPS_HOST join Claude Code's protected set of environment variables

    found in this entry's text

  24. v2.1.281
    env and permissions settings schemas are now built lazily

    The env and permissions parts of the settings format are now only prepared the first time they are needed

    found in this entry's text

  25. v2.1.281
    More Windows environment variables are now in the settings env-var set

    More Windows environment variables, such as SYSTEMROOT, COMSPEC and PSMODULEPATH, now get special handling when set in settings env

    found in this entry's text

  26. v2.1.280
    New CLAUDE_CODE_PLUGIN_DIRS helper module: Son/OBn/nDe/Zst plus a dedicated refusal message

    Claude Code adds internal handling for CLAUDE_CODE_PLUGIN_DIRS, including validation of the paths it lists and a message explaining how to unset it

    found in this entry's text

  27. v2.1.277
    Cloud/remote hook execution now inspects a script's shebang line, not just its declared interpreter

    Cloud/remote hook execution now reads a script's actual shebang line, not just its declared interpreter

    found in this entry's text

  28. v2.1.277
    New sandbox-escape detection heuristics for sandbox.excludedCommands

    New heuristics detect commands trying to escape the sandbox via the excludedCommands allowlist

    found in this entry's text

  29. v2.1.275
    New model-source category 'settings_env_default' for ANTHROPIC_DEFAULT_*_MODEL env vars

    Model source attribution gains a settings_env_default category for ANTHROPIC_DEFAULT_*_MODEL variables

    found in this entry's text

  30. v2.1.275
    New bash risk explanation for env -P

    Claude Code now explains the risk of running env -P with a relative directory

    found in this entry's text

  31. v2.1.269
    Plugin runtime API gains a 'config' surface alongside agent/fs/store/etc.

    Plugin runtime API gains a new 'config' capability alongside turn, tool, agent, fs and others

    found in this entry's text

  32. v2.1.268
    Settings env vars now validated: invalid names/values/NUL bytes are dropped with a warning

    Invalid environment variable names or values in settings.json are now dropped with a warning instead of silently used

    found in this entry's text, named in this entry

  33. v2.1.268
    Bash permission deny-rules extended to redirects, env --chdir, and argument caps

    Bash permission checks now also cover shell redirects and env-based argument rewriting, asking instead of silently allowing when unsure

    found in this entry's text

  34. v2.1.268
    New bash-command taxonomy for telemetry

    Claude Code now classifies every bash command you run for internal telemetry

    found in this entry's text

  35. v2.1.267
    Plugin/hook capability namespace gains session and env access

    Hooks and plugins can now access session usage stats and read/write environment variables

    named in this entry

  36. v2.1.259
    Bash safety guard adds sudo-prefix handling

    The shell safety checker now treats sudo like env when scanning for prefixed variable assignments, plus a few more git-reach checks.

    found in this entry's text

  37. v2.1.248
    DISABLE_AUTOUPDATER now needs a real truthy value

    DISABLE_AUTOUPDATER=0 or false no longer disables updates; only truthy values count now.

    found in this entry's text

  38. v2.1.248
    Five more environment variables can be set from settings.json

    Five more environment variables, including stream and byte watchdogs, can be set in settings.json.

    found in this entry's text

  39. v2.1.247
    Stricter vetting of hooks forwarded to a cloud session

    Hooks forwarded to a cloud session are vetted harder, and refused if their program lives somewhere the session can write.

    found in this entry's text

  40. v2.1.246
    Stricter check on whether a command's program sits in a writable location

    More hook and command programs are conservatively treated as tamperable rather than trusted.

    found in this entry's text

  41. v2.1.242
    A broader classifier for destructive shell commands

    A broader detector for destructive shell commands exists, but nothing visibly uses its verdict.

    found in this entry's text

  42. v2.1.239
    An alternative opening sentence for the system prompt, off by default

    An alternate opening line for Claude's system prompt can be switched on with an environment variable.

    found in this entry's text

  43. v2.1.238
    Bash safety refusals now tell you what to do instead

    Blocked bash commands now add a next step, naming the directory to run the command from.

    found in this entry's text

  44. v2.1.237
    Poll-events switch cannot be set from settings

    You can set CLAUDE_CODE_POLL_EVENTS in your shell, but settings files can no longer supply it.

    named in this entry, found in this entry's text

  45. v2.1.233
    Plugin eval tells the model the env var that turns it on

    Setting CLAUDE_CODE_WALNUT_SPIRE=1 turns on the early-access plugin eval command.

    found in this entry's text

  46. v2.1.232
    Three more variables can be set from settings.json

    You can now set OTEL_SERVICE_NAME, OTEL_TRACES_EXPORT_INTERVAL and CLAUDE_CODE_FORK_SUBAGENT in settings.json.

    named in this entry, found in this entry's text

  47. v2.1.228
    Env vars set to an empty string now count as unset

    Environment variables set to an empty string now count as unset and use the default.

    found in this entry's text

  48. v2.1.225
    CLAUDE_REMOTE_TOOLS_BRIDGE_URL added to the remote-settings env filter

    Remotely managed settings can no longer redirect your bridge connection by setting that URL variable.

    found in this entry's text

  49. v2.1.224
    Runner can refuse repo-committed settings that reach outside the workspace

    The runner can warn about or block repo-committed settings that grant access outside the workspace.

    found in this entry's text

  50. v2.1.223
    Admin settings tiers now union their env blocks, with an opt-out

    Admin and managed settings now merge their env blocks instead of one replacing the other; you can opt out.

    found in this entry's text

  51. v2.1.222
    Resume no longer inherits a stale config directory or a half-copied file

    Resumed sessions no longer inherit a stale config directory or abort on a failed file copy.

    found in this entry's text

  52. v2.1.219
    Smaller adjustments

    Small polish: credit labels, an extra help link, bigger artifact fetch limit, safer MCP environment handling.

    named in this entry, found in this entry's text

  53. v2.1.206
  54. v2.1.196
    Skill Tool Description A/B Test

    found in this entry's text

  55. v2.1.98
    Vertex AI Setup Wizard

    found in this entry's text

  56. v2.1.92
    Interactive AWS Bedrock Setup Wizard

    found in this entry's text

  57. v2.1.73
    Improved Bash Command Safety Analysis

    found in this entry's text

  58. v2.1.70
    CA Certificate Configuration from Settings

    found in this entry's text

  59. v0.2.46
    Configuration

    found in this entry's text

  60. v0.2.27
    Better Process and Stream Handling

    found in this entry's text

First cited

0

No release's published evidence quotes this name. The ledger indexes the Evidence lines of every changelog on this site, so this says nobody here has ever quoted it; it says nothing about how old the name is.

Presence across releases

4
BuildsHow manyDatesReading
v2.1.138 – v2.1.283126 builds9 May 2026 → 25 Sep 2026 ◆in the build
v2.1.284 – v2.1.30015 builds28 Sep 2026 → 14 Oct 2026 ○not in the build
v2.1.3011 build15 Oct 2026 ◆in the build
v2.1.302 – v2.1.3087 builds16 Oct 2026 → 22 Oct 2026 ○not in the build

Build by build

149

One row per release since the first build this name was read out of. Absent means the build was read and the name was not in it, never mined means no bundle for that release was ever archived, and a declared type or a default is only ever what that release's own bundle stated.

BuildDateStateThe record behind it
v2.1.1389 May 2026·presentverdict: present
v2.1.13911 May 2026·presentverdict: present
v2.1.14012 May 2026·presentverdict: present
v2.1.141·presentverdict: present
v2.1.142·presentverdict: present
v2.1.143·presentverdict: present
v2.1.144·presentverdict: present
v2.1.145·presentverdict: present
v2.1.146·presentverdict: present
v2.1.147·presentverdict: present
v2.1.148·presentverdict: present
v2.1.149·presentverdict: present
v2.1.150·presentverdict: present
v2.1.152·presentverdict: present
v2.1.153·presentverdict: present
v2.1.154·presentverdict: present
v2.1.156·presentverdict: present
v2.1.157·presentverdict: present
v2.1.158·presentverdict: present
v2.1.159·presentverdict: present
v2.1.160·presentverdict: present
v2.1.161·presentverdict: present
v2.1.162·presentverdict: present
v2.1.1634 Jun 2026·presentverdict: present
v2.1.1655 Jun 2026·presentverdict: present
v2.1.1665 Jun 2026·presentverdict: present
v2.1.1676 Jun 2026·presentverdict: present
v2.1.1686 Jun 2026·presentverdict: present
v2.1.1698 Jun 2026·presentverdict: present
v2.1.1709 Jun 2026·presentverdict: present
v2.1.17210 Jun 2026·presentverdict: present
v2.1.17311 Jun 2026·presentverdict: present
v2.1.17411 Jun 2026·presentverdict: present
v2.1.17512 Jun 2026·presentverdict: present
v2.1.17612 Jun 2026·presentverdict: present
v2.1.17713 Jun 2026·presentverdict: present
v2.1.17815 Jun 2026·presentverdict: present
v2.1.17916 Jun 2026·presentverdict: present
v2.1.18117 Jun 2026·presentverdict: present
v2.1.18218 Jun 2026·presentverdict: present
v2.1.18319 Jun 2026·presentverdict: present
v2.1.18520 Jun 2026·presentverdict: present
v2.1.18622 Jun 2026·presentverdict: present
v2.1.18723 Jun 2026·presentverdict: present
v2.1.19024 Jun 2026·presentverdict: present
v2.1.19124 Jun 2026·presentverdict: present
v2.1.19325 Jun 2026·presentverdict: present
v2.1.19526 Jun 2026·presentverdict: present
v2.1.19629 Jun 2026·presentverdict: present
v2.1.19730 Jun 2026·presentverdict: present
v2.1.1981 Jul 2026·presentverdict: present
v2.1.1992 Jul 2026·presentverdict: present
v2.1.2003 Jul 2026·presentverdict: present
v2.1.2013 Jul 2026·presentverdict: present
v2.1.2026 Jul 2026·presentverdict: present
v2.1.2037 Jul 2026·presentverdict: present
v2.1.2048 Jul 2026·presentverdict: present
v2.1.2058 Jul 2026·presentverdict: present
v2.1.2069 Jul 2026·presentverdict: present
v2.1.20710 Jul 2026·presentverdict: present
v2.1.20813 Jul 2026·presentverdict: present
v2.1.20914 Jul 2026·presentverdict: present
v2.1.21014 Jul 2026·presentverdict: present
v2.1.21115 Jul 2026·presentverdict: present
v2.1.21216 Jul 2026·presentverdict: present
v2.1.21317 Jul 2026·presentverdict: present
v2.1.21418 Jul 2026·presentverdict: present
v2.1.21519 Jul 2026·presentverdict: present
v2.1.21620 Jul 2026·presentverdict: present
v2.1.21721 Jul 2026·presentverdict: present
v2.1.21822 Jul 2026·presentverdict: present
v2.1.21924 Jul 2026·presentverdict: present
v2.1.22024 Jul 2026·presentverdict: present
v2.1.2213 Aug 2026·presentverdict: present
v2.1.2224 Aug 2026·presentverdict: present
v2.1.2235 Aug 2026·presentverdict: present
v2.1.2247 Aug 2026·presentverdict: present
v2.1.2257 Aug 2026·presentverdict: present
v2.1.2268 Aug 2026·presentverdict: present
v2.1.22710 Aug 2026·presentverdict: present
v2.1.22811 Aug 2026·presentverdict: present
v2.1.22912 Aug 2026·presentverdict: present
v2.1.23113 Aug 2026·presentverdict: present
v2.1.23213 Aug 2026·presentverdict: present
v2.1.23314 Aug 2026·presentverdict: present
v2.1.23417 Aug 2026·presentverdict: present
v2.1.23518 Aug 2026·presentverdict: present
v2.1.23619 Aug 2026·presentverdict: present
v2.1.23719 Aug 2026·presentverdict: present
v2.1.23820 Aug 2026·presentverdict: present
v2.1.23921 Aug 2026·presentverdict: present
v2.1.24022 Aug 2026·presentverdict: present
v2.1.24122 Aug 2026·presentverdict: present
v2.1.24224 Aug 2026·presentverdict: present
v2.1.24324 Aug 2026·presentverdict: present
v2.1.24525 Aug 2026·presentverdict: present
v2.1.24625 Aug 2026·presentverdict: present
v2.1.24726 Aug 2026·presentverdict: present
v2.1.24827 Aug 2026·presentverdict: present
v2.1.25027 Aug 2026·presentverdict: present
v2.1.25128 Aug 2026·presentverdict: present
v2.1.25231 Aug 2026·presentverdict: present
v2.1.2571 Sep 2026·presentverdict: present
v2.1.2581 Sep 2026·presentverdict: present
v2.1.2592 Sep 2026·presentverdict: present
v2.1.2603 Sep 2026·presentverdict: present
v2.1.2614 Sep 2026·presentverdict: present
v2.1.2636 Sep 2026·presentverdict: present
v2.1.2658 Sep 2026·presentverdict: present
v2.1.2668 Sep 2026·presentverdict: present
v2.1.2679 Sep 2026·presentverdict: present
v2.1.26810 Sep 2026·presentverdict: present
v2.1.26911 Sep 2026·presentverdict: present
v2.1.27012 Sep 2026·presentverdict: present
v2.1.27114 Sep 2026·presentverdict: present
v2.1.27214 Sep 2026·presentverdict: present
v2.1.27315 Sep 2026·presentverdict: present
v2.1.27416 Sep 2026·presentverdict: present
v2.1.27517 Sep 2026·presentverdict: present
v2.1.27618 Sep 2026·presentverdict: present
v2.1.27718 Sep 2026·presentverdict: present
v2.1.27819 Sep 2026·presentverdict: present
v2.1.28022 Sep 2026·presentverdict: present
v2.1.28123 Sep 2026·presentverdict: present
v2.1.28224 Sep 2026·presentverdict: present
v2.1.28325 Sep 2026·presentverdict: present
v2.1.28428 Sep 2026·removedverdict: removed
v2.1.28529 Sep 2026·absent—
v2.1.28630 Sep 2026·absent—
v2.1.2871 Oct 2026·absent—
v2.1.2882 Oct 2026·absent—
v2.1.2893 Oct 2026·absent—
v2.1.2905 Oct 2026·absent—
v2.1.2916 Oct 2026·absent—
v2.1.2926 Oct 2026·absent—
v2.1.2937 Oct 2026·absent—
v2.1.2948 Oct 2026·absent—
v2.1.2958 Oct 2026·absent—
v2.1.2969 Oct 2026·absent—
v2.1.29914 Oct 2026·absent—
v2.1.30014 Oct 2026·absent—
v2.1.30115 Oct 2026·addedverdict: added
v2.1.30216 Oct 2026·removedverdict: removed
v2.1.30318 Oct 2026·absent—
v2.1.30419 Oct 2026·absent—
v2.1.30520 Oct 2026·absent—
v2.1.30621 Oct 2026·absent—
v2.1.30721 Oct 2026·absent—
v2.1.30822 Oct 2026·absent—

Read out of the published npm bundle release by release, and out of Anthropic's own documentation as this site captured it. Nothing on this page is a description anybody here wrote about what the settings key does. All settings keys.

Feedback