Plans, billing and usage limits
Find out which plan terms apply to your workspace, buy or change a plan, read your allowances and usage through the API, and handle the 402, 403 and 429 errors a plan can return.
A workspace’s plan decides how many governed actions it can run each month, how many seats and environments it can hold, and whether it has the Team features: single sign-on, SCIM, audit streaming, your own secret stores and roles per environment. Approvals, impact limits, receipts, the kill switch and environment isolation are on every plan.
Every limit on this page is a hard stop. Nothing is billed by use, nothing is charged automatically when you pass an allowance, and a plan never changes without an admin choosing it. So the cost of running an agent through Anlyon is the plan you chose, and a runaway agent hits a refusal rather than a bill. Prices are on anlyon.com/pricing.
Check which terms apply to your workspace
Anlyon runs in one of two modes, and the API tells you which one applies. Read it instead of assuming:
access.mode |
What applies |
|---|---|
early_beta |
Early Beta Access: free within hard limits, with no card, no subscription and no charges. Buying a plan answers 403 PAID_PLANS_UNAVAILABLE. |
standard |
Paid plans. A workspace with no plan can use the console, and every action answers 402 PAYMENT_REQUIRED. |
When paid plans go on sale, a workspace created before that moment keeps its Early Beta allowances until access.betaAllowancesEndAt, and its billing admins are emailed when the window opens and again in its last three days. After that date it answers 402 PAYMENT_REQUIRED until an admin chooses a plan. A workspace created after paid plans go on sale starts in standard mode.
Read your own workspace’s terms with an API key. The key needs billing:read, which is in the default scope set.
import { Client } from '@anlyonhq/sdk';
const anlyon = new Client({ apiKey: process.env.ANLYON_API_KEY! });
const { data: plan } = await anlyon.billing.getCurrentPlan();
console.log(plan?.plan); // "free", "starter", "production", "growth" or "enterprise"
console.log(plan?.access?.mode); // "early_beta" or "standard"
console.log(plan?.access?.paidPlansAvailable); // whether a plan can be bought right now
console.log(plan?.access?.usageResetsAt); // the next UTC month boundarycurl https://api.anlyon.com/api/v2/billing/plan \
-H "Authorization: Bearer $ANLYON_API_KEY"from anlyon import Client
client = Client() # reads ANLYON_API_KEY
plan = client.billing.current_plan().data
print(plan["plan"], plan["status"], plan["access"]["mode"])The response, trimmed to the billing fields:
{
"success": true,
"data": {
"plan": "starter",
"displayName": "Starter",
"status": "trialing",
"interval": "month",
"trialEndsAt": "2026-11-10T09:00:00.000Z",
"currentPeriodEnd": "2026-11-10T09:00:00.000Z",
"cancelAtPeriodEnd": false,
"pendingPlan": null,
"graceEndsAt": null,
"trialAvailable": false,
"provider": "polar",
"access": {
"mode": "standard",
"betaAllowancesApply": false,
"paidPlansAvailable": true,
"betaAllowancesEndAt": null,
"usageResetsAt": "2026-11-01T00:00:00.000Z",
"overageBilling": false,
"automaticCharges": false
}
}
}
statusisnonefor a workspace that never subscribed, thentrialing,active,past_due,canceledorpaused.graceEndsAtis set while a renewal payment has failed: the date the plan lapses.pendingPlanis a downgrade waiting for the end of the period.limitsandfeatures(left out above) are the limits this workspace is held to right now.
Without a key, GET /api/v2/public/pricing-policy returns the platform’s mode (mode, paidPlansAvailable) and the Early Beta allowances. The pricing page reads the same endpoint.
Compare the plans
The API names plans by id. GET /api/v2/billing/plan returns the id as plan and the name as displayName.
| Starter | Pro | Team | Enterprise | |
|---|---|---|---|---|
| Plan id | starter |
production |
growth |
enterprise |
| Governed actions per month | 50,000 | 500,000 | 2,500,000 | Custom |
| Seats, including pending invitations | 2 | 5 | 20 | Custom |
| Environments, of any kind | 1 | 2 | 3 | Custom |
| Storage | 1 GiB | 5 GiB | 25 GiB | Custom |
| Egress per month | 10 GiB | 50 GiB | 250 GiB | Custom |
| Receipt and trace history | 30 days | 90 days | 365 days | Custom |
| Audit record retention | 6 months | 6 months | 12 months | Custom |
| Action packs | $10 per 100,000 | $10 per 100,000 | $10 per 100,000 | Custom |
| API requests per minute, per workspace | 1,000 | 1,000 | 1,000 | Custom |
| API requests per hour, per workspace | 30,000 | 30,000 | 45,000 | Custom |
| Approval policies per environment | 25 | 100 | 250 | Custom |
| Environment protection and controlled promotion | Yes | Yes | Yes | Yes |
| Hosted function runs per month | 2,000 | 20,000 | 100,000 | Custom |
| Hosted function runs at once | 2 | 5 | 20 | Custom |
| Hosted function run starts per minute | 30 | 60 | 300 | Custom |
| Team features | No | No | Yes | Yes |
| Support | Standard | Priority | Priority | Dedicated |
Approvals and Slack approvals, impact limits, key budgets, the halt switch, receipts and their export, your users with their own limits and approvals, connected accounts, integrations and MCP servers are on every plan. Anlyon Vigil has its own limits.
Enterprise limits are set in its contract, so the API returns them as null and the pricing page and console show Custom. API requests are counted per workspace in one-minute windows and in UTC clock hours; past either, the API answers 429 RATE_LIMIT_EXCEEDED with Retry-After, and the hourly refusal names the limit and when it resets. See rate limits. Notification emails to your members are not capped on any paid plan. Audit records are kept for the plan’s retention, and exports include the older ones.
Each plan is sold monthly or yearly. Prices exclude tax, and they are on anlyon.com/pricing. GET /api/v2/billing/plans returns the same catalogue as data, with trialDays and teamFeatures for each plan and the action pack size. Its planCatalogue, and plans in GET /api/v2/public/pricing-policy, list every row of this table for each plan.
Hosted function limits
These are the hosted function limits on each plan.
A run counts once against the plan’s runs per month, whatever it does. The action calls it makes count as governed actions, as any action call does, and nothing is counted twice. A run the function runner never started is not counted.
- Runs at once is across the workspace. Past it, a new run answers
429 FUNCTION_RUN_CONCURRENCY_LIMITuntil one ends. - Run starts per minute counts the runs started in any 60 seconds. Past it, a run answers
429 FUNCTION_RUN_RATE_LIMITED. - Runs per month resets at 00:00 UTC on the first. Past it, a run answers
429 QUOTA_EXCEEDED.
Each run also has its own budgets: at most 30 seconds of CPU time and 300 seconds of wall time on every plan.
Governed actions are the one allowance that moves with use. Storage, egress, seats and environments are fixed limits. A workspace with no subscription reports plan: "free" and displayName: "No plan". The earlier paygo id is held to Pro’s limits and cannot be bought.
Orders are processed by Polar, Anlyon’s online reseller and Merchant of Record. Polar adds VAT, GST or sales tax at checkout where it applies, takes the payment and issues the invoices. Anlyon never sees your card number.
Which plans have the Team features
Single sign-on, SCIM directory sync, audit streaming, secret stores (your own vault) and roles per environment are on the Team and Enterprise plans. A Team trial counts as Team. While paid plans are not on sale, every workspace has them.
On Starter, on Pro or with no plan, creating or changing one of them answers 403 PLAN_FEATURE_REQUIRED. Reading and deleting always work, and a downgrade breaks nothing already set up: an existing SSO connection, SCIM token, audit sink, secret store or environment role keeps working. The console shows the existing configuration with an upgrade card.
Who can change billing
| What you do | Who can do it |
|---|---|
| Read the plan, usage, quota and the plan catalogue | Any member in the console, or an API key with billing:read |
| Buy, change, cancel or resume a plan, open the billing portal, buy action packs | An admin, signed in to the console |
The buying, changing and cancelling routes take a console session only. An API key or an OAuth token gets 403 session_required, so an agent can never spend money on a plan. These routes are console routes and are not in the API reference.
Start a plan with the 14-day trial
Every paid plan starts with a 14-day trial.
- A card is required at checkout. Nothing is charged until the trial ends.
- Cancel before it ends and you are not charged.
- There is one trial per workspace and one per person, so a workspace you create later starts without one.
GET /api/v2/billing/planreportstrialAvailablefor the person asking. - During the trial,
statusistrialingandtrialEndsAtsays when the card is charged.
To buy:
- Open Settings → Plan & billing, pick monthly or yearly, and choose Start 14-day trial (or Choose plan once the trial has been used).
- The console sends you to Polar’s hosted checkout. There is no card form in the console.
- Polar sends you back to
/settings/billing?checkout=success. The plan starts when Polar confirms the payment to Anlyon, not when the browser returns. The console checks for up to a minute, then shows Payment received, activating and keeps checking until the plan is live.
The same call from a signed-in console session:
curl -X POST https://api.anlyon.com/api/v2/billing/checkout \
-H "Cookie: better-auth.session_token=$SESSION_TOKEN" \
-H "X-Workspace-Id: $WORKSPACE_ID" \
-H "Content-Type: application/json" \
-d '{ "plan": "starter", "interval": "month" }'
{ "success": true, "data": { "checkoutUrl": "https://buy.polar.sh/polar_c_7f3a9b2e" } }
plan is starter, production or growth, and interval is month or year. A workspace that already has a subscription gets 409 SUBSCRIPTION_EXISTS: change the plan instead. An Enterprise workspace gets 409 ENTERPRISE_CONTRACT: Enterprise is by contract, so email support@anlyon.com.
Change your plan
Choose another plan in Settings → Plan & billing, or call POST /api/v2/billing/change-plan with the same body as checkout.
- An upgrade (a higher plan, or monthly to yearly on the same plan) takes effect at once. Polar charges the prorated difference that day, and the plan changes only if that payment succeeds. Changing plan during a trial ends the trial, and the card is charged that day.
- A downgrade keeps the plan you paid for until the end of the billing period, and the renewal is billed at the lower plan. Until then
pendingPlannames the new plan and the console says when it changes. The workspace must already fit the lower plan: its seats (pending invitations included), action definitions and environments, with no protected environment on a plan without protection. Otherwise the change answers409 PLAN_RESOURCES_EXCEEDED, and the message names what to reduce. - To keep your plan after scheduling a downgrade, choose it again (Keep on its card). That cancels the change at no charge. An upgrade while a downgrade is scheduled answers
409 DOWNGRADE_PENDINGuntil you do.
The answer is { "plan", "pendingPlan", "effectiveAt" }: effectiveAt is now for an upgrade and the period end for a downgrade.
Cancel or resume a plan
Cancel plan in Settings → Plan & billing, or POST /api/v2/billing/cancel, cancels at the end of the billing period and answers { "cancelAtPeriodEnd": true, "currentPeriodEnd" }. The plan keeps working until then, and nothing more is charged. After that date the workspace has no plan, and actions answer 402 PAYMENT_REQUIRED until an admin chooses one again.
Resume, or POST /api/v2/billing/resume, undoes a scheduled cancellation before that date. It also resumes a paused subscription, which Polar charges for the new period at once.
Cancelling, resuming, downgrading and the billing portal always work, in either mode.
Download invoices and change the card
Polar holds the invoices, as the seller. Manage billing in Settings → Plan & billing opens Polar’s customer portal, where you download invoices, change the card and edit tax details. POST /api/v2/billing/portal returns { "url" }, or 409 NO_BILLING_CUSTOMER before the first purchase. GET /api/v2/billing/invoices lists only invoices from before Polar, and its portalAvailable says whether the portal has any.
If a renewal payment fails, status becomes past_due and the plan stays active for 7 days (graceEndsAt). Update the card in Manage billing before then. After the 7 days the workspace has no plan.
Ask for a refund
- 14-day money back: ask within 14 days of your first payment for a plan and it is refunded in full, once per workspace.
- Yearly plans: cancel within 30 days of a yearly charge and the months you have not started are refunded.
- Action packs: a pack with none of its actions used can be refunded within 14 days of buying it.
- Billing mistakes, such as a double charge or a charge after you cancelled, are refunded in full.
Outside those cases, partial periods are not refunded, except where the law requires it. Email support@anlyon.com from the address on your account. Polar issues the refund to the original payment method. The refund policy has the full terms.
Keep going past the monthly allowance
A governed action counts against the allowance once Anlyon dispatches it and the destination answers, including a non-2xx answer. These never count: a request refused by the kill switch, a validation failure, a denied or expired approval, or anything else that was never sent. An outcome that is not yet known holds its place until it is settled, and a replay of the same invocation does not count again.
On a paid plan the order is:
- The plan’s included actions for the month.
- Your action packs, the one expiring soonest first.
- A 10% buffer past the included actions.
- Refusal with
429 QUOTA_EXCEEDEDuntil the month resets at 00:00 UTC on the first.
Nothing is billed automatically at any step. You get a notification at 80% and at 100% of the month’s governed actions, whatever other alert thresholds you set.
An action pack adds 100,000 governed actions, is paid once, is valid for 12 months from purchase, and carries over to later months until it expires. Choose Buy action pack in Settings → Plan & billing, or call POST /api/v2/billing/action-packs/checkout with { "quantity": 1 } (1 to 10 packs) from a console session. It returns a checkoutUrl, as checkout does. A workspace without a paid plan gets 409 PAID_PLAN_REQUIRED. The pack price is on anlyon.com/pricing.
Read where you stand
import { Client } from '@anlyonhq/sdk';
const anlyon = new Client({ apiKey: process.env.ANLYON_API_KEY! });
const { data: quota } = await anlyon.billing.getQuota();
console.log(quota?.actionInvokes.usedUnits, 'of', quota?.actionInvokes.includedUnits);curl https://api.anlyon.com/api/v2/billing/quota \
-H "Authorization: Bearer $ANLYON_API_KEY"from anlyon import Client
client = Client()
allowance = client.billing.quota().data["actionAllowance"]
print(allowance["used"], "of", allowance["graceCap"])GET /api/v2/billing/quota and GET /api/v2/billing/usage/current both carry actionAllowance:
{
"actionAllowance": {
"included": 50000,
"credits": 100000,
"graceCap": 155000,
"used": 41250,
"paymentRequired": false
}
}
| Field | Meaning |
|---|---|
included |
Governed actions the plan includes this month. null when nothing caps actions, as on Enterprise. |
credits |
Actions your action packs can give this month. |
graceCap |
The count at which actions are refused: the included actions plus the 10% buffer plus credits. null when uncapped. |
used |
Actions counted this month, including ones reserved and not yet settled. |
paymentRequired |
true when the workspace has no plan, so every action answers 402. |
Errors and what to do
Match on error.code, never on the message. The hosted API does not return error.details, so the message is written to say what to do.
| Status and code | When | What to do |
|---|---|---|
402 PAYMENT_REQUIRED |
The workspace has no plan. Every way of running an action answers it: REST, both SDKs and MCP. | An admin chooses a plan in Settings → Plan & billing. |
429 QUOTA_EXCEEDED |
A hard limit is reached: this month’s governed actions or hosted function runs, storage, seats (an invitation counts) or another resource cap. | Wait for the monthly reset, buy an action pack, change plan, or remove unused items. The message names the limit. |
429 FUNCTION_RUN_CONCURRENCY_LIMIT |
The plan’s hosted function runs at once are all going. Nothing ran. | Retry when a run ends, or change plan. |
429 FUNCTION_RUN_RATE_LIMITED |
The plan’s hosted function run starts for this minute are used. Nothing ran. | Retry in a minute. |
403 PLAN_FEATURE_REQUIRED |
A Team feature was created or changed on a plan without it. Nothing was changed. | Move to Team, or leave the existing setup as it is. |
403 PAID_PLANS_UNAVAILABLE |
A purchase while paid plans are not on sale (mode is early_beta). Refused before Polar is contacted, so nothing is charged. |
Nothing: the workspace keeps its Early Beta allowances. |
403 session_required |
A billing change sent with an API key or an OAuth token. | Use the console. |
403 email_verification_required |
An action was invoked on a workspace with no paid plan, and no admin with emergency access has a verified email. | Verify that admin’s email address. |
409 SUBSCRIPTION_EXISTS, NO_SUBSCRIPTION |
Checkout on a workspace that has a subscription, or a change, cancel or resume on one that does not. | Use change plan, or checkout. |
409 DOWNGRADE_PENDING, CANCELLATION_SCHEDULED |
An upgrade while a downgrade or a cancellation is scheduled. | Choose your current plan again, or resume, then change. |
409 PLAN_RESOURCES_EXCEEDED |
A downgrade the workspace does not fit. | Remove what the message names, then try again. |
409 PAYMENT_FAILED |
Polar could not take the payment for an upgrade. The plan did not change. | Update the card in Manage billing and try again. |
409 SUBSCRIPTION_LOCKED |
Polar is still applying an earlier change. | Try again in a minute. |
409 ENTERPRISE_CONTRACT, NO_BILLING_CUSTOMER, PAID_PLAN_REQUIRED |
Enterprise checkout, the portal before any purchase, or an action pack without a paid plan. | Email support, buy a plan first, or choose a plan. |
503 BILLING_NOT_CONFIGURED, PRICING_NOT_CONFIGURED, BILLING_PROVIDER_UNAVAILABLE |
Billing cannot be reached right now. Nothing was charged. | Try again later. |
503 EXPENSIVE_WORK_PAUSED |
New work is paused platform-wide to protect the service. Signing in, viewing and deleting your data keep working. | Try again shortly. |
What a 402 looks like:
{
"success": false,
"error": {
"code": "PAYMENT_REQUIRED",
"message": "This workspace has no plan, so actions are not run. Choose a plan at https://console.anlyon.com/settings/billing to run actions."
},
"requestId": "req_0123456789abcdef0123456789abcdef"
}
Catch it in code:
import { Client, AnlyonError } from '@anlyonhq/sdk';
const anlyon = new Client({ apiKey: process.env.ANLYON_API_KEY! });
try {
await anlyon.actions.invoke('update-status-file', { path: 'notes/status.txt', content: 'status: green\n', message: 'Update status' });
} catch (error) {
if (error instanceof AnlyonError && error.code === 'PAYMENT_REQUIRED') {
// Tell an admin to choose a plan. Retrying will not help.
} else if (error instanceof AnlyonError && error.code === 'QUOTA_EXCEEDED') {
// The month's allowance is used up. Stop, or wait for the reset.
} else {
throw error;
}
}from anlyon import AnlyonError, Client, QuotaExceededError
client = Client()
try:
client.actions.invoke(
"update-status-file",
{"path": "notes/status.txt", "content": "status: green\n", "message": "Update status"},
)
except QuotaExceededError:
pass # the month's allowance is used up: stop, or wait for the reset
except AnlyonError as error:
if error.code != "PAYMENT_REQUIRED":
raise
# tell an admin to choose a plan; retrying will not helpSee the error-handling guide for retries in general.
Usage and limits through the API
These reads take a console session or an API key with billing:read:
GET /api/v2/billing/plan: the plan, its status andaccess, and the limits this workspace is held to.GET /api/v2/billing/plans:catalogue(each purchasable plan withtrialDays,allowancesandteamFeatures),planCatalogue(every limit and feature of each plan, Enterprise included),actionPackandintervals.GET /api/v2/billing/quota: the allowances, withactionAllowanceandfunctionRuns.GET /api/v2/billing/usage/current: this month’s usage, withactionAllowanceandfunctionRuns(runs this month, runs going now, and the plan’s limits).GET /api/v2/public/pricing-policy: no authentication. The platform’s mode, the Early Beta allowances, andplans, every limit and feature of each plan.
Per-key budgets and impact limits are separate controls. They limit what one key may do and what an action may change, and they are not invoices.
Anlyon Vigil limits
Anlyon Vigil reviews and approvals are hard caps on every plan, with no overage. At the limit, approvals still reach people, without a suggestion.
| No plan | Starter | Pro | Team | Enterprise | |
|---|---|---|---|---|---|
| Anlyon Vigil reviews per month | 250 | 5,000 | 25,000 | 150,000 | Custom |
| Anlyon Vigil approvals per day | 25 | 200 | 1,000 | 5,000 | Custom |
Early Beta Access
While mode is early_beta, every workspace has these allowances, free within hard limits, with no credit card, no subscription, no automatic upgrade and no overage charges. Nothing converts, charges or resets a workspace when the terms change.
| Resource | Early Beta Access |
|---|---|
| Action executions | 100,000 / month |
| Action definitions | 1000 |
| Secrets, connected accounts included | 100 |
| Seats, including pending invitations | 3 |
| Environments | 3, of any kind |
| Combined storage | 1 GiB |
| Egress | 50 GiB / month |
| Trace retention | 14 days |
| Email alerts | 500 / month |
| Anlyon Vigil reviews (opt-in) | 1,000 / month |
| Anlyon Vigil approvals (opt-in) | 100 / day |
The kill switch, isolation and approvals are included. So are environment protection, controlled promotion between environments, the email notification channel and the Team features (single sign-on, SCIM, roles per environment, audit streaming and secret stores). A new workspace starts with one protected environment of kind production, and you can create staging and development environments up to the total. Requests are limited to 300 per minute and 10,000 per hour per workspace, counted in one-minute windows and UTC clock hours; past either the API answers 429 RATE_LIMIT_EXCEEDED. Audit records are kept for 6 months.
Which limits reset
- Reset monthly at 00:00 UTC on the first of each month: action executions, egress and email alerts.
- Do not reset: combined storage, seats (including pending invitations), environments, secrets and action definitions. These are limits on what you hold. They free up when you remove things.
When you reach a limit
Requests stop at a hard limit with 429 QUOTA_EXCEEDED. Nothing is charged, and nothing is upgraded automatically.
| Limit | What to do |
|---|---|
| A monthly allowance (executions, egress) | Wait for the reset. The date is access.usageResetsAt, and Settings → Plan & billing shows it. |
| Storage or a resource cap (seats, environments, secrets, action definitions) | Remove unused items to free room. |
| Anlyon Vigil reviews or approvals | Nothing: approvals still reach people, without a suggestion. See Anlyon Vigil. |
| Email alerts | Wait for the monthly reset. Alerts keep reaching the console inbox and the other channels you connected. |
Inspecting and deleting your own data always works.
Related
- Workspaces and team management: seats, roles and who can change billing.
- Notifications: the usage alerts and where they are sent.
- Single sign-on and SCIM: Team features you can set up.
- Impact limits: caps on what an action changes, separate from your plan.
Allowances for earlier namespaces
Workspaces that still use the API namespaces that predate governed actions keep these allowances during Early Beta Access. They reset or free up as described above, and data you already stored stays readable.
| Resource | Early Beta Access |
|---|---|
| Delivery messages | 25,000 / month |

