CLAUDE_CODE_HIDE_CWD
Updated by Alex Sorokoletov
CLAUDE_CODE_HIDE_CWD is a Claude Code environment variable: Changelog-confirmed[1] (v2.1.119): hides the working directory display in the startup logo. Useful for shared terminals, screen shares, or documentation screenshots where the cwd reveals sensitive path structure. Added between v2.1.118 and v2.1.123 and still present in v2.1.310. It is listed in the official reference.
| Status | Present in v2.1.310 |
|---|---|
| Added | Added between v2.1.118 and v2.1.123 |
| Category | Terminal and UI |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_HIDE_CWD=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_HIDE_CWD": "<value>"
}
}Release notes that mention it
Related variables
CLAUDE_CODE_HIDE_REPLY_SERVER_NAME: When the app's own tool server (the one that serves the tools you reply with) cannot sign in, this hides that server's name from Claude, so it does not name or describe the failing server.CLAUDE_CODE_HIDE_SETTINGS_HINTCLAUDE_AX_PREPARK_MSCLAUDE_AX_SCREEN_READERCLAUDE_AX_STARTUP_QUIET_MS: Startup quiet window (milliseconds) for screen-reader mode.CLAUDE_CODE_ACCESSIBILITY: Enable accessibility mode; disables cursor hiding.CLAUDE_CODE_ALT_SCREEN_FULL_REPAINTCLAUDE_CODE_BLOCKING_LIMIT_OVERRIDE: Override token limit for input blocking.
Frequently asked questions
What does CLAUDE_CODE_HIDE_CWD do?
Changelog-confirmed[1] (v2.1.119): hides the working directory display in the startup logo. Useful for shared terminals, screen shares, or documentation screenshots where the cwd reveals sensitive path structure.
Which Claude Code version has CLAUDE_CODE_HIDE_CWD?
Added between v2.1.118 and v2.1.123 and still present in v2.1.310.
How do I set CLAUDE_CODE_HIDE_CWD?
Export it before starting Claude Code (export CLAUDE_CODE_HIDE_CWD=value), or add it to the "env" object in ~/.claude/settings.json to apply it to every session.
All variables, searchable: Claude Code environment variables.