Skip to main content
Rules gives you one place to decide how Opper handles every model call in your organization. Set a retention policy, cap spend, limit which models are available, and inspect inputs and outputs—all without changing application code.
The Rules page showing data retention and spend limits
Open Rules from Observe & Control in the Opper platform. The page is also available at platform.opper.ai/<your-org>/rules on plans that include Rules.

What you can configure

Data retention

Choose how long Opper keeps call content, or enable Zero Data Retention.

Spend limits

Set a monthly organization budget and optional project caps.

Model access

Restrict the providers, regions, countries, and models your apps can use.

Checks

Score quality or flag, redact, and block content.
Rules apply to LLM calls made through the Opper v3 API, including calls from the compatibility gateway and the playground. Spend limits also cover image, speech, and video generation. Model access and checks do not currently apply to those modalities.
The deprecated v2 API is not covered by Rules.

Organization rules and project overrides

Start with an organization rule to set the default for every project. Add a project override when a workload needs a stricter policy. Project overrides cannot loosen an organization rule. For example, a project cannot use a provider blocked at the organization level or retain data for longer than the organization allows. Overrides for retention, spend, and model access appear directly below their organization rule. For checks, choose the scope while editing the check.

Save a set of changes

You can edit several sections before applying them. Nothing changes until you select Save changes.
The unsaved-changes bar listing the edited sections
The save bar lists every section with unsaved changes. Select Discard to reload the saved configuration, or Save changes to apply the entire draft. If something needs attention, the bar links to the affected field and disables saving until the problem is fixed.
A check that cannot be saved until at least one project is selected

Defaults for a new organization

Data retention and spend limits before any rules are configured
Before you create any rules:
  • Opper records usage metadata, but does not store trace content such as inputs, outputs, or spans.
  • Usage is uncapped.
  • Every model in the catalog is available.
  • No checks run.
See Data retention for the difference between trace content and the usage metadata Opper keeps for billing. Each section has a stable URL fragment: When trace storage is enabled, checks and model-access decisions appear as events on the relevant trace span. Rules still enforce under Zero Data Retention, but no trace content is stored.