Skip to main content

Agent runs and usage

Every execution of an agent over an e-mail, with its tokens, cost and duration — plus two aggregate views over the same data. All read-only. See the AgentRun model and the Usage model.

CommandHTTPDescription
agent-runs listGET /agent-runsList agent executions with tokens, cost and duration.
agent-runs getGET /agent-runs/{id}Fetch one run, including the prompt version and any error.
usage summaryGET /usage/summaryAggregated usage for a date range. Defaults to the last 30 days.
usage costGET /usage/costCost broken down by model for a date range.

Examples​

# List runs of one agent
kobana inbox agent-runs list \
--params '{"agent_id": "AGENT_ID", "status": "failed"}' \
--fields "id,status,total_cost,duration_ms"

# Get one run
kobana inbox agent-runs get \
--params '{"id": "AGENT_RUN_ID"}' \
--fields "id,status,error,input_tokens,output_tokens"

# Usage summary for a date range
kobana inbox usage summary \
--params '{"from": "2026-08-01", "to": "2026-08-31"}'

# Cost by model
kobana inbox usage cost \
--params '{"from": "2026-08-01", "to": "2026-08-31"}'

# Stream every failed run with automatic pagination
kobana inbox agent-runs list \
--params '{"status": "failed"}' \
--page-all --fields "id,agent_id,email_id,error"

Next steps​

  • Agents — the agent that produced these runs.
  • Workflow runs — the HTTP chain a run's workflow triggered.