Skip to navigation

ast insights

Read the account's AI spend and token use from the terminal
View as Markdown

Read the numbers on the Insights page for the active account: total spend, each day’s spend, and spend by agent and by person. Every command only reads.

ast insights <subcommand> [--days <7|14|30|90>] [--json]

--days sets how many complete days to cover: 7, 14, 30, or 90, the ranges the Insights page offers. The default is 30. Days are complete UTC days, so today is never included, and each result names its first and last day. --json prints the result as JSON.

The commands read the active account. Switch it with ast account switch. ast mcp serves each one as an MCP tool.

insights summary

ast insights summary [--days <n>] [--json]

Shows total spend, requests, tokens, and active agents, each with its change from the period of the same length before it.

insights daily

ast insights daily [--days <n>] [--json]

Shows each day’s spend for the five agents that spent the most in the period, as on the Insights chart. It is not a daily total: spend by other agents is left out.

insights agents

ast insights agents [--days <n>] [--limit <n>] [--offset <n>] [--json]

Lists agents and dev tools, most spend first, with each one’s share of the total and its requests. A deleted agent whose spend still counts is marked (deleted).

--limit sets how many rows to show, from 1 to 100 (default 25). --offset skips rows, to read the next page. The output says when there are more rows.

insights people

ast insights people [--days <n>] [--limit <n>] [--offset <n>] [--json]

Lists people, most spend first, with their share of the total, their tokens, and the agents they used. --limit and --offset work as for insights agents.

Next steps