ast insights
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.
--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
Shows total spend, requests, tokens, and active agents, each with its change from the period of the same length before it.
insights daily
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
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
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
- Read usage from an MCP client: give an agent these numbers through
ast mcp - Monitor agents: what Insights measures