Answer: Set HTTPS_PROXY or HTTP_PROXY to your proxy's URL as usual, then set --proxy-authorization-command or --proxy-authorization-file to tell the runner where to read the header value from. Both flags require Claude Code v2.1.238 or later. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth Revision: 1 Digest: sha256:3bdb46e427aa688d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:39Z Last changed: 2026-11-13T03:05:39Z Last verified: 2026-11-20T12:24:55Z Next check: 2026-11-21T12:24:55Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Command flag | --proxy-authorization-command | [1] | 2026-11-20 File flag | --proxy-authorization-file | [1] | 2026-11-20 Minimum version | v2.1.238 | [1] | 2026-11-20 Proxy URL variables | HTTPS_PROXY | [1] | 2026-11-20 Listener address | 127.0.0.1 | [1] | 2026-11-20 Sources: [1] Anthropic. "Deploy self-hosted environments to production". https://code.claude.com/docs/en/self-hosted-environments-deploy.md Role: primary. Accessed: 2026-11-20T12:24:55Z Quote: "set `--proxy-authorization-command` or `--proxy-authorization-file` to tell the runner where to read the header value from" (Supports: Command flag) Quote: "**[`--proxy-authorization-file `](https://code.claude.com/docs/en/self-hosted-environments-reference#runner-cli-flags)**" (Supports: File flag) Quote: "Both flags require Claude Code v2.1.238 or later." (Supports: Minimum version) Quote: "Set `HTTPS_PROXY` or `HTTP_PROXY` to your proxy's URL as usual" (Supports: Proxy URL variables) Quote: "the listener is a forward proxy on `127.0.0.1`" (Supports: Listener address) Published: 2026-11-20T03:48:50Z Snapshot SHA-256: e3fbe3f6840c260e4c0a51b93050a75e498c052fda2653b5a9ca7a45ebfa987c (captured 2026-11-20T12:24:53Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:24:55Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:24:55Z Last attempt: 2026-11-20T12:24:55Z Notes and limitations: Extracted automatically from a single official source (section "Authenticate to an egress proxy"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/configure-llm-gateway How do I configure Claude Code to use my organization's LLM gateway? https://latestn.com/tool/claude-code/admin-and-enterprise/configure-otlp-endpoint How do I configure the OTLP endpoint and authentication for Claude Code telemetry? https://latestn.com/tool/claude-code/admin-and-enterprise/configure-proxies-gateways How do I configure a proxy or gateway for Claude Code in an enterprise deployment? https://latestn.com/tool/claude-code/admin-and-enterprise/choose-gateway-address How do I choose the address for a Claude apps gateway so Claude Code accepts it? https://latestn.com/tool/claude-code/admin-and-enterprise/code-review-requirements What access or roles do I need to set up Code Review in Claude? https://latestn.com/tool/claude-code/admin-and-enterprise/combine-managed-sources How does Claude Code combine multiple managed settings sources, and which keys are read from every admin source? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:05:39Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I configure a proxy authorization for egress in Claude Code self-hosted environments? Revision 1, last verified 2026-11-20T12:24:55Z. https://latestn.com/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth (accessed 2026-11-21T10:02:32Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_configure_egress_proxy_auth_r1, title = {How do I configure a proxy authorization for egress in Claude Code self-hosted environments?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth}}, note = {Revision 1; digest sha256:3bdb46e427aa688d; last verified 2026-11-20T12:24:55Z; accessed 2026-11-21T10:02:32Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/admin-and-enterprise/configure-egress-proxy-auth