docs/kiro.md
Kiro uses the AWS kiro-cli tool to fetch usage data. No browser cookies or OAuth flow—authentication is handled by AWS Builder ID through the CLI.
CLI command (primary)
kiro-cli chat --no-interactive "/usage"kiro-cli installed and logged in via AWS Builder ID.GetUsageLimits API (overage enrichment, best effort)
POST https://codewhisperer.us-east-1.amazonaws.com/,
header X-Amz-Target: AmazonCodeWhispererService.GetUsageLimits, body {"profileArn": ...}.~/Library/Application Support/kiro-cli/data.sqlite3
auth_kv key kirocli:odic:token → access_tokenstate key api.codewhisperer.profile → arn┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ | KIRO FREE ┃
┣━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┫
┃ Monthly credits: ┃
┃ ████████████████████████████████████████████████████████ 100% (resets on 01/01) ┃
┃ (0.00 of 50 covered in plan) ┃
┃ Bonus credits: ┃
┃ 0.00/100 credits used, expires in 88 days ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
usedPercent: extracted from ███...█ X% pattern, or planUsed / planLimit when the API answered.resetsAt: parsed from resets on MM/DD (assumes current or next year), or nextDateReset from the API.Bonus credits: X.XX/Y credits used. Always CLI-sourced. When GetUsageLimits includes a
non-empty bonuses[] array, CodexBar keeps the CLI plan gauge instead of treating bonus spend as plan
usage; overage enrichment still applies.expires in N days.kiro-overage: overage credits spent against overageCapWithPrecision (API only). This
is a second credit ceiling, not optional extra usage — the plan gauge stays plan-only so a spent plan
still shows remaining overage headroom. The bar reuses the Credits remaining copy
(N of M credits left).overageCharges against overageCap × overageRate (API only).accountOrganization: plan name (e.g., "KIRO FREE").loginMethod: plan name (used for menu display).currentUsageWithPrecision is the total including overage, so plan usage is
currentUsage - currentOverages. Feeding currentUsage into the plan gauge would read over 100% and
double-count the same spend in both gauges. Components are validated individually rather than as a sum, so a
negative one cannot hide inside a positive total.
Kiro does not have a dedicated status page. The "View Status" link opens the AWS Health Dashboard:
https://health.aws.amazon.com/health/statusSources/CodexBarCore/Providers/Kiro/KiroProviderDescriptor.swiftSources/CodexBarCore/Providers/Kiro/KiroStatusProbe.swiftSources/CodexBarCore/Providers/Kiro/KiroUsageLimitsAPI.swiftSources/CodexBar/Providers/Kiro/KiroProviderImplementation.swift