<!-- Plan and billing | Merget Docs · https://merget.ai/docs/billing -->

# Plan and billing

Credits, what costs them, plans, the spending cap and monthly statements.

Merget is priced in credits. Each plan includes a monthly bundle of credits, every run Merget makes is listed against it, and the receipt for a pull request shows which runs you paid for and why. This page explains the unit, what costs credits, the plans, the spending cap, how payment works, and where the statements and receipts are.

Billing shows the organization's plan and credit usage.

What to look for

- Check the billing period before comparing credit usage.
- Owners can manage the spending cap farther down the page; a cap limits additional paid usage.
- Scroll down to repository usage to see where credits were used.

## Credits

A credit is the one unit Merget's work is counted in. Every charged run rounds up to a whole credit, and a run Merget failed or abandoned costs nothing. There is no charge per seat: every member of the organization is included in the plan, up to the Free plan's five members.

The price list is short. The Free plan includes 5,000 credits a month at no cost; past them, work pauses, unless an owner pays for extra credits at $0.0075 each. The Team plan is $50 a month and includes 10,000 credits; past the bundle, overage is $0.005 per credit, up to the spending cap. See [Plans](#plans).

Credits appear in three places:

| Where | What it shows |
| --- | --- |
| Settings › Billing | The plan, this month's credits against the bundle, the spending cap, the credits by repository and the monthly statements. |
| A run's page | The Credits card: every charge the run made, with its kind, its cause and its outcome. See [Runs › Credits](https://merget.ai/docs/runs#credits). |
| A pull request's receipt | Credits for this pull request at the end of the queue's details panel: every run Merget made for the pull request, in order, grouped by month. A run's Credits card links to it as Full receipt for #N. |

Usage itself is read in tokens: [Analytics](https://merget.ai/docs/analytics) totals the tokens the period's runs used, and a run's Tokens card shows its own. Credits are what that usage is charged as. See [Tokens](https://merget.ai/docs/runs#tokens).

Members see the credits of the repositories they can see. The organization's totals cover every repository; a breakdown that leaves repositories out says so.

Illustration: every run Merget makes is a row on the pull request's receipt, and the month's receipts add up to the statement.

What to look for

- A run's Credits card shows its kind, its cause and its credits. The same row appears on the pull request's receipt.
- The receipt lists every run Merget made for the pull request, in order, with its cause. A run Merget failed or abandoned is listed at 0 credits.
- The statement sums the month's credits against the plan's bundle. On Team, past the bundle, overage is $0.005 a credit, up to the spending cap.

## What costs credits

Every run Merget makes is a charge in credits, listed on the pull request's receipt with what it did and why it happened. An analysis or a preparation is priced by the time and the resources it took. A fix attempt is priced by the work it took, and is charged whether or not it produced a fix. A landing is one credit. Shared work is split over the pull requests it was for.

### Kinds of work

| Kind | What the charge is for |
| --- | --- |
| Preparation | Preparing a pull request over its predecessors in the queue: the merge, the findings and the brief. |
| Analysis | Merget's analysis of a pull request in an advisory repository: the findings and the brief. |
| Fix attempt | A resolution Merget attempted; charged whether or not it produced a fix, and the outcome is shown. |
| Landing | Merging a pull request Merget certified. |
| Queue planning (shared) | A pull request's share of the queue's planning passes, split over the pull requests each pass verified. |
| Landing (shared) | A pull request's share of its batch's certification, split equally over the batch. |
| Repository upkeep | Keeping the repository's code graph and index current; not tied to a pull request. |

### Why a run happens

Each row of a receipt names the cause of the run. These are the causes and what they mean.

| Cause | What happened |
| --- | --- |
| First analysis | Merget's first look at a pull request after it opens or is queued. |
| After your push | A new commit on the pull request runs the analysis again and, in the queue, the preparation. |
| After Merget's fix push | Merget validated the fix it pushed to the pull request. |
| After main moved | The target branch changed, so the pull request was prepared again over it. |
| After the queue reordered | The pull request's place in the queue changed, so it was prepared over different predecessors. |
| After a PR ahead changed | A pull request ahead in the queue got a new commit or left, so this one was prepared again. |
| After settings changed | The repository's settings changed in a way that affects the run. |
| After a dismissal changed | A finding was dismissed or restored, so the verdict was recomputed. |
| Retry requested | Someone asked Merget to run again, from the dashboard, an agent or the GitHub check. |
| Revalidation | The queue checked a prepared pull request again before landing it. |
| Retry after a cut-short run | Merget ran again after a run it had to cut short. |
| Look-through at landing | The nested queue's members were paired against the trunk's over the umbrella's predicted landing. |
| After a nested landing | A nested landing moved the umbrella's head, so it was prepared again. |
| Passing lane | A second preparation of the same head over the passing lane. |
| Other | A run whose cause Merget did not record. |

### Re-preparations

Every run Merget did for a pull request counts, not only the first. A pull request in the queue is prepared again when you push, when Merget pushes a fix, when main moves, when the queue reorders and when a pull request ahead of it changes. Each of those runs is a row on the receipt with its cause, so you can see what the queue's movement cost. A pull request that sits behind an active queue for a long time collects more rows than one that lands quickly.

### Free rows

Runs Merget failed or abandoned cost nothing. They are listed on the receipt at 0 credits with the reason: Merget failed (an error, a run out of memory or a timeout) or Merget abandoned the run (it was cancelled, the queue's plan went stale, or a newer run replaced it for a reason other than a new push to the pull request). A run your own push cut short is charged like any run; the new run is a second row, with After your push as its cause. A revalidation before landing is free too. A retry after a cut-short run is charged like any run; the run that was cut short is the free row.

## Plans

|  | Free | Team | Enterprise |
| --- | --- | --- | --- |
| Price | $0 | $50 a month | Coming soon |
| Repositories | 3 | Unlimited | Unlimited |
| Members | Up to 5 | Unlimited | Unlimited |
| Credits a month | 5,000 | 10,000 | Pooled |
| Past the bundle | Work pauses at the allowance, or $0.0075 per extra credit once an owner pays for extra credits | $0.005 per credit, up to the spending cap | Invoiced |
| Spending cap | None; with extra credits on, 10,000 credits by default, yours to change | 20,000 credits by default, yours to change | Custom |
| Analytics history | 30 days | Full | Full |

The allowance renews on the first of the month (UTC). Unused credits do not carry over to the next month.

Choose a plan compares the plans and changes yours.

What to look for

- Free is the current plan here. Upgrade to Team opens a secure checkout page and comes back to Billing.
- Each column lists the plan's repositories, members, monthly credits and what happens past the bundle.
- Enterprise is arranged with us: Coming soon · Talk to us opens an email.

An owner changes the plan under Settings › Billing: the plan card's Upgrade to Team or Change plan opens Choose a plan, which shows the plans side by side. Members see the plan card, with Only an owner can change the plan.

Upgrade to Team opens a secure checkout page for the card and the billing address; see [Payment](#payment). Once the payment goes through you come back to Billing on the Team plan, usually within a few seconds; if confirming it takes longer, the page says This is taking longer than usual and offers Open Billing and Keep waiting. If you leave the checkout page without paying, Billing says Checkout was cancelled. Nothing changed.

An upgrade takes effect at once. The month's allowance becomes Team's 10,000 credits in full, whatever day of the month you upgrade: included credits are not prorated. Work paused at the Free allowance resumes, and the spending cap becomes Team's default of 20,000 credits, unless the organization already has a cap of at least 10,000 credits, which it keeps. Extra credits, if they were on, end with the upgrade: the whole month is a Team month, so its credits count against Team's 10,000, and those past them are billed at Team's $0.005. A kept cap of exactly 10,000 credits, such as the extra credits' default, is Team's whole bundle: work pauses at Team's included credits until an owner raises the cap under Spending cap, and the cap card says The cap is at the 10,000 included credits, so work pauses there.

To move from Team to Free, an owner cancels Team under Manage billing. In Choose a plan, Free's button reads Manage billing too, and the line under it says until when Team continues, for example Cancel Team there; it continues until Dec 1. Team continues until the end of the month, then the organization moves to Free. See [Downgrading](#downgrading).

Before payments open for your organization, Team's button reads Payments open soon and cannot be pressed. See [Preview mode](#preview).

Enterprise is Coming soon: Coming soon · Talk to us opens an email to [support@merget.ai](mailto:support@merget.ai), and we will arrange it with you. When plan changes are not self-service for your organization, every button reads Talk to us and opens an email to the same address.

### Choosing a plan for a new organization

A new organization starts on the Free plan, with no card. A new organization's owner chooses a plan during setup: once a repository is enabled, the banner on Home shows Choose your plan. Choose plan opens the plans under Settings › Billing as Choose your plan. Continue on Free keeps the Free plan, which needs no card, and returns to Home; Upgrade to Team goes through checkout and comes back to Home. Skip for now keeps the Free plan and completes the step, and the banner moves on to the next one; an owner can change the plan any time under Settings › Billing. Members do not see this step: the plan is an owner's.

Once a repository is enabled, Home asks a new organization's owner to choose a plan.

What to look for

- Choose plan opens the plans under Settings › Billing, where Continue on Free needs no card.
- Skip for now keeps the Free plan and completes the step; an owner can change the plan any time under Settings › Billing.

### Free plan limits

The plan card shows the repositories enabled for Merget and the organization's members against the plan's limits. On the Free plan:

Repositories: at most 3 can be enabled at once. Turning on a fourth is refused with The Free plan enables up to 3 repositories. Turn another repository off first, or an owner can upgrade to Team under Settings › Billing. Turning a repository off frees its place. An agent that enables a repository gets the same refusal, with the code `repository_limit`.

Members: up to 5, counted as the Team page counts its seats: everyone in its Members table, including anyone listed by user ID because their Merget account isn't active yet. Adding a sixth is refused with The Free plan includes up to 5 members, pending invitations included. Remove a member first, or upgrade to Team under Settings › Billing. See [Add a member](https://merget.ai/docs/team#add-a-member).

Analytics: the history reaches back 30 days, and [Analytics](https://merget.ai/docs/analytics) says Free includes 30 days of history. with Upgrade to Team for all time.

Team and Enterprise have no repository or member limit and keep the full analytics history.

## Spending cap

The spending cap is the most credits the organization's work may use in a calendar month (UTC), the bundle included. It is a Team plan control, and a Free plan one once extra credits are on: an owner sets it under Settings › Billing, beside the plan and this month's credits. Members see the cap but cannot change it.

On Team the default is twice the bundle: 20,000 credits. Past the bundle and up to the cap, overage is $0.005 per credit.

On Free with extra credits on, the default is 10,000 credits, and overage is $0.0075 per credit. See [Pay for extra credits on Free](#free-overage).

Enter a whole number of credits and click Save. The cap cannot be below the credits the plan includes.

On Team, leave the field blank for no cap. Work then never pauses for credits, and the month's overage is whatever the runs cost. Free's extra credits always have a cap: saving a blank field there sets the default of 10,000 credits again.

At 80 percent of the cap, or when the month's pace would pass it, the usage card warns and says what the month is on track for.

### What pauses and what continues

At the cap, Merget starts no new preparations or analyses, so the fix attempts they would make wait with them. Runs already in progress finish. Merging continues: a pull request Merget has already certified still lands, and the queue keeps planning so that order and readiness stay current; those runs are charged as usual. Nothing is lost; the waiting pull requests run again on their own once the hold lifts.

While work is paused:

The repository's queue page shows Merget is paused for credits, with what waits and what continues. An owner sees Open Billing; a member is asked to ask an owner.

Retrying a preparation or approving a commit is refused with the same explanation.

The Merget check on a pull request that did not run concludes Action required and says that Merget did not run on this pull request because the organization has used its monthly Merget credits. See [Checks and agents](#agents).

Work resumes when an owner raises the cap or changes the plan, on Team when an owner removes the cap, on Free when an owner turns on Pay for extra credits once payments are open, or on the first of the month when the allowance renews. Merget then runs again on its own; nothing needs re-queuing.

### The Free plan

On the Free plan, work pauses when the month's 5,000 credits are used, unless an owner turned extra credits on. The cap card says so, and the usage card says when the allowance renews and what resumes work sooner: upgrading to Team, or, once payments are open, turning on Pay for extra credits. Either resumes work at once.

## Payment

Merget takes payments through Stripe. Checkout and the billing portal are pages Stripe hosts: you enter your card there, and Merget never sees its number or keeps any of its details. Refunds and cancellation are in the [Billing terms](https://merget.ai/legal/billing-terms).

What Merget charges:

Team: $50 a month, charged on the first of each month (UTC). The first payment, when you upgrade, covers only the days left until the first of the next month; Team's 10,000 credits for the month you upgrade in are not reduced to match.

Credits past the bundle, on Team at $0.005 each or on Free with extra credits on at $0.0075 each: billed after the month they were used in.

Enterprise is invoiced as arranged with us.

On the first of each month (UTC), one invoice carries Team's $50 for the month ahead and the credits past the bundle of the month that just ended, and Stripe charges it to the card. On Free with extra credits on, the invoice carries the month's extra credits alone, and a month without any gets a $0 invoice. An invoice under Stripe's minimum charge of $0.50 is not charged that month; Stripe adds its amount to the next invoice.

Checkout asks for the card and the billing address, and lets you add a tax ID. Upgrade to Team pays the first payment there. Pay for extra credits charges nothing at checkout: the extra credits are first billed on the invoice of the first of the next month.

Manage billing opens the billing portal.

What to look for

- An owner has Manage billing once the organization has a billing account, which its first checkout sets up.
- In the portal, change the card or the billing details, see every invoice and receipt, or cancel at the end of the month.

Once the organization has a billing account, which its first checkout sets up, an owner has Manage billing on the plan card. It opens the billing portal, a page Stripe hosts, where an owner can:

change the card, the billing email, the billing address, or the name or the tax ID on the invoices;

see every invoice and receipt;

cancel Team, or the extra credits, at the end of the month, or renew them before then.

The portal comes back to Billing. The plan itself is upgraded in Merget, under Choose a plan. Members don't see Manage billing: payment is an owner's.

What Merget sends Stripe about the organization is its name, its identifiers and, through the month, its running count of credits past the bundle, updated every five minutes: never anything about your code or your pull requests. The billing email, the billing address and the tax ID are what an owner types on Stripe's pages.

### Pay for extra credits on Free

On the Free plan, work pauses when the month's 5,000 credits are used. An owner can let it continue instead, under Spending cap:

Choose Pay for extra credits. It opens a checkout page for the card and the billing address; nothing is charged there.

Back on Billing, extra credits are on. Work continues past the 5,000 included credits at $0.0075 per credit, up to the spending cap, which starts at 10,000 credits. Turning them on prices the whole month: credits already used past the 5,000 this month are billed at $0.0075 too, for example those of runs that were still running when work paused.

Change the cap if you need to. It cannot be below 5,000 credits; leave the field blank for the default cap of 10,000 credits.

On Free, Pay for extra credits lets work continue past the bundle.

What to look for

- Pay for extra credits opens a checkout page for the card and the billing address; nothing is charged there.
- Until extra credits are on, work pauses at the 5,000 included credits.

The month's extra credits are billed on the invoice of the first of the next month, as described under [Payment](#payment).

With extra credits on, work on Free continues past the bundle, up to a spending cap.

What to look for

- The cap starts at 10,000 credits. An owner can change it, but not below the 5,000 included credits; a blank field sets the default again.
- Extra credits are billed on the invoice of the first of the next month.
- An owner turns them off under Manage billing; they end at the end of the month.

To turn extra credits off, an owner cancels them under Manage billing. They stay on until the end of the month, and the cap card then says when they end, for example Extra credits end on Dec 1. Until then, an owner can renew them under Manage billing. Extra credits used until the end are billed after the month ends. To stop them sooner, lower the cap to 5,000 credits: work then pauses at the allowance, as without extra credits. The next time extra credits are turned on, the cap starts again at 10,000 credits.

### Downgrading

To move from Team to Free, an owner cancels Team under Manage billing. Team continues until the end of the month, then the organization moves to Free. The month's credits past the bundle are billed after it ends; Team's $50 is not charged again.

Until then the organization keeps everything Team includes, and the plan card says when Team ends, for example Team ends on Dec 1; the organization moves to Free then. Members read the same. In Choose a plan, Team's column reads Ends Dec 1 and Free's Starts Dec 1. To stay on Team, an owner renews it under Manage billing before then, and Team carries on.

On the first, the organization is on the Free plan:

The allowance is 5,000 credits a month, and the analytics history reaches back 30 days.

The spending cap is removed: work pauses at the allowance, unless an owner pays for extra credits.

Repositories already enabled stay enabled, and members stay. While 3 or more repositories are enabled, no other can be turned on, and while there are 5 or more members, no one can be added. See [Free plan limits](#free-limits).

A Team plan arranged with us, without a subscription, is not cancelled under Manage billing: in Choose a plan, Free's button reads Talk to us, and we move the organization for you.

### If a payment fails

A payment can fail, for example when the card has expired or is declined. Stripe then tries it again over the following days, and writes to the billing email about it. To pay with another card, an owner changes the card under Manage billing. A failed payment does not pause Merget's work: while Stripe retries, everything carries on as before, and Merget shows no notice about it.

If every retry fails, Stripe cancels the subscription:

Team ends at once, and the organization moves to the Free plan, as after a [downgrade](#downgrading): Free's allowance, limits and analytics history apply from then on. Work pauses only if the month's credits pass Free's 5,000, as on any Free month. To return to Team, an owner chooses Upgrade to Team and goes through checkout again.

Extra credits on Free turn off at once, and work pauses at the 5,000 included credits, as without them. To turn them on again, an owner chooses Pay for extra credits and goes through checkout again.

Either way, the month's credits past the bundle up to the cancellation are not billed: on Team, its overage that month; on Free, that month's extra credits. That changes if an owner goes through checkout again the same month: Upgrade to Team or Pay for extra credits prices the whole month again under the plan it starts, so the month's credits past that plan's bundle (Team's 10,000, or Free's 5,000 with extra credits), those used before the cancellation included, are billed on the invoice of the first of the next month. For example, a Team organization whose payment failed and that then turns on extra credits pays $0.0075 for each credit past 5,000 that month, including those it used within Team's 10,000.

## Statements and receipts

### Monthly statements

Statements on Settings › Billing lists the open month first, marked open, then each closed month. Each row shows the plan, the credits included, the credits used, the overage and the amount. A statement closes after the month ends; until then its figures can still move.

A month's amount is the price of its credits past the bundle. In live billing it is billed on the invoice of the first of the next month, on Team beside the $50 for the month ahead; the invoice's line can differ from the statement by a cent, since each rounds to the cent on its own. A month in which the organization's subscription was cancelled after a failed payment, with no new checkout that month, shows no amount and is not billed; see [If a payment fails](#payment-failed). The invoices and receipts themselves are under Manage billing; see [Payment](#payment).

Each row has two downloads:

CSV: one line per repository and kind of work, with the columns `period`, `repository`, `kind`, `credits` and `prs` (the pull requests the credits were for).

Events CSV: one line per charge, with the period, when it happened, the repository, the pull request, the run, the kind, the cause, the outcome, the credits, whether the row was billable, the reason when it was free, and `provisional`, which is always `false`: a charge is final once recorded.

The summary file is named `merget-<organization>-<month>.csv`; the charge-by-charge file adds `-events` before `.csv`.

### Receipts

Two receipts show the same charges from the side of the work:

A run's receipt is the Credits card on its page: every charge the run made, with its kind, its cause and its outcome, and the run's total. Many runs add nothing; the card then says no credits were recorded for the run yet. See [Runs › Credits](https://merget.ai/docs/runs#credits).

A pull request's receipt is Credits for this pull request at the end of the queue's details panel: every run Merget made for the pull request, in order, grouped by the month it was billed in, with a total per month and overall. Free rows are listed at 0 credits with the reason.

A charge is recorded once its run has ended, and is final from then on: it is never changed afterwards. A month's statement closes shortly after the month ends.

### Credits by repository

The Billing tab also lists this month's credits by repository, with the pull requests they were for. Members see only the repositories they can see; the line under the table says when repositories are left out. The organization's totals above it always cover every repository.

## Preview mode

While billing is in preview, the Billing tab, a run's Credits card and a pull request's receipt wear the pill Preview: not charged. Merget meters credits, so the figures are real and are what live billing would read, but nothing is charged, no statement is due and no cap pauses work. A pause that live billing would make reads as a preview, prefixed Preview:; a warning reads as it does in live billing, and the Merget check says nothing about credits.

Payments open when billing goes live. Until then there is no Manage billing and no Pay for extra credits, and Team's button in Choose a plan reads Payments open soon; to change the plan meanwhile, write to [support@merget.ai](mailto:support@merget.ai).

When billing goes live for your organization, the pill disappears and the figures carry on from the same ledger. An owner can set the spending cap during the preview so that live billing starts with the cap you want.

## Checks and agents

### The Merget check

When Merget does not run on a pull request because the organization's credits are used, the Merget check concludes Action required. Its title says Merget is paused because the organization's monthly credits are used, and its summary explains that an owner can raise the cap or change the plan (or, at the Free plan's allowance, upgrade) in Merget under Settings › Billing, that Merget then runs again on its own, and that the allowance renews on the first of the month (UTC). The check never shows a figure, and never mentions a payment or a card: check runs on public repositories are public. In preview mode the check says nothing. See [The Merget check](https://merget.ai/docs/pr-check).

### Agents and the MCP server

Coding agents read credits with two MCP tools; see [MCP server](https://merget.ai/docs/mcp#tools):

`merget_org_get` (permission `merget:org.read`) reports the organization's plan, this month's credits used, included and cap, the status (ok, warning or capped) and, when work is paused for credits, why. It never shows an amount of money.

`merget_pr_receipt` (permission `merget:findings.read`) returns a pull request's receipt: every run Merget made for it, in order, with its kind, its cause, its outcome and its credits, plus the totals and the months they fall in. Runs Merget failed or abandoned are listed free.

The same receipt is served over the HTTP API at `GET /v1/repos/{owner}/{name}/pulls/{number}/receipt`; see [HTTP API](https://merget.ai/docs/api).

An agent cannot change the plan or the cap, or open Manage billing: they are an owner's, in the dashboard. While work is paused for credits, an agent's request to retry a preparation or approve a commit is refused with the code `credits_exhausted`, and `merget_status` names the next step as a human one. Both say what an owner can do under Settings › Billing, by where work stopped: upgrade the plan at the Free plan's allowance, or raise the spending cap or change the plan at the cap. Once payments are open, the refusal at the Free plan's allowance also names turning on Pay for extra credits. Agents are told to stop there rather than retry. See [What stays with you](https://merget.ai/docs/agents#human-only).
