Solutions · Guardrails & governance
Guardrails you
can change live.
Moderation thresholds, allowed models, output limits, and strikes, set per plan or per customer in Limitr Cloud and enforced inside your app on every call.
- Reply to a refund request0.18ok
- Product copy for a knife set0.42ok
- Roleplay scene with dark themes0.66ok
- Instructions close to a policy line0.71ok
- Insulting message about a coworker0.84ok
- Request for a stranger's home address0.95strike 1
The problem
Your safety rules wait
in a deploy queue.
A threshold hard-coded in one service, a model list in another, a ban list in a spreadsheet. When something goes wrong at 2 a.m., changing a rule means a release.
How it works
Guardrails are entitlements
with settings.
The same policy that gates features and bills usage carries your safety settings: a threshold, a list of models, a token cap, a strike limit. Each plan gets its own, and each customer can get stricter ones.
moderationOutput safety thresholdsettingmodelsModels this plan can callallowlistmax_outputTokens per responselimitstrikesFlagged outputs a monthmeterpii_redactionMask personal dataflagregionsWhere requests may runsettingStrikes and pauses
Meter strikes,
not just tokens.
A flagged output is metered like any other usage. Count strikes per account, warn before the limit, pause at it, and reset every month, without writing a ban system.
Strikes per account
Count flagged outputs against a user, a team, or the whole org. A shared limit covers everyone under the account.
Pause, don't ban
At the limit, take chat away for 24 hours. It comes back on its own, and the strike count resets with the month.
Stricter for some
A school district gets a lower threshold and no image generation, from a rule on its contract. Everyone else keeps the plan.
Governance
Every rule change
has an author.
Changes are versioned, reviewed, and published like code. See who changed what and when, compare any two versions, and roll back in one click.
- v58moderation on Pro 0.80 → 0.70Priya, trust & safety · 2m agolive
- v57opus removed from Free modelsMarco · yesterday
- v56rule district_42: stricter moderationSales · Mon
- v55strikes on Free 5 → 3Priya, trust & safety · Oct 30
Under the hood
Every guardrail runs
in your app.
The rules run inside your app in Limitr's open-source, sandboxed engine, before the model is called. No extra hop, and they keep working if the network doesn't.
How the engine works →pro: {entitlements: {models: {allowed: ['haiku', 'sonnet']fn enabled(c: Customer, e: str, ctx?: obj) -> bool {self.allowed.contains(ctx?.model ?? '')}}}}
await limitr.check('ada', 'models', 1, { model: 'opus' })