Gh Setup Hooks
Description
Enable `gh` command in Claude Code on the Web environment, just adding SessionStartHooks
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
gh-setup-hooks
[](https://www.npmjs.com/package/gh-setup-hooks) [](LICENSE)
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 `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`.
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
- npm package
- GitHub CLI
- [Claude Code Ho
Related Skills
Auto Update
Pull the latest ECC repo changes and reinstall the current managed targets.
Development Ecc Guide
Navigate ECC's current agents, skills, commands, hooks, install profiles, and docs from the live repository su
Development Epic Claim
Claim an epic issue, stamp coordination state, and sync local ownership.
Development Epic Publish
Publish a validated epic update back to the issue and local cache.
Development Epic Review
Mark epic review requested, approved, or changes requested.
Development Epic Unblock
Sweep blocked epic issues and reopen anything whose dependencies are closed.
Development Related Agents
Django Build Resolver
Django/Python build, migration, and dependency error resolution specialist. Fixes pip/Poetry errors, migration
Openai Codex CLI
(55.8k ⭐) - Lightweight coding agent that runs in your terminal.
src/agents/ — 11 Agent Definitions
**Generated:** 2026-04-11