Iris cost and token usage: what drives spend and how to control it
On a cloud provider, Iris is billed per token: what goes in (the request) and what comes out (the answer). Requests dominate, and one feature dominates requests. Knowing which gives you most of the control you need. On a self-hosted model there’s no per-token bill; the same numbers tell you how hard the model server works.
What drives cost
| Feature | Input per request | Answer cap | Relative cost |
|---|---|---|---|
| Config analysis, first message | Config (up to ~100,000 chars) + harness (up to 14,000) | 4,096 tokens | Highest |
| Config analysis, follow-ups | New question; the conversation so far is also billed by most providers | 4,096 tokens | Grows with chat length |
| Drift narration | Diff (up to 8,000 chars) + start of config + harness (up to 10,000) | 4,096 tokens | Low |
| Compliance narration | Results + harness (up to 10,000) | 2,048 tokens | Low |
| AI Generate Rules | Policy details + optional pasted config (up to 8 KB) | 2,048 tokens | Low |
Configuration text runs at roughly 3 to 4 characters per token, so a 60,000-character config is around 15,000 to 20,000 input tokens before the question.
MCP agents don’t appear here. They use their own provider and account.
Measuring it
Every Iris request writes prompt and completion token counts to the AI audit trail (ai_audit_logs). There’s no screen for it in this release. An administrator can summarise it from the database:
SELECT DATE(created_at) AS day, capability, model, SUM(prompt_tokens) AS prompt_tokens, SUM(completion_tokens) AS completion_tokensFROM ai_audit_logsGROUP BY DATE(created_at), capability, modelORDER BY day DESC;Multiply by your provider’s per-token prices for an estimate, and compare it with the provider’s own usage report.
Controls
- Spend limits and alerts in the provider’s console. This is the only hard cap.
- Capability switches in AI Configuration. Turn off what nobody uses.
- Max Output Tokens caps answer length (it can lower a feature’s cap, never raise it). It trims a little; inputs matter more.
- Habits: start a new chat for a new topic (long conversations are re-billed on every turn), and select the lines you care about on very large configs.
- Model choice: a smaller, cheaper model for drift and compliance narration is often enough, but rConfig uses one model for all features, so weigh it against config analysis quality.
Related reference
Frequently asked questions
Does rConfig limit how much Iris spends?
No. rConfig records token counts for every request but doesn't enforce a budget. Set spend limits and alerts in your AI provider's console.
Which Iris feature costs the most?
Config analysis, because its first message carries the whole config, up to about 100,000 characters. Drift and compliance narration send much less.
Do MCP agents add to rConfig's AI bill?
No. Agents use their own model provider and account. rConfig's provider is used only by Iris features inside rConfig.