[BUG] /install-github-app does not allow to authenticate to Claude.ai on Windows (subscription model)
Environment
- Platform (select one):
- [x] Anthropic API (Claude Pro)
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- Claude CLI version: 1.0.51 (Claude Code)
- Operating System: Windows 11
- Node version: v22.14.0
- Terminal: Windows Terminal (PowerShell)
Bug Description
I've been trying to set up GitHub Actions on some of my repositories, and unfortunately the /install-github-app command gets stuck on the authentication step – Claude Code does not give me a way to proceed after generating a challenge link to Claude.ai:
- The browser opens as expected, but Claude does not pass the challenge link to the browser (see the URL in the attached screenshot), resulting in an
Invalid OAuth Request. That forces me to copy and paste the challenge from the CLI.
<img width="1920" height="1032" alt="Image" src="https://github.com/user-attachments/assets/8b5fbc05-3f26-4412-9a9b-84ea8e819bad" />
- When I do, I am able to generate a response token. However, I can't paste it anywhere to proceed.
<img width="1113" height="626" alt="Image" src="https://github.com/user-attachments/assets/126c0b89-1d85-4721-8189-5158e3d94d0d" />
This might be related to (or even a duplicate of) #3233, although I am not running Claude Code in a Linux container, but from a native terminal on Windows instead – that's why I'm creating a separate issue. The common denominator is that we're both trying to use the Claude subscription model in this flow.
Steps to Reproduce
- Run a clean install on a Windows machine:
npm install -g @anthropic-ai/claude-code, setup Claude Code - Run the
/install-github-appcommand - Configure Claude on GitHub (the browser opens as expected), press Enter
- Select GitHub workflows to create, press Enter
- Select "Long lived token with Claude subscription", press Enter
Expected Behavior
One of these two scenarios:
- The browser opens as expected, and the user is allowed to authorize Claude Code on Claude.ai seamlessly;
- If the browser does not open automatically, the user should be able to paste the authentication code – the result of the challenge – in order to continue.
Actual Behavior
The link appears to be broken, so I can't authorize seamlessy. Although I am able to generate a response to the challenge when I copy the link directly from the CLI, there's no way for me to paste the response token.
11 Comments
Same issue here
<img width="990" height="404" alt="Image" src="https://github.com/user-attachments/assets/1380d93e-ea3d-46b3-b3c1-79b75ccaf8f8" />
Aso happens when you login the first time
Same here @dmngrsk and @PierrunoYT best to click on the URL provided in the terminal it should circumvent the incorrect auto redirect and allow you to connect
In my case, for the first time login, after seeing
Invalid OAuth Request, I clicked on the provided URL, got the authentication code and pasted it into Claude Code and it showed meOAuth error: Failed to fetch user roles: Request failed with status code 401error.This should be resolved in upcoming release v1.0.54. Mitigation is using the displayed URL.
@vinhphm
OAuth error: Failed to fetch user roles: Request failed with status code 401may be something else. If you continue to see that error on v1.0.54, can you open a new issue?1.0.54 released a couple hours ago, with fixes for the OAuth browser flow. There's still no place to paste for the /install-github-app flow, but we're working on that!
I upgraded claude to 1.0.56 and am facing this totally same issue's situation. Is this resolved?
You probably have to manually select the text, paste it into a doc or something and get rid of some of the extraneous characters your copy picked. For me it was the "|" character from the box that claude creates in the cli.
I removed unnecessary characters, including "|", from the URL.
Unfortunately, I wasn't able to paste the token gotten from browser into the CLI, sorry for my last shorthand comment.
However, I managed to install the Claude Code GitHub Action in my github by taking a detour somehow.
same here.. now the url works after removing | symbols but there is no place to paste the code
Fix should be landing in the next two days, for the | symbols + where to paste the code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.