Essential Guide: Powerful Run `gh` Command In Claude Code On The Web

Essential Guide: Powerful Run `gh` Command In Claude Code On The Web

I'm Oikon. I typically share Claude Code insights on X (Twitter).

Recently, Claude Code on the Web removed gh from the disallowed_tools list, making GitHub CLI available. In this article, I'll show you how to configure it. I've also published a setup package, so you can get started right away.

Auto-install GitHub CLI on Claude Code on the Web. Just add one line to settings.json.

To use gh commands (e.g., gh pr create), you need to set GH_TOKEN or GITHUB_TOKEN:

Note: The token needs repo scope for most operations.

Claude Code on the Web network should be Full or Custom. If using Custom, you need to allow release-assets.githubusercontent.com.

Note: The specifications in this article are based on Claude Code on the Web as of January 8, 2026. Some setup steps may become unnecessary if gh command becomes installed by default in the future.

Here's how to get gh working in the shortest time possible.

Create a custom environment in Claude Code on the Web and configure the following:

Add the following to your repository's .claude/settings.json:

Source: Dev.to