Beta

Read token + cost usage statistics

Usage: mf usage [command]

Options

OptionsPurpose
-h, --helpdisplay help for command

Subcommands

CommandPurpose
mf usage summaryAggregate usage in a window
mf usage timeseriesBucketed usage time series
mf usage eventsPaginated usage events
mf usage sessionsPer-session usage summaries
mf usage top-agentsRank agents by usage (cross-agent — denied for bound tokens)

mf usage summary

Aggregate usage in a window

Usage: mf usage summary [options]

Options

OptionsPurpose
--from <iso>inclusive start (ISO8601)
--to <iso>exclusive end (ISO8601)
--framework <name>filter by framework
--runtime-id <id>filter by runtime
--agent-id <id>filter by agent
--session-id <id>filter by chat session
--jsonoutput the result as JSON
-h, --helpdisplay help for command

mf usage timeseries

Bucketed usage time series

Usage: mf usage timeseries [options]

Options

OptionsPurpose
--from <iso>inclusive start (ISO8601)
--to <iso>exclusive end (ISO8601)
--framework <name>filter by framework
--runtime-id <id>filter by runtime
--agent-id <id>filter by agent
--session-id <id>filter by chat session
--jsonoutput the result as JSON
--bucket <bucket>bucket size (default: day) One of: hour, day.
-h, --helpdisplay help for command

mf usage events

Paginated usage events

Usage: mf usage events [options]

Options

OptionsPurpose
--from <iso>inclusive start (ISO8601)
--to <iso>exclusive end (ISO8601)
--framework <name>filter by framework
--runtime-id <id>filter by runtime
--agent-id <id>filter by agent
--session-id <id>filter by chat session
--jsonoutput the result as JSON
--cursor <cursor>opaque cursor from previous page
--limit <n>page size (1-200, default 50)
-h, --helpdisplay help for command

mf usage sessions

Per-session usage summaries

Usage: mf usage sessions [options]

Options

OptionsPurpose
--from <iso>inclusive start (ISO8601)
--to <iso>exclusive end (ISO8601)
--framework <name>filter by framework
--runtime-id <id>filter by runtime
--agent-id <id>filter by agent
--session-id <id>filter by chat session
--jsonoutput the result as JSON
-h, --helpdisplay help for command

mf usage top-agents

Rank agents by usage (cross-agent — denied for bound tokens)

Usage: mf usage top-agents [options]

Options

OptionsPurpose
--from <iso>inclusive start (ISO8601)
--to <iso>exclusive end (ISO8601)
--limit <n>top N (1-100, default 10)
--jsonoutput the result as JSON
-h, --helpdisplay help for command
Was this page helpful?