Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By nsheapsv0.6.1In 1 marketplace
Keeps GitHub App installation tokens fresh for git push and gh in Claude Code sessions, refreshing them before the hour-long expiry. Hooks run at session start and before each tool call; needs GITHUB_APP_ID, GITHUB_INSTALLATION_ID and GITHUB_APP_PRIVATE_KEY set in the session environment.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
env-var driven GitHub App token lifecycle for Claude Code sessions.
GitHub App installation tokens expire after 1 hour. This plugin generates tokens on session start and monitors their validity via a PreToolUse hook, refreshing transparently before commands that need authentication.
git push / gh auth via shared token file$CLAUDE_PLUGIN_DATA/ — each agent automatically gets its own isolated directorygithub plugin — covers all auth methodshttps://github.com/settings/apps/newhttps://github.com/settings/installations/<ID>Set these three env vars before the session starts:
GITHUB_APP_IDGITHUB_INSTALLATION_IDGITHUB_APP_PRIVATE_KEY (PEM content — not a file path)Recommended: Use the 1pass plugin to inject from 1Password. Add to your agent's plugins.settings.yaml:
1pass:
secrets:
- envVar: GITHUB_APP_ID
reference: "op://vault/github-app--repo--my-repo/GITHUB_APP_ID"
- envVar: GITHUB_INSTALLATION_ID
reference: "op://vault/github-app--repo--my-repo/GITHUB_INSTALLATION_ID"
- envVar: GITHUB_APP_PRIVATE_KEY
reference: "op://vault/github-app--repo--my-repo/GITHUB_APP_PRIVATE_KEY"
github-app:
enabled: true
autoGitConfig: true
Any mechanism that exports these vars into the session env works (direct export, .env file sourced before launch, etc.). The 1pass plugin is simply the recommended approach.
$CLAUDE_PLUGIN_DATA/github-app.pem$CLAUDE_PLUGIN_DATA/github-token (mode 600)GIT_AUTHOR_*/GIT_COMMITTER_* to the App's bot identity (e.g., my-app[bot]). Controlled by autoGitConfig: true (default).GH_TOKEN and GITHUB_TOKEN written to $CLAUDE_PLUGIN_DATA/github-app-env, sourced by CLAUDE_ENV_FILEgh/git push get synchronous checks; others get async background refresh| Scenario | Behavior |
|---|---|
| Token valid, >45 min remaining | Silent, no action |
| Token valid, <45 min remaining, non-token command | Background refresh |
| Token valid, <45 min remaining, gh/git command | Allow + background refresh |
| Token expired, gh/git command | Synchronous refresh before allowing |
| Token expired, non-token command | Background refresh |
| Refresh fails | Retry up to 3x with exponential backoff |
| All retries fail | 5-minute cooldown, then retry |
github-app:
enabled: true
autoGitConfig: true
# How long SessionStart waits for env vars to appear (seconds).
# Set to 0 to disable.
waitForEnvTimeoutSeconds: 15
All files are written under $CLAUDE_PLUGIN_DATA/ (per-agent isolated automatically):
7-day copy clicks
npx claudepluginhub nsheaps/ai-mktpl --plugin github-appBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground