GitHub
AI-powered development assistant
OpenClaw GitHub Integration
Bring AI assistance directly into your development workflow. OpenClaw connects to GitHub to help with code reviews, issue management, documentation, and more ā all through natural language.
Setup
Step 1: Generate a Personal Access Token
-
GitHub ā Settings ā Developer settings ā Personal access tokens ā Tokens (classic)
-
Click "Generate new token (classic)"
-
Select scopes:
repoā full repository accessissuesā manage issuespull_requestsā read/write PRsworkflowā trigger GitHub Actions
-
Generate and copy the token
Step 2: Configure OpenClaw
integrations: github: enabled: true token: "ghp_your_token_here" defaultOwner: "your-username" defaultRepo: "your-repo" # Optional: multiple repos repositories: - "org/frontend" - "org/backend"Step 3: Install the gh Skill
openclaw skill install githubWhat You Can Do
Issues
Create an issue: Login button broken on mobile, priority: highā Issue #245 created āWhat issues are open in the backlog?ā 12 open issues. Top priority: #243 Performance regression...Close issue #240 ā resolved in PR #267ā Issue #240 closed āPull Requests
Summarize PR #123ā Changes 14 files. Adds OAuth login flow. Key changes: ...Review PR #123 for security issuesā Found 2 concerns: 1. Token stored in localStorage (use httpOnly cookie)...Releases
Generate release notes for v2.1.0ā Release notes generated from 34 merged PRs...Use Cases
- Code review: Every PR gets AI review before human review
- Issue triage: Auto-categorize and prioritize incoming reports
- Release notes: Auto-generate changelogs from merged PRs
- Documentation: Update README when APIs change
Troubleshooting
Permission denied? Check token has the right scopes enabled. Verify token hasn't expired (classic tokens can be set to never expire).
Rate limiting? GitHub allows 5,000 requests/hour for authenticated tokens. For org-level work consider a GitHub App instead of personal token.
Repo not found? Ensure defaultOwner/defaultRepo matches exactly ā GitHub is case-sensitive.
Features
PR code review
AI analysis of pull requests with issue detection and improvement suggestions
Issue management
Create, update, triage, and close GitHub issues via natural language
Release notes
Auto-generate changelogs from merged PRs and closed issues
Multi-repo support
Connect to specific repos or entire GitHub organizations
Webhook events
React to PRs, issues, and comments in real-time
GitHub Actions
Trigger and monitor CI/CD workflows from your assistant
Use Cases
Automated code review
Every PR gets AI review before human review ā catch bugs earlier
Issue triage
Auto-categorize and prioritize incoming bug reports and feature requests
Release automation
Generate release notes and changelogs from PR history
Developer onboarding
New devs get context-aware answers about the codebase
Setup Guide
Requirements
- āGitHub account
- āGitHub CLI (gh) installed
- āAuthenticated with 'gh auth login'
Install GitHub CLI
Run 'brew install gh' (Mac) or follow GitHub's instructions for your platform.
Authenticate
Run 'gh auth login' and complete the browser authentication flow.
Verify access
Run 'gh repo list' to confirm you can access your repositories.
Start using
OpenClaw will automatically use the gh CLI for GitHub operations.
Limitations
- ā ļøComplex git operations may need terminal access
- ā ļøLarge diffs are summarized rather than shown in full
Frequently Asked Questions
Does it work with GitHub Enterprise?
Yes, the gh CLI supports GitHub Enterprise. Configure with 'gh auth login --hostname your-enterprise.com'.
Can it push code?
OpenClaw can execute git commands including push, but we recommend reviewing changes before pushing.
What about private repositories?
Access depends on your gh authentication. If you can access a repo via gh CLI, your assistant can too.
Can it write code?
OpenClaw can help write code, create files, and make commits. Code review before merging is always recommended.
š„ Your AI should run your business, not just answer questions.
We'll show you how.Free to join.
Related Integrations
š Learn More
Tabnine vs GitHub Copilot
Privacy-first AI coding vs ecosystem integration
OpenClaw AI: The Complete Guide to Your Personal AI Assistant
Everything you need to know about OpenClaw ā the open-source AI assistant with 145K+ GitHub stars. Features, setup, and why it's different from ChatGPT.
OpenClaw Installation Guide ā All Platforms (Linux, macOS, Unraid)
Complete installation guide covering gateway setup, Ollama integration, systemd services, and troubleshooting common setup errors like ECONNREFUSED and model loading issues.
How to Connect Gmail to Your AI Assistant (Complete Integration Guide)
Turn Gmail into an AI-powered inbox. Summarize threads, draft replies, auto-categorize messages, and search your email with natural language.
š Your AI should run your business.
Weekly live builds + template vault. We'll show you how to make AI actually work.Free to join.
Join Vibe Combinator ā