What
- A new
--use-anthropic-git-proxyflag lets a self-hosted runner opt into having Anthropic manage git authentication server-side (using the session creator's GitHub OAuth token, or the org's GitHub App token for bot/agent sessions) instead of configuring git auth on the runner itself. Registration logs "Registering as opted in to Anthropic-managed git (--use-anthropic-git-proxy)"; if the server can't provide governed git for a session despite the flag, a warning explains the fallback to the legacy clone-URL proxy (deprecated). - New
--git-ssh-rewrite <host>and--git-host-rewrite <f>=<t>flags let a runner rewrite git remote URLs, useful for SSH-only hosts or split-horizon DNS setups. - The
SELF_HOSTED_RUNNER_DRAIN_WAIT_MSenvironment variable (default 0, meaning SIGTERM is sent immediately; max 86400) controls how long a runner waits before shutting down, with--drain-wait-bg-tasks-secdocumented as a deprecated alias.
Why
This gives self-hosted runner operators more control over how git authentication and remote URLs are handled, and how long a runner waits for background tasks before terminating.
--use-anthropic-git-proxy
Claude Code changelog modified, high confidence
* Self-hosted runner: Changed `--use-anthropic-git-proxy` to be reported to the server at registration and to print a warning for each session that still clones through the legacy git proxysee the edit
--use-anthropic-git-proxy
Deploy self-hosted environments to production modified, medium confidence
The runner also reports the opt-in to Anthropic when it registers, printing `Registering as opted in to Anthropic-managed git (--use-anthropic-git-proxy)` at startup. Each session on an opted-in runner then uses either Anthropic-managed gi…see the edit
--use-anthropic-git-proxy
Self-hosted environments reference modified, medium confidence
| `--use-anthropic-git-proxy` | `CLAUDE_RUNNER_USE_GIT_PROXY=1` | off | Clone via the [Anthropic git proxy](/docs/en/self-hosted-environments-deploy#use-the-anthropic-git-proxy) instead of customer-managed git auth. Requires `--capacity 1`…see the edit
Two sources agreeTwo things we can check say the same as this entry.
Anthropic's documentation agrees
--use-anthropic-git-proxy on Claude Code changelog
Anthropic's release notes agree
Self-hosted runner: Changed --use-anthropic-git-proxy to be reported to the server at registration and to print a warning for each session…