# Cost Estimator

> Estimate what a task or a fix will cost — tokens, model/tier, money ($), and wall-time — using the tiered cost model. Use whenever the user wants to know the cost of a correction, audit, or task before running it, or to compare local vs cloud cost.

- Skill: `zedarvates/cost-estimator` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add zedarvates/cost-estimator`
- Raw SKILL.md: https://api.skillmd.com/api/skills/zedarvates/cost-estimator/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: zedarvates (https://skillmd.com/u/zedarvates)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/zedarvates/cost-estimator

---


# cost_estimator — tokens · model · money · time

```python
from skills.cost_estimator import estimate, estimate_fix
estimate("code_review", 4000).human()    # "2000 tok · Haiku/Flash (cloud) · $0.0001 · ~16s"
estimate_fix("dead_code", count=11)       # local · free · ~34s
```

Reuses `tiered_router`'s token+$ model and adds a throughput model for time.
Local tiers are free (slower/token); cloud tiers are billed (faster). Powers the
`fix` plan and any "what will this cost?" question. Exposed via [[llm_mcp]] as
`estimate_cost`. Related: [[fix]], [[auto_router]], [[metrics]].

