Hacker News new | ask | show | jobs
by justinclift 54 days ago
> Unbeknownst to me

Isn't that literally what the point of this environment variable is for?

ie to provide your Anthropic API key to Claude Code so it uses that for billing

1 comments

Maybe I wasn’t clear. I was following the docs on their SDK. See here: https://platform.claude.com/docs/en/api/sdks/typescript

This is for their API, and I was on Claude Code Web.

It wasn’t clear to me that following the SDK docs and introducing the environment variable as in the examples would magically enable API billing for Claude Code.