Ever get annoyed that Claude Code can't open Github PRs, update PR description, or work with issues? Well now we can.
This is a guide specifically for the web and mobile-based Claude Code Cloud.
Claude Code Cloud doesn't ship with the gh command line tool for working with issues, pull requests and other data.
This script bootstraps the Claude Code Cloud environment by installing the gh tool on startup.
- Add
claude-web-setup.shto your project - Add
SessionStarthook to your.claude/settings.json - Add the below to your Claude Code Cloud environment
WITH_GH_CMD=true # required to toggle installation of `gh` on
GH_TOKEN=BLAH # personal token with appropriate permissions
GH_REPO=anthropic/claude-code # optional but shortcuts which repo `gh` usesYou can now ask Claude Code to read or create issues, generate pull requests, etc.
You can simply ask Claude Code to look at issues, or instruct it specifically to use the gh tool.
Because gh installation adds a few seconds, you may want to opt into this. I've done
this by creating a specific Claude Code Cloud environment that has the WITH_GH_CMD=true in.
If that flag is missing, gh won't be installed.