Claude Code session
Gh Setup Hooks
Enable `gh` command in Claude Code on the Web environment, just adding SessionStartHooks
Install
git clone https://github.com/oikon48/gh-setup-hooks.gitFrom the README
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: 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: - Name: GH_TOKEN or GITHUB_TOKEN - Value: Your GitHub Personal Access Token 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 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 License MIT References - npm package - GitHub CLI - Claude Code Hooks - GitHub Personal Access Tokens
Details
- Repository
- oikon48/gh-setup-hooks
- Language
- JavaScript
- License
- MIT
- Last updated
- 14 March 2026
- Topics
- claudeclaude-codeclaude-code-hooks
FAQ
What is Gh Setup Hooks?
Enable `gh` command in Claude Code on the Web environment, just adding SessionStartHooks It is a session for Claude Code, from oikon48/gh-setup-hooks on GitHub.
How do I install Gh Setup Hooks?
Clone oikon48/gh-setup-hooks from GitHub and follow the setup steps in its README.
Is Gh Setup Hooks popular?
oikon48/gh-setup-hooks has 48 GitHub stars and 3 forks. It was last updated on 14 March 2026.
More sessions & history
Claude Channel CLI
48aaronn/claude-channel-cli
A channel for Codex & other AI agents to access a live Claude Code session.
AI Memory
44hyxnj666-creator/ai-memory
Extract structured knowledge from Cursor & Claude Code conversations into git-trackable Markdown files
Agentdiff
47codeprakhar25/agentdiff
Git-native AI code provenance: records which AI agent wrote which line, signs each attribution with ed25519, stores it in your git history. Cross-agent (Claude Code, Cursor, Copilot, Codex, Windsurf, OpenCode, Gemini).
Superbrain
43m3talux/superbrain
Session memory for Claude Code. Auto-captures every session into a plain Obsidian markdown vault. Zero config. MIT. macOS + Linux.
Clawtab
44tonisives/clawtab
One message bar for your coding agents. Answer Claude Code, Codex, and OpenCode from a card, or open the session. Free, open source, with optional remote access.
Claude Code Iterm2 Tab Status
39JasperSui/claude-code-iterm2-tab-status
Claude Code plugin that shows live session status ( running / idle / attention) in your iTerm2 tab title — no config needed, just install and go.
Browse the most popular Claude Code mods, all sessions & history, or the skills and MCP server directories.