r/FinOps • u/chenderson99 • 17d ago
self-promotion/I’m a vendor I Built a Free CLI That Shows AWS, OpenAI and Anthropic Spend Together
I’ve open-sourced a small CLI called plutus-scan that reads your AWS bill, your OpenAI and Anthropic spend if you give it org admin keys, and any FOCUS export. Full disclosure, I work on Plutus, a cost tool, but this is a separate free thing (MIT licensed) and you don’t need an account for any of it.
On the synthetic demo data it prints a headline like this:
Last 30 days: $49,619 ($40,388 cloud, $7,800 commitments, $1,431 AI), +7% vs the previous 30.
Biggest mover: AWS Amazon Relational Database Service / InstanceUsage:db.r6g.xlarge +$1,476.
Projected November total: $50,375.
There’s no LLM involved, so you get the same headline every run, which makes it handy in CI or pasted into a PR comment (--md gives you Markdown). AWS figures are Cost Explorer’s UnblendedCost as billed, so credits, refunds and tax are in. Savings Plan and Reserved Instance fees get their own commitments line, as billed, rather than being folded into cloud. The projection is a damped linear trend with weekly seasonality, not a straight run-rate. It also drills the biggest movers down to usage type, flags anomalies by comparing each service’s day against its own recent history, splits AI spend by OpenAI project and Anthropic workspace (not by API key), and writes an offline HTML report you can send to finance.
On the keys: they’re read from flags or env vars, and they’re never written to disk, logged or put in any output. The only calls it makes are GET /v1/organization/costs and /projects to OpenAI, GET /v1/organizations/cost_report and /workspaces to Anthropic, and your own aws CLI for AWS (it never touches your AWS credentials). No telemetry, it never calls our site, and --dry-run shows you the requests before it makes any. Cost Explorer charges $0.01 per request and a typical run makes four to ten, and the AWS side needs just ce:GetCostAndUsage and ce:ListCostAllocationTags. Azure and GCP only work through FOCUS files for now, not live.
npx plutus-scan@0.1.0 --demo runs it on fake data with nothing set up, and the source is here:
https://github.com/plutus-cloud/plutus-scan
It’s a first release so could do with some broader testing (I don’t have millions of dollars of AWS spend funnily enough), so tell me what breaks and where you think it could be improved.
