Skip to content

Support CLAUDE_CONFIG_DIR for multi-account setups #274

@rusger

Description

@rusger

Problem

When running multiple Claude Code instances with different config directories (via CLAUDE_CONFIG_DIR), the HUD displays stats from the default ~/.claude instead of the active instance's config directory.

Setup

alias claude2="CLAUDE_CONFIG_DIR=~/.claude-account2 claude"

Both instances have claude-hud installed. The statusLine command correctly resolves the plugin path using ${CLAUDE_CONFIG_DIR:-$HOME/.claude}, but the HUD itself appears to read session/context data from ~/.claude regardless of the CLAUDE_CONFIG_DIR value.

Expected behavior

The HUD should respect CLAUDE_CONFIG_DIR (or $HOME/.claude as fallback) when reading session data, context usage, and other stats — so each instance shows its own data.

Environment

  • macOS (darwin, Apple Silicon)
  • Node.js v24.10.0
  • claude-hud v0.0.10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions