[BUG] Claude Code hangs on M1 Mac when terminal says "opening browser to sign in" and browser opens
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?
Claude Code hangs on my mac
Terminal (I tried Homebrew and native):
I type in "claude"/"claude --debug"/"claude chat", select the text style, select "1. Claude account with subscription".
The terminal window says " ✽ Opening browser to sign in…".
The browser opens showing "Authorize" and "Decline" and throws a 405 ("Failed to load resource: the server responded with a status of 405 (Method Not Allowed)"). Clicking "Authorize" does nothing. The terminal window hangs. I have to kill the process (CTL+C doesn't stop it).
Desktop app:
Claude chat works. Claude Code hangs.
Note: "claude auth login" and "claude --version" work just fine
What Should Happen?
- After hitting "Authenticate" the browser window is supposed to show "Build something great".
- The terminal is supposed to show "Login Successful. Press Enter to Continue..."
Error Messages/Logs
- Browser error: "Failed to load resource: the server responded with a status of 405 (Method Not Allowed)".
- Browser warning: "[Intercom] The App ID in your code snippet has not been set."
Steps to Reproduce
- Open terminal
- cd project directory
- type in "claude"
- select a text style and press enter.
- "1. Claude account with subscription" and press enter.
The terminal window says " ✽ Opening browser to sign in…" and hangs
The browser opens showing "Authorize" and "Decline" and throws a 405 ("Failed to load resource: the server responded with a status of 405 (Method Not Allowed)"). It also shows this warning "[Intercom] The App ID in your code snippet has not been set."
Claude Model
None
Is this a regression?
No, this never worked
Last Working Version
N/A (never worked on my machine)
Claude Code Version
2.1.144 (Claude Code)
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
M1 Mac running OS X Sonoma 14.7.4.
- Tried Safari and Chrome.
- Uninstalled and reinstalled Claude Code various times.
- Tried Claude Desktop, Homebrew and native.
- I was getting the same error in version 2.1.142
<img width="986" height="686" alt="Image" src="https://github.com/user-attachments/assets/2e70ed58-1e28-487c-b728-1f9ad7c237b8" />
<img width="2006" height="1300" alt="Image" src="https://github.com/user-attachments/assets/6d10a8c7-278b-499c-b122-49fb2233af60" />
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗