A community-driven registry for the Claude Code ecosystem. Not affiliated with Anthropic.
Are you the author? Sign in to claim
Enable the gh CLI command in Claude Code web environments via SessionStartHooks
Auto-install GitHub CLI on Claude Code on the Web. Just add one line 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.
To use gh commands (e.g., gh pr create), you need to set GH_TOKEN or GITHUB_TOKEN:
GH_TOKEN or GITHUB_TOKENNote: 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.
npx gh-setup-hooksCLAUDE_CODE_REMOTE=true)~/.local/bin and persists PATHGH_REPO from git remote for gh CLI compatibility| Environment Variable | Description | Default |
|---|---|---|
GH_SETUP_VERSION | gh version to install | 2.88.1 |
MIT
Give Claude Code memory that evolves with your codebase via hooks and LLM-compiled knowledge
Security hooks with SSRF protection, MCP compression, and OpenTelemetry tracing
Context management with hooks for state via ledgers, MCP without context pollution
An LLM council that reviews your coding agent's every move for quality assurance
Community Package
@oikon48 on GitHub