Credit balance is too low
Bug Description
Claude Code non-interactive mode is incorrectly failing with Credit balance is too low.
I use Claude Code with my Claude subscription, not an Anthropic API key.
I have confirmed that the following variables are absent at Process, User and Machine scope:
ANTHROPIC_API_KEY
ANTHROPIC_AUTH_TOKEN
ANTHROPIC_BASE_URL
CLAUDE_CODE_OAUTH_TOKEN
The issue can be reproduced independently of any plugin with:
claude -p "Reply with exactly OK"
Result:
Credit balance is too low
Interactive Claude Code sessions are otherwise usable.
This is also breaking claude-mem, because its observer launches Claude Code non-interactively. Its health record shows:
consecutiveFailures: 4
lastSuccessAt: null
lastErrorMessage: "Claude Code returned an error result: Credit balance is too low"
lastErrorProvider: "claude"
claude-mem has no .env file containing Anthropic credentials and is configured only with:
CLAUDE_MEM_RUNTIME = worker
The claude-mem observer has been failing since 22 August 2026.
Please investigate why Claude Code subprocess/non-interactive execution is being routed to an API credit balance instead of my authenticated Claude subscription.
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.1.247
- Feedback ID: c9452b6c-e1f8-4983-8ba7-3d1e2b5ca30e
Errors
[{"error":"AxiosError: Request failed with status code 400\n at pe (B:/~BUN/root/_797.js:14:1177)\n at <anonymous> (B:/~BUN/root/_797.js:15:14786)\n at emit (node:events:97:22)\n at endReadableNT (internal:streams/readable:901:50)\n at processTicksAndRejections (native:7:39)\n at request (B:/~BUN/root/_797.js:17:2449)\n at async oie (B:/~BUN/root/_675.js:60:1949)\n at async Fk (B:/~BUN/root/_109.js:12:23689)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-10-04T04:09:46.183Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"Your credit balance is too low to access the Anthropic API. Please go to Plans & Billing to upgrade or purchase credits.\"},\"request_id\":\"req_011CfgYUs5QvFH3MP2eYGRMV\"}\n at generate (B:/~BUN/root/_848.js:11:1893)\n at makeRequest (B:/~BUN/root/_848.js:51:8014)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-10-04T04:11:25.473Z"}]This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗