{"version":"2.1.326","anchor":"runner-gains-use-anthropic-gh-option","canonical_anchor":"runner-gains-use-anthropic-gh-option","heading":"Self-hosted runner offers a built-in gh api and renews tool-server tokens","tier":"use","area":"Self-Hosted Runners","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/runner-gains-use-anthropic-gh-option","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### Self-hosted runner offers a built-in gh api and renews tool-server tokens\n\nThe self-hosted runner gains `--use-anthropic-gh`, on by default, which offers sessions a built-in `gh api`, and it can now keep tool-server tokens renewed\n\n**What**\n\nA self-hosted runner is a machine you run yourself that starts Claude Code sessions for you. Two things changed.\n\n- Built-in `gh api`: a new flag, `--use-anthropic-gh`, offers the sessions the runner starts a built-in `gh api` command. `gh` is GitHub's command-line tool. The built-in version reaches only the github.com REST API, which is GitHub's standard web interface for programs.\n\n- On by default: the setting can also be given through the `SELF_HOSTED_RUNNER_USE_ANTHROPIC_GH` environment variable (a named value set in your shell), whose default is \"default\". The runner logs when the offer was made this way, labelled 'by default'.\n\n- Withheld in some situations: the runner does not offer it on Windows, when `--capacity` is above 1, with a third-party provider, or when `CLAUDE_CODE_CHILD_SESSION` is set. It warns when it cannot offer it.\n\n- Status lines: the runner prints 'built-in gh:' lines saying whether it was offered.\n\n- Token renewal: the runner can keep a tool-server session's access token renewed. It gives up a fixed number of minutes after the token expires and shows new status messages about this.\n\n- New config entries: the runner config gains `useAnthropicGh` and `noCloneThroughAgentProxy`, which is set to false.\n\n**Why**\n\nRunners that have no `gh` installed can still give sessions an authenticated way to call the GitHub REST API. If you do not want this, you can turn it off with the flag or the environment variable. Watch the 'built-in gh:' lines to see whether it was offered.\n\n- Area: Self-Hosted Runners\n- Tier: Use it now\n- Useful: 5\/5\n- Signal: 3\/5\n- Scope: org\n- Heads-up: no"}