Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.179 Home All releases olderv2.1.178 v2.1.181newer
Claude Code v2.1.179

CLAUDE_CODE_ALTGR_AS_TEXT Environment Variable

What

New env var for Windows users on keyboards with an AltGr key. AltGr is used on many European and international layouts to produce characters like @, , [, ], etc. — but it's also interpreted as Ctrl+Alt in Windows, which can interfere with Claude Code shortcuts.

Usage
# Force AltGr combinations to always be treated as text (recommended for most EU users)
CLAUDE_CODE_ALTGR_AS_TEXT=true claude

# Disable AltGr text mode entirely
CLAUDE_CODE_ALTGR_AS_TEXT=false claude

# Auto-detect (default): enabled if WT_SESSION is set (Windows Terminal)
Details
  • true/1 forces "force" mode — AltGr combos always produce text
  • false/0 forces "off" mode — AltGr combos pass through as Ctrl+Alt key events
  • Omitted: "auto" mode, enabled when WT_SESSION is present (Windows Terminal)
  • Only applies to printable character ranges (codepoints 32–126 and 160–55295)
Evidence

New env var handler (search for "CLAUDE_CODE_ALTGR_AS_TEXT")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.179 →