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
HomeDocsSearch
Search the documentation

4 pages for claude_env_file.

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

Claude Code changelog Claude Code CLI · in the page changelog …gain on every resume * Fixed variables a SessionStart hook writes to `CLAUDE_ENV_FILE` not reaching the Bash tool after an in-app `/resume` or `/branch` * Fixed a skill's `allowed-tools` and `effort`… Hooks reference Claude Code CLI · in the page hooks …Persist environment variables SessionStart hooks have access to the `CLAUDE_ENV_FILE` environment variable, which provides a file path where you can persist environment variables for the shell comman… Automate actions with hooks Claude Code CLI · in the page hooks-guide …CLAUDE.md](/docs/en/memory) instead. For environment variables, see [`CLAUDE_ENV_FILE`](/docs/en/hooks#persist-environment-variables) in the reference. ### Audit configuration changes Track when set… Tools reference Claude Code CLI · in the page tools-reference …de. To make environment variables 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#p…
Feedback