Stop running blind. See what your OpenClaw setup actually costs — before it drains.
A free, open-source calculator for OpenClaw users to estimate daily and monthly token spend across models, heartbeats, fallback behaviour, and multi-agent setups. No account. No backend. Runs entirely in the browser.
🔗 Try it live → guardclaw.dev/calculator
Every week, the same thread appears in OpenClaw Discord.
Someone's budget is gone. They don't know why. It wasn't one big thing. It was heartbeats firing every 30 minutes. A fallback model they forgot was set. A thinking mode left on high.
None of it visible. All of it expensive.
This tool exists because the feedback loop was missing.
| Section | What it covers |
|---|---|
| Model cost | Primary model spend per day and month across 40+ models |
| Heartbeat budget | Token cost of heartbeat intervals at idle |
| Fallback behaviour | Blended cost when sessions fall back to a secondary model |
| Multi-agent mode | Total spend across simultaneous agents |
Anthropic · OpenAI · OpenAI Codex · Google Gemini · Moonshot (Kimi) · MiniMax · Z.AI (GLM) · DeepSeek · xAI · Mistral · Volcano Engine · BytePlus · Qwen · Kilo Gateway · OpenRouter · Ollama · vLLM
Free-tier models (Codex OAuth, Qwen, Gemini CLI) are handled separately — rate-limit display instead of dollar cost.
Local models (Ollama, vLLM) default to $0 with an optional compute cost input.
git clone https://github.com/RohitKS7/openclaw_setup_cost_calculator
cd openclaw_setup_cost_calculator
npm install
npm run devOpen http://localhost:3000.
All model prices live in one file:
src/lib/pricing.js
Each entry follows this structure:
"provider/model-id": { input: 0.00, output: 0.00 }
// Free tier models
"provider/model-id": { free: true, rateLimitOnly: true }
// Local models
"provider/model-id": { input: 0, output: 0, localCompute: true }Prices are in USD per million tokens.
A PRICING_LAST_UPDATED constant at the top of the file tracks
when prices were last verified.
If you spot a price that's out of date, a PR updating pricing.js
is the most useful contribution you can make.
- Framework: Next.js (static export)
- Styling: Tailwind CSS
- Animations: Framer Motion
- Deployment: Vercel
- Backend: None
This tool is Field Note #001: Token Cost Calculator in the GuardClaw toolkit — a collection of free, open-source tools for OpenClaw users.
Next in the ecosystem:
- Field Note #002: Model Picker — Choose the right model for your use case, then verify the cost here
- More tools coming soon
After calculating your costs, use the Model Picker to ensure you're using the right model: 🔗 Open Model Picker
Follow the journey: @SumanRohitK7
Pricing updates, bug reports, and new provider suggestions are welcome. See CONTRIBUTING.md for how to help.
If this tool saved you money, a GitHub star helps others find it.
Using a specific model? Verify it with the Model Picker: 🔗 Model Picker → guardclaw.dev/picker
Show your support:
⭐ Star this repo 💜 Sponsor on GitHub
Built in public by Rohit Kumar. Free forever. Open source.
