Skip to content

CONFIG_FILE

const CONFIG_FILE: ".claude.json" = ".claude.json"

Defined in: src/auth-config-dir.ts:56

Claude Code’s config/state file. It lives at $HOME/.claude.json — a SIBLING of ~/.claude, NOT a child — so the symlink mirror never picks it up. But when CLAUDE_CONFIG_DIR is set, Claude Code reads .claude.json from THAT dir (not $HOME), so the mirror must provide one or the spawn fails to start (“configuration file not found”). We copy it in (see below). Safe: the OAuth token is in .credentials.json (excluded) — .claude.json only carries config + onboarding/trust state + an oauthAccount DISPLAY field, which is NOT a login (a config dir with .claude.json but no .credentials.json reports “Not logged in”).