{"version":"2.1.333","anchor":"remote-session-detection-helper-keyed-on-three-env-vars","canonical_anchor":"remote-session-detection-helper-keyed-on-three-env-vars","heading":"Remote sessions are recognised from three environment variables","tier":"notice","area":"Sessions","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/remote-session-detection-helper-keyed-on-three-env-vars","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Remote sessions are recognised from three environment variables\n\nClaude Code treats a session as remote when `CLAUDE_CODE_REMOTE` is true or a remote session ID or environment type is set\n\n**What**\n\nClaude Code now decides it is running remotely when any of these holds:\n\n- `CLAUDE_CODE_REMOTE` is true\n\n- `CLAUDE_CODE_REMOTE_SESSION_ID` is set\n\n- `CLAUDE_CODE_REMOTE_ENVIRONMENT_TYPE` is set\n\nA sandbox is the fenced-off space Claude Code runs commands in. In a remote session, or one running on your own infrastructure, the sandbox now reads `CLAUDE_CODE_HTTP_PROXY` and `CLAUDE_CODE_HTTPS_PROXY`, and it refuses connections to the session's own proxy, the go-between server that network traffic passes through. The refusal says: \"this is the session's own proxy; connect to the destination host instead\".\n\n**Why**\n\nIf a command in a remote session is refused with that message, it tried to reach the proxy directly and should connect to the real destination instead.\n\n- Area: Sessions\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: yes"}