Skip to main content

kiro-usage-report

Generate a single, self-contained HTML report of Kiro usage and cost per IAM Identity Center user — one command, no infrastructure to deploy.

Report preview

It answers the questions Kiro administrators keep asking:

  • Who is using Kiro, on which client (IDE / CLI / Web), and with which models?
  • Credits used per day / week / month, by client type and by plan — the same views as the Kiro console dashboard, plus per-person detail.
  • What do the subscriptions cost, and how much of it is covered by AWS credits?
  • Who is on the wrong plan? Right-sizing suggestions include overage cost ($0.04/credit).
  • Which licences are idle?

The output is a static .html file (light/dark theme, English/Spanish, date-range and daily/weekly/monthly filters, tooltips, print-friendly). Share it as an attachment; nothing is uploaded anywhere.

Quick start

pip install syscu-kiro-report-usage            # from PyPI
pip install git+https://github.com/syscu-es/syscu-kiro-report-usage.git   # latest from GitHub
# or from a clone:  pip install .     (development: pip install -e ".[dev]")

kiro-report --demo --open        # preview with synthetic data, no AWS needed
kiro-report                      # interactive: pick or sign in to ANY AWS account, then the period

Unattended:

kiro-report --profile my-sso-profile --sso-login --last 6 --out kiro.html
kiro-report --profile prod --month 2026-10 --lang en --anonymize

Works against any account, interactively

Run kiro-report on a terminal and it asks, step by step:

  1. Account — choose one of your local profiles (~/.aws/config / ~/.aws/credentials), the default credential chain, or “Sign in with AWS IAM Identity Center”.
  2. IAM Identity Center sign-in (no profile needed) — enter your start URL (https://<name>.awsapps.com/start) and region, approve in the browser (device authorization, the same flow as aws sso login), then pick any account and role you can reach (type text to filter long lists). Tokens and temporary credentials stay in memory; nothing is written to disk.
  3. Period — last full month, current month, last 3/6/12 months, or a custom YYYY-MM[:YYYY-MM] range.

For an existing SSO profile with an expired session it offers to run aws sso login for you (--sso-login does it without asking). Everything is also scriptable: --sso-start-url … --sso-account <id|name> --sso-role <name>; -y/--yes never prompts. Set KIRO_REPORT_SSO_START_URL to pre-fill the start URL.

Where the data comes from

Source Gives you How to enable
Kiro user activity report (daily CSVs in S3) client type (IDE/CLI/Web), plan, credits, overage, messages, models, user e-mail, new users Kiro console → Settings → User activity report → CSV → S3 bucket. Docs
AWS Cost and Usage Report (Data Exports, parquet) real subscription lines, AWS credits applied, credits per Identity Center user (line_item_resource_id) Billing → Data Exports → Standard data export (CUR 2.0) with resource IDs, parquet
IAM Identity Center user names when the activity report has no e-mail automatic

Either source can be missing: with only the activity report, costs are estimated at list price; with only the CUR you get per-person credits and costs but no client/plan/model breakdown (the report tells you how to enable the rest). Sources are auto-discovered; override with --cur-export, --cur-bucket/--cur-prefix, --activity-bucket/--activity-prefix.

Required AWS permissions are read-only — see docs/PERMISSIONS.md.

Options

Flag Purpose
--profile, --region, --sso-login pick a local profile; refresh an expired SSO session
--sso-start-url, --sso-region, --sso-account, --sso-role sign in to any account through IAM Identity Center, no profile needed
--month, --since/--until, --last N period (default: last 3 months, or asked)
--no-cur, --no-activity skip a source
--lang en|es report language (also switchable inside the report)
--anonymize replace users with user-NN before sharing
--brand, --logo, --no-logo, --no-embed-font white-label the report
--json FILE also dump the aggregated data (feed your own dashboards)
--demo synthetic data, no AWS

How it works

CUR (parquet) ─┐                                   ┌─> report.html (inline CSS/JS/SVG, offline)
               ├─> model.build_report (JSON) ──────┤
Kiro CSVs ─────┘     merge by user id,             └─> --json
IAM Identity Center   tier right-sizing

src/kiro_report/: cli (prompts) · aws (profiles/SSO) · cur · activity · identity · model (merge + recommendations) · tiers (plan catalogue) · render + templates/report.html.

This tool is a lightweight, local alternative to heavier setups; use them if you need always-on dashboards:

Privacy

Reports contain user e-mails and usage. Generated kiro-report-*.html/json are git-ignored; use --anonymize before sharing. Nothing leaves your machine except the AWS API calls you authorise.

Development

pip install -e ".[dev]"
pytest --cov=kiro_report
ruff check .

Plan prices/allowances live in src/kiro_report/tiers.py (Kiro pricing is subject to change).

Releasing

Releases are published to PyPI by GitHub Actions with Trusted Publishing (OIDC, no stored tokens): .github/workflows/release.yml. To release, bump version in pyproject.toml, merge, then push a tag vX.Y.Z (the workflow refuses a tag that does not match the version). Run the workflow manually with target testpypi to rehearse.

License

MIT for the code. The SysCu logo in src/kiro_report/assets/ is a brand asset and is not covered by the MIT license (replace it with --logo, or drop it with --no-logo); the bundled Figtree font is SIL OFL 1.1. See LICENSE and src/kiro_report/assets/NOTICE.md.

Metadata

Release files for syscu-kiro-report-usage 0.1.0

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

Source distribution (sdist)

Source distribution for syscu-kiro-report-usage 0.1.0
File Size Uploaded Provenance Actions
syscu_kiro_report_usage-0.1.0.tar.gz 77.6 kB Without provenance Details for syscu_kiro_report_usage-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syscu-kiro-report-usage 0.1.0
File Interpreter ABI Platform Actions
syscu_kiro_report_usage-0.1.0-py3-none-any.whl Python 3 none any Details for syscu_kiro_report_usage-0.1.0-py3-none-any.whl

Total release size: 145.9 kB

Release files / syscu_kiro_report_usage-0.1.0.tar.gz

Download URL syscu_kiro_report_usage-0.1.0.tar.gz
Size 77.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1f1a15cbdaffaa7bd6b171c38538589d9af740069d00b88d33d04d072eb24390
BLAKE2b-256 checksum
How to use checksums
0d5f61e9498eeb755226125281f67888a6fc44e69343f68000168aa43763ce99
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / syscu_kiro_report_usage-0.1.0-py3-none-any.whl

Download URL syscu_kiro_report_usage-0.1.0-py3-none-any.whl
Size 68.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5fefb1bf9553d601a1ab88c4dbdb8b6081c8227c228d0314cd532f0266641478
BLAKE2b-256 checksum
How to use checksums
8d8cba374da20ebb134ec449a174a67db9c2f8de09003fc6f0a5a51b68dd016c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for syscu-kiro-report-usage 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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