Skip to main content
Claude Approvals is a check on GitHub pull requests that reports who still has to approve. To turn it on in a repository, commit a policy file at .claude/approvals.yml in the repository’s root, on its default branch. Once the file is on the default branch, Approvals can start billing.

Prerequisites

Setting up and enforcing Approvals takes each of these:
  • A Claude organization that qualifies, with usage credits to pay for the model runs that a policy starts
  • The Claude GitHub App, installed on the repository and linked to your Claude organization
  • Permission to merge into the default branch
  • Admin access to the repository on GitHub, to require the Claude Approvals check. A private repository also needs a paid GitHub plan
  • Two people with write access, before you enforce either policy on this page. With only one, the check can’t pass on a change under .claude/, or where Claude’s review fails or gives no result. Under the policy that keeps two people on each change, it can’t pass on any change

Plan your first policy

A policy file tells Approvals who has to approve a pull request. For your first one, decide whether Claude can approve, then copy the starter policy that matches: Both policies start in observe mode, where the Claude Approvals check shows what the policy would decide, Claude doesn’t approve, and the check normally counts as passing. Both also name claude/code_review. Keep it in your policy file. Once the file is on the default branch, in observe mode or enforced, automatic Code Reviews normally stop where no matching rule names it.

Let Claude approve when Code Review passes

Once this starter policy is enforced, a pull request that passes Claude’s review usually needs no approval from another person, except for changes under .claude/. Other pull requests usually need one person besides the author. In this policy, the first rule asks for two people on a change. Its override lowers that to one and lets Claude approve when claude/code_review reads pass. The second rule asks for two people on a change under .claude/:
This policy can start a billed Code Review at each push, and observe mode is billed. If your Code Review settings ask for fewer reviews, the policy adds to them.

Keep two people on each change

This starter policy asks for two people on each change. Once the policy is enforced, a pull request usually needs one person besides the author, and Claude doesn’t approve. In this policy, both rules ask for two people. The first rule lists claude/code_review under advisory, so reviews follow your Code Review settings:

Turn on Approvals in observe mode

Add your policy file in a pull request of its own, then open a second pull request to see the Claude Approvals check:
1

Add the policy file

In a pull request of its own, from a branch in the repository, add the policy at .claude/approvals.yml in the repository’s root.
2

Merge the pull request

Merge when Claude comments that it “found the policy file in this change valid”. If the file is invalid, a failed check titled This change breaks a policy file appears. Fix it in this pull request.
3

Open another pull request

Open one into the default branch that isn’t a draft. A Claude Approvals check appears with a title that starts (observe mode).
If nothing appears, see No Claude Approvals check appeared.

Enforce your policy and require Claude Approvals

Enforce the policy once the Claude Approvals check titles that you see in observe mode match what your reviewers decide. From then on, the check can block a merge, and Claude can approve where the policy allows it.

Decide which files and branches to protect

Before you switch your policy from observe mode to enforcement, decide which files need a person, which branches the check gates, and when to change GitHub’s required approvals:
  • Files: decide which ones need a person’s approval whatever Claude finds, then copy this rule and narrow its paths
  • Branches: an enforced policy also covers pull requests into branches other than the default branch, so list each branch whose merges the Claude Approvals check should gate. On those branches, a pull request with no covered file gets no check, so a required check waits
  • GitHub’s required approvals: change the number of approvals that GitHub requires only after the last step of the switch

Switch from observe mode to enforcement

A policy file’s mode is one of these:
  • observe: the Claude Approvals check shows what the policy would decide, Claude doesn’t approve, and the check normally counts as passing
  • enforce: the check can block a merge, and Claude can approve where the policy allows it. This is the default, so a policy file with no mode line is enforced
To enforce your policy, follow these steps. After the first step, an open pull request can keep a check that GitHub counts as passing until you rerun Approvals on it. Keep open pull requests out of the merge queue until you have rerun Approvals on them in step 2.
1

Delete the mode: observe line

Delete mode: observe and merge that change.
2

Rerun Approvals on open pull requests

Five minutes after the merge, comment @claude approvals rerun on each one whose check title starts with (observe mode) or Observe mode ended. On a pull request from a fork, read the change first and add the latest commit’s full SHA.
3

Require Claude Approvals in GitHub

For the default branch and each branch you listed, require status checks to pass and add Claude Approvals. As its source, select the Claude app that reported it.
4

Confirm that Approvals blocks a merge

Open a pull request that changes a file under .claude/. When the check finishes, the title reads Waiting on human review from any person (1/2), and GitHub’s merge box lists the check as required.
Approvals later evaluates some of the pull requests that you didn’t rerun, which can start billed runs.

Set the source that GitHub accepts for Claude Approvals

Set the required check’s source to the Claude app. With any source, GitHub accepts a check named Claude Approvals from elsewhere. To set the source through GitHub’s API, put the Claude app’s ID, 1236702, in integration_id in a ruleset or app_id in a branch protection rule.

Control what Approvals spends

Approvals bills your organization’s usage credits for the model runs that a policy starts, and observe mode is billed. Billing can start, and continues, while usage credits are turned off. To keep any policy file from starting billing, an Owner can turn off Approvals for the whole organization.

What Approvals costs

A policy with claude/code_review in an if condition can start a billed Code Review when a pull request opens and at each push. To stop those reviews, move it from the conditions to advisory. When claude/code_review is only under advisory, with no level, reviews follow your Code Review settings. A rule can also read other classifiers. For claude/diff and custom classifiers, each run that calls a model is billed. To limit each run of a custom classifier, set its budget.

Limit what a policy costs

To cap what your organization pays for the Code Reviews and classifier runs that a policy starts, set a spend limit. Set any of these limits at Organization settings > Usage, which takes an Owner role:
  • Your organization’s spend limit for usage credits: covers Approvals
  • Code Review’s spend limit: covers a policy’s reviews together with Code Review’s other reviews. Under Services, open the Claude Code Review row’s menu and select Edit spend limit
  • Classifier runs’ spend limit: under Services, open the Approvals row’s menu and select Edit spend limit. The row has no limit when it appears
On that page, the Claude Code Review row under Services can start without a limit:
  • The row shows a dash where the limit goes: a monthly limit is set for you when a policy’s first billed review starts. Change it once the amount shows
  • Code Review was turned on before your policy: the row has no limit until you set one
If a reseller bills your organization, ask your reseller for a limit. At Code Review’s limit, a check that needs Claude’s review can stop passing. Raise the limit or wait for the next billing period.

Turn off Approvals

You can turn off Approvals for one repository, for a GitHub organization, or for your whole Claude organization.
Suspend or uninstall the Claude GitHub App, or unlink your GitHub organization, only after you turn off Approvals. If you do it first, new commits get no check, so a required check can block merges. GitHub can also continue to count Claude’s approving reviews that are left on open pull requests.
Follow this order:
  1. Check how GitHub treats stale approvals: where GitHub requires approvals, turn on Dismiss stale pull request approvals when new commits are pushed. Otherwise, GitHub can continue to count Claude’s approving review after a new push, until you dismiss the review in the last step.
  2. Stop requiring the check: in GitHub, remove Claude Approvals from the required checks of each branch protection rule and ruleset.
  3. Turn Approvals off: choose how, by the scope that you want.
  4. Dismiss Claude’s reviews: on open pull requests that Claude approved, dismiss that review in GitHub.
To stop the check from blocking without turning Approvals off, first stop requiring it on branches other than the default branch. Then put mode: observe in every policy file. The check then normally stops blocking, and classifiers still run and bill. Pull requests into those other branches get no check unless they change a policy or classifier file.

Ways to turn off Approvals

To turn off Approvals, find the scope that you want in this table: What you turn off for the whole Claude organization stays off when a policy file merges later. If you’re turning off Code Review too, turn off Approvals first, because a policy can start billed reviews where Code Review is off.