Developer Integration
OpenClaw + GitHub
Manage repositories, issues, and pull requests from your AI assistant.
Category
Developer
Setup Time
~5 minutes
What you can do
- Create & manage issues
- Review pull requests
- Repository insights
- Search code & commits
Setup Guide
Prerequisites
- OpenClaw running (see our deployment guide)
- A GitHub account (personal or organization)
- Admin access to repositories you want to connect
Step 1: Create a GitHub App
- Go to GitHub → Settings → Developer settings → GitHub Apps
- Click New GitHub App
- Fill in the details: - GitHub App name: "OpenClaw Bot" (or your preferred name) - Homepage URL: Your OpenClaw instance URL or
- Set permissions: - Repository permissions: - Issues: Read and write - Pull requests: Read and write - Contents: Read only
- Click Create GitHub App
https://openclaw.ai
- Webhook: Uncheck "Active" (not needed for basic integration)
Step 2: Generate a Private Key
- In your new GitHub App settings, scroll to Private keys
- Click Generate a private key
- Save the
.pemfile securely — you'll need it for configuration
Step 3: Install the App
- In your GitHub App settings, click Install App
- Select your account or organization
- Choose repositories (all or select specific ones)
- Click Install
Note the Installation ID from the URL (e.g., github.com/settings/installations/12345678 → ID is 12345678)
Configuration
Add the GitHub channel to your OpenClaw config:
# In your openclaw config
channels:
github:
enabled: true
app_id: "YOUR_GITHUB_APP_ID"
private_key_path: "/path/to/private-key.pem"
installation_id: "YOUR_INSTALLATION_ID"
Or via environment variables in your docker-compose.yml:
environment:
- GITHUB_ENABLED=true
- GITHUB_APP_ID=YOUR_GITHUB_APP_ID
- GITHUB_PRIVATE_KEY=-----BEGIN RSA PRIVATE KEY-----
YOUR_KEY_HERE
-----END RSA PRIVATE KEY-----
- GITHUB_INSTALLATION_ID=YOUR_INSTALLATION_ID
Step 4: Restart OpenClaw
docker compose restart openclaw
Verification
Try asking OpenClaw to list your repositories or create an issue:
"List my GitHub repositories"
"Create an issue in owner/repo titled 'Test issue'"
Check logs for API calls:
docker compose logs -f openclaw | grep -i github
Common Issues
Authentication failed: Verify your App ID, Installation ID, and private key are correct. The private key must include the -----BEGIN RSA PRIVATE KEY----- headers.
Permission denied: Ensure your GitHub App has the required repository permissions. Go to your app settings → Permissions → adjust as needed.
Rate limits: GitHub API has rate limits (5000 requests/hour for authenticated requests). OpenClaw caches responses to stay within limits.
Organization apps: For organization repositories, the app must be installed on the organization, not your personal account.
Frequently Asked Questions
Does OpenClaw work with GitHub?
Yes — OpenClaw integrates with GitHub via GitHub Apps API. It can manage issues, review pull requests, search repositories, and more. Setup takes about 5 minutes.
Is the GitHub integration free?
Yes. The GitHub integration is free and included with OpenClaw. GitHub Apps are free on all GitHub plans. You only pay for hosting (~$7/mo) and AI API usage (~$3-10/mo).
How do I set up GitHub with OpenClaw?
Create a GitHub App in your developer settings, generate a private key, install the app on your repositories, add the credentials to your OpenClaw config, and restart. The whole process takes about 5 minutes.
Do I need a paid GitHub account?
No. GitHub Apps work with free GitHub accounts. You get 5000 API requests per hour on all plans, which is plenty for typical OpenClaw usage.
Can OpenClaw access private repositories?
Yes. When installing the GitHub App, you can grant access to specific private repositories. OpenClaw will only access repositories you explicitly authorize.
Ready to set up GitHub?
Follow our free guide to deploy OpenClaw and connect GitHub in minutes.
Official docs: https://docs.openclaw.ai/channels