{"name":"GH_HOST","slug":"gh-host","family":"env","title":"Environment variables","noun":"environment variable","description":"The help line for `--hostname <host>` now says \"as GH_HOST\" only in some cases instead of every time","description_source":"entry","described_by":{"version":"2.1.290","anchor":"gh-api-hostname-help-text-varies"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.290","released_at":"2026-10-05 18:12:44","spans":1}},"aliases":[],"entries":[{"version":"2.1.290","anchor":"gh-api-hostname-help-text-varies","heading":"Help for the --hostname option no longer always mentions GH_HOST","line":"The help line for `--hostname <host>` now says \"as GH_HOST\" only in some cases instead of every time","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text, named in this entry"},{"version":"2.1.290","anchor":"new-gh-host-gh-repo-guidance-when-the-host-differs","heading":"gh guidance when GH_HOST or GH_REPO points at another host","line":"Claude Code now explains that GH_HOST or GH_REPO naming a non-default host is not used, and says to pass --hostname","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text, named in this entry"},{"version":"2.1.290","anchor":"gh-tool-description-gh-host-and-gh-repo-host-text","heading":"gh help text now says which host a request goes to","line":"Help text about `gh` now says the chosen remote decides the host, and that `GH_HOST` or `GH_REPO` cannot pick another","released_at":"2026-10-05 18:12:44","reason":"found in this entry's text"},{"version":"2.1.193","anchor":"github-enterprise-host-detection","heading":"GitHub Enterprise Host Detection","line":null,"released_at":"2026-06-25 19:05:08","reason":"found in this entry's text"}],"entries_total":4,"docs":[{"source":"claude-code","path":"changelog","title":"Claude Code changelog","documented":false},{"source":"claude-code","path":"interactive-mode","title":"Interactive mode","documented":false}],"docs_total":2,"gates":[],"related":[{"name":"GH_CONFIG_DIR","slug":"gh-config-dir","description":"Read as a pointer to GitHub CLI credentials: `<GH_CONFIG_DIR>\/hosts.yml`, alongside `~\/.config\/gh\/hosts.yml` and `$XDG_CONFIG_HOME\/gh\/hosts.yml`, is added to the credential file paths collected when Claude Code sets up the Bash sandbox for an evaluation shell grant. A relative value is an error (`GH_CONFIG_DIR holds a relative path`)."},{"name":"GH_ENTERPRISE_TOKEN","slug":"gh-enterprise-token","description":"Claude Code looks for a GitHub token in `GH_TOKEN`, `GITHUB_TOKEN` or enterprise variants, then falls back to `gh auth token`"},{"name":"GH_REPO","slug":"gh-repo","description":"When the GitHub CLI is missing, Claude Code can supply its own limited `gh` that runs `gh api` REST calls through the session's GitHub proxy"},{"name":"GH_TOKEN","slug":"gh-token","description":"gh, aws, gcloud, bq and gsutil get placeholder credentials so they authenticate through the proxy instead of failing."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/gh-host","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}