Per-user cost attribution for Claude Code, Codex and other AI tools on Amazon Bedrock
AWS explains how Amazon Bedrock attributes every inference call to the calling IAM principal, with team and cost-center session tags flowing into CUR 2.0 and Cost Explorer. The approach works the same for Claude Code, Claude Desktop, OpenAI Codex, OpenCode…
Why it matters
Platform teams can see and cap AI coding-tool spend per user and team without extra instrumentation.
What happened
1 min readAWS explains how Amazon Bedrock attributes every inference call to the calling IAM principal, with team and cost-center session tags flowing into CUR 2.0 and Cost Explorer. The approach works the same for Claude Code, Claude Desktop, OpenAI Codex, OpenCode and other tools routed through Bedrock, and covers Bedrock-native spending limits.
Our analysis
As coding-agent spend climbs, real per-user cost has become a pressing question, and this is a practical answer for AWS shops. It requires IAM Identity Center and session-tag setup and only covers traffic that goes through Bedrock. Measuring value against that spend is still left to you.