Skip to main content

clont

ci pypi

a long-running, read-only agent that watches your cloud for broken things and wasted money.

clont sits next to your aws accounts, your own vmware iron and your kubernetes clusters, looks around every few minutes, and pings you on slack / discord / telegram when something is wrong or costing you more than it should. every call it makes is a describe / get / list — it never changes anything.

one scan of a sample account (clont run --summary report.txt):

====================================================================
 CLOUD WASTE REPORT
====================================================================

  you're wasting
    $494.34 / month
    $5,932.08 / year

  15 finding(s) across 2 account(s): prod, staging
  scanned 2026-11-11 09:30 UTC  |  clont 0.3.8  |  6.412s

--------------------------------------------------------------------
 WHERE THE MONEY GOES
--------------------------------------------------------------------

  $246.40/mo   x4    unattached-ebs (ebs)
                 - vol-0e4f1a2b3c4d5e6f7 [eu-west-1]  $176.00/mo  Unattached gp3 (2000 GiB) — delete
                 - vol-03a9b8c7d6e5f4a3b [eu-west-1]  $44.00/mo  Unattached gp3 (500 GiB) — delete
                 - vol-0b1c2d3e4f5a6b7c8 [eu-west-1]  $17.60/mo  Unattached gp3 (200 GiB) — delete
                 ... and 1 more

  $105.12/mo   x3    idle-nat (ec2)
                 - nat-0a1b2c3d4e5f60718 [eu-west-1]  $35.04/mo  NAT gateway idle 14d (≈0 bytes processed) — delete if unused
                 - nat-07c9e2f1a3b4d5e6f [eu-west-1]  $35.04/mo  NAT gateway idle 14d (≈0 bytes processed) — delete if unused
                 - nat-0f3e8d2c1b0a99887 [us-east-1]  $35.04/mo  NAT gateway idle 14d (≈0 bytes processed) — delete if unused

  ... 4 more kinds, then top spend and health

the numbers are made up, the format is the real one.

for the bigger picture (free local tier vs paid hosted one, how the pieces fit) see docs/architecture.md.

install

before you install: aws first

clont sees nothing until aws lets it in, so do these two in the aws console before pip install or helm:

  1. a bucket and a cost export (aws only) — billing → data exports → cur 2.0, csv + gzip, "create a bucket" right there. only needed for spend; aws takes up to 24h to write the first report, so do it first.
  2. a read-only role clont-readonly in each account, with the policy (put your bucket into ClontCUR) and a trust policy for the identity clont runs as.

step by step: docs/setup-cloud.md.

before you install: own iron (vmware on-prem)

no bucket, no aws role. instead:

  1. a read-only vcenter user, e.g. clont-ro@vsphere.local — built-in Read-Only role at the vcenter root, "propagate to children" ticked.
  2. a rate card — what your iron costs a month (servers, power, rack, licenses). there is no invoice on-prem, so this is the one thing you write yourself; estimates are fine.
  3. network — the box or pod running clont must reach vcenter on 443.
  4. optional, kubernetes on that iron: a kubeconfig or in-cluster access with get/list on six resources (the helm chart creates that rbac for you).

install with pip install 'clont[vsphere,k8s]' — plain clont is aws-only. step by step: docs/setup-onprem.md.

three ways to install, simplest first. all of them read one file, clont.yaml — the minimal one is in docs/setup-cloud.md.

pip

python 3.14+. the quickest way to see what clont finds:

python3 -m venv ~/clont-venv
~/clont-venv/bin/pip install clont                  # aws only
~/clont-venv/bin/pip install 'clont[vsphere,k8s]'   # + own iron and kubernetes

one scan, a summary to the screen, then it exits:

CLONT_CONFIG=./clont.yaml ~/clont-venv/bin/clont run --once --summary -

drop --once --summary - and it keeps running, a cycle every interval_seconds.

docker

for any linux box. the image reads /etc/clont/clont.yaml:

docker run -d --name clont --restart unless-stopped \
  -v $PWD/clont.yaml:/etc/clont/clont.yaml:ro \
  -e AWS_ACCESS_KEY_ID=... -e AWS_SECRET_ACCESS_KEY=... \
  ghcr.io/clont-app/clont:0.3.8
docker logs -f clont

kubernetes (helm)

the chart isn't in a registry yet, install it from a checkout:

git clone https://github.com/clont-app/clont && cd clont
cp charts/clont/examples/values-cloud.yaml my-values.yaml   # or values-onprem / values-hybrid
helm install clont ./charts/clont -n clont --create-namespace -f my-values.yaml
helm test clont -n clont       # checks the mounted config, no api calls

on eks give the pod an irsa role instead of keys. all chart values are in charts/clont/README.md, setup guides in docs/setup-cloud.md and docs/setup-onprem.md.

what it finds

  • health — ec2, rds, eks, ecs, load balancers, expiring certs and more, plus anomaly alerts against a seasonal baseline instead of fixed thresholds.
  • spend — a daily digest and spike alerts, read from the cost and usage report your account already writes. free, no cost explorer.
  • budgets and forecast — a month-end projection that warns before you go over, not after.
  • savings — rightsizing, idle resources, unattached ebs, gp2 → gp3, commitments to buy or about to lapse, graviton, s3 waste, data transfer, tag hygiene and showback. each with a monthly dollar figure.
  • public ipv4 — every address counted ($3.65/month each since 2024), the unattached and secondary ones flagged.
  • own iron — vmware priced off a rate card you write: idle and stopped vms, zombie hosts, storage nobody claims.
  • kubernetes — namespace showback on priced nodes, oversized node pools, unmounted pvcs.

how each one works: docs/findings.md.

platform

  • many accounts — as many as you like, keyed by an alias you choose. one account failing gets skipped, not fatal. on an org, point clont at the payer and set members.role_name: it lists the linked accounts itself and splits the payer's spend per account, so each one gets its own digest, spike and budget.
  • sites and clusters are aliases too — onprem.<site> and kubernetes.<cluster> are keyed the same way as accounts, and the alias flows into every event key, so nothing collides.
  • read-only by construction — every call is a Describe* / Get* (on vmware the built-in Read-Only role, on k8s get/list). see docs/iam.md, which also lists the two billed calls and what each costs: cloudwatch:GetMetricData (in the policy, on in the example config, cents a month) and ce:GetCostAndUsage (left out on purpose). with the code defaults clont makes no billed api call at all.
  • credentials refresh themselves — the agent survives expiry without a restart.
  • channels — log (always on) plus slack, discord and telegram, each with its own severity floor and repeat throttle.
  • api uplink (optional, paid) — add an api: block and each cycle ships its batch to your clont server and dispatches whatever events come back. two-way on purpose: your channel tokens never leave the agent. leave the block out and everything stays local. see docs/api.md.

one-shot scan

channels only tell you what's wrong. once the read-only role is in place, the fastest way to see what clont found is a single cycle with a summary:

clont run --summary -                  # one cycle, print it, exit
clont run --summary scan.txt           # a report you can send someone
clont run --summary scan.json          # for scripts
clont run --summary out --format json  # extension picks the format; this wins
format from for
text -, any other extension you, right after the run — just counts
report .txt the person you're sending it to
json .json scripts, dashboards

the summary lists accounts scanned, how much was collected, events by severity and domain, the non-ok health checks, estimated monthly savings per currency, top services by spend, and any collector that failed — so "nothing found" can be told apart from "the role couldn't read anything".

--summary runs exactly one real cycle, so events still reach your channels. add --fail-on-critical to exit 2 on a critical, which makes it usable as a ci gate.

the shareable report

.txt gives you something meant for a person who wasn't there. big number first, evidence under it — the sample at the top of this file is exactly this output.

findings are grouped by kind and sorted by money, biggest first. then top spend, health, and any collector errors.

two things it won't do: add up different currencies, or claim an all-clear it can't back. if collectors failed it says the number is a floor and lists what broke; if nothing was configured it says that instead.

docs

status

  • development status: active
  • license: apache-2.0

Metadata

Release files for clont 0.3.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for clont 0.3.8
File Size Uploaded Provenance Actions
clont-0.3.8.tar.gz 334.7 kB Without provenance Details for clont-0.3.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clont 0.3.8
File Interpreter ABI Platform Actions
clont-0.3.8-py3-none-any.whl Python 3 none any Details for clont-0.3.8-py3-none-any.whl

Total release size: 736.8 kB

Release files / clont-0.3.8.tar.gz

Download URL clont-0.3.8.tar.gz
Size 334.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1efdac30ebe4222bfb15b60b5356f77257464a510ae74d332a9a51def3d373c0
BLAKE2b-256 checksum
How to use checksums
187a66a635089f636f44c0340bea9b7ef6e4ceec39068525485fa1595a30c75c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / clont-0.3.8-py3-none-any.whl

Download URL clont-0.3.8-py3-none-any.whl
Size 402.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ead9e38e4ed090b5ad07ee6bf32350bd1efacb7e1e22bd77ce3f63f43673453
BLAKE2b-256 checksum
How to use checksums
f3f56cc9884837da442e062b54e761c5fffe538381e42fa499b19b1d1dd29183
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for clont 0.3.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page