Learning resourcesReviewed · Anthropic

Claude Code: Enterprise network configuration

This Claude Code networking guide is for developers and IT administrators configuring corporate access, but settings behave differently across terminal, Desktop, cloud and background sessions. It covers HTTP and HTTPS proxies, certificate trust, mutual TLS authentication, streaming timeouts and network allowlists.

Researched 25 Nov 2026

In short.

Claude Code's enterprise networking guide helps developers and IT administrators connect the AI coding assistant to corporate infrastructure, but configuration rules vary by session type and runtime. Its useful details include certificate-store requirements, conditional certificate rotation, background-agent configuration, streaming timeout controls and feature-specific network destinations. It provides concrete settings and diagnostic examples, but successful deployment in a particular network remains unassessed; no commands or configurations were run.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage is the complete selected page at [https://code.claude.com/docs/en/network-config.md], including its notes, warnings, examples, tables and version qualifiers. The documentation index and all linked pages are excluded, including provider setup guides, licensing material and external IP address lists. No commands or configurations were run, and live connectivity, linked destinations and compatibility with a particular enterprise environment were not assessed.

The overview

identity

Enterprise network configuration is a page in the Claude Code documentation at [https://code.claude.com/docs/en/network-config.md]. It explains how to configure the assistant's connections through enterprise proxies, trust private certificate authorities, present client certificates and accommodate network restrictions.

The resource is a technical guide. Its selected scope includes the complete page, including background-agent behavior, streaming watchdogs, GitHub access requirements and additional Desktop and browser destinations.

assessment

The guide is useful when Claude Code cannot connect through a corporate proxy, when TLS inspection requires enterprise certificate trust, or when an organization requires client certificates and controlled outbound access. It gives specific variable names, expected diagnostic messages and explanations of failure cases.

Its main practical complication is configuration scope: a value that works in a terminal may not reach background agents or may be ignored in certain Desktop or cloud settings. The guide supports deployment planning and troubleshooting, while compatibility with any particular proxy, certificate deployment or gateway remains unverified.

users

Developers can use it to configure their own sessions and diagnose connection failures. IT administrators and platform engineers can use its settings-scope rules, background-process guidance and destination lists when deploying Claude Code across an organization. Certificate administrators will find the mTLS rotation behavior especially relevant.

Beginners need basic familiarity with environment variables or settings.json and organization-supplied proxy and certificate details. Experienced readers get runtime requirements, environment precedence, provider differences and version-qualified behavior. The page provides no evidence about coding quality or suitability for particular programming tasks.

capabilities

Proxy configuration supports HTTP and HTTPS proxy variables, their lowercase forms, basic authentication in the proxy URL and NO_PROXY exclusions separated by spaces or commas. NO_PROXY=* bypasses the proxy for all requests. WebSocket connections to localhost, ::1 and the 127.0.0.0/8 loopback range always bypass it.

Certificate controls cover bundled Mozilla roots, the operating system trust store, additional CA certificates through NODE_EXTRA_CA_CERTS and mTLS through a client certificate, private key and optional key passphrase. Remote MCP sign-in requests also use the configured proxy, CA and client-certificate variables.

The page also documents background-agent settings, corporate process launchers, four streaming timeout mechanisms and network destinations associated with authentication, plugins, updates, connectors, artifacts, browser integration and telemetry.

Using it

requirements

Following the procedures assumes an existing Claude Code installation and access to the applicable launch environment or settings files. Proxy addresses, additional CA files and client certificate material are needed only where the organization's network requires them.

Operating system certificate-store support requires a runtime with tls.getCACertificates. The page says the native installer includes this capability; npm installations need Node 22.15 or later. Older Node versions use bundled roots and NODE_EXTRA_CA_CERTS without the operating system store.

For direct Anthropic access, the principal destinations include [https://api.anthropic.com] and the authentication hosts [https://claude.ai], [https://claude.com] and [https://platform.claude.com]. Relevant SSO flows also use [https://sso.claude.com]. Additional requirements depend on installation method and enabled features. Provider or gateway routing does not automatically remove Anthropic access requirements: WebFetch domain safety checks and some fast-mode availability checks still contact the Anthropic API host.

Repository restrictions require separate attention. The page calls for both installed GitHub App IP allowlist inheritance and Anthropic outbound IP entries for restricted GitHub Enterprise Cloud organizations. Anthropic-hosted access to GitHub Enterprise Server needs network reachability from Anthropic infrastructure. Self-hosted runners normally connect from inside the organization's network, with exceptions for the Anthropic git proxy and hosted pre-session flows.

mechanism

CA trust determines which server certificates Claude Code accepts; mTLS additionally presents a certificate identifying the client. CLAUDE_CODE_CERT_STORE selects bundled and system trust sources, defaulting to bundled,system. NODE_EXTRA_CA_CERTS adds a certificate file. CLAUDE_CODE_CERT_STORE must be supplied through the process environment or a settings env block because it has no dedicated settings schema key.

Shell variables are read at startup, so later shell exports do not update a running session. Launch-environment values override settings-file values. Proxy selection uses the first set variable in this order: https_proxy, HTTPS_PROXY, http_proxy, HTTP_PROXY. For claude mcp login, these network variables must come from the shell, user settings or managed settings, rather than project or local settings.

Cloud sessions ignore settings-file env entries for CLAUDE_CODE_CLIENT_CERT, CLAUDE_CODE_CLIENT_KEY, CLAUDE_CODE_CLIENT_KEY_PASSPHRASE, NODE_EXTRA_CA_CERTS, NODE_TLS_REJECT_UNAUTHORIZED and CLAUDE_CODE_OAUTH_SCOPES. Desktop sessions where the app manages the provider connection accept the listed TLS variables, except app-controlled OAuth scopes, and proxy variables only from managed settings or ~/.claude/settings.json. Local, SSH and WSL Code tab sessions signed in through claude.ai have broader settings-file scope, while Desktop still controls OAuth scopes.

Client certificate and key files load at startup and when settings apply. From v2.1.232, qualifying connection failures also trigger a reread and retry, allowing replacement files at the same paths to take effect. An incomplete or mismatched replacement leaves the previous pair in use until another reread.

Streaming uses separate first-byte, event, byte and body-idle timers with provider-dependent coverage. The event watchdog defaults to 300 seconds; the byte watchdog defaults to 180 seconds on the direct Anthropic API and 300 seconds on the specified AWS and gateway connections. API_TIMEOUT_MS limits the wait for response headers, rather than the duration of a response after headers arrive.

setup

Identify the session type and provider before choosing where to place settings. Use a complete proxy URL with its scheme. Configure additional CA trust only where required, and supply the client certificate, key and optional passphrase when mTLS is required. The page advises against hardcoding proxy passwords in scripts.

For background agents, place network variables in the env block of ~/.claude/settings.json or managed settings. Their shared supervisor inherits the environment of whichever shell first starts it, making shell-only exports unreliable across terminals. A wrapper placed earlier on PATH is also bypassed. Organizations requiring a launcher should use processWrapper or its environment equivalent through user or managed settings. After deploying the launcher setting, run claude daemon stop --any to stop the existing supervisor; the next claude agents or --bg invocation starts a supervisor that honors the setting.

For verification, start Claude Code with claude --debug and inspect ~/.claude/debug/<session-id>.txt, or use --debug-file with another path. Look for successful CA, client-certificate and client-key load messages, or failure messages explaining unreadable files. In an interactive session, /status shows proxy and mTLS information. Its Additional CA cert(s) row reports the configured path without confirming that the file loaded.

example

For a terminal session behind a corporate TLS-inspection proxy, the documented pattern is to set HTTPS_PROXY to a complete address such as [https://proxy.example.com:8080] and, if necessary, NODE_EXTRA_CA_CERTS to /path/to/ca-cert.pem before launching Claude Code. If client authentication is also required, set CLAUDE_CODE_CLIENT_CERT to /path/to/client-cert.pem and CLAUDE_CODE_CLIENT_KEY to /path/to/client-key.pem. These are illustrative placeholders, not a configuration that was run.

Starting with claude --debug should produce load confirmations when the files are accepted, including mTLS: Loaded client certificate from CLAUDE_CODE_CLIENT_CERT and mTLS: Loaded client key from CLAUDE_CODE_CLIENT_KEY. Confirm the additional CA file in the debug log as well. For background sessions, place the same values in user or managed settings instead of relying on the terminal's exports.

Assessment & evidence

limitations

SOCKS proxies are unsupported. Basic proxy authentication is documented, while NTLM and Kerberos are addressed through a suggestion to use a compatible LLM gateway. Malformed proxy URLs can prevent launch; v2.1.327 and later tolerate some incomplete HTTPS_PROXY values in certain non-terminal starts, but the page still directs users to supply complete URLs.

Certificate rotation is reactive rather than file-watched. Replacing files alone triggers no immediate action, and an HTTP error after a successful TLS handshake does not cause a certificate reread. OTLP telemetry exporters retain their initially loaded certificate and require a restart after rotation. CLAUDE_CODE_DISABLE_MTLS_RELOAD_ON_STALE_CONNECTION=1 disables connection-error reloads.

Streaming controls have different coverage and limits. CLAUDE_STREAM_IDLE_TIMEOUT_MS has a five-minute minimum for the watchdogs and a 30-minute byte-watchdog cap; on v2.1.328 or later, values above five minutes also extend the body idle timeout up to 30 minutes. CLAUDE_BYTE_STREAM_IDLE_TIMEOUT_MS independently controls the byte watchdog within 10 seconds to 30 minutes. The watchdogs run independently of API_FORCE_IDLE_TIMEOUT, but setting CLAUDE_ENABLE_BYTE_WATCHDOG=0 also disables the first-byte deadline. A stalled response can still end with partial output, an error or an incomplete-response notice.

The CLI destination table does not cover all Desktop and browser needs. Those applications require additional content hosts and wildcard widget destinations. Blocked artifact fonts fall back to other fonts, while blocked JavaScript libraries can leave dependent functionality unavailable. Chrome integration can also fail independently when its bridge uses an egress address outside the organization's Claude IP allowlist.

reasoning

The guide's practical value comes from distinguishing several causes of similar connection failures: proxy selection, server certificate trust, client authentication, settings scope and stalled responses. These distinctions help readers choose a relevant diagnostic rather than repeatedly changing unrelated settings.

Its warnings also explain why a configuration can appear correct while remaining ineffective. A CA path in /status does not prove successful loading; a shell export may never reach an existing background supervisor; and replacement certificate files may remain unused until a qualifying event. This supports using the guide for enterprise troubleshooting, without establishing successful operation in any particular environment.

Network access decisions need to follow the actual provider and enabled features. The page separates optional Datadog traffic from core API and authentication destinations, says third-party-provider sessions never use those Datadog hosts, and identifies CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC as disabling both. That does not establish that all other outbound traffic is optional.

alternatives

The documented trust alternatives are to rely on the operating system store where supported, append private roots through NODE_EXTRA_CA_CERTS, or explicitly select bundled and system sources through CLAUDE_CODE_CERT_STORE. The appropriate choice depends on the runtime and how the organization distributes trust roots.

For proxy authentication requiring NTLM or Kerberos, the page suggests an LLM gateway supporting that method. It also describes routing through Amazon Bedrock, Google Cloud's Agent Platform, Microsoft Foundry and Claude apps gateways. Their linked setup guides, costs and comparative capabilities are outside the supplied evidence.

evidence

The evidence is the complete captured Enterprise network configuration page at [https://code.claude.com/docs/en/network-config.md]. It supplies configuration examples, variable names, defaults, expected log messages, provider distinctions and version thresholds.

All behavior described here is supported by that documentation rather than execution. No commands or configurations were run, and no live connectivity or certificate behavior was independently verified. Linked documentation, external IP lists and provider guides were not supplied, so their contents and current availability remain unassessed.

Access & freshness

costs

The page states no prices for Claude Code, model usage, provider services, gateways or enterprise networking infrastructure. Subscription requirements, additional feature charges and total deployment cost are unknown from this evidence. None of the configuration examples establishes that the associated services are free.

rights

The supplied page includes no explicit license, reuse terms or redistribution grant for its documentation or examples. Documentation reuse rights and Claude Code's software licensing terms are therefore unknown from this evidence. The original resource is available at [https://code.claude.com/docs/en/network-config.md].

freshness

The supplied capture is dated 2026-11-25 at 23:01:27 UTC. The page text provides no explicit publication or last-update date. The capture timestamp establishes when this evidence was retained, not when each documented behavior was introduced.

Several details are version-qualified, including Desktop settings behavior around v2.1.217, connection-error mTLS reload from v2.1.232, certain proxy parsing behavior from v2.1.327 and body idle timeout changes from v2.1.328. The page also distinguishes installer destinations before v2.1.116. These thresholds do not establish the latest Claude Code release or the behavior of an unspecified installed version.

actions

Identify the Claude Code version, installation runtime, session type and provider first. Obtain the organization's proxy URL, required trust roots and client certificate material, then place values in settings or the launch environment according to the documented scope. Use user or managed settings for background-agent network configuration.

Confirm certificate loading in debug logs and use /status for the checks it actually performs. Plan certificate rotation around the documented reload triggers, including restarting sessions that must update OTLP exporter certificates.

Build the network allowlist around the provider, installation method and enabled integrations. Account separately for GitHub restrictions, Chrome bridge egress and Desktop or browser content hosts. Adjust streaming timeouts only after identifying which timer applies; API_TIMEOUT_MS alone does not control pauses after response headers arrive.

Evidence for this report

selected-page.txtselected · checked 2026-11-25