
FinOps for AI Productivity tools on Amazon Bedrock
A practitioner's guide to cost control, governance, and cost optimization at scale
Series: AI Governance powered by AWS (2 articles)
- 1FinOps for AI Productivity tools on Amazon Bedrock This article
This is part of a multi-part series on enterprise governance for AI Governance on AWS. This post focuses on FinOps for AI Productivity Tools. Subsequent posts will cover cost optimisation deep dive for Codex, as well as governance for organization-approved skills, plugins, MCP connectors, and tool-level access policies.
Introduction
AI-powered coding and productivity tools — Claude Code/Desktop, ChatGPT Work/Codex, GitHub Copilot — are transforming how engineering teams and knowledge workers operate. Each works differently (terminal agent, desktop app, cloud sandbox, IDE extension), but on Amazon Bedrock they share a common cost characteristic: spend is per-token, not per-instance, and it accumulates in real-time conversational loops rather than scheduled compute jobs.
Across enterprise deployments, the average cost is around $13 per developer per active day and $150–250 per developer per month, with costs remaining below $30 per active day for 90% of users ( reference ). The productivity gains are compelling — but as organizations scale from a handful of power users to hundreds (or thousands) of users, the question shifts from "Should we adopt these tools?" to "How do we run them responsibly?"
Organizations that run these tools through Amazon Bedrock get full control over data residency, deep integration with the AWS ecosystem, audit trails, and pricing flexibility. But without intentional FinOps practices, spend grows quickly. A single developer can burn through $50+ in a few hours on a capable model. Multiply that across 200 users, and you have a cost management challenge that traditional cloud tools weren't designed to handle.
This guide covers four complementary techniques — ranging from information-only cost attribution, serverless IAM-based dollar caps (no proxy needed), to fully managed and self-hosted AI gateways (real-time enforcement and routing) — each suited to different organizational maturity levels and control requirements.
Why Customers Choose Amazon Bedrock as the Inference Layer for AI Productivity Tools
- Data residency: Cross-Region Inference (CRIS) provides geographic and global inference profiles to control where data is processed — within geographic boundaries (US, EU, JP etc.) or globally for maximum throughput. In-region inference is also available for models that support it (e.g., OpenAI models). All logs and audit trails remain in the originating region.
- Zero data retention by default: ZDR applies to supported models on Bedrock (exceptions: Claude Fable 5 and Mythos 5). See Data Retention docs for model-specific configuration.
- IAM-based access control: Permissions tied to your existing identity federation (SAML, OIDC, AWS IAM Identity Center).
- Model Invocation Logging: Full request/response payloads (prompts, completions, token counts) to S3 or CloudWatch Logs — your foundation for cost attribution and content audit.
- CloudTrail: Records every Bedrock API call — who invoked which model, when, from where.
- VPC Endpoints: Model invocations never traverse the public internet when VPC Endpoints are used.
- Cost allocation tags + SCPs: Attribute spend to teams/projects; enforce organization-level guardrails on models and regions.
- Financial flexibility: On-demand pay-per-token, Reserved Tier (1-month/3-month commitment with 99.5% SLA), prompt caching (up to 90% discount on repeated context), and EDP burn-down eligibility. Refer to Bedrock model cards for up to date information on models that support reserved tier.
Cost Control and Governance Techniques
This is where organizations need the most guidance — and where the right approach depends heavily on your current state. Let's start with a structured assessment.
Understanding Your Current State
Before choosing a cost control technique, answer these five questions:
This is where organizations need the most guidance — and where the right approach depends on your current state. Before choosing a technique, answer these five questions:
1. How Do Users Authenticate to AWS?
Authentication Method | Implications for Cost Control |
|---|---|
AWS IAM Identity Center (IDC) | Richest integration — per-user/group policies, session tags for cost attribution, works natively with all gateway solutions and IAM-based dollar cap enforcement |
SAML/OIDC Federation | Per-role policies, group-based access; identity available for attribution via session tags or gateway. Per-user enforcement requires unique RoleSessionName mapping in your IdP |
2. How Many Users Are Using AI Productivity Tools?
Scale | Governance Complexity |
|---|---|
< 10 users | Minimal — basic visibility and model restrictions suffice |
10–100 users | Moderate — need per-user/team tracking and budget awareness |
100–500 users | High — require automated enforcement, RBAC, dashboards |
500+ users | Enterprise — automated policy engines, chargeback, executive reporting |
3. What Level of Cost Control Is Needed?
Need | Description |
|---|---|
Informational only | Visibility into who's spending what — alerts but no blocking |
Soft limits | Warnings/notifications when thresholds are hit; users can continue |
Hard limits (blocking) | Usage is denied after a budget is exhausted |
Chargeback | Full attribution to cost centers with financial accountability |
4. What Enforcement Speed Does Your Organization Require?
Enforcement Speed | Description |
|---|---|
Real-time (< 1 second) | Request is evaluated and potentially blocked before reaching the model |
Near real-time (1–5 minutes) | Enforcement catches up within minutes of threshold breach |
Batch (hourly/daily) | Alerts and policy updates happen on a schedule |
5. Do You Need Historical Analytics and Advanced Reporting?
- Basic: AWS Cost Explorer with tags + Model invocation logs
- Intermediate: OTEL metrics → CloudWatch/Grafana dashboards with per-user/model/team breakdowns
- Advanced: Dedicated FinOps platform integration (Athena SQL, Amazon QuickSight, custom analytics)
Technique 1: Information-Only (Visibility Without Enforcement)
Best for: Organizations in early adoption that need visibility and attribution before implementing any blocking/enforcement.
Tool coverage:
- ✅ Claude Code/Desktop — fully supported (all Claude models are available with
bedrock-runtime).
- ⚠️ ChatGPT Work/Codex, GitHub Copilot — partially supported if using GPT-5.4/5.5/5.6, DeepSeek R2, Qwen 3, or other models routed through
bedrock-mantle. As of this writing,bedrock-mantlesupports does not support model invocation logging.
1a. Model Invocation Logging
What it provides: Full request/response payloads for every
bedrock-runtime inference call — prompts, completions, token counts, model ID, and the caller's identity.arn .Key details:
- Logs to S3 (gzipped JSON batches) and/or CloudWatch Logs
- Each log entry includes:
timestamp,accountId,region,requestId,operation,modelId,identity.arn,inputTokenCount,outputTokenCount, and full input/output bodies (up to 100KB inline; larger payloads stored separately in S3)
- Queryable via Amazon Athena (S3) or CloudWatch Logs Insights (CloudWatch). Layer Amazon QuickSight on top of Athena for per-user spend views and cost anomaly detection.
Use cases:
- Baseline per-user and per-model token consumption before setting budgets
- Compliance audit — prove what data was sent to/from models
- Feed into downstream analytics (Athena, QuickSight, custom dashboards)
1b. IAM Principal-Based Cost Allocation
What it provides: Automatic recording of the caller identity for every Bedrock API call directly in CUR 2.0 and Cost Explorer — no custom tooling required.
How it works:
- Tag IAM principals with descriptive keys (
department,costCenter,team,project)
- Activate tags for cost allocation in the Billing console
- Enable IAM principal data in CUR 2.0 export
In Cost Explorer: Group and filter by IAM principal tags — visual breakdowns by department, team, project, or any tag dimension.
Gateway considerations: If you route through an AI gateway, the IAM principal in CUR is the gateway's execution role, not the end user. Use distinct IAM roles per consumer group, or session tags via
AssumeRole for dynamic per-request attribution.Key notes:
- Must be activated at the management account level
- No additional charge — but CUR file sizes increase
- Allow up to 24 hours for tags to appear after activation
Technique 2: IAM Deny
Best for: Organizations using IAM Identity Center or IAM users, wanting per-user hard caps with no gateway in the request path and no application changes.
Tool coverage:
- ✅ Claude Code/Desktop — fully supported.
- ⚠️ ChatGPT Work/Codex, GitHub Copilot — Calls through
bedrock-mantleare not captured and cannot trigger the deny policy.
How it works: The Bedrock Dollar Cap solution monitors model invocation logs, prices each call in real dollars, accrues spend per user per month in DynamoDB, and automatically attaches an IAM deny policy when a user crosses their budget.
Flow:
Bedrock Invocation → Model Invocation Logging → CloudWatch Logs → Subscription Filter → Accumulator Lambda → Enforcement Lambda (attach IAM deny) → User blocked Identity resolution: Works out of the box for IAM Identity Center and IAM Users (identity.arn is unique per user). For SAML/OIDC federation, requires unique RoleSessionName mapping in your IdP. Shared roles with static session names cannot be enforced per-user.
Key details:
- Enforcement latency: Near real-time (seconds to low minutes)
- IAM IDC: Scoped inline deny on the permission set; IAM users: unconditional inline deny
- Other assumed-role identities: Metered but not enforced (avoids blocking service roles)
When to choose: Hard per-user dollar caps, no proxy in request path, fully serverless AWS-native.
Limitations: No model routing or request-level policy (purely a dollar cap); no built-in dashboard; SAML/OIDC requires unique RoleSessionName; binary lockout once capped.
Technique 3: AI Gateway
An AI gateway sits in the request path between your users and the model provider (Amazon Bedrock). It intercepts every request and can enforce authentication, budget limits, model routing, and logging — all without changes to the developer's workflow.
Tool coverage: All sub-flavors below work for Claude Code/Desktop, ChatGPT Work/Codex, and GitHub Copilot — the gateway intercepts at the API layer regardless of which tool or endpoint (
bedrock-runtime or bedrock-mantle ) is used.Common architecture (applies to all sub-flavors below):
User → Claude Code/Desktop (ANTHROPIC_BASE_URL pointed at gateway)↓AI Gateway (SaaS / Self-hosted / Managed)├── SSO / API Key Authentication├── Per-user/team budget check (allow/deny)├── Model routing (user/group → model mapping)├── Request/response logging├── OTLP telemetry emission└── Upstream: Amazon Bedrock (regional/CRIS)The difference between sub-flavors is who runs the gateway and what features are native:
3a. Managed AI Gateway (Portkey, TrueFoundry, Maxim/Bifrost, OpenRouter etc.)
Best for: Organizations that want enterprise-grade governance without managing gateway infrastructure themselves.
How it works: A third-party SaaS platform runs the gateway. You point your tool's base URL at their endpoint. They handle proxy infrastructure, dashboard UI, alerting, and upgrades.
Key capabilities:
- Per-user/team budgets ($ and tokens) with real-time enforcement (block or alert)
- Model routing rules (e.g., route simple tasks to Haiku/Luna, complex to Sonnet/Terra)
- Built-in admin dashboards — no external setup required
- Request/response logging, rate limiting, cost attribution
- Multi-provider support (Bedrock + other providers)
- SSO integration (varies by provider)
When to choose: Fastest time-to-value, minimal ops overhead, polished admin UI for non-technical stakeholders. OpenRouter currently offers their AI Gateway at no cost for up to $25k/month inference spend with BYOK. Refer to their latest pricing as terms may change.
3b. Self-Managed AI Gateway (e.g. LiteLLM)
Best for: Multi-model organizations needing routing flexibility, teams comfortable managing open-source infrastructure, or those who need a rich admin UI in their own account.
How it works: LiteLLM is an open-source AI gateway (28K+ GitHub stars) you deploy in your own AWS account. It provides a unified OpenAI-compatible API across 100+ model providers including Bedrock. See the Claude Code Bedrock Enterprise Blueprint for a production-ready reference architecture.
Key capabilities:
- Per-user/team budgets with configurable enforcement (block or alert)
- Model routing based on user, team, or request attributes
- Virtual keys: Per-developer API keys mapped to shared Bedrock credentials
- Built-in cost tracking dashboard and request/response logging
- Rate limiting: $ value, RPM, and TPM per user or team
- SSO integration via OIDC/SAML
When to choose: All data stays in your account, multi-provider governance needed, comfortable with Docker/Kubernetes operations.
Considerations: Self-managed operational burden (upgrades, scaling, HA); security responsibility on your team; community-driven with possible breaking changes.
3c. Anthropic-Provided Self-Managed Gateway (Claude Apps Gateway)
Best for: Organizations standardized on Claude Code/Desktop wanting an Anthropic-maintained, protocol-native governance layer with zero additional licensing cost.
How it works: The Claude Apps Gateway is a self-hosted service built into the
claude binary. Because it ships with Claude Code, it understands the full protocol — every header, body field, and streaming extension is forwarded correctly without maintaining a separate allowlist.Key capabilities:
- SSO authentication: OIDC (Okta, Entra ID, Google Workspace, Keycloak) — no API keys on developer machines
- Per-user/group spend limits: Token and dollar budgets enforced server-side before reaching Bedrock. Spend limits workshop →
- Model access control by IdP group: Map groups to model allowlists (e.g., juniors get Haiku + Sonnet only)
- OTLP telemetry: Identity-stamped metrics → any OTEL-compatible backend
- Managed settings delivery: Centrally push allowed tools, permissions, effort levels, and MCP configs
- Multi-provider failover: Bedrock → Google Cloud → Anthropic API
When to choose: Zero licensing cost, Anthropic-maintained protocol compatibility, real-time per-user spend limits, lightweight footprint (single binary + Postgres), primary tools are Claude Code/Desktop.
Current limitations (July 2026):
- Must be deployed as a private endpoint (requires client VPN or equivalent)
- No web UI for policy/spend monitoring (supplement with Grafana or CloudWatch on OTLP output)
- OIDC-only — use a SAML-to-OIDC bridge like Dex if needed
- Claude-only: Does not support ChatGPT Work/Codex, GitHub Copilot, or other non-Claude tools. For unified multi-tool governance, use 3a, 3b, or 3d instead.
3d. AWS Managed AI Gateway (Amazon Bedrock AgentCore)
Best for: Organizations wanting a fully managed AWS-native AI gateway with custom enforcement via Lambda interceptors — especially those needing a single gateway across multiple tools (Claude Code/Desktop, ChatGPT Work/Codex, GitHub Copilot, OpenCode, Kilo Code etc.).
How it works: Amazon Bedrock AgentCore Gateway is a fully managed gateway providing a single, secure entry point for agentic traffic. It supports inference targets that route requests across multiple model providers through a unified endpoint.
Key capability for FinOps: Lambda REQUEST interceptors execute custom code before the gateway calls the inference target — query DynamoDB for accrued spend, compare against the user's cap, and return a deny response before the inference call reaches Bedrock. Near real-time enforcement in a fully managed, serverless architecture.
Key capabilities:
- Fully managed — no infrastructure to operate, auto-scales
- Comprehensive authentication (ingress + egress)
- Lambda interceptors for custom enforcement, transformation, and authorization
- Built-in observability and auditing via CloudWatch
When to choose: AWS managed infrastructure, need unified governance for multiple productivity tools (Claude Apps Gateway supports Anthropic tools only), minimal scaffolding.
Cost: Two Lambda functions with provisioned concurrency (~60ms overhead P90) — approximately $250/month for 100 users (~30 concurrent active).
Technique 4: OTEL-Based Monitoring + AWS Native Controls (Maintenance Mode)
[!CAUTION] This solution is now in maintenance mode and no new features might be added. Please explore different variants of Technique 3 instead.
Best for: Organizations with existing observability stacks (CloudWatch, Grafana) that want rich telemetry, quota enforcement, and dashboards — with optional per-user blocking
How it works: The Guidance for Claude Code with Amazon Bedrock provides a complete OTEL-based monitoring system. It supports both a centralized ECS Fargate collector (with Athena SQL analytics pipeline for long-term historical analysis) and a lightweight sidecar mode — a local Go binary (
otel-helper , ~15–20MB) that sends metrics directly to the CloudWatch OTLP endpoint using SigV4 auth.Per-user quota enforcement:
- A quota monitor Lambda runs every 15 minutes, fetches per-user token usage via PromQL, writes results to a DynamoDB table
- A quota check Lambda provides real-time allow/block decisions by reading DynamoDB (fast reads, at most 15 minutes stale)
- Both Claude Code and Desktop usage count toward the same per-user quota
Dashboard sections (native CloudWatch PromQL):
- Overview: Total tokens, active users, sessions, cache hit rate
- Token Usage: By type, by model, top users, cost by user
- Developer Productivity: Lines of code, commits, active hours, PRs, code generation by language
- Organizational Breakdown: Token usage by department and team
- Bedrock API Health: Throttles, client errors, server errors by model
Per-user attribution depends on auth type:
- OIDC: Extracted from JWT
emailclaim — richest dimensions (department, team, project from JWT claims)
- IAM Identity Center (with credential-process binary): Resolved from IAM ARN session name (
assumed-role/Role/user@company.com)
When to choose OTEL + AWS Native:
- You want comprehensive developer productivity metrics alongside cost data
- You have an existing CloudWatch/Grafana investment you want to leverage
- You need historical analytics (Athena SQL over months of data)
- You want quota enforcement without a full AI gateway (the quota Lambda provides blocking)
- You want zero added latency in the request path (telemetry is out-of-band)
Considerations:
- More complex initial setup than gateway-based approaches. Also, there can be breaking changes between versions.
- Quota enforcement has ~15 minute staleness (vs. real-time in AI gateways)
Choosing the Right Technique: Decision Matrix
Criteria | AI Gateway (Managed) | AI Gateway (LiteLLM) | Claude Apps GW | AgentCore GW | IAM Deny | OTEL + AWS Native | Information-Only |
|---|---|---|---|---|---|---|---|
Tool Coverage | All Tools | All Tools | Claude Code/Desktop only | All Tools | All tools except Codex | Claude Code/Desktop only | All tools |
Setup complexity | ⭐ Low | ⭐⭐ Medium | ⭐⭐ Medium | ⭐⭐ Medium | ⭐⭐ Medium | ⭐⭐⭐ High | ⭐ Low |
Real-time enforcement | ✅ Per-request | ✅ Per-request | ✅ Per-request | ✅ Per-request | ✅ Near real-time | ⚠️ ~15 min | ❌ None |
Per-user budgets | ✅ | ✅ | ✅ | ✅ (Lambda) | ✅ | ✅ (quota Lambda) | ❌ (visibility only) |
Model routing | ✅ | ✅ | ✅ (group-based) | ✅ | ❌ | ❌ | ❌ |
Analytics dashboard | ✅ Built-in | ✅ Built-in | ⚠️ (OTLP → external) | ⚠️ (CloudWatch) | ❌ | ✅ (PromQL + Athena) | ✅ (Cost Explorer) |
Data stays in your account | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Added request latency | ~10–50ms | ~10–50ms | ~10–50ms | ~10–50ms | None | None | None |
Protocol-aware (Claude Code) | ⚠️ Partial | ⚠️ Partial | ✅ Full | ⚠️ Partial | N/A | N/A | N/A |
Supports Desktop | ✅ | ✅ | ✅ | ✅ | ✅ (same IAM) | ✅ | ✅ |
Cost | Per-request/seat | Free (self-host) | Free (self-host) | AWS pricing | AWS Pricing for Lambda and API Gateway | $300–400/mo | Free |
Recommended Approach by Maturity Stage
Stage 1: Getting Started (Weeks 1–4)
"We just enabled Bedrock for AI productivity tools and need basic guardrails"
- Information-only (Technique 1): Enable Model Invocation Logging to S3 and activate IAM Principal-Based Cost Allocation — your foundation for all future analytics. For tools using
bedrock-mantle, enable CloudWatch AI Coding Agent Insights .
- Cost allocation tags: Tag IAM principals by team/user (
department,costCenter,project)
- AWS Budgets: Set org-level and team-level monthly dollar alerts
- IAM policies: Restrict model access to what's needed (e.g., deny Opus/Fable/Sol unless explicitly required)
- CLAUDE.md / AGENTS.md / copilot-instructions.md: Deploy standardized cost-efficient defaults (medium effort, compact reminders)
Stage 2: Scaling (Months 2–3)
"We have 50+ users and need per-user visibility and soft limits"
Choose one gateway (Technique 3):
- Claude Apps Gateway (3c) if your primary tools are Claude Code/Desktop and you want Anthropic-maintained protocol compatibility
- LiteLLM (3b) if you need multi-provider routing, a built-in admin UI, or already have LiteLLM in your stack
- AgentCore Gateway (3d) if you want fully managed AWS-native with custom Lambda enforcement — especially for unified governance across Claude Code/Desktop, ChatGPT Work/Codex, and GitHub Copilot
- Managed gateway (3a) if you want fastest time-to-value and minimal operational overhead
Add:
- OTEL monitoring → PromQL dashboards for per-user/team visibility
- Per-team budget policies (soft limits with notifications)
- Model access tiers (cheaper models for all, premium by exception)
- Adaptive thinking controls (default to medium effort, high/max by policy)
Stage 3: Enterprise (Months 3+)
"We need hard limits, chargeback, and compliance reporting"
- Full gateway deployment with per-user hard budgets (gateway-based or IAM deny as fallback)
- IAM Principal-Based Cost Allocation → CUR 2.0 → finance systems for chargeback
- Reserved tier capacity planning based on usage patterns
- Quarterly access reviews and model tier optimization
- Athena SQL analytics pipeline for long-term historical reporting
- Automated cost anomaly detection (sudden per-user spikes → auto-alert + temporary throttle)
Cost Optimization Techniques (Claude Code/Desktop)
Once you have visibility and governance in place, the next lever is optimizing the cost per interaction. Budget caps and gateways prevent surprise bills — but cost optimization reduces the baseline spend itself, meaning budgets last longer, more users can be onboarded within the same envelope, and developers hit their caps less frequently.
Note: The techniques below are specific to Claude Code/Desktop. Cost optimization guidance for ChatGPT Work/Codex and GitHub Copilot will be covered in subsequent posts.
Many techniques below are developer-level best practices, but several can be enforced centrally through managed settings via MDM or Claude Apps Gateway (model selection, effort levels, tool permissions).
1. Model Selection and Routing
Model | Input/Output (per 1M tokens) | Best For |
|---|---|---|
Claude Fable 5 | $10 / $50 | Frontier reasoning, advanced agentic coding |
Claude Opus 4.8/4.7/4.6 | $5 / $25 | Complex reasoning, multi-step tasks |
Claude Sonnet 5/4.6 | $3 / $15 | Daily driver — most coding tasks. Sonnet 5's introductory pricing is lower, but updated tokenizer can result in higher token counts. |
Claude Haiku 4.5 | $1 / $5 | Fast completions, simple edits, boilerplate |
Savings lever: Route 60% of routine interactions to Haiku → 40–50% total spend reduction.
2. Adaptive Thinking Controls
Extended thinking tokens are charged at output token rates. Set organizational default effort to medium via managed settings. On Fable 5, thinking is always on and cannot be disabled. In high-effort sessions, thinking tokens can exceed output by 3–5×.
3. CLAUDE.md and Rules for Cost-Efficient Behavior
CLAUDE.md loads every session — it eliminates context re-establishment, reduces correction cycles, and prevents wrong-path exploration. Keep it under 200 lines. Use
.claude/rules/*.md with path-scoped frontmatter for file-type-specific guidelines that load on-demand only.4. Prompt Caching
Automatic for Claude Code sessions. Cache writes: 25% premium. Cache reads: 90% discount. Savings of 50–70% on input tokens for sessions referencing the same codebase.
5. Context Window Management
-
/clearbetween tasks — stale context wastes tokens on every message
-
/compact Focus on X— targeted summarization before switching focus
- Delegate large reads to subagents — file contents stay in their context, not yours
- Language servers for symbol navigation (one call vs. grep + multiple file reads)
- Hooks to preprocess data (grep for errors instead of Claude reading 10K lines)
-
.claudeignoreto exclude node_modules, build artifacts, .git
6. Reserved Tier for Predictable Scale
Reserve tokens-per-minute for 1-month or 3-month durations. 99.5% uptime SLA, eliminates throttling. Cost-effective when utilization exceeds 60% of capacity. Track peak TPM over 2–4 weeks. Currently supports Opus 4.6, Sonnet 4.6, Haiku 4.5 — see model cards .
7. Move Instructions from CLAUDE.md to Skills
Skills load on-demand only when invoked. Move multi-step procedures, workflow guides, and large reference material into skills. Keep CLAUDE.md for build commands, architecture, and universal rules.
8. Context Reduction with Open-Source Tools
- rtk — CLI proxy (Rust binary) that filters/compresses command outputs. Claims 60–90% token reduction with <10ms overhead.
- Codegraph — Semantic code knowledge graph for instant symbol lookups via single MCP tool call instead of multiple file reads.
> ⚠️ These are community open-source projects, not AWS-native services. Conduct security review, run a POC, verify licensing, and assess community support before adopting.
Summary: The FinOps Stack for Claude Code and Desktop on Bedrock
┌─────────────────────────────────────────────────────────────┐│ USER EXPERIENCE ││ Claude Code CLI/IDE + Claude Desktop (Chat/Cowork/Code) ││ ├── CLAUDE.md + Skills (cost-efficient defaults) ││ ├── Effort levels (adaptive thinking control) ││ └── Seamless — no workflow disruption │└─────────────────────────┬───────────────────────────────────┘ │┌─────────────────────────▼───────────────────────────────────┐│ GOVERNANCE LAYER ││ AI Gateway (Claude Apps GW / LiteLLM / AgentCore / Managed)││ ├── SSO Authentication ││ ├── Per-user/team budget enforcement (or IAM Deny) ││ ├── Model access control (group → model mapping) ││ └── OTLP telemetry emission │└─────────────────────────┬───────────────────────────────────┘ │┌─────────────────────────▼───────────────────────────────────┐│ INFERENCE LAYER ││ Amazon Bedrock ││ ├── CRIS profiles (geographic / global) ││ ├── Reserved Tier (cost optimization at scale) ││ ├── Model Invocation Logging (content audit) ││ ├── CloudTrail (access audit) ││ └── IAM Principal-Based Cost Allocation (CUR 2.0) │└─────────────────────────┬───────────────────────────────────┘ │┌─────────────────────────▼───────────────────────────────────┐│ OBSERVABILITY LAYER ││ OTEL Collector → CloudWatch / Grafana ││ ├── Per-user cost attribution ││ ├── Model + thinking token usage patterns ││ ├── Budget burn rate alerts + Quota enforcement ││ └── Executive FinOps dashboards │└─────────────────────────────────────────────────────────────┘
Getting Started
- Enable Model Invocation Logging — Foundation for all cost visibility and downstream enforcement
- Activate IAM Principal-Based Cost Allocation — Per-identity spend in Cost Explorer and CUR 2.0
- Deploy standardized CLAUDE.md — Reduce per-session token waste
- Set AWS Budget alerts — Basic dollar thresholds prevent surprises
- Evaluate your gateway needs — Use the decision matrix to pick the right approach
- Iterate — Start with visibility (Stage 1), add enforcement (Stage 2), optimize (Stage 3)
The organizations that succeed with AI-assisted development at scale are the ones that treat Claude Code and Desktop spend like any other cloud resource: visible, attributable, and governed — without sacrificing the user experience that makes it valuable in the first place.
References
Series: AI Governance powered by AWS (2 articles)
- 1FinOps for AI Productivity tools on Amazon Bedrock This article
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article