← Back to context

Comment by nmcfarl

13 days ago

This was once true, I think, but it is no longer true. If you set an API key in your environment, Claude Code will work.

This did not when I tried it a few days ago but I also noticed it lets you use your API key after logging in through the web interface. I'll need to try again, really annoying that you can't just set $ANTHROPIC_API_KEY and have it work

  • This is really possible. I installed Claude code many months ago, and never used it - but may have logged in in at that time. When sonnet 4 was released I tried it again, and started using it with just my API keys (I do not have a paid subscription).