CLAUDE_REPL_MODE

Updated by

CLAUDE_REPL_MODE is a Claude Code environment variable: Sets the operating mode for the REPL interface. This likely controls behavior such as output format (JSON vs plain text), verbosity level, or whether the REPL maintains conversation state between invocations. Removed between v2.1.96 and v2.1.100, so current releases ignore it. It is not in the official reference.

StatusRemoved between v2.1.96 and v2.1.100
AddedPresent since v2.1.69 or earlier
CategoryOther
Official docsNot listed

How to set it

For one session, export it in the shell that starts Claude Code:

export CLAUDE_REPL_MODE=<value>
claude

To apply it to every session, add it to the env object of a settings file:

// ~/.claude/settings.json
{
  "env": {
    "CLAUDE_REPL_MODE": "<value>"
  }
}

Release notes that mention it

Related variables

Frequently asked questions

What does CLAUDE_REPL_MODE do?

Sets the operating mode for the REPL interface. This likely controls behavior such as output format (JSON vs plain text), verbosity level, or whether the REPL maintains conversation state between invocations.

Which Claude Code version has CLAUDE_REPL_MODE?

Removed between v2.1.96 and v2.1.100, so current releases ignore it.

How do I set CLAUDE_REPL_MODE?

Export it before starting Claude Code (export CLAUDE_REPL_MODE=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.