{"version":"2.1.326","anchor":"agent-proxy-gh-shim-hosted-mode-and-ghonly","canonical_anchor":"agent-proxy-gh-shim-hosted-mode-and-ghonly","heading":"The agent proxy's gh stand-in can be set up without its environment variable","tier":"internal","area":"Agent Proxy","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/agent-proxy-gh-shim-hosted-mode-and-ghonly","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### The agent proxy's gh stand-in can be set up without its environment variable\n\nA new mode arms the agent proxy's built-in gh stand-in without CLAUDE_CODE_AGENT_PROXY_GH_SHIM and leaves an existing gh alone\n\n**Unclear.** Whether `--use-anthropic-gh` is what switches on the new gh-only mode is not stated.\n\n**What**\n\nIn sessions whose traffic goes through the agent proxy (a relay that carries a session's network requests), Claude Code can provide a built-in stand-in for gh, the GitHub command-line tool. Before, that stand-in was written only when `CLAUDE_CODE_AGENT_PROXY_GH_SHIM` was set. The setup step now also takes a switch for a mode that handles only gh. When that mode is on:\n\n- The gh stand-in is set up even if `CLAUDE_CODE_AGENT_PROXY_GH_SHIM` is not set.\n\n- The usual addition to git's configuration is skipped.\n\n- A gh that is already on your PATH (the list of folders your shell searches for commands) is left alone.\n\n- A notice offering the built-in gh is printed to the error output.\n\nThe agent proxy can also start in this gh-only mode when `CCR_AGENT_PROXY_ENABLED` is not set. The runner now accepts `--use-anthropic-gh`, with an optional on or off value, and its help text lists `--agent-proxy-url <url>`, which sends sessions and repository clones through an agent proxy over https only. Self-hosted git clones can be routed through the agent proxy too.\n\n**Why**\n\nThis affects cloud and agent-proxy sessions that use gh.\n\n- Area: Agent Proxy\n- Names: `CLAUDE_CODE_AGENT_PROXY_GH_SHIM`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}