Skip to content

[BUG] Claude code will not connect to antrhropic behind a corporate firewall #43050

Description

@cyberhound1

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When I type claude in windows powershell I get the following error. Unable to connect to Anthropic services

Failed to connect to api.anthropic.com: UNABLE_TO_GET_ISSUER_CERT_LOCALLY

SSL certificate error (UNABLE_TO_GET_ISSUER_CERT_LOCALLY). If you are behind a corporate proxy or TLS-intercepting
firewall, set NODE_EXTRA_CA_CERTS to your CA bundle path, or ask IT to allowlist *.anthropic.com. Run /doctor for
details.
I have set HTTP_PROXY and HTTPS_PROXY to my corporate proxy server. and set BUN_CA_BUNDLE to my corporate CA bundle. I have also set NODE_OPTIONS "--use-openssl-ca".

claude doctor runs as expected Diagnostics
└ Currently running: native (2.1.89)
└ Path: C:\Users\jantoli2.local\bin\claude.exe
└ Invoked: C:\Users\jantoli2.local\bin\claude.exe
└ Config install method: native
└ Search: OK (bundled)
Updates
└ Auto-updates: enabled
└ Auto-update channel: latest
└ Stable version: 2.1.84
└ Latest version: 2.1.91
Press Enter to continue…

but claude throws error on loading

What Should Happen?

Claude should connect to anthropic and load

Error Messages/Logs

Failed to connect to api.anthropic.com: UNABLE_TO_GET_ISSUER_CERT_LOCALLY

 SSL certificate error (UNABLE_TO_GET_ISSUER_CERT_LOCALLY). If you are behind a corporate proxy or TLS-intercepting
 firewall, set NODE_EXTRA_CA_CERTS to your CA bundle path, or ask IT to allowlist *.anthropic.com. Run /doctor for
 details.

Steps to Reproduce

  1. connect to corporate vpn
  2. open powershell
  3. type claude at prompt

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.89 native

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions