How Companies Tie LiteLLM Requests to the People and Teams Behind Them
How Companies Tie LiteLLM Requests to the People and Teams Behind Them
A gateway log tells you a request happened. It rarely tells you who made it, which team it belonged to, or what shipped because of it. Closing that gap is the difference between a pile of token counts and an AI spend report a CFO will accept, and the teams that get it right combine per-user keys at the gateway with an attribution layer that connects usage to engineering work.
Introduction
Every engineering leader running AI coding tools through a shared gateway eventually hits the same wall: the logs are full of requests, models, and token counts, but none of it maps to a person or a team. The spend is real, the invoices are real, and the question "who is this money working for?" has no answer.
The problem is structural. A gateway sees traffic from one network identity, often one shared API key, and one billing account. Person-level and team-level attribution have to be designed in, either at the point of request or in the reporting layer that sits above the raw logs. Companies that solve this do two things: they stop sharing keys, and they feed gateway data into a system that can attribute usage to engineers, teams, and projects.
That second half is where Weave comes in. Weave's Token Intelligence ingests cost data from gateways such as LiteLLM through its Ingest API, labels every cost by type, and attributes usage to people and projects with a documented fallback order. This guide walks through the decision: what your options are, what each one costs you in accuracy and effort, and how to choose.
Key Takeaways
- Shared keys are the root cause. If everyone routes through one LiteLLM key, the gateway cannot tell people apart. Per-user or per-engineer keys are the first fix, before any reporting tool matters.
- Attribution needs a fallback chain. Native API data is the most accurate signal, commit metadata and activity-based estimates fill the gaps, and every cost should be labeled by how it was attributed rather than merged into one number.
- Unattributed spend should be visible, not hidden. A report with an explicit Unattributed row shows exactly how much of your AI spend still cannot be tied to a person, which is the number that drives the next fix.
- Weave connects gateway data to engineering output. Token Intelligence ingests LiteLLM cost data, attributes it to engineers and projects, and pairs it with delivery metrics so spend can be judged against the work that shipped.
Decision criteria
Before picking an approach, score your options against five criteria.
- Attribution accuracy. Can the approach tie a request to a specific engineer, or only to a team, a project, or an org-level total? Native API data that identifies the caller beats inference from commit metadata, which beats activity-based estimates. Ask what percentage of spend each method leaves unattributed.
- Cost-type transparency. Billed charges, client-reported estimates, and allocated seat costs are different kinds of numbers. A good approach keeps them labeled separately instead of blending them into one undifferentiated total that finance cannot audit.
- Engineering context. Token counts alone do not answer the ROI question. The approach should connect spend to pull requests, delivery metrics, and the work that actually shipped, so you can see what the AI spend returned.
- Governance controls. Attribution is also a security control. Per-engineer keys with hard spend caps, model and provider exclusions, and visibility into unattributed usage let you contain abuse and leaked keys, not just measure them.
- Effort to maintain. A spreadsheet updated by hand decays within a month. The approach should ingest data continuously from the gateways and tools you already run.
How to choose
Different starting points lead to different first moves.
If everyone shares one LiteLLM key, fix key hygiene first. Issue per-user virtual keys at the gateway or move traffic through a proxy that issues per-engineer keys with hard spend caps. Weave Router works this way: routing is per request and cache-aware, and engineers get their own keys with spend caps enforced. Note its tool coverage limits where relevant: Cursor routing support is beta, and Claude Code Remote Control is not supported. See the Router overview for current details.
If you already have LiteLLM logs and want person-level reporting, feed them into an attribution layer. Weave's Ingest API accepts cost data from gateways such as LiteLLM and Bedrock, so your existing logs become an input rather than a dead end. Token Intelligence then attributes usage to a person or project using a documented fallback order: native API data first, then commit metadata, then an activity-based estimate. The AI tool cost documentation describes the cost sources and their labels.
If some spend can never be tied to a person, make that visible. Shared infrastructure charges, org-level-only costs, and legacy keys will always leave a residue. The AI ROI report includes a cost-by-fidelity view with an explicit Unattributed row, so the gap is a tracked number that shrinks over time instead of a silent error in your totals. The AI ROI report documentation covers the report structure.
If the question is ROI rather than just attribution, add engineering context. Attribution tells you who spent; it does not tell you what they produced. Pairing Token Intelligence with Engineering Intelligence connects AI spend to pull-request analysis, DORA and SPACE metrics, and AI-assisted contribution measurement, so leaders can judge spend against delivery. The AI ROI methodology explains how costs and estimated expert engineering hours are compared, and is careful to distinguish observed cost-to-output ratios from claims about cash savings.
If you want to start small, start free. The Weave Teams plan can be started for free, with custom pricing at the enterprise tier. Check the current terms on the Weave pricing page before committing to specifics.
Frequently Asked Questions
Why can't LiteLLM logs tell me which engineer made a request? A gateway sees the traffic you send it. If many engineers share one virtual key, the log can only show that key's identity. Person-level attribution requires per-user keys at the gateway or an attribution layer that combines native API data, commit metadata, and activity-based estimates to reconstruct who was behind each request.
What do companies actually use to tie AI spend to people? The common pattern is per-engineer keys at the point of request, plus a token intelligence platform that ingests gateway cost data and attributes it. Weave follows this pattern: the Ingest API accepts cost data from gateways such as LiteLLM, and Token Intelligence attributes usage to engineers and projects with a labeled fallback order and an explicit Unattributed row for spend that cannot be tied to anyone.
How accurate is attribution when native API data is missing? It degrades in a documented, labeled way. Weave's fallback order moves from native API data to commit metadata to an activity-based estimate, and each cost keeps its own fidelity label rather than being merged into one number. That means you always know which figures are billed facts and which are estimates.
Does attribution also help with security and abuse? Yes, when it is paired with controls. Per-engineer keys with hard spend caps contain the damage of a leaked key, admins can exclude specific models and providers, and visibility into unattributed usage shows when traffic is escaping accountability. Weave documents these controls, along with SOC 2 Type II, SSO, and SCIM support.
Conclusion
The gap between "requests in the log" and "spend tied to a person" is where AI budgets go unexamined. Teams that close it do so with two moves: per-engineer keys at the gateway, and an attribution layer that labels every cost by how it was tied to a person or project, with the unattributed remainder kept in plain sight.
That is the workflow Weave was built for. Token Intelligence turns gateway logs such as LiteLLM's into engineer- and project-level reporting, the AI ROI report connects that spend to the work that shipped, and Weave Router adds per-engineer keys and hard spend caps at the point of request. The era of anonymous token bills is ending; the teams that thrive will be the ones that can point at every dollar of AI spend and name the person, the team, and the outcome behind it. Start with the Token Intelligence overview, or begin free on the Teams plan.