syscu-kiro-report-usage
Generate a single, self-contained HTML report of Kiro usage and cost per IAM Identity Center user — one command, no infrastructure to deploy.
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
Requires Python 3.10+. AWS access is read-only (permissions) and is not needed for --demo.
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:
- Account — choose one of your local profiles (
~/.aws/config/~/.aws/credentials), the default credential chain, or “Sign in with AWS IAM Identity Center”. - 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 asaws 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. - 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.
Related AWS projects
This tool is a lightweight, local alternative to heavier setups; use them if you need always-on dashboards:
- Kiro User Activity Dashboard (Cloud Intelligence Dashboards, QuickSight)
aws-samples/sample-kiro-cost-optimizer(serverless, e-mail recommendations)aws-samples/sample-kiro-user-analytics-dashboard
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).
Contributions are welcome: see CONTRIBUTING.md. Report vulnerabilities privately as described in SECURITY.md. Changes are tracked in CHANGELOG.md.
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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| syscu_kiro_report_usage-0.1.1.tar.gz | 78.5 kB | Without provenance | Details for syscu_kiro_report_usage-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| syscu_kiro_report_usage-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for syscu_kiro_report_usage-0.1.1-py3-none-any.whl |
Total release size: 147.2 kB
Release files / syscu_kiro_report_usage-0.1.1.tar.gz
| Download URL | syscu_kiro_report_usage-0.1.1.tar.gz |
|---|---|
| Size | 78.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4409adacfedcd62581e687d3a33f435f0e1db0a47210915356d961074b6487c3
|
|
BLAKE2b-256 checksum How to use checksums |
22ce773d82041a26236632744b49a8d4a9050c91fb84a026d66a3d1fcac53ea3
|
| 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.1-py3-none-any.whl
| Download URL | syscu_kiro_report_usage-0.1.1-py3-none-any.whl |
|---|---|
| Size | 68.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dfae28fad5ee93b25343225b0a4cb037861721ace19c44a075c54104de781c57
|
|
BLAKE2b-256 checksum How to use checksums |
f8ce1f6efa366f288ed51b57e8268d2f114af6ce8fa75c15ebef3f2e681e3373
|
| 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.1
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.