[BUG] CLAUDE_CODE_HIDE_ACCOUNT_INFO not working on Windows
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
The CLAUDE_CODE_HIDE_ACCOUNT_INFO environment variable does not hide account information when set to 1. Account info (email and organization name) still displays in the UI on startup regardless of how the variable is configured.
What Should Happen?
When CLAUDE_CODE_HIDE_ACCOUNT_INFO=1 is set, the user's email address and organization name should be hidden from the Claude Code UI, as described in the documentation.
Error Messages/Logs
Steps to Reproduce
- Set the environment variable permanently in Windows via System Properties > Environment Variables:
- Variable name: CLAUDE_CODE_HIDE_ACCOUNT_INFO
- Variable value: 1
- Open a new terminal and verify the variable is set ($env:CLAUDE_CODE_HIDE_ACCOUNT_INFO returns 1)
- Run claude
- Observe that account info is still visible in the UI
Also attempted:
- Setting via ~/.claude/settings.json in the env section
- Setting via PowerShell $env:CLAUDE_CODE_HIDE_ACCOUNT_INFO = "1" before launching
None of these methods hide the account information.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
No response
Claude Code Version
2.1.5
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
No response
Not working on macOS either. Claude Code Version v2.1.6
can confirm. IS_DEMO still working (version v2.1.6) while CLAUDE_CODE_HIDE_ACCOUNT_INFO doesn't work
Have the same on Windows 11 25H2 doesn't work in powershell. but it works fine in GH bash for some reason... Duplicated bug with details - I closed it https://github.com/anthropics/claude-code/issues/18839#issue-3825513661
Confirmed under arch/linux in 2.1.14. IS_DEMO still works for me.
Same problem for me on windows in git bash. IS_DEMO works though.
Still doesn't seem to be working in CC v2.1.20 on Windows
Same issue on macOS (v2.1.29). CLAUDE_CODE_HIDE_ACCOUNT_INFO set to "1" in ~/.claude/settings.json but organization info still displays on startup.