Real-Time Cost Dashboards for Every Claude Code and Codex Run Your Team Triggers
A live per-run cost record shows who triggered what, and when spend spikes.

Per-run agent cost attribution for engineering teams requires a live record connecting each Claude Code or Codex run to its initiator, trigger, consumption, and output. Subscription and API invoices cannot supply that operational view on their own. A real-time dashboard closes the gap when it records each run as a discrete cost event, allowing leaders to control usage before spend accumulates.
Why per-run cost visibility is now a budget problem, not a developer curiosity
An invoice arrives too late to control an agent run that is consuming resources now. Subscription and API invoices report aggregate monthly spend, although API invoices also itemize per-call token usage. The /cost command and Console dashboards provide session-level visibility, but that is not the same as a shared, real-time record attributing every run to an engineer, team, or automation. The missing link is operational.
That distinction becomes urgent when engineering teams trigger dozens to hundreds of runs per day. One developer running one agent has a relatively bounded view of usage. Runs that happen at the same time across a team are harder to follow, especially when people and automations start work on their own. A session cost can explain one pocket of activity without revealing how it contributes to the team's total exposure. Spend accumulates across those disconnected pockets before the monthly total makes it visible.
An overnight loop illustrates why delayed reporting is inadequate. A usage dashboard that runs up to one to two days behind real time cannot provide a timely signal for work left running unattended. The team lacks a live connection between consumption and the task responsible for it.
AWS, GCP, and Azure offer cost management tools that attribute spend to a resource and a time window. Consistently applied cost allocation tags or labels extend that attribution to teams. Coding-agent billing has no built-in view like this for each run. The missing control signal is a per-run cost event that the team can act on while work is happening.
Why Claude Code and Codex billing structures make per-run attribution hard by default
Claude Code and Codex both pool and abstract usage in ways that make individual run attribution difficult without additional instrumentation. Their billing surfaces describe consumption under a commercial arrangement. A charge alone cannot identify the initiating workflow or establish whether the work produced a useful result. The dashboard therefore needs more than invoice data. It must connect billing information to the run itself.
Claude Code illustrates the complexity of pooled subscriptions. Its subscription rail includes a rolling five-hour session window and a weekly cycle, with a separate weekly sub-limit for Fable on Max, Ultra, and premium seats only. Pro accesses Fable through usage credits. Claude Code and Claude chat also draw from the same pool, so a long planning conversation reduces what remains available for agent work that afternoon. Agent usage cannot be understood in isolation from that shared allowance.
Plan multipliers add another layer of abstraction. Subscription tiers use multipliers such as 5x and 10x rather than published token quotas, and Anthropic does not publish a token count for any plan tier. Consumption depends on context size, model choice, and how much the agent reads before acting. Those factors vary by run.
API billing makes token prices explicit but still leaves the attribution work unresolved. Claude Opus 5.5 costs $4 for input and $20 for output per million tokens, Sonnet 5.5 costs $2 and $10, and Fable 5.1 costs $10 and $50. Model choice changes the price of consumption. When usage credits are enabled, spending beyond the subscription cap also bills at standard API rates, introducing overflow as another cost state within the billing period. A run-level dashboard must distinguish that transition rather than treating all activity under a subscription as prepaid.
The four trigger surfaces where runs originate and costs go untagged
GitHub comments turn an ordinary collaboration surface into an agent entry point. A comment containing a trigger phrase on an issue or PR can start a run that checks out a branch and submits a pull request. The comment supplies a useful connection to the person and task that initiated the work. Programmatic credit usage at API rates can remain untagged to both the ticket and the engineer who wrote the comment.
GitLab is a separate trigger surface with a different integration requirement. Claude Code's GitLab documentation describes how mention-driven runs use a project webhook that points to a listener supplied by the team, which then calls the pipeline trigger API. There is no built-in @claude comment trigger equivalent to the GitHub path. The integration is custom, but the attribution requirement is unchanged. The resulting run needs a record linking programmatic credit consumption to the initiating comment and its author.
Linear Agent can be triggered by assigning an issue or asking it to make a change in a chat, comment, or Slack thread. That convenience does not establish a cost center. Without deliberate tagging, the resulting work has no specific cost-center attribution, while Linear's separate credit system adds another billing context to reconcile. The place where a request appears and the system that bills for it are not necessarily the same.
CI/CD pipelines also start runs on their own, often in large numbers. Since June 15, 2026, the Agent SDK, claude -p scripts, and GitHub Actions draw from the Agent SDK credit pool at API rates. Pipeline runs can be among the least visible sources in existing dashboards because their volume is not tied to someone manually starting each task. A day's work can therefore span subscription usage, programmatic credits, and Linear credits without a native view grouped by run, trigger, or engineer. Without a layer that intercepts each trigger and records a cost event, the invoice remains the shared budget signal, and it arrives weeks late.
How do you track who triggered each agent run and what it cost?
A useful real-time dashboard must record four dimensions of every run. These are who triggered it, where it originated, what it consumed, and what it produced. The initiator may be an engineer or an automation, while the origin may be Slack, GitHub, Linear, or CI. Consumption includes the model, token volume or compute time, and duration. Output distinguishes a PR or reply from a failed attempt, making the record useful for more than accounting.
Model identity is essential to reconstructing API cost. A generic record that says only that a run happened cannot distinguish work priced at Sonnet rates from work priced at Fable rates. Token volume also needs to show input and output separately because they have different prices. CodeRabbit charges $0.40 per agent minute, based on seconds of active agent work, illustrating how active-agent time can provide a linear, observable cost signal without application-layer token counting.
The billing rail belongs in the same record. A run that stays within a prepaid subscription window has a marginal cost near zero because the fixed fee has already been paid. A run that enters overflow has a direct marginal cost at API rates. Those are different operational states, even if the task and model remain the same. The dashboard must flag overflow as it happens rather than leaving the distinction for end-of-month reconciliation.
If a team on Max or Ultra has already paid, why measure work whose marginal cost is effectively zero? Measuring that work supports utilization and governance. A merged PR and an attempt that consumes quota without producing anything are different outcomes. Per-run records show that difference and help teams spot work that runs out of control or has the wrong scope before it reaches overflow.
Running agents in isolated cloud VMs as the architecture that makes per-run attribution tractable
An isolated environment makes attribution easier because its execution boundary can also serve as an instrumentation boundary. On a developer's laptop or in a shared process, separating one run's resource consumption from another's is difficult, particularly during parallel execution. A dedicated Linux VM gives each run an environment of its own. Its start, end, duration, and output belong to that run.
The controlled harness also shows which model was used to invoke the agent. Combined with the initiating trigger and engineer or automation, that information connects execution to responsibility. The VM does not replace billing data. Instead, it provides the run boundary within which token usage or compute time can be attributed, with billing-state information distinguishing prepaid usage from API charges.
Tool calls that touch production systems, bash commands against a repository, and credential use happen inside the VM and can be recorded in the run's event log. An API-boundary log cannot, by itself, describe that full execution. Recording what happens inside the controlled environment makes it easier to build an audit trail that can be trusted. The architecture supports that record, although isolation alone is not proof that a log is tamper-resistant.
A shared execution layer also need not become a new place where every engineer must start work. Agents can be triggered from Slack, Linear, GitHub, GitLab, the dashboard, the API, schedules, and webhooks. Runs from those entry points can use the same VM-based run record. The workflow can remain where the team already uses it.
What engineering leaders can do with per-run data once they have it
With attribution in place, engineering leaders can set daily or weekly run budgets for a team or automation. The platform can halt or flag runs that would breach those limits, rather than waiting for an invoice to reveal the overrun. The decision becomes specific to the source of usage. A leader can constrain a high-volume trigger without treating every engineer's agent work as the same budget risk.
Leaders can also set model policy for a specific workflow when each record has the model and trigger surface. If CI-triggered runs default to Fable 5.1 when Sonnet 5.5 would suffice, the leader can enforce a policy for that workflow. The data identifies where the policy belongs. It makes the cost of the existing choice visible.
A run using ten minutes of compute to produce a merged PR is different from one using the same compute and producing nothing. Tracking PR output against cost over time separates useful delivery from quota consumption without output. Parallel-run data adds another decision. Leaders can tune concurrency by seeing which runs produced value and which stopped at the five-hour window cap.
Teams need to watch automation closely because scheduled and event-driven runs can happen in large numbers while staying out of sight. CI triggers, Sentry alerts, and Linear Loops can be audited against whether they produce reviewable PRs or silently consume quota. That evidence helps leaders decide which automations to keep in use. It also prevents an active workflow from being mistaken for a productive one.
Enterprise controls do not remove the need for this execution-level record. Claude Code Enterprise has per-user and per-org spend limits and analytics, but those controls stop at the API boundary. A VM-based record connects the trigger, model, duration, and output to the activity inside the run. That is the governance gap a real-time dashboard closes.


