statusline-setup agent ignores CLAUDE_CONFIG_DIR environment variable

Resolved 💬 7 comments Opened Jan 8, 2026 by kbosompem Closed Mar 27, 2026

Description

The /statusline command (statusline-setup agent) hardcodes the config path to ~/.claude/settings.json instead of respecting the CLAUDE_CONFIG_DIR environment variable.

Steps to Reproduce

  1. Set up multiple Claude Code accounts using different config directories:

``bash
alias claude-work="CLAUDE_CONFIG_DIR=~/.claude-work claude"
alias claude-personal="CLAUDE_CONFIG_DIR=~/.claude-personal claude"
``

  1. Start Claude Code with one of the aliases (e.g., claude-personal)
  1. Verify the env var is set:

``bash
echo $CLAUDE_CONFIG_DIR
# Returns: /Users/kay/.claude-personal
``

  1. Run /statusline command

Expected Behavior

The statusline-setup agent should read/write settings.json from the directory specified in $CLAUDE_CONFIG_DIR (e.g., ~/.claude-personal/settings.json)

Actual Behavior

The agent attempts to read/write from ~/.claude/settings.json, ignoring the CLAUDE_CONFIG_DIR environment variable entirely.

Workaround

Manually create/edit the settings.json file in the correct config directory.

Environment

  • macOS
  • Claude Code with multiple account setup using CLAUDE_CONFIG_DIR

View original on GitHub ↗

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