šŸ¦žOpenClaw Guide
← All Integrations
šŸ™

GitHub

Easyā±ļø 5-10 minutes

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

  1. GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic)

  2. Click "Generate new token (classic)"

  3. Select scopes:

    • repo — full repository access
    • issues — manage issues
    • pull_requests — read/write PRs
    • workflow — trigger GitHub Actions
  4. Generate and copy the token

Step 2: Configure OpenClaw

yaml
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

bash
openclaw skill install github

What You Can Do

Issues

bash
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

bash
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

bash
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'
1

Install GitHub CLI

Run 'brew install gh' (Mac) or follow GitHub's instructions for your platform.

2

Authenticate

Run 'gh auth login' and complete the browser authentication flow.

3

Verify access

Run 'gh repo list' to confirm you can access your repositories.

4

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.

Join Vibe Combinator →

šŸ™ 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 →