gh-setup-hooks weekly downloads statistics
By oikon48 · npm · Claude Code
One-line setup for GitHub CLI auto-installation on Claude Code on the Web
gh-setup-hooks has 970 recorded weekly downloads on npm, ranking #1453 of 2,322 tracked listings.
About gh-setup-hooks
gh-setup-hooks
Auto-install GitHub CLI on Claude Code on the Web. Just add one line to settings.json.
Setup
1. Add hook to settings.json
Add to .claude/settings.json:
{
"hooks": {
"SessionStart": [
{
"hooks": [
{
"type": "command",
"command": "bun x gh-setup-hooks",
"timeout": 120
}
]
}
]
}
}
npx -y gh-setup-hooks is also ok.
2. Set up Claude Code on the Web
To use gh commands (e.g., gh pr create), you need to set GH_TOKEN or GITHUB_TOKEN:
- Go to Claude Code on the Web
- Open Settings → Custom Environment
- Add environment variable:
- Name:
GH_TOKENorGITHUB_TOKEN - Value: Your GitHub Personal Access Token
- Name:
Note: The token needs
reposcope 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.
How It Works
- Start a session on Claude Code on the Web
- SessionStart hook runs
npx gh-setup-hooks - Installs gh only in remote environment (
CLAUDE_CODE_REMOTE=true) - Installs to
~/.local/binand persists PATH - Auto-detects
GH_REPOfrom git remote forghCLI compatibility - Does nothing in local environment
Configuration
| Environment Variable | Description | Default |
|---|---|---|
GH_SETUP_VERSION | gh version to install | 2.88.1 |
License
MIT
References
Description from the npm listing.
- claude-code
- github-cli
- hooks
- remote
- setup
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (1)Similar npm Claude Code plugins
All 20 gh-setup-hooks alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/gh-setup-hooks. First seen Oct 20, 2026; last successful collection Oct 20, 2026. See the methodology.