CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY

Updated by

CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY is a Claude Code environment variable: Set to 1 to run a reattached bridge session's REPL bridge in outbound-only mode instead of fully enabling it; read until v2.1.304. Added between v2.1.143 and v2.1.212 and still present in v2.1.332. It is not in the official reference.

StatusPresent in v2.1.332
AddedAdded between v2.1.143 and v2.1.212
CategorySessions
Official docsNot listed

How to set it

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

export CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY=<value>
claude

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

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

Related variables

Frequently asked questions

What does CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY do?

Set to 1 to run a reattached bridge session's REPL bridge in outbound-only mode instead of fully enabling it; read until v2.1.304.

Which Claude Code version has CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY?

Added between v2.1.143 and v2.1.212 and still present in v2.1.332.

How do I set CLAUDE_BRIDGE_REATTACH_OUTBOUND_ONLY?

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