Skip to main content

Find the sessions that used the most tokens

A single agent run that goes in circles can use more tokens than a week of ordinary work. The Sessions list in Audit shows each run's tokens and, when it is priced, its cost, so you can put the heaviest runs at the top and see which tasks they belong to.

Who can do this: a role that can view sessions (any project role, or Org Admin or Org Owner), and your plan must include Session transcripts. Without it, the list shows Not on your plan in place of the sessions: org admins get a See plans link, everyone else reads Ask an admin to change the plan.

Not on your plan: your plan doesn't include session transcripts, with a See plans link

  1. In the sidebar, select Audit, then the Sessions tab.
  2. Set Window to the period you want to check, such as Last 7 days or Last 30 days. It starts on Last 24 hours. For exact dates, pick Custom range and fill in From and To.
  3. Optional: narrow the list. Set Status to Ended to leave out runs still working, or set Node to look at one machine.
  4. Select the Tokens column heading. The list now starts with the session that used the most tokens. Select it again to reverse the order; Default order beside the filters goes back to running first, then newest.
  5. Read each row's Tokens, such as 1.2M · $3.40: the tokens the run used, then what it cost when that is known. Hover the figure for the split, such as in 1,050,000 · out 150,000. Many input tokens with little output usually means the agent kept rereading the same material.
  6. Read Time beside it. A run with a high count over a short time burned through its tokens fast; a long run may just have had a large task.
  7. Look at Task for the heaviest rows. When the same task appears several times, it was restarted, and each run added to the total. Select the task's title to open it, or ⋯, then Open task #….
  8. To see what the agent spent its tokens on, select ⋯, then Download for the run's transcript. This needs Project Maintainer, Org Admin or Org Owner, and the transcript must be uploaded.

The sort and the filters stay in the page's address, so you can copy the link and send it to someone who reviews spend with you. A Custom range is not kept in the link.