Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@jonchurch/claude-code-gh

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jonchurch/claude-code-gh

Auto-install GitHub CLI (gh) for Claude Code web/remote sessions

latest
Source
npmnpm
Version
1.1.1
Version published
Weekly downloads
10
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

claude-code-gh

Claude Code web sessions run on ephemeral VMs without the GitHub CLI (gh). If you're used to having Claude work with gh locally, you won't be able to in web sessions.

This package fixes that by installing gh automatically when your session starts.

[!NOTE] Hopefully Anthropic will add the gh cli as installed software on their default iamges, then this package will not be necessary and can be archived.

Setup

Remote sessions only see repo-level settings. Add to .claude/settings.json in your repo:

{
  "hooks": {
    "SessionStart": [
      {
        "matcher": "startup",
        "hooks": [
          {
            "type": "command",
            "command": "npx @jonchurch/claude-code-gh"
          }
        ]
      }
    ]
  }
}

Commit and gh will be available in your next web session.

Local Install (Alternative)

Running npx on every session start means executing code from npm that you don't control. If you'd rather call a script under your own version control:

npx @jonchurch/claude-code-gh install

This copies the script to .claude/hooks/ and updates your settings to use it. Commit both and you're set.

Environment / Network Settings

Requires "Full" network access, or "Custom" with release-assets.githubusercontent.com allowed. ("Limited" won't work - GitHub downloads redirect to that domain.)

Authentication

For private repos or higher rate limits, add GH_TOKEN to your environment variables.

License

MIT

Keywords

anthropic

FAQs

Package last updated on 26 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts