Skip to main content
Billing is prepaid. You top up one workspace wallet in the dashboard, and everything draws from it: instance compute and managed usage.

How the balance works

  • $5 free to start. Add a card from the billing page (nothing is charged) and your workspace gets a one-time $5 credit, enough to run your first instance around the clock for about a month, or a mostly-idle auto-sleep instance for many months. The credit is granted once per account and once per card, and only to a workspace that has not topped up yet; a workspace created by POST /v1/signup never receives it. Until your first real top-up, the workspace runs up to 32 GB of memory at once (eight of the smallest instance, or one of the largest), of any template or type, VMs included. Your first top-up raises that to 40 GB; once your top-ups total $50 the limit rises to 200 GB, at $250 to 800 GB, and at $1,000 to 3,200 GB. See Memory limit.
  • Top up in the dashboard, or from the API. Add funds at dashboard/cloud/billing, or call POST /v1/billing/top-up. Top-ups are $5 to $10,000 each, paid through Stripe.
  • Automatic top-up is on by default. A top-up saves its card and turns on a refill rule (buy the same amount again once the balance drops below half of it) so the wallet refills itself; switch it off as you pay, or adjust it any time. See Automatic top-up.
  • Instances draw it down. Compute is metered per minute: time an instance spends running bills its full rate, time spent stopped or sleeping bills its disk alone. See Per-minute metering.
  • Managed usage draws it down. Managed LLM, Brave search, and Composio calls are metered at cost against the same wallet, gated by each instance’s budget.
  • Delete to stop billing. Deleting an instance settles its final minutes and ends billing. Nothing is ever prepaid, so there is nothing to refund.
The wallet is readable and fundable from the API: GET /v1/billing for the balance and the tier, POST /v1/billing/top-up to pay. The ledger and the spend breakdown stay in the dashboard.

Memory limit

How much a workspace can run at once depends only on how much it has topped up. The limit is the total memory of the instances awake at the same time, whatever their size or type: Sizes mix freely: a workspace at 200 GB can run thirty 4 GB instances and five 16 GB ones at once. The limit rises on its own: your first top-up lifts the workspace to 40 GB, $50 in total top-ups makes it 200 GB, $250 makes it 800 GB, and $1,000 makes it 3,200 GB, with nothing to request or configure. Top-ups add up over the life of the workspace, and the limit never goes back down. Need more than 3,200 GB at once? Email vishnu@agent37.com or use the chat bubble in the dashboard. The limit counts only awake instances. Sleeping and stopped ones never count, so you can keep as many as you like, each billing its disk alone; with one instance per end user and auto-sleep, you can serve any number of users as long as the ones awake at once fit in your limit. A create, a start, or a resize that would take the running memory past the limit returns 409 instance_limit_reached. A request to a sleeping instance’s URL is still served past the limit, and the instance goes back to sleep right after, with instance_limit_reached in its status_reason. The limit is on what runs at once and asks nothing of your balance: each instance simply meters its own compute from the wallet, with no extra reserve for running several.

Performance accounts

For workspaces that need fast starts every time. On a Performance account, new instances start faster and more consistently, and sleeping instances wake faster. It covers every instance in the workspace, on any tier, and is a paid add-on priced per account. To ask for one, click Request next to Performance account on the Billing page to chat with us, or email vishnu@agent37.com. Performance accounts and Performance instances are separate: the account setting speeds up starts and wakes across the workspace, and a Performance instance runs on cores held for that one instance.

Compute pricing

Compute is priced from the instance’s resources: Applied to the shapes at their default disk: Every template offers the same four shapes, and 2 vCPU / 4 GB is the smallest. A VM or Performance instance can also be 8 vCPU / 64 GB RAM. Disk is any whole number of GB within the shape’s range and defaults to 4, 6, 12, or 24 GB by shape; every GB bills at $0.09 per month. See Instances for how to pick a shape with resources on create.

Default and Performance instances

Every instance is a default instance unless you ask for something else, and the prices above are what one costs awake around the clock. Pick the type by how hard the instance works its CPU: Start with the default. For most harnesses it is all you need: agents spend most of the day idle. Default instances share hardware, so sustained heavy CPU use may be limited when the hardware is busy. VM and Performance instances are not. A VM instance is a whole virtual machine with its own kernel, for heavier computer use, Docker, Kubernetes, databases, and Android emulators. Pass "type": "vm" on create; compute is 2.5x the default rate, and disk is unchanged. A Performance instance is a VM whose cores are held for it alone, so it gets the same CPU in a busy hour as in a quiet one. Reach for it for builds and other work that keeps its cores busy for long stretches. Pass "type": "performance" on create; compute is 4x the default rate, and disk is unchanged. VM and Performance instances boot a kernel, so a create takes longer than a default instance’s. Auto-sleep does not change these rates. An auto-sleep instance bills the same rate as an always-on one for the time it is awake, and disk alone for the time it is asleep, so anything idle for most of the day costs a fraction of the always-on price. See Per-minute metering.

Per-minute metering

The monthly price is the rate; the wallet is metered per minute (the monthly price divided by 730 hours, divided by 60). What a minute costs depends on what the instance holds: Create checks a day, debits nothing. POST /v1/instances requires the wallet to hold one day of the instance’s running rate; below that, the create returns 402 insufficient_balance and nothing is provisioned. Nothing is debited at create: the meter starts when the instance first reaches running, so a failed create costs nothing and there is nothing to refund.
Each instance meters on its own. Every instance draws its own metered debits from the wallet; there is no extra balance reserve for running several at once. How much can run at once is set by your memory limit. Sleep and stop cut the rate; delete ends it. An instance bills for as long as it exists, but only for what it holds. Stopping (or auto-sleep) releases CPU and RAM and keeps the disk, so parked time bills disk alone. An auto-sleep instance that spends most of its life asleep costs mostly its disk, about $0.36 per month at the default 4 GB. Deleting an instance settles the final window and billing stops. The meter settles behind the scenes. Whole minutes are billed at every lifecycle transition and at least hourly; you never see a per-minute charge on an API call. Each debit lands in the ledger as a metered compute entry.

Automatic top-up

Automatic top-up keeps instances from being suspended when the balance runs low: when it falls below your threshold, your card is charged for a fixed amount. The rule is checked whenever managed usage leaves the balance below the threshold, on an hourly sweep, and once more right before any instance would be suspended, so instances stay up as long as the card charges.
  • It is on by default when you top up: the Add funds dialog sets the purchase amount to what you are adding and the threshold to half of that, at least $3 (a $25 top-up buys $25 again below $12.50). Switch it off in the same dialog, or adjust both amounts or turn it off later at dashboard/cloud/billing. It charges your default card, or the most recently saved one when none is set.
  • The threshold can be $3 to $10,000. The purchase amount follows the usual $5 to $10,000 top-up range.
  • If a charge fails, automatic top-up turns itself off and emails the workspace owner. Add funds manually, which saves a new card, then re-enable it.

Past due and suspension

The meter is post-paid within the hour, so a busy instance can carry the balance below zero before the hourly settle catches it. When a settle leaves the wallet negative, and automatic top-up is off or could not charge, the workspace’s instances are suspended: running ones are force-slept, every one is flagged past_due: true, and the workspace owner is emailed. A request to a suspended instance’s URL returns 402 with {"error": "instance_suspended"} instead of waking it, and suspended time is never billed.
boolean
true while the instance is suspended for non-payment. Cleared by topping up.
Topping up reactivates immediately: the flag clears, the meter re-anchors at the top-up (the suspended gap is never back-billed), and the next request to each instance’s URL wakes it. A suspension discards no data, but the force-sleep takes no checkpoint, so the first wake after one boots fresh, like start after stop. An instance left suspended for 30 days is permanently deleted.
Branch on the error code, not the message. See Errors for the full list and the response shape.

Managed usage

Managed LLM, Brave search, and Composio calls debit the same wallet at cost, but only within each instance’s budget: a monthly cap that resets each UTC month plus optional one-time top-up headroom. The default cap is $0, so an instance spends nothing on managed services until you raise its cap or top it up. When a managed call is refused, the 402 reason tells you which pot ran dry: insufficient_balance means the wallet is empty, instance_budget_exhausted means the wallet has funds but the instance hit its cap. See Budgets for the endpoints, rates, and both 402 reasons.

Wallet endpoints

Two endpoints cover the whole money rail from a program: read what is left, and pay. Both take the workspace key.

Read the wallet

GET /v1/billing answers what is left. It is deliberately separate from GET /v1/usage, which reports what was spent and never what remains.
number
What the wallet holds, in dollars. Negative while a workspace is past due.
integer
0 before the first top-up, then 1, 2, 3, or 4 as total top-ups pass the thresholds in Memory limit.
integer
The memory, in GB, the workspace may have running at once: 40, 200, 800, or 3200 by tier, unless a limit was set for the workspace. 32 on the free tier.
integer
The same limit as a number of the smallest instance (2 vCPU / 4 GB): memory_limit_gb divided by 4.
object
The refill rule, or null until a top-up arms one: enabled, threshold_usd, and amount_usd. See Automatic top-up.
boolean
true when non-payment has suspended the workspace’s instances. A top-up clears it and they become startable again. See Past due and suspension.

Fund the wallet from the API

POST /v1/billing/top-up answers with a Stripe-hosted payment page for amount_usd.
number
required
How much to add, $5 to $10,000.
string
A hosted Stripe Checkout link for amount_usd.
number
The amount the link charges.
boolean
false: nothing has moved when the call returns, and the money lands when the payment confirms.
Open it, pay once, and the card is saved: automatic top-up then refills the wallet off-session from then on, so the browser is needed exactly once per account and never again. The balance changes when Stripe confirms the payment, so poll GET /v1/billing for it.

Ledger and spend visibility

Every wallet movement is recorded: top-ups, the signup credit, and metered compute debits land in an append-only ledger, while managed usage is metered per call into its own usage ledger. Review the ledger, your balance, and the spend breakdown at dashboard/cloud/billing; the usage page shows the same numbers by day, by instance, and by model for any window in the last 90 days.

Read workspace usage

GET /v1/usage?from=YYYY-MM-DD&to=YYYY-MM-DD returns everything the workspace spent, by UTC day, by instance, and by model, for a window of up to 90 days. Both parameters are optional: to defaults to today and from to 30 days ending there. Deleted instances stay in the list for the days they spent. Compute lands here within the hour (it is metered per minute and settled hourly); models, search, and tools land as each call is billed.
string
First UTC day covered, formatted YYYY-MM-DD.
string
Last UTC day covered, inclusive.
integer
Everything spent in the window, in USD millionths.
object
compute, llm, brave, composio, and perflo, each with cost_micros. compute also carries awake_minutes, and llm carries calls, input_tokens, and output_tokens. perflo is paid tools.
array
One entry per model called in the window, highest spend first: model (the id as the provider reports it), cost_micros, calls, input_tokens, output_tokens. Calls whose model was not recorded are grouped under unknown.
array
One entry per UTC day in the window, oldest first: date, total_micros, compute_micros, llm_micros, brave_micros, composio_micros, perflo_micros, llm_calls, input_tokens, output_tokens, awake_minutes. Days with no spend are present with zeros. awake_minutes is the minutes billed at the running rate; sleeping and stopped time is not counted. It is recorded from 2026-11-08, so earlier days report 0.
array
One entry per instance that spent anything in the window, highest total first, with the same fields as a day plus the instance id.
For managed spend on a single instance for one month, GET /v1/instances/{id}/usage returns a monthly rollup; see Budgets.

Read an instance’s start and sleep history

GET /v1/instances/{id}/events?from=YYYY-MM-DD&to=YYYY-MM-DD lists when an instance started, slept, woke, and stopped, oldest first. It is read from the same per-minute meter its compute is billed from, so the history always matches the bill. Both parameters are optional, with the same defaults and 90-day limit as GET /v1/usage. Each time falls on the billed minute, up to a minute after the change itself. A restart or update keeps the instance running, so it adds no event. History is recorded from 2026-11-08. A deleted instance answers 404; its minutes stay in GET /v1/usage.
string
First UTC day covered, formatted YYYY-MM-DD.
string
Last UTC day covered, inclusive.
array
One entry per change, oldest first: type (instance.started, instance.woke, instance.slept, or instance.stopped) and at (epoch seconds).