Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.267 ·

Self-hosted runners gain a git-proxy opt-in and git-routing flags

Self-hosted runner CLI adds --use-anthropic-git-proxy plus git remote rewriting and drain-wait flags

TierUse it nowhow much it should matter to you
Useful4my rating, 1 to 5
Signal3worth watching, 1 to 5
AreaSelf-Hosted Runnerwhat it touches
KindNew Featuresin v2.1.267,
Group of 2 Use it now Notable

Self-hosted runner CLI adds --use-anthropic-git-proxy plus git remote rewriting and drain-wait flags

What

  • A new --use-anthropic-git-proxy flag 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_MS environment variable (default 0, meaning SIGTERM is sent immediately; max 86400) controls how long a runner waits before shutting down, with --drain-wait-bg-tasks-sec documented 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.

How sure we are
One source agreesOne thing we can check says the same as this entry.
Anthropic's release notes agreeSelf-hosted runner: Changed --use-anthropic-git-proxy to be reported to the server at registration and to print a warning for each session…

See this entry in the whole of v2.1.267 →