Skip to content

codegraph install ignores CLAUDE_CONFIG_DIR and CODEX_HOME environment variables #1627

Description

@seanchann

Description

When running codegraph install, the installation process ignores custom path configuration set via the CLAUDE_CONFIG_DIR and CODEX_HOME environment variables. The tool consistently falls back to installing and writing files directly to the user's home directory (~/).

Steps to Reproduce

  • Set custom environment variables:
export CLAUDE_CONFIG_DIR="/custom/path/to/claude_config"
export CODEX_HOME="/custom/path/to/codex_home"
  • Run the installation command:
codegraph install
  • Check the target directories.

Expected Behavior

codegraph install should read and respect CLAUDE_CONFIG_DIR and CODEX_HOME to determine where to place configuration files and runtime artifacts.

Actual Behavior

The installation hardcodes or defaults to ~/ (e.g., ~/.claude or ~/.codex), completely ignoring the exported environment variables.

Environment

OS: Linux

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