Skip to main content

Rules

Authority › Rules is one list of every rule of every kind, with its state: GPU, routing, safety, alert and budget rules. Filter by kind. Each row has a recent-run strip, and a banner links to Activity › Approvals when something waits for a person. Open a rule for its state and where to change it. + New offers five starting points. Each opens the same sheet. You can import or export budgets, routing rules (on Watch only) and GPU rules as one Excel, YAML or JSON file. Finance can validate and preview; only an admin can apply.

Safety rules

Authority › Safety rules checks each call before it reaches the model. On Watch a rule records what it would have done; on Act it changes the call.
Available on Scale and Enterprise. Admin and finance can write; finance can only save rules on Watch. Switching to Act, or editing a rule on Act, needs an admin, and a finance save becomes a proposal in Activity › Approvals.
A condition is a numeric test on the call’s forecast, joined with AND: predicted total cost, predicted total tokens, runaway probability, spans observed and cumulative cost. Predicted cost is the run’s spend so far plus max_tokens priced at the output rate. Runaway probability is 0 unless the same request repeats six or more times in five minutes at 20 or more calls a minute. When several rules match, hard stop beats downgrade. A rule can also record only. Where this runs:
  • Through the proxy, before routing.
  • In the SDK, through the pre-call check, which sees only the model name. Token and runaway conditions are skipped there.
  • If the evaluator can’t be reached, calls go through.
Safety rules don’t read prompts. TensorCost doesn’t scan for prompt injection or allowed tools. Content checks for personal data live in compliance profiles, below.
The console flags rules that can never fire, such as out-of-range bounds or empty conditions. Safety rules also has a readiness view that ranks what your Watch rules matched over 7, 14 or 30 days and lists the engineers whose calls matched, so you can warn people before you switch to Act.

GPU rules

Available on Enterprise. Admin only.
GPU rules watch your GPU instances and propose stopping or restarting them. They never act by themselves: a match adds an action to Activity › Approvals, and an admin approves it. After approval, the action runs through a connected TensorCost agent, or through your connected AWS, Azure or GCP account. With neither, it says to install an agent or connect the cloud provider.
  • Triggers: idle threshold, cost cap, stale heartbeat, low utilisation.
  • Conditions: an AND/OR tree over GPU utilisation, memory, temperature, power, cost per hour and minutes since last heartbeat.
  • Actions: send alert, stop instance, restart instance.
  • Modes: the console shows Watch, or Ask. Watch records no matches yet. Approval is always required.
  • A rule checks on events and every 5 minutes. An instance isn’t queued again while an approval is open or for 60 minutes afterward.

Approved models

Authority › Approved models is a workspace-wide allow list and block list of models. It has no per-team scope. An approval covers one version or a model family (the default); blocks are always exact. There is no delete: approve or block the model again. Switch the list to Act to refuse unapproved or blocked models on proxied inference with HTTP 403. An empty list allows everything. SDK traffic that only reports isn’t blocked, and TensorCost doesn’t change your cloud IAM. Optional IAM JSON for AWS, Azure and GCP is copy-only. This is the one check that fails closed: if the proxy can’t read the list, it refuses. Admin only; available on every plan, as long as the proxy is in the path.

Compliance profiles

Available on Enterprise. Admin only.
A profile applies a framework: GDPR, HIPAA, PCI DSS, EU AI Act, EU data residency or US data residency. There are no free-form policies. You set a workspace floor profile and can add per-team overlays. Frameworks combine as a union, allow lists intersect, Act wins over Watch and refuse wins over go-through. On Watch a profile records what it finds and refuses nothing. A region-pinned profile on Act refuses calls that arrive without a region. Provider, model and region checks run in the proxy. Data loss checks run inside your app through the SDK, so prompt text is never scanned on TensorCost servers.