Claude Code Connection Dropped ECONNRESET
When Claude Code shows Connection dropped ECONNRESET to api.anthropic.com, try a personal VPN or phone hotspot while the same network still opens claude.ai.
Quick answer
Match API Error: Connection dropped (ECONNRESET), Failed to connect to api.anthropic.com: ECONNRESET, or Connection dropped (ECONNRESET) · Retrying (n/10). If the same PC still opens claude.ai or a normal browser to Anthropic, route Claude Code through a personal VPN or a phone hotspot and retry. That leftover cleared first-hand reports when the office or ISP path reset the TLS ClientHello. This is not MCP error -32000: Connection closed, not Please run /login · API Error: 401, and not a weekly-limit wait.
On this page
What we're seeing
- The exact failure strings include API Error: Connection dropped (ECONNRESET), Failed to connect to api.anthropic.com: ECONNRESET, and Connection dropped (ECONNRESET) · Retrying (n/10).
- Independent August–September 2026 first-hand anthropics/claude-code issues quote that fingerprint while browser access to Anthropic still works on the same machine.
- First-hand leftovers that cleared the drop include a personal VPN such as WireGuard or CyberGhost, or switching the session to a phone hotspot.
- Reporters and maintainers describe some ISP paths resetting Bun or BoringSSL handshakes that negotiate X25519MLKEM768, while a classical TLS path through VPN succeeds.
- MCP error -32000: Connection closed is a different fingerprint with /mcp reconnect leftovers, not this API ECONNRESET path.
Start here
Try these first
Fix 1
Confirm Connection dropped ECONNRESET
Match the API ECONNRESET wording before changing network path.
- Read the error. This guide is for Connection dropped (ECONNRESET) or Failed to connect to api.anthropic.com: ECONNRESET, including Retrying (n/10).
- If the message is MCP error -32000: Connection closed, stop here and use that separate guide.
- Confirm a normal browser on the same machine can still open claude.ai or Anthropic docs.
Applies to Windows, Mac, Desktop
Fix 2
Use a personal VPN
September 2026 first-hand reports in Spain, Germany, Hungary, and UAE office networks cleared the ECONNRESET drop after routing Claude Code through a personal VPN while the same local path still failed.
- Connect a personal VPN you control, such as WireGuard or another consumer VPN that changes the egress path.
- Fully quit Claude Code, relaunch it on the VPN path, and retry the same prompt.
- If the session stays up, keep using that path for Claude Code until your ISP path works again.
Applies to Windows, Mac, Desktop
Fix 3
Switch to a phone hotspot
First-hand reporters whose office Wi‑Fi or ISP reset the API handshake recovered by moving Claude Code onto cellular hotspot egress.
- Turn on phone hotspot and join that network from the computer.
- Quit Claude Code fully, reopen it on the hotspot, and retry once.
- If it works on hotspot but fails on office Wi‑Fi, treat the office path as the broken hop and keep VPN or hotspot for Claude Code.
Applies to Windows, Mac, Desktop
Fix 4
Sanity-check browser and curl on the same network
First-hand threads separate a Claude Code TLS path failure from a total outage when browser or curl still reaches Anthropic on the failing network.
- On the failing network, open claude.ai in a normal browser.
- Optionally run a simple HTTPS request to api.anthropic.com from a terminal. A browser success with Claude Code ECONNRESET still matches this guide.
- If nothing reaches Anthropic at all, fix general connectivity first instead of VPN-only leftovers.
Applies to Windows, Mac, Desktop
Device notes
- Windows
- Windows first-hand reports quote the same ECONNRESET retry loop. Prefer VPN or hotspot before changing Claude install files.
- Mac
- macOS first-hand reports clear with the same VPN or hotspot leftover when the LAN path resets the API handshake.
- Desktop
- Claude Code CLI and desktop builds both surface Connection dropped (ECONNRESET). Linux desktop reports in the same GitHub cluster use the same VPN leftover.
Official information
Checked on 19 September 2026, first-hand anthropics/claude-code issues document API Error: Connection dropped (ECONNRESET) and Failed to connect to api.anthropic.com: ECONNRESET with clears on personal VPN or phone hotspot while browser access still works. Anthropic Help does not publish a dedicated article that names only this ECONNRESET ClientHello path.
Sources
Keep troubleshooting
Related problems
Claude
Claude Code MCP Error -32000 Connection Closed
Windows · Mac · DesktopUpdated Sep 7, 2026
Cursor
Cursor Unable to Verify the First Certificate
Windows · Mac · DesktopUpdated Sep 8, 2026
Cursor
Cursor Agent Connection Failed Please Try Again
Windows · Mac · DesktopUpdated Sep 7, 2026
Cursor
Cursor Unable to Reach the Model Provider
Windows · Mac · DesktopUpdated Sep 7, 2026