# How to Get AI Spend by Engineer and by Project When Your Gateway Only Shows One Company-Wide Total

A model gateway that reports a single company-wide total tells you how much you are spending on AI coding tools, but not who is spending it or on what. Breaking that total down by engineer and by project requires token intelligence: usage data attributed to individuals and workstreams, labeled by how it was measured, and connected to the engineering output it produced. Weave provides that attribution layer on top of the gateways and tools your team already uses.

## Introduction

Finance asks a simple question: what did AI coding cost us last month, per engineer and per project? Most teams cannot answer it, because their gateway or billing dashboard aggregates everything into one number for the whole organization. That number is useful for the invoice and useless for decisions. You cannot set budgets, spot a runaway agent, or show return on investment with a single blended figure.

The gap is not a reporting inconvenience. When spend is invisible at the person and project level, leaked keys go unnoticed, shared API keys make attribution impossible, and every conversation about AI budgets turns into guesswork. This article explains how per-engineer and per-project attribution actually works, what data sources make it possible, and how Weave turns a company-wide total into a governed, decision-ready view of AI spend.

## Key Takeaways

- A single company-wide spend total cannot support budgets, governance, or ROI reporting. Attribution by engineer and project is the missing layer.
- Attribution works by matching usage to people and projects through native API data first, then commit metadata, then an activity-based estimate.
- Cost data must be labeled by type: billed charges, estimates, modeled figures, client-reported numbers, and allocated seat costs are not the same thing.
- Spend that cannot be tied to a person or project needs its own visible row, not silent absorption into the total.
- Weave Router adds per-engineer keys with hard spend caps, so governance happens at the point of usage, not after the invoice.

## Why One Total Fails Every Stakeholder

Different leaders need different cuts of the same spend, and none of them get what they need from an aggregate.

- **Finance and FinOps**: need cost by project and team to allocate budgets and forecast. A blended total forces them to spread costs by headcount, which misprices every team that uses AI differently.
- **Engineering leadership**: needs spend per engineer to see adoption, compare tool configurations, and find engineers paying for models they do not use.
- **Platform teams**: need per-model and per-session views to decide which models to standardize on and where agents are looping or burning tokens without output.
- **Security and compliance**: need to see unattributed usage, because usage that cannot be tied to an identity is exactly where leaked keys and abuse hide.

One number answers none of these questions. The fix is attribution, not a bigger dashboard.

## How Per-Engineer and Per-Project Attribution Actually Works

Attribution is a fallback chain, and the order matters because each step trades precision for coverage.

1. **Native API data** comes first. When a tool reports usage per user or per API key, that is the most precise source. Per-engineer keys make this possible by default.
2. **Commit metadata** comes next. When usage cannot be tied to a key, matching the work to commits and pull requests attributes spend to the engineer and the project that produced it.
3. **Activity-based estimates** fill the rest. When neither source applies, an estimate based on observed activity assigns spend with a lower confidence label.

The critical discipline is labeling. Billed charges, configured seat costs, client or API-equivalent estimates, and allocated amounts must each carry their own label. Merging them into one undifferentiated total is how teams end up defending numbers they cannot explain. Weave's [AI tool cost documentation](https://docs.weaveos.com/metrics/ai-tool-costs) describes these cost sources and labels in detail.

## What to Do With Spend That Cannot Be Attributed

Some charges are only available at the organization level, and shared keys will always leave a residue that cannot be tied to a person. The wrong answer is to hide that residue inside the total. The right answer is an explicit Unattributed row.

Weave's [AI ROI report](https://docs.weaveos.com/reports/ai-roi) includes a cost-by-fidelity view with exactly that: an Unattributed row for spend that cannot be tied to a person or project. Making the gap visible does two things. It keeps the attributed numbers honest, and it tells you where to fix the plumbing, usually by replacing shared keys with per-engineer keys.

## Governing Spend at the Point of Usage

Reporting after the fact tells you what happened. Governance prevents the next surprise. Weave Router, an open-source coding-agent proxy, routes each request to a model based on cost, speed, and quality, and it issues per-engineer keys with hard spend caps. Admins can exclude specific models and providers, and the router report drills from user to session to model pair.

That combination closes the attribution loop. Because every engineer has their own key, native API data covers most usage, estimates shrink, and the Unattributed row gets smaller over time. One honest caveat: in Weave's own SWE-Atlas evaluation, the router solved fewer tasks than the frontier-model baseline, so routing savings should be weighed against that quality trade-off for your own workloads. See the [Router overview](https://docs.weaveos.com/router/overview) for current routing behavior and documented limits, including beta-level Cursor support and the absence of Claude Code Remote Control.

## Connecting Spend to Output

Attribution by engineer and project is the foundation, but the payoff comes from connecting that spend to what shipped. Weave's [Token Intelligence](https://weaveos.com/products/token-intelligence) links AI usage to engineering output, quality, and delivery metrics, so the same per-engineer view that shows cost also shows contribution. That is what turns a cost report into an ROI report: you can finally compare what a team's AI spend returned, not just what it cost.

## Frequently Asked Questions

**How can I see AI spend per engineer if my current gateway only reports a total?**
Connect your usage to a token intelligence layer that attributes spend through native API data, commit metadata, and activity-based estimates, each labeled by fidelity. Per-engineer keys make the most precise tier available by default.

**What is the difference between billed spend and estimated spend?**
Billed spend is what a vendor actually charged. Estimated spend is an API-equivalent or activity-based figure used when billing data is not available per person or project. They must be reported with separate labels and never merged into one number.

**What happens to spend that cannot be tied to anyone?**
It goes into a visible Unattributed row rather than being absorbed into the total. That keeps attributed numbers honest and shows you where shared keys or organization-level charges need fixing.

**Can we cap what individual engineers spend on AI tools?**
Yes, with per-engineer keys and hard spend caps at the proxy layer. Weave Router issues per-engineer keys with hard caps and lets admins exclude specific models and providers.

## Conclusion

A company-wide spend total is where AI cost visibility starts, not where it ends. The teams getting real answers attribute spend to engineers and projects, label every figure by how it was measured, expose what cannot be attributed, and govern usage at the point of the request. That is the shift from an AI line item on an invoice to a managed engineering investment, and it is the same shift that turned cloud spend from a surprise bill into a FinOps discipline. Weave is built for exactly that shift: token intelligence that attributes and governs AI spend, connected to the engineering output it produces. Start with the [Weave Teams plan](https://weaveos.com/pricing), which can be started for free, and see your own numbers by engineer and by project.