Skip to content

Set a Claude Code proxy on Linux

This guide covers configuring an existing HTTP proxy for Claude Code on Linux. See the release notes for published CCIso versions.

If your HTTP proxy is on this machine at port 8080, run the following in a terminal. Replace the address with your own if it differs.

Terminal window
export HTTPS_PROXY=http://127.0.0.1:8080
claude

In the new session, run /status and look for your address in the Proxy row. Make a request to verify connectivity. Claude Code accepts HTTP and HTTPS proxy addresses. It does not accept a SOCKS5 address directly.

A desktop launcher, systemd user service or background agent may have a different environment. Merge this into ~/.claude/settings.json, preserving other settings, then reopen the session.

{
"env": {
"HTTPS_PROXY": "http://127.0.0.1:8080"
}
}

If the session shows an unexpected address, check for an existing https_proxy variable. Keep real passwords out of shared project settings. If you also changed the background agent launcher, let its running tasks finish before using claude daemon stop --any. Starting a new background session will start the supervisor again. See Anthropic’s network configuration.

CCIso has yet to publish supported distributions and kernels or tests of system rules, process groups and credential handling on Linux. Planned nftables, cgroup and eBPF work concerns network and process rules. File access still follows the account’s permissions, and a root process can change system rules. For WSL, check the Windows host address.