Open source · Product & Operations

Automation Cost Estimator

Estimate automation cost from runs, model use, compute and operator review.

v0.1.0 · Node.js 22+ · MIT

Browse the public repository · View releases

Offline, read-only estimation from an exported JSON document. No provider prices are fetched, and token counts are supplied rather than inferred. The report calls computed costs estimatedUsd; optional historical spend stays in measuredSpendUsd. A baseline comparison is labelled projectedSavingsUsd, never achieved savings.

This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.

Run the checked-in example

node bin/automation-cost-estimator.mjs --root examples --input passing.json
node bin/automation-cost-estimator.mjs --root examples --input incomplete.json --human
npm run check

Read the result

--root names the evidence directory. --input is relative to it. The optional --out report.json writes the same JSON report inside the root after checking the destination. JSON always goes to stdout; --human adds a short summary on stderr. --help lists options. No option makes a network request or changes the input. A bad option/configuration gives exit 2 with empty stdout. An unreadable, non-UTF-8, malformed or unsupported input gives an incomplete JSON report and exit 2.