Add CLI flag or settings key for session color

Resolved 💬 2 comments Opened Apr 7, 2026 by DanielVelaJ Closed May 28, 2026

Feature Request

Add a way to set the session color automatically when launching Claude Code, either via:

  1. A CLI flag: claude --color blue
  2. A settings.json key: "sessionColor": "blue" (user-level or project-level)

Use Case

When creating desktop shortcuts or launcher scripts that open Claude Code in specific project directories, it would be helpful to also set the session color so different projects are visually distinguishable at a glance.

Currently, /color <name> only works interactively inside a running session. There's no way to pre-configure it from the command line or settings file.

Proposed Solution

Any of these would work:

  • A --color CLI flag
  • A "sessionColor" key in ~/.claude/settings.json or .claude/settings.json
  • Support for passing slash commands via CLI (e.g., claude --run-command "/color blue")

Project-level settings would be especially useful, as each project could have its own color automatically.

🤖 Generated with Claude Code

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗