An environment variable is a named value that changes how a program behaves. Some variables have to be turned on by you, and Claude Code shows a message when managed settings (settings an organization controls) or ~/.claude.json also set the variable.
That message now gives two ways to turn it on:
- In
~/.claude/settings.json, inside itsenvblock. - With
--settings, the option that passes a settings file or inline JSON for one session.
Before, it mentioned only ~/.claude/settings.json.
You now have a second documented route to set the value yourself, which is useful when you cannot or do not want to edit your settings file.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
* [`--bare`](https://code.claude.com/docs/en/headless#start-faster-with-bare-mode) skips your hooks, skills, plugins, MCP servers, and `CLAUDE.md` files from the repo and your home directory. It also doesn't use your claude.ai login: auth …best-practices see the edit
* Fixed `/hooks` leaving out hooks given by `--settings`changelog see the edit
Anthropic's documentation has since written up --settings, on Claude Code changelog.