Skip to main content

Policies

The Policy page is where your policy lives: its credits, plans, entitlements, and prices. Every change goes into a draft first. Nothing reaches your app until you publish it.

The draft​

Each workspace has one draft per mode (test and live), shared by everyone editing it, the Analyst included. When a teammate or the Analyst saves, your view updates. The line at the top says what state it's in:

  • Unpublished draft, saved by whom and when, with how many lines changed (click it to see them).
  • Published, no unpublished changes (or Live, ... in live mode).
  • Nothing published yet.

Edit it in any tab, in Code, or by asking the Analyst. Discard draft throws away every unpublished change, including the Analyst's; what's published stays as it is.

Editing the test draft needs the Publish test policies permission, and the live draft Publish live policies (see Team). Without it, the page is View only.

Templates​

An empty policy offers starter templates, each a complete policy showing a different side of Limitr:

TemplateShows
AI appFree, Pro, and Team plans with monthly token limits, overage, seats, a token top-up, and a trial
APIFree daily requests, pay as you go with tiered prices, and a plan with a base fee, included requests, and a rate limit
Seats and featuresPer-seat plans billed as seats are added, storage limits, features by plan, and a feature rolling out to a quarter of teams
CreditsAgent tasks priced in credits: credits each month, packs to buy, and a free allowance

Preview shows a template's code; Use this puts it in the draft. Once the policy isn't empty, the Templates button offers them again, replacing the draft (what's published stays, and History has every version).

The tabs​

  • Entitlements. What each plan allows, as a grid: one row per entitlement, one column per plan. Filter by kind (metered or on or off), by what happens past the limit, billable or control only, by credit, or what changed in the draft. Click a cell to edit that plan's entitlement: its limit and credit, what happens past the limit (Deny (hard), Allow and bill (soft), or Only record), when it resets (Each billing period, so usage starts over as each customer's invoice closes; a calendar schedule for everyone at once; or a rolling interval), a rate limit, access (on, tracked for rollouts, hidden from pricing pages), and billing (billable, and charged at the end of the period or as it happens, prorated).
  • Plans. Each customer is on one plan. Set the label, billing period, trial, the default plan, and the plan fee, and manage its topups (credit packages a customer buys or gets with the plan). Drag plans to set the order your pricing page shows them in. Under Charging, Manual billing keeps a plan's customers from being charged through Stripe, even when it's connected (Ex. they pay by ACH, wire, or PO): usage is still metered and invoices still close. Approve charges first holds each charge until someone approves it. A customer's own billing settings override the plan's.
  • Credits. What's metered, what one unit costs you, and what you charge for it: flat, tiered, volume, or stairstep prices, and your cost per unit. Prices are in runes, a common unit worth $1 unless you change it. The Exchange section shows the rune both ways (1 rune is 1 usd, 1 usd is 1 rune), adds currencies and credits you grant (each with its path to runes), and sets how grants are drawn down. Changing what a rune is worth revalues every price at once, so it's rarely what you want.
  • Notes. The context behind the policy, for your team and Limitr Analyst: what you sell and to whom, your goals, and the decisions behind it (and why). They're part of the policy, so they're versioned and show in Changes when you publish, and they never leave Limitr Cloud: your engines don't get them. The Analyst reads them at the start of each conversation and adds to them when you settle something, so the next conversation starts where this one left off.
  • Rules (Scale and Enterprise). Changes on top of a plan: limits, features given or taken, caps, and prices, Ex. a coupon, a program for a region, or a customer's deal. Who has it gives a rule to segments: whoever they match has it, as they come and go. You can also give a rule to one customer on their page, or in a contract. From and Until dates say when its segments and the customers given it have it (a contract's rules follow the contract's term). For a customer, their own changes come first, then their rules (highest priority first), then their plan. A rule's name is fixed once saved, and a rule a contract uses can't be deleted.
  • Code. The policy as Stof. Edits here change the same draft; Ctrl S (Cmd S) saves. Rules and cost functions (Ex. a rollout or a per-model cost) are edited here. When you pause typing, the text is checked the way a save checks it, and each problem is marked on its line.
  • Changes. The draft compared with what's published here, or with the other mode's.
  • History. Every published version with its message, who published it, and when. Open one to compare it, and Restore puts it in the draft (nothing goes live until you publish).

For what each field means, see the policy reference.

Publishing​

Publish to test (or Publish in live mode) shows the changes and asks what changed and why. Engines connected with a key for that mode get the new version on their own, and new usage follows it. Publishing starts on Pay as you go; on Free you can build and validate a policy, and publish once you upgrade.

Copy between test and live​

To change live safely, start in test and bring the change back:

  1. In live mode, Copy to test puts what's live (or the live draft) into the test draft. Live doesn't change. This needs Publish test policies.
  2. Make the change in test mode, and Publish to test to try it on test customers.
  3. In test mode, Copy to live puts the published test version (or the test draft) into the live draft. Then review and publish in live mode. This needs Publish live policies.

If the draft you copy into has its own unpublished changes, copying replaces them, and the dialog says so. The Analyst can propose either copy for you to apply.