LLM Usage Expenses

Keito includes a built-in “LLM Usage” expense category for tracking the cost of AI model usage. This category is automatically created in every workspace.

How It Works

LLM usage expenses use the unit-based expense model:

quantity (tokens in thousands) × unit_price = total_cost

For example: 45k tokens at £0.003/k = £0.135.

The expense flows through the standard pipeline: it’s allocated to a project, included in reports, and can be invoiced to clients.

When LLM Expenses Are Created

  • Automatically — when an agent integration logs token usage via the API or CLI.
  • Manually — you can create LLM usage expenses in the web UI like any other expense.

What’s Captured

FieldDescription
project_idThe project the tokens were used for
quantityToken count (typically in thousands)
unit_priceCost per unit
total_costCalculated total
notesModel name, context (e.g., “claude-opus-4-6: 25k input + 15k output”)
metadataStructured token breakdown, session ID

Viewing LLM Costs

  1. Go to Expenses and filter by category → “LLM Usage”.
  2. Use the source filter to see only agent-created expenses.
  3. In Reports → Expense Reports, group by category to see total LLM spend across projects.

Invoicing LLM Costs

LLM expenses can be included on client invoices as a separate line item or grouped with other project expenses. See Invoicing Agent Work for details.