
Why Is Kiro Using So Many Credits? Turning Prompt Logs into a Cost Action Plan
A browser-only tool that reads Kiro prompt logs, explains where credits go, and tells your team what to change.
Kiro's usage dashboard, user activity report and Amazon CloudWatch metrics tell you how many credits your team used. None of them tell you why. This article walks through Kiro Log Analyzer, an open tool that reads Kiro prompt logs in your browser and turns them into a prioritized cost action plan. It also shows what the tool found in 61 days of logs from a 23-person team.
What Is the Problem?
Teams that roll out Kiro quickly get the same question from finance: where are the credits going, and how do we spend fewer of them without slowing developers down?
Kiro's built-in reporting answers part of it:
Question | Usage dashboard | User activity report | CloudWatch | Kiro Log Analyzer |
|---|---|---|---|---|
Credits per user, day and model | Totals by tier | Yes | No | Yes |
Cost of each prompt and its agent turns | No | No | No | Yes |
Spend by project or repository | No | No | No | Yes |
Spend by spec, steering file and skill | No | Skill loads only | No | Yes |
What fills the context window | No | No | No | Yes |
Credentials pasted into prompts | No | No | No | Yes |
None of these sources contain prompts, so they can't explain spend. The prompt logs Kiro writes to Amazon S3 can.
What Does Kiro Log Analyzer Do?
You drop in a folder or
.zip of prompt logs, and optionally the user activity report CSVs for the same dates. The tool fills nine tabs: Overview, Action plan, Users, Skills, Steering and Specs, Context, Prompts, Models and time, Inline completions and Upload.The Action plan is the main output. Each finding comes with a severity, the evidence behind it, an owner, an effort estimate and a fix.
A 60-day export from 23 users (about 18,000 files, 30 MB zipped) processes in about three seconds.
How Does It Work?

The app is static HTML and JavaScript with no backend. Logs are processed in memory in the browser tab. A Content-Security-Policy with
connect-src 'none' blocks every network request, so log data can't leave the machine.- Sources. Kiro writes
GenerateAssistantResponselogs (chat and agent calls) and, optionally,GenerateCompletionslogs (inline suggestions) to the S3 bucket your administrator configured. Per-user activity reports are daily CSVs in S3. Both are downloaded withaws s3 sync.
- Load (
loader.js). Reads folders, zips,.json.gzand CSV files, removes duplicate records byrequestId, and joins report rows to log users on the IAM Identity Center user ID.
- Analyze (
analyzer.js). Classifies every model call (user prompt, agent tool-loop turn, spec task, workflow, subagent or background task) and credits it to the prompt that caused it, usingconversationId. It then splits each prompt's context into steering, editor context, attachments, typed text and pasted content, and redacts secret-like values.
- Recommend (
playbook.js). Turns the metrics into findings with sources.
- Export (
export.js). Produces a PDF, a self-contained HTML report, the action plan as Markdown, or a results.jsonthat teammates can open without receiving the raw logs.
How Are Credits Estimated?
Prompt logs contain no billing fields, so each call gets a weight based on Kiro's published model multipliers:
tokens(call) = (prompt characters + response characters) / 4weight(call) = model multiplier x (1 + tokens / 25,000)If you load the activity report, each user's real daily credits are split across that day's calls by weight, so every number is in real credits. Without the report, numbers are in estimated credit units (CU). CU is fine for comparing users, models and habits.
What Did It Find?
The sample run covered 61 days of logs (September 17 to November 16, 2026) for 23 users: 2,369 prompts, 10,175 model calls and about 11,800 CU.

Finding | Status | Evidence | Fix |
|---|---|---|---|
Agent tool-loop turns | Watch | 73% of CU; 7,238 of 10,175 calls | Scoped prompts that name the files, the outcome and when to stop; small spec tasks |
Runaway prompts | Act | 8 prompts with 50+ calls used 5% of CU | Avoid open-ended "fix everything" or "run all tasks" requests |
Premium model pinning | Watch | Opus is 25% of CU; Auto is used on only 50% of calls | Default to Auto, saving about 1,799 CU (15%) |
Pasted logs and code | Act | 34 prompts over 20K characters | Use #File , or trim the paste to the failing section |
Skills, steering and specs | Watch | Used by 2, 4 and 5 of 23 users | Share the team's steering files and skills |
Credentials in prompts | Urgent | 42 prompts from 11 users | Rotate the credentials; add a no-secrets steering rule |
Confirmation-only prompts | Watch | 46 prompts, 164 CU | Give approval up front |
Background tasks (0.7% of CU) and subagents (1%) were on track.
Try It Yourself
git clone https://gitlab.aws.dev/chaitanx/kiro-log-analyzer.gitcd kiro-log-analyzeropen index.htmlDownload one month of logs, and the activity report for the same dates:
aws s3 sync "s3://<log-bucket>/<prefix>/" ./kiro-prompt-logs/ \ --exclude "*" --include "*/2026/10/*"
aws s3 sync "s3://<report-bucket>/<prefix>/AWSLogs/<account-id>/KiroLogs/user_report/" \ ./kiro-activity-report/ --exclude "*" --include "*/2026/10/*"- Load
samples/sample-kiro-logs.zip(synthetic data) to see the tool in action.
- Drop your logs and report CSVs on the Upload tab and choose Process.
- Work through the Action plan, starting with Urgent findings, and export the PDF or HTML report.
To share a single-file build, run
python3 tools/package.py .Data handling: prompt logs can contain source code, credentials and personal data. Analyze them only with the owning organization's approval, store them encrypted, delete them when you're done, and treat exported reports as confidential.
Summary
The goal was to explain why Kiro credits are spent, not just how many. The approach is to read the prompt logs Kiro already writes to S3, entirely in the browser, and turn them into findings with fixes. For the sample team:
- Agent tool-loop turns were 73% of spend, so prompt scoping is the biggest lever.
- Defaulting to Auto would save about 15% of credits.
- 42 prompts contained credentials that needed rotating.
References
- Kiro Log Analyzer source: https://gitlab.aws.dev/chaitanx/kiro-log-analyzer
- Kiro pricing: https://kiro.dev/pricing/
- Kiro models and multipliers: https://kiro.dev/docs/models/
- Kiro billing FAQ: https://kiro.dev/docs/billing/related-questions/
- Kiro prompt logging: https://kiro.dev/docs/enterprise/monitor-and-track/prompt-logging/
- Kiro user activity report: https://kiro.dev/docs/enterprise/monitor-and-track/user-activity/
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article