GitHub CLI in Claude.ai Containers
The gh CLI is available via apt in Claude.ai’s container environment, which opens up ergonomic GitHub operations beyond raw REST API calls.
Quick Setup
Whitelist release-assets.githubusercontent.com in Claude.ai's compute environment
apt-get update -qq && apt-get install -y -qq gh
Authentication requires a GH_TOKEN or GITHUB_TOKEN environment variable. If you’re using my configuring skill, it’ll find tokens in your project’s .env files automatically.
Why Use It
Creating issues, managing PRs, and checking workflow runs is cleaner with gh than constructing curl commands:
gh issue create --repo owner/repo --title "Bug" --body "Details"
gh pr list --repo owner/repo --state open
gh run list --repo owner/repo
For simple file fetches from public repos, direct curl to raw.githubusercontent.com still works fine without any auth.
The Skill
I’ve published a githubbing skill that documents the setup and common patterns. It pairs with the existing accessing-github-repos skill—use whichever fits the task.