Blog
plutus-scan: AWS, OpenAI and Anthropic spend in one command
We have released plutus-scan, an open-source command line tool that reads your AWS bill, your OpenAI spend and your Anthropic spend and prints a headline covering all three. It runs on your machine, needs no Plutus account and uses no LLM. It is MIT licensed and the source is at github.com/plutus-cloud/plutus-scan.
What does one command print?
A headline with cloud and AI spend together, the change against the previous 30 days,
the biggest mover and a month-end projection. This is an excerpt from
plutus-scan --demo, piped to a file on 13 November 2026. It runs on synthetic data for a
fictional company called Example Corp, so it is demo data and not anyone’s real bill. The dates
follow the day you run it, and the figures move a little with them.
Headline
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.
The $7,800 commitments figure is Savings Plan and Reserved Instance fees, counted as a category
beside cloud usage and AI. They appear as the bill charges them, so an upfront purchase lands in
the period you paid it and is not spread across the term. plutus-scan does not use amortised
cost.
In the same output it lists the top drivers drilled down to usage type, so EC2 - Other becomes
NatGateway-Bytes, plus anomalies, and AI spend split by project:
Anomalies
cost baseline change severity
2026-10-29 AWS EC2 - Other $438 $116 +$323 high
AI by project
OpenAI support-bot $1,590 41.3%
Anthropic support-bot $1,586 41.2%
OpenAI search-assist $672 17.5%
In a terminal it also writes a self-contained HTML report and opens it. The report is one file with its data inlined, and it makes no network requests when you open it. You can send it to finance as an attachment.
Where does the data come from?
- AWS comes through your own
awsCLI. plutus-scan never reads your AWS credentials. It inherits whatever profile or SSO sessionawsalready uses and runsaws ce get-cost-and-usage,aws ce list-cost-allocation-tagsandaws sts get-caller-identity. The figures are Cost Explorer’sUnblendedCost, with credits, refunds and tax as billed. The S3 commands below run only for ans3://FOCUS input. - OpenAI and Anthropic come from their organisation cost APIs, with an admin key for each.
Spend is split by model and by project or workspace. The OpenAI calls are
GET /v1/organization/costsandGET /v1/organization/projects. The Anthropic calls areGET /v1/organizations/cost_reportandGET /v1/organizations/workspaces. Nothing else is requested. - FOCUS exports are read from a file, a directory or an S3 prefix. That is the route for Azure
and Google Cloud, which are not read live. An
s3://prefix is read withaws s3 lsandaws s3 cp.
The admin keys are read from OPENAI_ADMIN_KEY and ANTHROPIC_ADMIN_KEY, or from the
--openai-key and --anthropic-key flags. They are never written to disk, logged or included in
any output. For AWS, the README gives a read-only IAM policy of ce:GetCostAndUsage and
ce:ListCostAllocationTags, plus s3:ListBucket and s3:GetObject (and kms:Decrypt for an
encrypted bucket) for an S3 FOCUS input. Cost Explorer shows every account only from the
management account of an AWS Organization.
Cost Explorer bills per request. A typical run makes four to ten of them, and every output prints
the actual count and cost. --max-aws-requests sets a hard cap if you want one.
How is the month-end projection worked out?
The projection is spend so far this month plus a forecast of the days still to come. The forecast is a damped linear trend fitted to recent daily spend, with weekly seasonality added once there are three full weeks of data. Charges billed once on the 1st, such as tax and a monthly Reserved Instance fee, are spread evenly over the month in this calculation, so they do not distort the trend. Treat the result as an estimate of where the month is heading and not as a figure to quote.
Isn’t this aws ce in a loop?
Partly, yes, for the AWS half. You could also ask an AI assistant with the AWS billing MCP server what changed. plutus-scan differs in three ways.
- It covers OpenAI and Anthropic too. Your inference spend lands in the same headline as your EC2 spend.
- It gives the same headline every run. No LLM is involved, so the same data produces the
same words. That is what lets you run it in CI or
paste it into a pull request comment.
--mdwrites a Markdown summary that renders on GitHub. - It needs no LLM and no MCP client. There is no key to provision for an assistant and no prompt to tune.
What leaves your machine?
Requests to the providers you configure, and nothing else. plutus-scan sends no telemetry, makes
no update check and never contacts plutus-cloud.com. --dry-run shows the requests it would
make, with an aws command for each billed AWS one, and makes none of them. The README lists the
hosts and the read-only IAM policy, which for the AWS part is two Cost Explorer actions.
What does it not do?
It reads the bill and changes nothing. It does not open pull requests and has no write access to anything. It lists usage types whose billing line names often hide waste, and it matches on those names alone. For rightsizing it leaves the job to AWS Cost Optimization Hub and Compute Optimizer, which read utilisation.
Try it
Run it on demo data first. It needs Node 20 or later and nothing else.
npx plutus-scan --demo
Then on your own bill, with AWS CLI v2 signed in and, if you want AI spend, an admin key for each provider:
OPENAI_ADMIN_KEY=... ANTHROPIC_ADMIN_KEY=... npx plutus-scan
plutus-scan is a snapshot of one bill. Plutus tracks the same spend daily, by team and by customer, with alerts. The scanner works without it.