OpenClaw Setup Guide
Development

GitHub Integration

PR management, issues, and CI via the gh CLI

Uses the GitHub CLI (gh) for all repository operations -- issues, PRs, CI runs, code review, API queries. Faster than opening a browser for most things.

Prerequisites

brew install gh
gh auth login

Setup Prompt

You have access to the GitHub CLI (gh). Use it for all GitHub
operations:

- Check PR status: gh pr status, gh pr view <number>
- Create issues: gh issue create --title "..." --body "..."
- List PRs: gh pr list --state open
- View CI: gh run list, gh run view <id>
- Code review: gh pr diff <number>

When I ask about a repo, use gh to look it up rather than
searching the web. When I ask you to create a PR, use gh pr create.

For batch PR reviews, clone to a temp directory first -- never
review PRs in the OpenClaw workspace.

On this page