[BUG] /install-github-action breaks my local credentials
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
From a totally fresh claude install, locally with the latest version. I can set up claude successfully locally and it works, but then if I run /install-github-app and go through that process, it breaks my local credentials. Any message I send to claude gives me a 400 error: API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This credential is only authorized for use with Claude Code and cannot be used for other API requests."},"request_id":"req_011CTZMpoxzT5k7Faagq1EZX"}
What Should Happen?
Claude should update the github credentials and those should work. And my local credentials should also just continue to work as they did before.
Error Messages/Logs
API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This credential is only authorized for use with Claude Code and cannot be used for other API requests."},"request_id":"req_011CTZMpoxzT5k7Faagq1EZX"}
Steps to Reproduce
From a fresh install of claude code (I uninstalled everything to try to fix it, then reinstalled it locally):
- I enter claude:
$ claude. I go through the login flow:
Logged in as alexsquinlan@gmail.com
Login successful. Press Enter to continue…
- I can run commands normally.
> test
⏺ The test appears to be working correctly. Your message was received and processed successfully.
- I run
/install-github-app. Select this repo, it already has permissions, select "Skip workflow update (configure secrets only)". Select "Create a long-lived token with your Claude subscription". Authorize. Great.
- Run any command in my local claude:
> test again.
⎿ API Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"This credential is only authorized for use with Claude Code and cannot be used for other API requests."},"request_id":"req_011CTZMpoxzT5k7Faagq1EZX"}
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
1.0.128 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗