CLAUDE_CODE_REPL
Updated by Alex Sorokoletov
CLAUDE_CODE_REPL is a Claude Code environment variable: Boolean toggle for the new native REPL path introduced by v2.1.113's native-binary launcher. Forces on or off regardless of entrypoint detection — the documented escape hatch for pinning to the old JS-launcher behavior while native-binary bugs shake out. Added between v2.1.87 and v2.1.88 and still present in v2.1.294. It is not in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Added | Added between v2.1.87 and v2.1.88 |
| Category | Other |
| Official docs | Not listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_CODE_REPL=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_CODE_REPL": "<value>"
}
}Release notes that mention it
- Claude Code v2.1.114 — Native Binary Launcher, /fewer-permission-prompts, and 20 New Environment Variables
- Claude Code v2.1.108 — 4 New Environment Variables: REPL Variants, Skill Discovery, and the Limits Reckoning
- Claude Code v2.1.100 — 3 New Environment Variables: Context Token Limits, Perforce VCS, and Script Capability Controls
- Claude Code v2.1.88 — 7 New Environment Variables: Mouse Control, REPL Mode, and Flicker-Free Rendering
- Claude Code Version Tracker: Undocumented Env Vars, Feature Gates & Models
Related variables
CLAUDE_REPL_MODE: Sets the operating mode for the REPL interface.CLAUDE_REPL_MODE0: Prototype naming for the REPL mode configuration.CLAUDE_REPL_VARIANT: Selects which REPL implementation to load.CLAUDE_CODE_ARTIFACT_REPLCLAUDE_REPL_VERBOSEANTHROPIC_BETAS: Comma-separated beta feature headers.ANTHROPIC_CUSTOM_HEADERS: Custom HTTP headers (newline-separated Key: Value).ANTHROPIC_FEDERATION_RULE_ID
Frequently asked questions
What does CLAUDE_CODE_REPL do?
Boolean toggle for the new native REPL path introduced by v2.1.113's native-binary launcher. Forces on or off regardless of entrypoint detection — the documented escape hatch for pinning to the old JS-launcher behavior while native-binary bugs shake out.
Which Claude Code version has CLAUDE_CODE_REPL?
Added between v2.1.87 and v2.1.88 and still present in v2.1.294.
How do I set CLAUDE_CODE_REPL?
Export it before starting Claude Code (export CLAUDE_CODE_REPL=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.