claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] Long delay for initial commend behind firewall

Open damienrj opened this issue 3 months ago • 3 comments

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 am trying to run Claude Code behind a firewall, using the newer Console Account (api billing) method. I have the following domains set to be allowed.

•	api.anthropic.com
•	claude.ai
•	sentry.io
•	statsig.anthropic.com
•	console.anthropic.com
•	cdn.anthropic.com
•	static.anthropic.com
•	files.anthropic.com
•	auth.anthropic.com

However the first command I run with Claude Code hangs for 5 minutes and then the later commands work fine. I think the endpoint works okay since I don't see the same issue in open code so I suspect there is some specific domain I can't reach when Claude Code starts.

What Should Happen?

Have less than 60 second wait for command to start

Error Messages/Logs


Steps to Reproduce

  1. Login with Console Account (api billing)
  2. Start Claude
  3. Run simple command like "What is today's date"

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

1.0.127

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

damienrj avatar Sep 26 '25 22:09 damienrj