Claude Code dies with ANTHROPIC_API_KEY in cloud environment

sroussey 12 points 2 comments April 30, 2026
View on Hacker News

If you put ANTHROPIC_API_KEY in the cloud environment, this will cause CC to fail to do anything. So you were using it because your tests are going to look for it, think again, find another way. Also, I suspect that is why I had a lot of "Extra usage". For the whole long history: https://github.com/anthropics/claude-code/issues/54497 Hope this saves some others a lot of headaches!

Discussion Highlights (1 comments)

amingilani

I once followed their docs and added it to my Claud Code Web to call their API. Unbeknownst to me they started charging me for all Claude Code calls by passing them to the API. They refused to refund me, but did update their docs at some point to remove the faulty instructions I followed.

Semantic search powered by Rivestack pgvector
8,303 stories · 78,303 chunks indexed