CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX

Updated by

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.

StatusPresent in v2.1.294
AddedAdded in v2.1.92
CategorySessions
Official docsListed

How to set it

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

export CLAUDE_REMOTE_CONTROL_SESSION_NAME_PREFIX=<value>
claude

To 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

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.