CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX
Updated by Alex Sorokoletov
CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX is a Claude Code environment variable: Sets a prefix for Remote Control session names. The changelog[1] mentions improved session naming for Remote Control — this variable lets teams enforce naming conventions for sessions spawned via remote automation, making them identifiable in logs and dashboards. Added in v2.1.92 and still present in v2.1.294. It is listed in the official reference.
| Status | Present in v2.1.294 |
|---|---|
| Added | Added in v2.1.92 |
| Category | Sessions |
| Official docs | Listed |
How to set it
For one session, export it in the shell that starts Claude Code:
export CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX=<value>
claudeTo apply it to every session, add it to the env object of a settings file:
// ~/.claude/settings.json
{
"env": {
"CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX": "<value>"
}
}Release notes that mention it
Related variables
CLAUDE_CODE_REMOTE_SESSION_ID: Remote session identifier.CLAUDE_CODE_REMOTE_SESSION_ORIGIN: Provenance tag for cloud/remote sessions, checked against the value "review".CLAUDE_CODE_SESSION_NAME: Human-readable session name backing the v2.1.121 terminal tab title feature.CLAUDE_CODE_REMOTE_SESSION_UUIDCLAUDE_BRIDGE_REATTACH_SESSION: Session identity used during bridge reconnection.CLAUDE_CODE_BRIDGE_SESSION_IDCLAUDE_CODE_CHILD_SESSIONCLAUDE_CODE_EMIT_SESSION_STATE_EVENTS: Controls whether Claude Code emits session state change events.
Frequently asked questions
What does CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX do?
Sets a prefix for Remote Control session names. The changelog[1] mentions improved session naming for Remote Control — this variable lets teams enforce naming conventions for sessions spawned via remote automation, making them identifiable in logs and dashboards.
Which Claude Code version has CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX?
Added in v2.1.92 and still present in v2.1.294.
How do I set CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX?
Export it before starting Claude Code (export CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX=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.