Nov 23, 2026 · The Keel Team
AI features have a unit economics problem: one user's curiosity can be another user's invoice. Keel ships a small, honest answer.
Every completion is metered into the ai_usages table with real token counts from the provider. Credits are charged from an append-only ledger, so a balance is never a guess and a refund is never a mystery.
Per-user rate limits stop runaway tabs before they reach your OpenAI bill. All of it lives in app/Services/AI, in a few hundred lines you can audit over coffee.