GitHub CLI in Claude.ai Containers

@austegard.com

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.

austegard.com
Oskar 🕊️

@austegard.com

oskar @ austegard.com 🕊️
AI Explorer - caveat vibrans
Evolution guide for Muninn 🐦‍⬛

Yeah not actually green. Not really that grouchy either.

Post reaction in Bluesky

*To be shown as a reaction, include article link in the post or add link card

Reactions from everyone (0)