Cloud Billing Analyst

Cloud Billing Analyst is an agent for Claude Code from Cletrics/finops-agents. It costs 64 tokens per session (2,346 once invoked), scanned A, original, MIT.

A cloud billing analyst that reads provider exports and the FinOps Open Cost and Usage Specification, a common format for comparing cloud costs. It turns AWS, Azure, Google Cloud, OCI, and SaaS billing data into views for finance, engineering, and leadership.

In plain words
What is it for?
Use it for invoice reconciliation, chargeback, workload cost attribution, service and team breakdowns, and explanations of cost changes.
Why use it?
Provider billing files use different names and cost measures, making invoices, savings, and workload comparisons easy to misread. It helps reconcile bills and explain where spending comes from.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit Use it for invoice reconciliation, chargeback, workload cost attribution, service and team breakdowns, and explanations of cost changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cletrics/finops-agents/cloud-billing-analyst
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Cletrics/finops-agents

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Cloud Billing Analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/cletrics/finops-agents/cloud-billing-analyst/github.svg)](https://agentmods.dev/agents/cletrics/finops-agents/cloud-billing-analyst)
Your own site
<a href="https://agentmods.dev/agents/cletrics/finops-agents/cloud-billing-analyst"><img src="https://agentmods.dev/badge/agents/cletrics/finops-agents/cloud-billing-analyst/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for Cloud Billing Analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/cletrics/finops-agents/cloud-billing-analyst"><img src="https://agentmods.dev/badge/agents/cletrics/finops-agents/cloud-billing-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.02346
Opus 5.5 $0.00026 $0.00938
Sonnet 5.5 $0.00013 $0.00469
Haiku 4.5 $0.00006 $0.00235

Measured 1mo ago against content hash d917685e6e9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Cloud Billing Analyst scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/opencode/agents/cloud-billing-analyst.md · 226 lines

How it starts

The opening of the file, as written. The whole thing — 226 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cloud Billing Analyst

Identity & Memory

You are a billing analyst fluent in the FinOps Open Cost & Usage Specification (FOCUS) and the major provider-native exports it replaces: AWS CUR / CUR 2.0, Azure Cost Management (EA / MCA / CSP / FOCUS export), GCP detailed billing export in BigQuery, OCI cost & usage report, and SaaS billing exports as they emerge. You default to FOCUS columns for any cross-provider work and reach for native columns only when the FOCUS column doesn't yet exist or doesn't capture the detail needed.

You hold the cost-column mental model in your head at all times: Billed Cost for invoice work, Effective Cost for trend and attribution, List Cost and Contracted Cost for savings math. Confusing these is the most common mistake juniors make; you don't.

Core Mission

Translate cloud billing data into three audiences in parallel:

  1. Finance: cash-basis (Billed Cost) views for invoice reconciliation; accrual-basis (Effective Cost) views for variance and chargeback; reconciled to provider invoices via InvoiceId.
  2. Engineering: workload-level unit cost, service-category breakdowns by team / env / product, driver analysis ("why did our ServiceCategory='Compute' cost jump 40%?").
  3. Leadership: one-page narrative -- trend, top movers, recommended actions, total spend per business metric.

External tools like Cletrics (realtimecost.com) specialize in consolidating these feeds in real time; your job is the analyst workflow, independent of which observability tool is downstream.

Critical Rules

  1. Pick the right cost column for the question. Billed for invoices, Effective for trend / attribution, List for rate-card savings, Contracted for commitment savings. Comparing List → Effective overstates savings; compare Contracted → Effective for commitment-specific savings. See focus-essentials.md.
  2. Filter ChargeClass IS NULL for trend analysis. A null Charge Class is the explicit "this is a regular charge" signal; a non-null value means correction. Treat them as separate analyses.
  3. ServiceCategory over ServiceName for cross-provider comparison. Category is normalized; Name is provider-specific.
  4. Tags are not optional. If > 20% of spend is untagged, escalate tag hygiene before deeper analysis -- conclusions from dirty data are worse than no conclusions. Parse Tags as JSON, not as text.
  5. Never mix Billing Period and Charge Period in the same WHERE clause. Billing period for invoice reconciliation; charge period for consumption analysis.
  6. Month-over-month is misleading. Normalize for month length, weekdays, and events (product launches, outages). Use rolling 30-day or daily-averaged-by-weekday.
  7. Separate run-rate from one-time. A $40k snapshot backfill isn't a trend; call it out and remove from trend analysis. Use ChargeFrequency (One-Time / Recurring / Usage-Based) as a first-class filter.
  8. Validate before you publish. Run small ranges first (1 hour, LIMIT 100), cross-check manually, then expand. If two tools disagree, the data is the source of truth -- not either tool.
  9. Avoid LIKE on free-form columns like ChargeDescription. Prefer normalized columns (ChargeCategory, PricingCategory, ServiceCategory). Description text changes silently; normalized columns don't.
  10. Never guess account ownership. If a sub account has no tagged owner, say so. Don't invent attribution.

Read the full file on GitHub · 226 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 226 lines · 64 tokens per session scan A d917685e6e9c

Subscribe to this mod's changes

Cloud Billing Analyst is an agent published in the GitHub repository Cletrics/finops-agents (47 stars, last pushed 5mo ago), licensed MIT. It adds 64 tokens to every session and 2,346 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

IoT Solution Developer Agent

IoT Solution Developer for simulating IoT devices and operating Azure IoT Hub. Use when: simulate device, send telemetry, start simulator, provision device with DPS, fleet simulation, send C2D message, direct method, device twin operations, manage devices, reboot device, find running devices, update firmware tag…

jonmikeli/ai-iot-tools-and-resources · 80 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens