Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.290 ·

Built-in gh no longer picks a host from GH_HOST or GH_REPO

The built-in gh stand-in no longer takes the GitHub host from GH_HOST or GH_REPO; pass --hostname instead

Group of 4 You'll notice Improvements
JSON All of v2.1.290
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
GitHubArea: what it touches
ImprovementsKind: in v2.1.290,
ImprovementsSection of the release

Unclear Where this message appears and what triggers it is not known.

What

When the GitHub CLI (gh) is missing, Claude Code can supply its own limited gh for gh api calls. This release tightens how that stand-in decides which GitHub host a request goes to.

  • If GH_HOST or GH_REPO names a host other than the default, that variable is not used to pick a host in this session. A new message says to pass --hostname <host> on the command instead.
  • GH_REPO no longer accepts a host in front of the repository. The error now says to set GH_REPO=OWNER/REPO or spell the repository out in the endpoint, and a host in GH_REPO that is not a plain host name causes an error.
  • A host taken from a git remote now goes through a refusal check.
  • The help Claude sees when a repository has no default remote now says the remote chosen names the host the request goes to, and that GH_HOST and a host in GH_REPO pick no other host.
  • The help for --hostname <host> only mentions "as GH_HOST" in some cases; the text is now built when it is shown.

Why

If you rely on GH_HOST or a host in GH_REPO to reach a GitHub Enterprise server, those gh commands may now be refused. Add --hostname <host> to the command instead. Hosts are also no longer taken unchecked from repository remotes.

Read from
Names in the bundleGH_HOSTGH_REPO
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Confirmed since Anthropic's documentation has since written up GH_HOST, on Interactive mode. > * **A GitHub Enterprise host set as `GH_HOST`**: `GH_ENTERPRISE_TOKEN` or `GITHUB_ENTERPRISE_TOKEN`, or the token saved by `gh auth login --hostname <host>`. Without one, the footer shows the same hints interactive-mode see the edit
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 doubtWhere this message appears and what triggers it is not known.
Anthropic's documentation agreesAnthropic's documentation has since written up GH_HOST, on Interactive mode.
Anthropic's release notes agreeChanged the built-in gh api in cloud sessions: a host other than github.com set in GH_HOST or GH_REPO is now refused (use --hostname or a…

See this entry in the whole of v2.1.290 →

Feedback