[BUG] I can't generate an API Key for Claude Code anymore
Resolved 💬 7 comments Opened May 28, 2025 by dannyfranca Closed Jun 4, 2025
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.3
- Operating System: Ubuntu 22.04 (WSL 2)
- Terminal: oh-my-zsh
Bug Description
I can't generate an API Key for Claude Code anymore
Steps to Reproduce
- Install Claude Code (npm install -g @anthropic-ai/claude-code)
- Execute
claude, then /login, following the normal authentication process for pay as you go - Set up GitHub Actions with the command /install-github-app
- All worked fine, both locally and in the CI
- Subscribed to Max ($100)
- Run Github Actions again (worked fine, but using my balance, not Max Subscription)
- locally run claude, /logout, /login, but now with the Max Subscription
- Local worked just fine
- Tried to update the GitHub actions credentials with /install-github-app
- Gave me the option to set up a different key, cancel claude (ctrl+C).
- Went to https://console.anthropic.com, deleted the previously generated pay-as-you-go key (From the Claude Code Workspace) just in case, which was apparently a mistake.
- Tried to run again claude and execute /install-github-app
- It skipped the part where I am given the option to choose between pay as you go a,d max subscriptions, the selection screen flashes and jumps straight to the set API key, it is forcing me to give an API key I don't have and can't even create under Claude Code Workspace.
Expected Behaviour
Be able to generate a different credential for Claude with the Max Subscription for Github Actions
Actual Behaviour
I can't generate new credentials, not even the pay-as-you-go, totally blocked form, using Github Actions
Additional Context
I will upload a video showing what happens exactly when I try to execute claude with /install-github-app:
https://github.com/user-attachments/assets/2f452f1b-bfb5-47a7-ad7a-4a457fba0435
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗