Home / Guides / Claude

Claude code review in GitHub Actions

Updated July 4, 2026 · applies to pgup-ai/jbot-review-action v0

To get Claude reviewing your pull requests inside your own GitHub Actions, add one workflow file and one repo secret (ANTHROPIC_API_KEY). J-Bot Review — an open-source (MIT) action — drives Claude on your key and your runner, and posts diff-anchored findings that a second session verifies before they land on the PR. No reviewer SaaS, $0 per seat added.

Using a Claude Pro/Max subscription?

A Claude subscription seat is not a supported CI credential today — Claude runs on your Anthropic API key, per-token. If you want to reuse a subscription you already pay for, Codex (ChatGPT Plus/Pro), Cursor, Devin, Cline, Kilo, Command Code, Grok Build, and Qoder seats are supported: CLI subscription code review →

Setup in three steps

  1. Add the secret. Create an API key in the Anthropic Console and save it as the repository secret ANTHROPIC_API_KEY (Settings → Secrets and variables → Actions).
  2. Commit the workflow. Add the file below as .github/workflows/jbot-review.yml.
  3. Open a pull request. Claude reviews the full base…head diff on your runner and posts review comments with a verdict; blocking findings are adversarially verified first, nits demoted.
.github/workflows/jbot-review.yml
name: J-Bot Code Review
on:
  pull_request: { types: [opened, reopened, ready_for_review, synchronize] }

concurrency:
  group: jbot-review-${{ github.event.pull_request.number }}
  cancel-in-progress: true

permissions:
  contents: read
  pull-requests: write
  issues: write        # PR reactions use the issues API
  checks: read

jobs:
  review:
    if: github.event.pull_request.draft == false
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
        with: { fetch-depth: 0 }
      - uses: pgup-ai/jbot-review-action@v0
        with:
          provider: anthropic
          # model: <id from models.dev>   # optional — provider default when unset
          anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
          github-token: ${{ secrets.GITHUB_TOKEN }}

What Claude reviews, exactly

Cost & privacy

FAQ

Can I use my Claude Pro or Max subscription instead of an API key?

Not today — a Claude Pro/Max subscription seat is not a supported CI credential in J-Bot Review, so Claude runs on your own Anthropic API key (pay-per-token) or through an OpenCode gateway. If you want to reuse a subscription you already pay for, Codex (ChatGPT Plus/Pro), Cursor, Devin, Cline, Kilo, Command Code, Grok Build, and Qoder seats are supported.

Which Claude models can review my PRs?

Any Claude model your Anthropic account can call. Leave model unset for the provider default, or pin one with the model input using an id from the models.dev catalog. You can also route Claude through OpenCode gateways instead of the direct Anthropic provider.

Does Anthropic see my whole repository?

No. The action reads your checkout read-only on your own runner. What reaches the API is the pull-request diff and the context the reviewing agent requests, sent under your own Anthropic account and its data-retention terms. No third-party reviewer service is involved.

What does Claude code review cost per PR?

Whatever your Anthropic API usage costs — J-Bot Review itself adds no charge and no per-seat fee. Defaults keep spend low: one review pass, verification on, doc-only PRs skipped without a model call. You can trim further with min-severity or route verification to a cheaper aux model.

Related