Open source / Kulshan
Kulshan
An open-source AWS cost investigation toolkit. It collects evidence, identifies cost drivers and generates structured findings.
01 / Why
Why it exists.
Cost investigations stall because the evidence is scattered. Billing data sits with finance, architecture with engineering, ownership with whoever set up the tags. Each time the question comes up, someone pulls it all together by hand.
Kulshan builds one reproducible, inspectable evidence base instead. It is the tool I use in my own investigations, and you can run it without hiring me.
02 / Use
Install and run.
Uses the same credential chain as the AWS CLI: a profile or an assumed role. Python 3.11+ on macOS, Linux or Windows.
$ pip install kulshan
$ kulshan preflight # check credentials and permissions
$ kulshan report # cost baseline (default)
$ kulshan report -o report.html # HTML report
$ kulshan report --packs all --regions us-east-1 --deep
$ kulshan cur discover # find Data Exports and CUR
$ kulshan history # past scans
$ kulshan mcp-serve # MCP server for local agents
Optional extras: kulshan[mcp], kulshan[pdf], kulshan[excel], kulshan[pptx], kulshan[all]. Check the README for the current command set before relying on a specific flag.
03 / Capabilities
What it does.
Current release: Kulshan 0.7.1.
- Cost evidence
- Cost Explorer: cost and usage, anomaly history, forecasts, RI and Savings Plans utilization. CUR and Data Export Parquet files read in place. Anomaly detection with z-score, IQR and MAD.
- Packs
- Ten diagnostic packs: cost, security, sweep, dr, age, drift, tag, pulse, limit, topo. Run one, several, or
--packs all. - Findings
- Scored 0 to 100, with evidence IDs, provenance, billing-integrity status and a human review flag.
- Output
- Terminal, HTML, JSON, SARIF, CSV.
- Workspaces
- Separate environments per payer, linked when they share one. Local SQLite history of every scan.
- Evidence export
- A consultant evidence package that replaces account and resource identifiers with aliases, behind validation gates, before it leaves your environment. How it works.
- Agents
kulshan mcp-serveexposes deterministic evidence to MCP clients over stdio.
04 / Packs
The ten packs.
- cost
- Anomalies, commitment gaps, spend acceleration, forecasts
- security
- IAM, encryption, network exposure, logging, public access, GuardDuty
- sweep
- Orphaned volumes, unused Elastic IPs, idle load balancers, detached ENIs, empty repositories
- dr
- Backup coverage, single-AZ resources, single points of failure, missing replication
- age
- End-of-life runtimes, expiring certificates, stale AMIs, outdated engines
- drift
- CloudFormation drift, IaC coverage, severity
- tag
- Missing required tags, unattributed spend, inconsistent keys
- pulse
- Alarm gaps, missing metric filters, observability blind spots
- limit
- Service quota headroom, services at their limit, scaling risk
- topo
- CIDR overlaps, route integrity, peering issues, Transit Gateway configuration
05 / Trust
Read-only by construction.
There is no write path to turn off. The published IAM policy contains no action that creates, modifies or deletes an AWS resource.
- Execution
- Local. Your credentials, your machine. Reports stay on disk.
- Access
- 160 read-level IAM actions across 33 services. Read every line and verify the hash.
- Telemetry
- None. Kulshan asks before checking PyPI for updates, and never installs one itself.
- Credentials
- Never stored. Uses the AWS CLI credential chain.
- Licence
- Apache 2.0. The IAM policy is also available under CC BY 4.0.
06 / Name
About the name.
Kulshan is the Lummi name for the mountain also called Mount Baker. It is visible from Mission on a clear day. The Lummi and Nooksack peoples are the original namers of the mountain.
Kulshan produces evidence. Turning that evidence into an explanation that engineering and finance both accept is the consulting work.