AI Studio
Create
ImageVideoCanvasExplore
Experts
Overview
DocsAPI KeysDiscord
Documentation
Documentation
IntroductionWhy Router9

Studio

Using Studio

For Developers

Quick StartInstall MCP Server

Integrations

Token Plan

Plan ManagementPer-Key Harness ManagementBilling & PlansCredits & UsageAudit LogsSecurity

API Reference

Token Plan

Per-Key Harness Management

Treat each API key as one harness — with its own profile, budget, binding, and policies

Router9 treats each API key as one harness identity. Because every request is classified by harness and grouped into tasks, each key gets its own profile, budget, and controls — so you can understand, contain, and secure each tool independently. Manage everything from the Keys page and each key's profile.

Harness Profile

Open a harness from the Keys page to see its profile over time:

  • Detected harness — which tool the key's traffic classifies as, with the models and tools it has been calling
  • Usage & activity — credits, requests and tokens over a 7–60 day window, and daily requests stacked by model
  • Assets — the images, audio and video the key generated
  • Activity — the request log, exportable

A single dominant harness is the healthy signal for a key bound to one tool. The By Harness tab on the Usage page breaks your whole plan's usage down the same way. The harness's tool type (and icon) is auto-detected from this dominant classification.

Rotating a Harness Key

Each harness owns one API key. Rotate key (on the harness page) regenerates the secret in place: the new key is shown once, the old key stops working immediately, and the harness keeps its name, type, budget, policies, and full history. Rotate whenever a key may have leaked — especially after a drift banner.

Key Budgets

Available on Pro and Max plans.

Give a key a budget in credits per billing period to contain a single harness's spend:

  • Soft alert — you get an email when the key has used 80% of its budget. Requests keep flowing.
  • Hard limit — turn this on to reject the key's requests with 429 once the budget is exhausted. Requests carry X-Key-Budget-Limit, X-Key-Budget-Used, and X-Key-Budget-Remaining headers so your harness can react.

Budgets reset when your plan's credits do, at the start of each billing period, and are counted in addition to your plan's shared credit allowance — never a replacement for it. A 429 names the moment it resets in X-Key-Budget-Reset.

Identity Binding & Drift Detection

Available on Pro and Max plans.

Bind a key to the harness you expect to use it (for example opencode). When a harness's traffic strongly matches one tool type, Router9 suggests the binding on its profile — one click to enable protection. If the key's traffic later classifies as a different harness, Router9 flags the key on its profile — a strong signal that the key may have leaked or been shared.

Drift detection is flag-only: it never blocks traffic. When drift is detected, a banner appears on the key's profile with the last-seen time. If you didn't switch tools, rotate the key.

Key Policies

Available on Pro and Max plans.

Tighten what a key can do:

  • Model allowlist — restrict a key to specific model slugs (e.g. a CI key limited to cheaper models). Requests for other models get 403.
  • Rate limit — cap a key at N requests per minute, independent of your plan-wide limits.

Reports & Alerts

  • Cost showback — export a key's usage as CSV (with harness and credits columns) for internal chargeback.

The budget alert email respects your notification preferences and is debounced so a looping agent never floods your inbox.

Plan Management

Create and manage your Token Plans

Billing & Plans

Subscription tiers, pricing, and billing management

On this page

Harness ProfileRotating a Harness KeyKey BudgetsIdentity Binding & Drift DetectionKey PoliciesReports & Alerts