> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Plans and codes

> Choosing a plan, included usage, usage alerts and discount codes, all from the Billing page.

All of this is on the dashboard's **Billing** page, which owners and admins can see. Prices are on [Pricing](/docs/pricing.md).

## Choosing a plan

1. Open **Billing** and choose **Starter**, **Pro** or **Scale**.
2. Pay on the secure Stripe checkout page.
3. You come back to Billing. The new plan applies as soon as Stripe confirms the payment, usually within a few seconds.

**Manage billing** opens Stripe's billing portal: change your card, download invoices, switch plans, or cancel. A cancelled plan stays active until the end of the month you paid for.

### Included usage

Every plan includes vCPU-hours (each with 2 GiB of memory per vCPU) and egress every calendar month (UTC). Billing shows this month's use of each against what is included. Anything unused does not carry over to the next month. The amounts are on [Pricing](/docs/pricing.md).

When it runs out:

| Plan | What happens |
| - | - |
| Free | New sandboxes and resumes are refused and running sandboxes are paused until the next month, or until you upgrade |
| Starter, Pro, Scale | Usage continues and what is over is billed at the [rates](/docs/pricing.md) on your next invoice |

Credit you already have keeps paying: it covers usage over the included amount first, and only the rest is billed (paid plans) or stops the team (Free).

### Usage alerts

Owners and admins get an email at **80%** and **100%** of the month's included vCPU-hours, and again of its included egress, once each per calendar month. On Free it says the team will be stopped at 100%; on a paid plan it says usage over the included amount is billed at the [rates](/docs/pricing.md).

## Codes

Discount codes are entered under **Have a code?** on Billing. A discount code takes a percentage or an amount off a plan's monthly price, for one month, several months or every month.

Type the code under **Have a code?**, then choose a plan. The discount is applied on the Stripe checkout page, where you can see it before paying. Some discounts are valid only for some plans; Billing tells you if yours is not.

A discount comes off the plan's monthly price only. Usage beyond the included amount is billed in full, after any credit you already have.

### Credit codes and invites have ended

Credit codes, sign-up credit, invites (which sent a friend a credit code) and referral rewards are no longer given, because every plan now includes usage every month. Credit you already have is kept and keeps paying: it covers usage over your plan's included amount first. A credit code typed now is refused with "Credit codes have ended".

### If a code is refused

| Message | Meaning |
| - | - |
| That code does not exist. | Check the spelling. A code sent to someone else's email also reads this way. |
| That code has expired. | It is past its use-by date. |
| You have already used that code. | Each code works once per organization. |
| That code has been used the maximum number of times. | A shared code has run out. |
| That code is not valid for this plan. | The discount covers other plans. |
| Credit codes have ended. | Credit codes are no longer given; see above. |

## See also

* [Pricing](/docs/pricing.md): plans and usage rates
* [Usage and billing](/docs/usage-and-billing.md): where to see what you used
* [Regions and limits](/docs/concepts/limits.md): what each plan allows


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.