Skip to content
PluginStats

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

View on npm Outdated · Nov 17, 2026

gh-setup-hooks has 2,249 recorded weekly downloads on npm, an increase of 12.3% over the past 30 days, ranking #1850 of 3,247 tracked listings.

Weekly downloads
2,249
Official API · Dec 5, 2026
7-day growth
+12.5%
+250 weekly downloads
30-day growth
+12.3%
+246 weekly downloads
90-day growth
+62.4%
+864 weekly downloads
Rank
#1850
▼ 63 in 7 days

About gh-setup-hooks

gh-setup-hooks

npm version License: MIT

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:

  1. Go to Claude Code on the Web
  2. Open Settings → Custom Environment
  3. Add environment variable:

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.

<img src="images/cloud-environment-settings.png" width="400" alt="Cloud Environment Settings">

How It Works

  1. Start a session on Claude Code on the Web
  2. SessionStart hook runs npx gh-setup-hooks
  3. Installs gh only in remote environment (CLAUDE_CODE_REMOTE=true)
  4. Installs to ~/.local/bin and persists PATH
  5. Auto-detects GH_REPO from git remote for gh CLI compatibility
  6. Does nothing in local environment

Configuration

Environment VariableDescriptionDefault
GH_SETUP_VERSIONgh version to install2.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

gh-setup-hooks weekly downloads on npm, last 90 days: 2,249 weekly downloads as of Dec 5, 2026, +62.4% over 90 days.gh-setup-hooksWeekly downloads on npm · Last 90 days2,249downloads / week+62.4% over 90 days05001K1.5K2K2.5K3KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
gh-setup-hooks weekly downloads on npm, last 90 days: 2,249 weekly downloads as of Dec 5, 2026, +62.4% over 90 days.

7/30/90-day growth

gh-setup-hooks weekly downloads growth on npm: +12.5% over 7 days, +12.3% over 30 days, +62.4% over 90 days.gh-setup-hooksWeekly downloads growth on npm2,249downloads / week now7-day growth+250 weekly downloads+12.5%30-day growth+246 weekly downloads+12.3%90-day growth+864 weekly downloads+62.4%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
gh-setup-hooks weekly downloads growth on npm: +12.5% over 7 days, +12.3% over 30 days, +62.4% over 90 days.

Ranking history

gh-setup-hooks npm ranking history: currently #1850 (by weekly downloads).gh-setup-hooksnpm ranking · by weekly downloads · Last 90 days#1850current rank#1400#1500#1600#1700#1800#1900Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 20, 2026 – Dec 6, 2026 · 21 observations · Updated Dec 5, 2026pluginstats.com
gh-setup-hooks npm ranking history: currently #1850 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 93, #10 (overall #1,850)
All npm: every listing in weekly downloads order

Listing placement

Claude Code614 listings · 31 pages · page 17, #14 (overall #334)
Claude Code: every listing in weekly downloads order

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 (157)
Recent weekly downloads observations for gh-setup-hooks
Date (UTC)Weekly downloadsChange vs. previous
2,249-291
2,540-8
2,548+78
2,470+64
2,406+38
2,368+117
2,251+252
1,999-257
2,256+35
2,221-137
2,358-82
2,440+106
2,334-34
2,368—

Similar npm Claude Code plugins

All 20 gh-setup-hooks alternatives

Data 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 Nov 17, 2026. See the methodology.