Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

[bug] status line shows Paying / Anthropic API key on a subscription session because…

Open IvanLeontev-stack opened this issue 1 month ago • 1 comments

What happened

status line shows Paying / Anthropic API key on a subscription session because Bun auto-loads [removed]/.env (Overage key) into the renderer

Summary

The status line's money row says "Paying · Anthropic API key" on a subscription session whenever the Overage emergency key is present in [removed]/.env.

Cause: LIFEOS_StatusLine.sh runs bun STATUSLINE/Render.ts from the session's working directory. When that directory is [removed], Bun auto-loads ./.env into process.env, so genericPay() in LIFEOS/TOOLS/StatusLineMoney.ts:433-436 sees ANTHROPIC_API_KEY and returns "API". The Claude Code process itself has no such variable and bills the subscription. Installs without the private StatusLinePrivate.ts extension hit genericPay, so every public install that follows OverageSystem.md:73 (add the Console key to the canonical env) gets a false paying label with a session dollar figure.

Repro: put ANTHROPIC_API_KEY in [removed]/.env, run bun LIFEOS/TOOLS/StatusLineMoney.ts row --cols 140 --plain from [removed] (prints "Paying · Anthropic API key") and from any other directory (prints nothing).

Possible fix: run the renderer with --no-env-file (or cd out of the config root), or have genericPay read the environment Claude Code passes rather than Bun's auto-loaded one.

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

IvanLeontev-stack avatar Oct 30 '26 10:10 IvanLeontev-stack

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @IvanLeontev-stack. This is the same bug as #2442 and is fixed by the same change: when Claude Code reports subscription rate limits, the status line drops ANTHROPIC_API_KEY from the environment it reads, so it no longer reports "Paying" on a subscription session. This lands in the next release.

danielmiessler avatar Nov 06 '26 13:11 danielmiessler