r/ClaudeAI

Warning for those that haven't experienced this yet.

Brief

u/gzoomedia reports that while testing an app on their personal desktop with Claude Code, the tool detected a locally stored API key and automatically used it in a different terminal session, producing billable API calls even though they pay a $200/month subscription. The poster received billing alerts before $20 in spend, claims Claude said it should have asked for permission but didn’t, and notes the stated behavior is to switch to an environment key if present; no community comments were included in the post.

Why it matters

u/gzoomedia (r/ClaudeAI, posted 2026-08-02) reports that while developing locally with Claude Code, the model detected a local API key in their environment and automatically switched to using that key for tasks in another terminal session, generating billable API calls despite the user holding a $200/month Claude subscription.

Key details

  • The user’s billing alerts notified them before API spend exceeded $20; they say Claude told them it was supposed to prompt before switching keys but did not, and they cite a policy that the app will use an environment API key if present (no prior warning in their experience).
Source evidence

Most devs might already be aware of this but I didn't know until today. I was working on an app on my personal desktop using Claude Code. I'm building an app and to test it and Claude asked me to add my API key to my local environment to test the API calls. Then, in my OTHER terminal session Claude switched to my API key to do all of the tasks in the work it was doing even though I pay $200/mo for a subscription. Luckily I have alerts that notified me before it passed $20 in API spend but I think this feels very scammy. Just a heads up to those that don't know this yet. It's their policy to switch to API if there is a key in the environment even if you have a monthly subscription. Claude said it was supposed to ask me first but I was never warned at all.

Subreddit: r/ClaudeAI