{"version":"2.1.295","anchor":"user-email-fallback-from-claude-code-user-email","canonical_anchor":"user-email-fallback-from-claude-code-user-email","heading":"CLAUDE_CODE_USER_EMAIL can supply your email when you are not logged in","tier":"use","area":"Settings","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295\/e\/user-email-fallback-from-claude-code-user-email","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.295","markdown":"### CLAUDE_CODE_USER_EMAIL can supply your email when you are not logged in\n\nIf there is no logged-in email, Claude Code can now use the CLAUDE_CODE_USER_EMAIL environment variable as the email it gives the model\n\n**Unclear.** The two conditions that must hold before `CLAUDE_CODE_USER_EMAIL` is used are not described.\n\n**What**\n\nClaude Code can tell the model your email address as part of the background information it sends. Before, it only used the email of the account you are logged in with.\n\nWhen no logged-in email is available, Claude Code can now use the value of the `CLAUDE_CODE_USER_EMAIL` environment variable instead. An environment variable is a named value you set in your shell or system before starting a program. This fallback applies only when two further internal conditions are met. As before, no email is sent when `ANTHROPIC_UNIX_SOCKET` is set.\n\n**Why**\n\nThis lets managed setups and setups without a logged-in account, such as automated servers, still give the model an email address.\n\n- Area: Settings\n- Names: `CLAUDE_CODE_USER_EMAIL`\n- Tier: Use it now\n- Useful: 4\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}