Query Azure retail pricing from the command line and turn infrastructure cost assumptions into something explicit and reproducible.
cloudcost is a Go CLI for exploring Azure service prices without jumping between pricing pages or copying values into spreadsheets. It queries the Azure Retail Prices API, filters results by service, region, SKU and pricing model, and can calculate usage-oriented cost estimates for common billing units.
| Dark theme | Light theme |
|---|---|
![]() |
![]() |
Cloud architecture decisions often contain hidden cost assumptions: a region is selected because it is "usually cheaper", a SKU is copied from an old estimate, or hourly pricing is compared without normalising it to expected usage.
cloudcost makes those assumptions easier to inspect from the terminal. It is useful during architecture reviews, FinOps investigations, infrastructure design and quick comparisons while working on Terraform or platform changes.
- Queries the public Azure Retail Prices API.
- Filters Azure pricing by region, service, SKU/type and pricing model.
- Supports currencies exposed by the Azure pricing API.
- Displays retail price, unit of measure, region, meter and product information in a terminal table.
- Calculates estimates for hourly, monthly, data-volume and event-based billing units.
- Provides shell completion through Cobra.
Use the Azure calculator command to narrow a pricing query:
cloudcost azure calculator --region <region> --service <service> --type <sku> --currency EURAdd usage parameters when you want to estimate a cost rather than only inspect the retail unit price:
cloudcost azure calculator \
--region <region> \
--service <service> \
--currency EUR \
--days 30 \
--bandwidth 10Run the built-in help for the exact options supported by your version:
cloudcost --help
cloudcost azure --help
cloudcost azure calculator --helpgit clone https://github.com/Simplifi-ED/cloudcost.git
cd cloudcost
go build -o cloudcost .Then move the binary somewhere on your PATH.
The repository previously referenced an external Homebrew tap. Until a maintained package is published from this organization, building from source is the most explicit installation path.
cloudcost builds a filter from the command-line parameters and queries:
https://prices.azure.com/api/retail/prices
Azure can return multiple pages of matching meters. The CLI follows the API pagination links and renders the resulting SKUs and meters as a terminal table.
For hourly resources, the displayed monthly reference price uses 730 hours. Usage estimates are derived from the billing unit returned by Azure, so they should be treated as architecture and comparison aids rather than invoices.
- Azure is currently the supported cloud provider.
- Prices come from the Azure Retail Prices API and may differ from negotiated enterprise pricing, private offers, credits, taxes or contractual discounts.
- Cost calculations are estimates. Validate material financial decisions against the pricing terms that apply to your subscription and contract.
- A returned meter does not prove that a given architecture is valid or available for your specific subscription.
Requirements:
- Go
Build:
go build -o cloudcost .Run tests:
go test ./...Issues and pull requests are welcome. For substantial behavioural changes, open an issue first so the intended pricing model and expected output can be discussed explicitly.
This project is part of the public engineering work maintained by Omnivya, focused on cloud, platform engineering, reliability, security and infrastructure automation.
Licensed under the Apache License 2.0.

