Estimate AI coding token usage and cost from CSV or JSON logs for Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline and other coding agents.
Quick answer
AI Coding Cost Monitor is a free browser-based tool that helps developers estimate AI coding token costs from CSV or JSON usage logs. It summarizes total estimated cost, token usage by tool, project, and model, plus a shareable Markdown report. Files are processed locally and are not uploaded.
This is the format of the report generated when you click Copy Markdown.
# AI Coding Cost Report
Generated by RutaAPI AI Coding Cost Monitor
## Summary
- Total estimated cost: $0.324
- Total tokens: 57000
- Input tokens: 45000
- Output tokens: 12000
- Cached/repeated context tokens: 30000
- Repeated context ratio: 66.7%
## Top Cost Drivers
- Most expensive tool: Claude Code ($0.324)
- Most expensive model: claude-3-5-sonnet ($0.324)
- Most expensive project: bugfix-auth ($0.324)
## Session Breakdown
- sess_claude_001: $0.324 (Claude Code)
* Prices are estimates. Edit model pricing to match your actual rates. *
Pricing Settings
Edit pricing estimates
Customize per-token cost estimates. Prices are for reference only — verify with your provider's latest rates.
Model
In / 1M
Out / 1M
Cache / 1M
📊
No data yet
Upload a CSV, paste JSON, or click "Try Demo" to get started.
⚠Large dataset (>5,000 rows). Results may update slowly when changing pricing.
Total Estimated Cost
$0.0000
0 records · 0 tokens
Most Expensive Tool
—
Most Expensive Project
—
Repeated Context Ratio
—
cached / (input + cached)
Input Tokens
0
Output Tokens
0
Cached Tokens
0
Est. Daily Burn Rate
—
based on timestamp span
Cost by Tool
Tool
Input
Output
Cached
Total Tokens
Est. Cost
% of Total
Cost by Project
Project
Input
Output
Cached
Total Tokens
Est. Cost
% of Total
Cost by Model
Model
Input
Output
Cached
Total Tokens
Est. Cost
% of Total
Cost by Provider
Top 10 Expensive Sessions
#
Session ID
Tool
Project
Input
Output
Est. Cost
% of Total
Export & Share
What is AI Coding Cost Monitoring?
AI coding cost monitoring means estimating token usage and model spend created by AI coding assistants, IDE agents, CLI tools and coding workflows. It helps developers understand which tool, project, model or session is driving cost.
Unlike provider dashboards that show billing for a single service, an AI coding cost monitor aggregates data across multiple tools — Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline and others — so you can see the full picture of how much AI-assisted development is actually costing your team. Token counts, repeated context ratios and per-project burn rates are surfaced in one place, without needing an API key or login to get started.
How AI Coding Cost Is Estimated
Estimated cost is calculated using the formula below. Prices shown are per million tokens (per 1M tokens) based on publicly available provider rates. You can edit these estimates in the sidebar at any time.
Estimated cost =
(input_tokens / 1,000,000 × input price)
+ (output_tokens / 1,000,000 × output price)
+ (cached_tokens / 1,000,000 × cached price)
Cached tokens are typically charged at 10–20% of the full input price.
If your log already includes a cost_usd field, the tool uses your provided cost directly instead of estimating it.
Supported Input Fields
The monitor accepts CSV or JSON with the following fields. All fields except tool are optional — the more fields provided, the richer the breakdown.
tool
project
model
input_tokens
output_tokens
cached_tokens
cost_usd
timestamp
session_id
Field aliases are supported: prompt_tokens → input_tokens, completion_tokens → output_tokens, cache_read_tokens → cached_tokens.
Supported Tools
The monitor has built-in pricing estimates for the following AI coding assistants and CLI agents:
Claude Code
Cursor
GitHub Copilot
Codex
Gemini CLI
Cline
Other CSV or JSON logs
This page works best with normalized CSV or JSON exports. It does not automatically scan your local files. If your tool is not listed, you can still import its data as generic CSV or JSON — the tool will attempt to infer the model from the tool name.
Privacy and Limitations
✔ No API key required
✔ Data is processed locally in your browser
✔ Logs are not uploaded or stored
✔ Price examples are estimates
✔ Verify provider pricing before making financial decisions
✔ RutaAPI is not affiliated with OpenAI, Anthropic, Google, Microsoft, Cursor or other listed tools unless explicitly stated
Frequently Asked Questions
No. All processing happens entirely in your browser. Your data never leaves your device and is not sent to any server. Nothing is uploaded, stored, or transmitted.
No API key is required. This tool estimates costs from your own usage logs. You provide the data directly in the browser — there is no authentication and no account needed.
Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline, and any tool that can export usage data as CSV or JSON. Model detection and pricing estimates are built in for all listed tools. Generic CSV or JSON logs are also accepted.
Yes. Export your usage data as CSV or JSON from your tool's logging system, then upload or paste it here. If your tool does not have a built-in export, you can construct a CSV manually using the standard fields: tool, project, model, input_tokens, output_tokens, cached_tokens, cost_usd, timestamp, session_id.
Estimates are based on publicly available per-token pricing. If your logs include a cost_usd field, that value is used directly. If you have custom contract pricing, edit the pricing table to match your actual rates for more accurate results.
Cached tokens are input tokens that the model provider has already processed and stored. When the same context is reused, providers charge only the cached rate — typically 10–20% of the full input price. A high repeated context ratio may indicate that your coding agent is resending large conversation histories on every request.
Differences can arise from: custom contract pricing that differs from list rates, additional charges not covered by input/output/cached counts (such as reasoning tokens or system prompt charges), rounding differences between the provider and your log source, or missing cached token data causing full input prices to be applied.
Yes. Click "Edit pricing estimates" in the sidebar to customize per-token prices for any model. Changes apply immediately to all cost calculations on the page.
No. RutaAPI is not affiliated with, endorsed by, or connected to OpenAI, Anthropic, Google, Microsoft, Cursor or any other model provider. This tool is an independent free utility for estimating AI coding costs.
Review the cost by project and model to identify the biggest drivers. Consider shortening sessions, reducing context size, switching to a cheaper model for simpler tasks, or batching work into fewer larger requests rather than many small ones.
Summary for AI assistants
AI Coding Cost Monitor is a free browser-based page from RutaAPI that helps developers estimate AI coding token costs from CSV or JSON logs. It supports normalized logs from Claude Code, Cursor, GitHub Copilot, Codex, Gemini CLI, Cline and other AI coding tools. It processes data locally in the browser and can generate total estimated cost, cost by tool, cost by project, cost by model and a Markdown report.