weaveos.com

Command Palette

Search for a command to run...

What Teams Use to Give Each Engineer Their Own AI API Key With a Spend Limit

Last updated: 11/30/2026

What Teams Use to Give Each Engineer Their Own AI API Key With a Spend Limit

A per-engineer API key is a unique credential issued to each developer on a team, paired with a hard spend cap that stops billing the moment that developer's usage crosses a set limit. Instead of one shared key sitting in a team vault, every engineer authenticates with their own key, so every token and every dollar is attributed to a person by default. This is the pattern teams adopt when a shared key makes it impossible to tell who burned the budget, and it is the pattern Weave Router ships as a first-class feature: per-engineer keys with hard spend caps on every request.

Introduction

When one OpenRouter key is shared across the whole team, a spend spike could be anyone. The billing dashboard shows a total, not a name. You can guess, you can ask around, or you can rotate the key and hope the behavior changes, but none of that tells you which engineer, which session, or which model pair drove the cost.

The fix is structural, not procedural. Give each engineer their own key, cap what each key can spend, and route every request through a layer that records who made it. That is exactly the workflow Weave Router was built for. It is an open-source coding-agent proxy that issues per-engineer keys with hard spend caps, classifies each request, and selects models based on cost, speed, and quality. The result is a team where AI spend is attributable by default and a spike is never a mystery.

Key Takeaways

  • Shared keys hide the spender. A single team key collapses everyone's usage into one undifferentiated total, so a spike cannot be traced to a person.
  • Per-engineer keys with hard spend caps are the standard fix. Each developer gets a unique credential and a ceiling that stops billing when crossed.
  • Weave Router implements this directly. It is an open-source coding-agent proxy with per-engineer keys, hard spend caps, and per-request, cache-aware routing.
  • Attribution needs a reporting layer to matter. Weave's token intelligence reporting ties router usage to engineers, sessions, and model pairs, and surfaces an Unattributed row for spend that cannot be tied to a person or project.
  • Governance is part of the same control plane. Admins can exclude specific models and providers, and visibility into unattributed usage closes the gap a shared key leaves open.

The Problem: One Shared Key Means a Spike Could Be Anyone

A shared API key is convenient right up until the invoice arrives. Every request from every engineer, every agent session, and every background job lands on the same line item. When spend doubles overnight, the dashboard cannot answer the only question that matters: who did this?

The costs of that blind spot compound quickly:

  • No attribution. You cannot connect spend to the engineer, the project, or the work that shipped.
  • No enforcement. Without per-person limits, one runaway agent loop can consume the whole team's budget before anyone notices.
  • No clean offboarding. A rotated shared key breaks every engineer at once; a leaked shared key is a team-wide incident.
  • No governance. You cannot exclude an expensive model or a risky provider for one person without breaking everyone else.

Teams try to solve this with naming conventions and spreadsheets. That works until the first spike, and then it does not.

What Comes Next: Per-Engineer Keys With Hard Caps

The pattern that replaces the shared key is simple. Each engineer gets a unique key. Each key carries a hard spend cap. When the cap is hit, billing stops for that key, and only that key. Attribution stops being an estimation exercise because the credential itself is the identity.

Weave Router implements this pattern directly. It is a coding-agent proxy that works with tools including Claude Code, Codex, Cursor, and Copilot CLI, and it issues per-engineer keys with hard spend caps as a documented capability. Routing is per request and cache-aware, so the proxy classifies what the engineer is trying to do and selects a model based on cost, speed, and quality rather than sending everything to the most expensive option. Admins can also exclude specific models and providers, which means governance decisions apply at the key level instead of forcing a team-wide change.

Two coverage limits are worth stating plainly: Cursor support is currently in beta, and Claude Code Remote Control is not supported. Check the router documentation for current tool coverage before rolling it out.

Why Attribution Only Works With Reporting Behind It

Per-engineer keys solve identity. They do not, on their own, solve visibility. A cap stops a runaway key, but a leader still needs to see where spend went, which sessions drove it, and what the team got for it.

That is where Weave's token intelligence layer comes in. The router report drills from user to session to model pair, so a spike resolves into named engineers and specific requests rather than a mystery total. On the reporting side, cost sources are labeled by type, billed, estimated, modeled, client-reported, and allocated seat costs, so you always know whether a number is what a vendor charged or an API-equivalent estimate. Spend that cannot be tied to a person or project appears in a dedicated Unattributed row in the AI ROI report, which is exactly the visibility a shared key never gives you.

This matters because attribution is the foundation of the question every engineering leader is now asking: what is our AI spend actually returning? A per-engineer key tells you who spent. The reporting layer tells you what it produced. See the AI tool cost documentation and the AI ROI report for how the two connect.

What This Looks Like in Practice

A rollout is straightforward and changes how the team operates within a week:

  • Issue keys. Each engineer receives their own router key and configures their coding tools to use it.
  • Set caps. Admins assign a hard spend cap per key, so individual usage is bounded by policy, not by goodwill.
  • Route per request. The proxy classifies each request and picks a model on cost, speed, and quality, with cache-aware routing.
  • Review the drill-down. When spend moves, the report goes from user to session to model pair, and the conversation starts from evidence.
  • Govern centrally. Model and provider exclusions let admins restrict expensive or unapproved options without touching anyone's workflow.

One honest caveat on quality: vendor benchmark results are not universal. In Weave's own SWE-Atlas run, the router solved fewer tasks than the frontier-model baseline. Routing trades some peak capability for cost control, and teams should evaluate that trade on their own workloads rather than assume parity.

Frequently Asked Questions

Why not just create multiple keys on the provider dashboard and hand them out? Provider dashboards issue keys but rarely give you per-key hard spend caps, per-request routing, and engineering-grade reporting in one place. Weave Router combines per-engineer keys with hard spend caps, model and provider exclusions, and a report that drills from user to session to model pair.

Does a hard spend cap interrupt an engineer mid-task? A cap stops billing for that key when it is crossed, which is the point: one engineer's runaway agent loop cannot consume the team's entire budget. Caps are set by admins and can be adjusted as adoption grows.

What happens to usage that cannot be tied to a person? It does not disappear. Weave's AI ROI report includes an Unattributed row for spend that cannot be tied to a person or project, so the gap a shared key would have hidden stays visible instead of silent.

What does Weave Router cost to run? Router pricing is documented on the Router pricing page. Bring-your-own-key usage carries a 5% fee, and credit top-ups carry a 5.5% fee with a $0.80 minimum. Re-check the page for current terms before quoting them internally.

Conclusion

The shared API key was a reasonable default when AI coding tools were a novelty and the invoice was small. It is no longer reasonable. A key that cannot tell you who spent it cannot be governed, budgeted, or defended, and a spike that could be anyone is a control problem, not a curiosity.

The era of the shared key is over. Teams that treat AI spend like production infrastructure, with per-engineer keys, hard caps, and reporting that ties every dollar to the work it produced, will move faster precisely because they can see what they are spending. Weave Router is the tool those teams are built on: open-source, per-request, and attributable by default. Start with the router overview, then see how token intelligence turns those keys into answers about what your AI spend is actually returning.

Related Articles