When coding-agent usage spikes, can you tell which agent spent it?

by•

If you've got Cursor on one task and Claude Code on another, how do you work out which one is running up the bill?

A provider dashboard can show the model and token count. But with a shared API key, that doesn't necessarily tell you which agent, project, or person was responsible. And by the time someone checks, the sessions might already be over.

A key per project seems like a reasonable start. But what happens when two agents work on the same project? Or one run kicks off several more?

I'm curious how people handle this in practice. Separate keys, per-run tokens, request tags, gateway logs? What gives you enough detail to explain a spike without spending an afternoon piecing it together?

5 views

Add a comment

Replies

Be the first to reply

Have a question or a thought to share? Add a comment above to start the conversation.