Answer: Put the proxy, CA path, and mTLS variables in the `env` block of `~/.claude/settings.json` or managed settings rather than exporting them in your shell, since settings are the only configuration that reaches every background session. For a corporate launcher, set the `processWrapper` setting (or the `CLAUDE_CODE_PROCESS_WRAPPER` environment variable, delivered through settings) and then run `claude daemon stop --any` so a new supervisor honors it. Status: Confirmed Entry: tool/claude-code/admin-and-enterprise/network-settings-background-agents Revision: 2 Digest: sha256:bf122c02d53a410f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:04:47Z Last changed: 2026-11-15T12:22:34Z (Alternative settings location: — → managed settings) Last verified: 2026-11-20T12:22:26Z Next check: 2026-11-21T12:22:26Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Where to set network variables | ~/.claude/settings.json | [1] | 2026-11-20 Alternative settings location | managed settings | [1] | 2026-11-20 Launcher setting | processWrapper | [1] | 2026-11-20 Launcher environment variable | CLAUDE_CODE_PROCESS_WRAPPER | [1] | 2026-11-20 Restart command | claude daemon stop --any | [1] | 2026-11-20 Sources: [1] Anthropic. "Enterprise network configuration". https://code.claude.com/docs/en/network-config.md Role: primary. Accessed: 2026-11-20T12:22:26Z Quote: "Put the same variables in the `env` block of `~/.claude/settings.json` or [managed settings]" (Supports: Where to set network variables) Quote: "managed settings](https://code.claude.com/docs/en/settings.md) instead. Every variable on this page can be set there, and settings are the only configuration that reaches every background session on every machine" (Supports: Alternative settings location) Quote: "Set the [`processWrapper`](https://code.claude.com/docs/en/settings-reference#processwrapper) setting to prefix the supervisor" (Supports: Launcher setting) Quote: "The equivalent [`CLAUDE_CODE_PROCESS_WRAPPER`](https://code.claude.com/docs/en/env-vars) environment variable takes precedence when both are set" (Supports: Launcher environment variable) Quote: "run [`claude daemon stop --any`](https://code.claude.com/docs/en/agent-view#the-supervisor-process) so the next `claude agents` or `--bg` starts a supervisor that honors it" (Supports: Restart command) Published: 2026-11-20T02:51:42Z Snapshot SHA-256: f8f28e6270458179871d5f6e770cf50f012c6710bb61a1b2e9d28c0346cc8249 (captured 2026-11-20T12:22:23Z) 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:22:26Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:22:26Z Last attempt: 2026-11-20T12:22:26Z Notes and limitations: Extracted automatically from a single official source (section "Apply network settings to background agents"). Related: https://latestn.com/tool/claude-code/admin-and-enterprise/offer-claude-code-in-products Can I offer or preinstall Claude Code in my own product or hosted sandbox? https://latestn.com/tool/claude-code/admin-and-enterprise/on-demand-runner-idle-exit How do I make Claude Code on-demand runners exit when idle? https://latestn.com/tool/claude-code/admin-and-enterprise/org-mod-controls How do I control mods for my organization in Claude Code? https://latestn.com/tool/claude-code/admin-and-enterprise/metrics-cardinality-control How do I control metrics cardinality in Claude Code OpenTelemetry? https://latestn.com/tool/claude-code/admin-and-enterprise/multi-tenant-isolation How do I isolate tenants when hosting the Claude Code Agent SDK for multiple customers? https://latestn.com/tool/claude-code/admin-and-enterprise/network-access-hipaa What network access does Claude Code need in a HIPAA configuration? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-15T12:22:34Z | changed | Alternative settings location: — → managed settings | [1] 2026-11-13T03:04:47Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/admin-and-enterprise/network-settings-background-agents/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/network-settings-background-agents POST: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/network-settings-background-agents with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/admin-and-enterprise/network-settings-background-agents?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I apply proxy and network settings to Claude Code background agents? Revision 2, last verified 2026-11-20T12:22:26Z. https://latestn.com/tool/claude-code/admin-and-enterprise/network-settings-background-agents (accessed 2026-11-21T10:01:09Z). @misc{LatestN_tool_claude_code_admin_and_enterprise_network_settings_background_agents_r2, title = {How do I apply proxy and network settings to Claude Code background agents?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/admin-and-enterprise/network-settings-background-agents}}, note = {Revision 2; digest sha256:bf122c02d53a410f; last verified 2026-11-20T12:22:26Z; accessed 2026-11-21T10:01:09Z} } 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/network-settings-background-agents