[BUG] API Error: Unable to connect to API (ECONNRESET)
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?
I keep getting this error. I checked the server status and that's good. I closed out and restarted the program and that didn't help. I also started a new thread and that didn't work. Cannot use cowork.
What Should Happen?
I check the server status and that's good. I closed out and restarted the program and that didn't help. I also started a new thread and that didn't work. What the heck is going on?
Error Messages/Logs
Steps to Reproduce
1.open cowork
2.try to use cowork...
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
latest
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Terminal.app (macOS)
Additional Information
I check the server status and that's good. I closed out and restarted the program and that didn't help. I also started a new thread and that didn't work. What the heck is going on?
<img width="593" height="328" alt="Image" src="https://github.com/user-attachments/assets/7ed715b9-59f6-4f19-a108-960977600e99" />
8 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
privilégiez Git Bash ou WSL2 et forcez la mise à jour via irm https://claude.ai/install.ps1 | iex pour stabiliser le mode Cowork
This error is occuring almost every 15 seconds for me today... I have been a power user for last 6 moths but last 2-3 days have been very very disappointing. I can not do anything with these constant errors breaking every conversation with claude and I have 10 of them running all the time... extremely frustrating.. this is the first time I am looking out for other agentic systems TBH.
In last 2 months I have enabled at least 50 members to buy claude teams/enterprise/personal licenses.. many of them are now barking back at me. Please do something about this issue Anthropic.
For me it is happening in Claude Code CLI
<img width="697" height="380" alt="Image" src="https://github.com/user-attachments/assets/3b07b013-3ec5-41e8-afe9-58657cbc10d6" />
Using 2.1.86
I had never seen this issue in last 6 months and seen it enough in last 6 days
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
Summary
Cowork consistently fails with "API Error: Unable to connect to API (ECONNRESET)"
after 10 retry attempts. Regular Chat mode works perfectly. The CoworkVMService
starts successfully and the host machine reaches api.anthropic.com on port 443,
but the workspace VM cannot establish a connection to the API.
Environment
Steps already tried (none resolved the issue)
and CoworkVMService.exe.
returns TcpTestSucceeded: True.
Error sequence observed
Diagnostic outputs
Test-NetConnection api.anthropic.com -Port 443
Get-NetNat
ComputerName : api.anthropic.com
RemoteAddress : 2607:6bc0::10
RemotePort : 443
InterfaceAlias : Wi-Fi
SourceAddress : 2806:2f0:99c1:e09a:849a:f229:721f:1c5d
TcpTestSucceeded : True
Get-Service CoworkVMService
Status : Stopped
Name : CoworkVMService
StartType : Automatic
DisplayName : Claude
Get-VMSwitch
Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
Default Switch Internal
Name Status MacAddress LinkSpeed
---- ------ ---------- ---------
vEthernet (Default Switch) Up 00-15-5D-64-0A-00 10 Gbps
Recent error events
TimeCreated : 19/05/2026 06:41:11 p. m.
LevelDisplayName : Información
Id : 1
Message : Claude VM Service stopped.
TimeCreated : 19/05/2026 06:26:14 p. m.
LevelDisplayName : Información
Id : 1
Message : Claude VM Service starting. Detailed logs: C:\ProgramData\Claude\Logs\cowork-service.log
Related issues
This appears related to:
Attachments
Impact
Cowork is unusable on this machine. Regular Chat works without issues, confirming
the problem is isolated to the workspace VM networking layer.
claude_logs.zip
diagnostico_cowork.txt
<img width="2560" height="1392" alt="Image" src="https://github.com/user-attachments/assets/0d368d81-5d8c-4ac5-b6bd-76b99ba03c7c" />
@BEMS680629HDFLRR04 pls see here https://github.com/anthropics/claude-code/issues/41242#issuecomment-4277821335
https://github.com/anthropics/claude-code/issues/41242#issuecomment-4474328395
I have been able to resolve the ECONNRESET errors by almost 100% by switching to Wired LAN and I was very very frustrated with these issues for more thsn a month. and there are others on the same track who have reported the same success.
HTH
This happens whether I connect via Ethernet or Wi-Fi. It even happens when I switch to my cell phone's mobile data network.
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.