Skip to content

Track agent AI costs

Open in ChatGPT Open in Claude
Stacked bar chart showing daily AI costs broken down by action type $0.12 $0.09 $0.06 $0.03 $0 Jan 6 Jan 7 Jan 8 Jan 9 Jan 10 Jan 11 Jan 12 search_knowledge create_ticket get_user

Track what your AI-Native agents spend, down to the specific function or action being performed, so you can budget and optimize. Use the Report View in Foldspace.

  • Cost Attribution: identify exactly which agent capabilities (for example, “Search Knowledge” vs. “Create Agent”) are driving your bill.
  • Trend Analysis: spot daily spikes in spending to correlate with new feature launches or traffic surges.
  • Budgeting: use historical data to forecast future LLM resource requirements.

1. Create a new Event Explorer report and select the activity source

Section titled “1. Create a new Event Explorer report and select the activity source”

In the Events or Metrics section (sidebar):

  • Select the event Action Called. This event triggers every time your agent performs a distinct task.

By default, reports count how many times an event happened. To track cost, you must change the aggregation:

  • Click the dropdown label that says Total Events or Unique (under the event name).
  • Select Aggregate Property.
  • Choose the property Estimated cost.
  • Select Sum as the method.

The metric label should now read: User Sum of Estimated cost.

To see each function represented as its own colored segment in the chart:

  • Go to the Breakdown section in the sidebar.
  • Select Action key.

Without this, you will only see a single total bar. Adding this breakdown separates the cost for search_knowledge, open_support_ticket, and other actions.

  • Chart Type: set to Stacked Bar (top right dropdown). This is best for visualizing how different actions contribute to the total daily cost.
  • Time Range: select 7D or 30D to see recent trends.

The visual graph shows your total daily spend, segmented by action type.

  • Height of bar: represents the total cost for that day.
  • Colored segments: show the portion of cost attributed to specific actions.

For example, a large segment on a given day indicates that search_knowledge was the primary cost driver for that day.

Below the chart, the table provides the exact financial impact of each action.

  • Total: the cumulative cost of that action over the selected timeframe.
  • Average: the typical daily cost.
  • Daily Breakdown: the exact spend per day (for example, search_knowledge cost $0.037 on Jan 12).