Agent sessions
An agent session groups the model calls in an agent loop. Send the same
X-IQ-Session-Id on each request to group calls across minutes. The ID can use
1 to 128 characters: ASCII letters, digits, ., _, : and -. IQ can also
use session information sent by Claude Code or Codex. Without a supported
session signal, IQ assigns one ID to requests from the
same API key in the same UTC minute. Stored Responses continuations inherit
the existing session.
The dashboard's Sessions page lists each session with a summary of its qualifying recorded requests: how many there were, what they cost and how many thinking tokens they used. Qualifying requests update the session's last activity. The models of the recorded steps are one click away on the trajectory.
The list answers the question a finance team and an agent author both ask first: what did this agent run actually do, and what did it cost. Each row rolls up the route decisions for the session's qualifying recorded requests, so the session view is the entry point and the per-step detail is one click away.
One row per session
The Sessions list shows one row per agent session. The row carries the
session id, the start time, the last-activity time, the request count, the
session-level cost, the session's thinking tokens and the step
class that produced the most requests. The request
count is the number of qualifying requests recorded under the session id, so a
long planning loop with many tool-arg calls reads higher than a single-shot
completion. The top step class is the quickest read on what kind of work the
loop was actually doing: a session dominated by tool-arg-formatter steps has
a different cost shape from one dominated by planner steps.
The list is the rollup view. The per-step trajectory lives on the session detail page, which the row links to.
Trajectory and step replay
Opening a session loads its trajectory: up to 100 recorded steps in
order, each with its step label or unlabelled, its resolved model, its
thinking budget, and its cost. The thinking budget reads as one of none, low,
medium, or high, and can read custom, for example when a Messages
request sets its own thinking token budget. The replay reads the routing record the gateway
wrote for each step, so each step shows the model IQ recorded for it
rather than what the request asked for, such as model="auto" or a
cap: alias.
The step replay is the postmortem tool. When an agent run produces a bad output or an unexpected bill, the trajectory shows each recorded step's model and cost. See routing for how IQ picks a model.
Session-level cost envelopes
Each session carries a cost envelope: the running total of the qualifying requests recorded under the session id. The envelope is the unit a finance team signs off on, because it maps to one agent run rather than one model call. An agent loop that fans out across a planner step, several tool-arg steps, and a synthesis step lands a single session cost that the operator can compare against the budget for that workload.
Repeated loops usually cost less than the step count suggests, because gateway response caching now covers multi-turn agent traffic: a conversation-scoped, short-TTL, org-isolated layer serves a step the loop has already run, and a cache hit is billed at zero. Streamed Chat Completions and Messages steps are cached too: IQ rebuilds the stream from the cached response. Streamed Responses API steps are not served from the cache. See /docs/caching for the mechanics and the invalidation rules.
Alongside the envelope sits the per-session governor, which can limit extended
thinking rather than dollars. Each session carries a thinking-token cap, and
the gateway sums the thinking tokens recorded under the session id. When a
request that asks for thinking could take that total past the cap, the
governor can turn thinking down for that request or refuse it with a 429. A
later request that fits under the cap can still use thinking. IQ may also
record the governor's decision in an audit row and send a
session_thinking_governor_tripped webhook event.
Filtering the list
The Sessions list supports a date range filter. It bounds the list to sessions that started inside the window, which keeps the view scoped to the period a finance team is reconciling.
CSV export
The list exports to CSV. The export carries session id, start time, last
activity (in ended_at), step count, session cost, and the dominant step
class. The export
honors the active date range, so the file matches what is on screen rather
than the full unfiltered history. The CSV is the handoff format for a
finance team that reconciles agent spend in a spreadsheet or feeds the
rows into an ERP cost-event pipeline.
Related pages
Routing explains how a session's steps get a model and a
thinking budget. Capability aliases explain
how a cap: reference resolves to a concrete model
at routing time. The session trajectory shows the model IQ recorded for
each step it lists.