What
A self-hosted runner is a machine you run yourself that picks up Claude Code sessions. An agent proxy is a server that sits between that runner and the outside world and passes its requests along. This release changes how the runner works with one:
--agent-proxy-url <url>now appears in the runner's help text. It routes every session through an agent proxy (https only), and the runner also clones http(s) repositories through it.- Proxy session tokens are now recognised. A token is a credential that proves who is asking. The runner refuses to decode a proxy token (
decode-token: this is a proxy session token.) and sends registration and API requests through the agent proxy, with specific error messages when something fails. The request headers are now built fromSELF_HOSTED_RUNNER_AGENT_PROXY_URLand the runner token. --no-agent-proxy-session-tokensis a new opt-out flag, also available as the environment variableSELF_HOSTED_RUNNER_NO_AGENT_PROXY_SESSION_TOKENS. With it, the runner registers directly and keeps the real tokens on the runner.- A registration failure where the proxy answers with status 407, meaning the proxy wants you to log in to it, now gets its own message suggesting
--no-agent-proxy-session-tokensorSELF_HOSTED_RUNNER_NO_AGENT_PROXY_SESSION_TOKENS. Before, you got a generic 401/403 credential message. - The runner warning now says whether registration goes through the agent proxy, and mentions
SELF_HOSTED_RUNNER_SKIP_AGENT_PROXY_CHECKwhen--no-agent-proxy-session-tokensis on. - The git forwarder, which connects git to the agent proxy, now starts before the post-session hook, so git run by that hook can reach the git mount. It is also created for hook-based checkouts, and the checkout hook's git environment can be pointed at the proxy URL. If it cannot start, the runner logs "the forwarder to the self-hosted agent proxy did not start".
- Session results now carry
endedByServer. - A new
.claude<suffix>.jsonfile is read before the host config is applied.
Why
This changes how self-hosted runners sign in and where the real tokens are kept. If your runner sits behind a proxy that asks for a login, the new 407 message points you straight at the opt-out instead of a vague credential error.
Names in the bundleSELF_HOSTED_RUNNER_NO_AGENT_PROXY_SESSION_TOKENS
One source agreesOne thing we can check says the same as this entry.
The name it cites is new in this build
New in this build: SELF_HOSTED_RUNNER_NO_AGENT_PROXY_SESSION_TOKENS