Self-hosted runners can share their model access with Claude Code started inside a session
Self-hosted runners gain opt-in nested model access over a socket, with a call budget, model allow list and a new managed setting for forced-login machines
What probably matters to youSection of the release
Unclear What each of the two variables does is not known.
What
A self-hosted runner is a machine you run that hosts Claude Code sessions. Commands in a runner session can now start another Claude Code (for example claude -p) that uses the runner's model access instead of its own credentials. It connects through a private unix socket, a local connection file, named by CLAUDE_CODE_RUNNER_MODEL_SOCKET.
--nested-model-access (env SELF_HOSTED_RUNNER_NESTED_MODEL_ACCESS) turns it on. It needs --nested-model-allow, a list of allowed models, or the runner will not start. A model outside the list is rejected with a message naming --nested-model-allow.
--nested-model-call-budget caps the number of calls. It defaults to 200.
Runner sessions get matching nestedModelAccess, nestedModelCallBudget and nestedModelAllow options. The runner help also mentions a SELF_HOSTED_RUNNER_DIFF_FINDS_NESTED_REPOSITORY env note.
The proxy behind the socket forwards only /v1/messages and token counting. It refuses on Windows, with third-party providers, for HIPAA organizations, with server-managed settings, with governed git, or when CLAUDE_CODE_SUBPROCESS_ENV_SCRUB or ANTHROPIC_UNIX_SOCKET is set.
The nested Claude Code overwrites ANTHROPIC_UNIX_SOCKET, ANTHROPIC_BASE_URL and CLAUDE_CODE_OAUTH_TOKEN with placeholders. It declines for many reasons, including an existing credential, a scrubbed environment, --sdk-url on the command line, and modes that skip permission prompts. It sends a proof header, x-claude-runner-model-proof, derived from the session token, and looks up the organization at /runner/organization.
allowNestedModelAccessUnderForceLogin is a new managed setting (one set by an administrator). On a machine whose managed settings force a sign-in (forceLoginOrgUUID or forceLoginMethod), runner model access is refused unless this is true. The refusal message says to set it on self-hosted runner hosts only.
Separately, when a runner shuts down it now asks the server for the state of each turn before deciding whether to wait. That wait is measured from the start of the check, so it no longer restarts.
Why
This changes where model credentials flow on runner machines. Operators control it with the allow list and call budget. Administrators who force a sign-in must opt in explicitly with allowNestedModelAccessUnderForceLogin, and without it access is refused.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhat each of the two variables does is not known.