Skip to main content

Cost & usage monitoring

Generated from mcp/patterns.registry.json — do not edit by hand; change the registry and run bun run patterns:build.

Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.

Category: AI · Tier: light · Risk: low — read-only admin reporting over existing telemetry

Chat and image telemetry are merged into one admin table that derives a reference token cost at read time from a hand-maintained price table, without charging or faking a real bill.

When to use: Use when multiple AI surfaces need a single cross-surface view of token usage and reference spend.

Docs

Code

Proof


Machine-readable record: ai-cost-monitoring in mcp/patterns.registry.json.

← Back to Pattern Library

Think this pattern could be better? Tell us how.

Leave feedback