claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] CLAUDE_CODE_HIDE_ACCOUNT_INFO not working on Windows

Open NCMcClure opened this issue 10 months ago • 2 comments

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

  1. Set the environment variable permanently in Windows via System Properties > Environment Variables:
    • Variable name: CLAUDE_CODE_HIDE_ACCOUNT_INFO
    • Variable value: 1
  2. Open a new terminal and verify the variable is set ($env:CLAUDE_CODE_HIDE_ACCOUNT_INFO returns 1)
  3. Run claude
  4. 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

NCMcClure avatar Jan 12 '26 00:01 NCMcClure

Not working on macOS either. Claude Code Version v2.1.6

CaptainCodeAU avatar Jan 13 '26 10:01 CaptainCodeAU

can confirm. IS_DEMO still working (version v2.1.6) while CLAUDE_CODE_HIDE_ACCOUNT_INFO doesn't work

radres avatar Jan 13 '26 13:01 radres

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

MarvinFS avatar Jan 17 '26 17:01 MarvinFS

Confirmed under arch/linux in 2.1.14. IS_DEMO still works for me.

davszp avatar Jan 22 '26 13:01 davszp

Same problem for me on windows in git bash. IS_DEMO works though.

MarcSkovMadsen avatar Jan 24 '26 04:01 MarcSkovMadsen

Still doesn't seem to be working in CC v2.1.20 on Windows

oscarcs avatar Jan 28 '26 00:01 oscarcs

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.

Anderson-RC avatar Feb 05 '26 19:02 Anderson-RC