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

Claude Code v2.0.52 ·

Custom Session Environment File

Entry
JSON All of v2.0.52
EntryKind: in v2.0.52,
ChangesSection of the release

What: New CLAUDE_ENV_FILE environment variable allows loading custom session environment scripts.

How to use:

export CLAUDE_ENV_FILE=/path/to/my-env-setup.sh
claude

Details:

  • Scripts from CLAUDE_ENV_FILE are loaded before hook files from session-env directory
  • Multiple sources can be combined (env file + hooks)
  • Independent error handling - failures in one source don't prevent loading others
  • Useful for personal environment configuration that doesn't belong in hooks
  • Evidence: kqB() at line 232402, environment read at line 232407

See this entry in the whole of v2.0.52 →

Feedback