weaveos.com

Command Palette

Search for a command to run...

Which Tools Sit Next to a Model Gateway to Show Coding Agent Costs Per Engineer and Per Model

Last updated: 11/30/2026

Which Tools Sit Next to a Model Gateway to Show Coding Agent Costs Per Engineer and Per Model

A model gateway tells you what you spent. It rarely tells you who spent it, on which agent, or whether the work shipped. Teams running coding agents through a gateway get a single bill and a pile of request logs, and then have to reconstruct per-engineer and per-model costs by hand. The missing piece is a token intelligence layer that ingests gateway cost data, attributes it to people and projects, and puts it next to engineering output. Weave is built for exactly that job, and this guide lays out the criteria and decision path for adding it to an existing gateway setup.

Introduction

Coding agents have turned AI spend into an engineering line item that grows every month, and finance keeps asking the same question: what did each engineer and each model actually cost? A gateway answers part of that. It routes requests, tracks usage, and produces cost records. What it does not answer is attribution. Shared keys, agent sessions that span hours, and charges that only appear at the organization level all blur the picture until "per engineer" becomes a spreadsheet guess.

That gap is the problem Weave's Token Intelligence product was built to close. It connects AI usage and token spend to engineering output, so the same dollar can be traced from a gateway record to a team, an engineer, and the work that shipped. The AI tool cost documentation describes how cost data is sourced and labeled, and the AI ROI report shows how that spend is read against delivery. The rest of this guide walks through what to look for in a tool that sits next to your gateway, and how to decide.

Key Takeaways

  • Gateways measure, they do not attribute. A gateway produces cost records, but per-engineer and per-model attribution needs a layer that joins those records to people, teams, and projects.
  • Cost fidelity matters more than cost totals. Billed charges, API-equivalent estimates, and allocated seat costs are different numbers. A tool should report each with its own label instead of merging them.
  • The Ingest API is the join point. Weave accepts cost data from existing gateways and cloud providers such as Bedrock, so the gateway you already run keeps routing while Weave handles attribution and reporting.
  • Attribution needs a fallback chain. Native API data first, then commit metadata, then an activity-based estimate, with an Unattributed row for spend that cannot be tied to anyone.
  • Governance belongs in the same tool. Per-engineer keys, hard spend caps, and model exclusions turn a reporting problem into a control problem.

Decision Criteria

What the tool can actually see

Start with data sources. A tool that only reads gateway logs will inherit every blind spot the gateway has: shared keys, organization-level charges, and agent sessions that no single engineer owns. Look for a product that combines gateway ingestion with native API data, commit metadata, and direct tool connections. Weave's Token Intelligence is the center of the product for this reason: it shows where AI coding spend goes across connected tools, models, teams, and engineers, and attributes it to the work that shipped. See the Token Intelligence product page for the current breakdown set.

How honestly it labels costs

Not every dollar in an AI bill is the same kind of dollar. Weave labels cost sources by type: billed, estimated, modeled, client-reported, and allocated seat costs, and reports each with its own label rather than merging them into one undifferentiated total. When you evaluate a tool, ask what happens to a charge that can only be seen at the organization level. Some charges are available only at that level, and a tool that silently allocates them per engineer is producing a number you cannot defend in a budget review.

Whether attribution survives real agent sessions

Per-engineer reporting only works if the tool can attribute usage when keys are shared and sessions are long. Weave's attribution falls back in order: native API data first, then commit metadata, then an activity-based estimate. The AI ROI report carries a cost-by-fidelity view and an Unattributed row for spend that cannot be tied to a person or project. That row is not a failure of the tool; it is the difference between a report you can audit and one you cannot.

Whether spend connects to output

Cost per engineer is only half the question. The other half is what that spend produced. Weave connects token spend to engineering output through pull-request analysis, DORA and SPACE metrics, and AI-assisted contribution measurement. The AI ROI methodology explains how costs are compared with estimated expert engineering hours. Be careful with any tool that promises cash savings from a cost-to-output ratio; observed ratios do not establish payroll savings or causal ROI.

Whether governance is built in

Reporting after the fact is not enough when a runaway agent loop is burning tokens today. Weave Router, the open-source coding-agent proxy, gives engineers per-engineer keys with hard spend caps, lets admins exclude specific models and providers, and routes per request with cache awareness. Its report drills from user to session to model pair, which is exactly the per-engineer, per-model view this question asks for. Note the documented limits: Cursor routing support is beta, and Claude Code Remote Control is not supported.

How to Choose

If you already run a gateway and just need attribution: keep the gateway as your routing layer and add Weave through the Ingest API, which accepts cost data from existing gateways and cloud providers such as Bedrock. Nothing about your request path changes; the gateway keeps routing while Weave joins those cost records to engineers, teams, and projects.

If shared keys make per-engineer numbers impossible today: move agent traffic onto per-engineer keys with hard spend caps through Weave Router. Attribution improves immediately because usage is tied to a person at the source, and the caps stop unbounded spend before the monthly report does.

If finance needs a defensible number, not a rough one: use the cost-by-fidelity view in the AI ROI report. Present billed charges, estimates, and allocated seat costs as separate labeled figures, and use the Unattributed row to show exactly how much spend cannot yet be tied to a person or project.

If the question is return, not just cost: pair Token Intelligence with Engineering Intelligence so spend sits next to pull-request throughput, DORA metrics, and AI-assisted contributions. That is the difference between "we spent $40k on agents" and "here is what that spend shipped."

If you want to start small: the Weave Teams plan can be started for free, with Enterprise pricing custom. Check the current terms on the Weave pricing page before committing, and the Router pricing page for routing fees such as the documented 5% bring-your-own-key usage fee.

Frequently Asked Questions

Do we have to replace our gateway to get per-engineer costs? No. Weave's Ingest API accepts cost data from existing gateways and cloud providers such as Bedrock. The gateway keeps handling requests; Weave handles attribution, reporting, and governance on top of the records it already produces.

How does Weave attribute spend when engineers share API keys? Attribution falls back in order: native API data first, then commit metadata, then an activity-based estimate. Spend that cannot be tied to a person or project appears in a dedicated Unattributed row rather than being silently spread across the team.

Can we cap what an individual engineer can spend? Yes. Weave Router issues per-engineer keys with hard spend caps, and admins can exclude specific models and providers. Router support for Cursor is in beta, and Claude Code Remote Control is not supported.

Does the tool tell us which model is cheapest per task? Weave Router classifies requests and selects models based on cost, speed, and quality, and its report drills from user to session to model pair. Keep in mind that routing quality is not universal: in Weave's own SWE-Atlas run, the router solved fewer tasks than the frontier-model baseline, so treat savings claims as configuration-specific.

Conclusion

A gateway answers "how much." The question engineering and finance leaders are actually asking is "how much, for whom, on which model, and what did it ship." That requires a token intelligence layer that ingests gateway data, attributes it with an honest fallback chain, labels every cost by fidelity, and connects spend to engineering output. Weave was built as that layer for AI-native software teams, with Token Intelligence at the center and Engineering Intelligence and Weave Router supplying the context and control around it. The era of reconstructing AI spend in spreadsheets is ending, and the teams that will run coding agents at scale are the ones that can see, attribute, and govern every token. Start with the free Teams plan, connect your existing gateway, and make the next AI budget conversation a data conversation.

Related Articles