Open source · Free to self-host

Stop getting blindsided
by your AI bill.

ClawCost is a transparent proxy for OpenClaw that tracks every token in real time, enforces hard spending budgets, and shows you exactly where your money goes.

ClawCost Dashboard — localhost:4100
PROXY ACTIVE
Today's Spend
$1.23
47 requests · 284k tokens
Monthly (30 days)
$12.40
1,284 requests
Recent Requests
claude-sonnet-4-6 in:1,240 out:456 $0.0122
claude-sonnet-4-6 in:2,880 out:892 $0.0222
gpt-4o in:987 out:234 $0.0089
One env var5-minute setup
Local-firstData never leaves your machine
Hard budget limitsBlocks the request, not just alerts
Per-model trackingSee exactly who's spending what
Multi-providerAnthropic, OpenAI, Gemini, DeepSeek
Zero latency overheadStreams without buffering
One env var5-minute setup
Local-firstData never leaves your machine
Hard budget limitsBlocks the request, not just alerts
Per-model trackingSee exactly who's spending what
Multi-providerAnthropic, OpenAI, Gemini, DeepSeek
Zero latency overheadStreams without buffering

OpenClaw doesn't stop spending when you're not watching.

By default, OpenClaw loads full conversation history into context on every API call. With Claude Opus or Gemini 2.5 Pro, costs compound fast — and by the time you notice, the damage is done.

claude-opus-4-6 · 10 agent sessions $340
Context accumulation × 7 days $1,890
Unexpected monthly bill $3,600
With ClawCost daily budget Blocked at $5.00 ✓

"I woke up to a $3,600 Anthropic invoice for a single month. My OpenClaw instance ran overnight with full context loading and I had no idea. I would have paid anything for a tool that just stopped it."

T
tomaszs2
r/openclaw · 2.1k upvotes

Everything you need,
nothing you don't.

Hard budget enforcement
Set daily and monthly limits. When you hit the cap, ClawCost returns an HTTP 429 before the API call is even made — not after the bill lands.
Per-agent, per-model tracking
See exactly which agent or session is spending what, broken down by model. Identify your most expensive calls in seconds.
Zero latency streaming
ClawCost parses SSE events as they stream through — it never buffers the full response. Your agents see no speed difference.
One line to activate
No OpenClaw plugins to install. No config changes. Just point OpenClaw's base URL at ClawCost and you're done.
# ~/.openclaw/.env
$ npm run dev
ClawCost proxy → http://localhost:4100/v1
Dashboard → http://localhost:4100
 
# Add to ~/.openclaw/.env and restart
ANTHROPIC_BASE_URL=http://localhost:4100/v1
100% local, private by default
Usage data is stored in a local SQLite database at ~/.clawcost/usage.db. Nothing leaves your machine.
Slack + email alerts
Get notified at 80% and 100% of your budget — in Slack or by email. Paste a webhook URL and you're done. Built in, no extra service needed.
Anthropic + OpenAI
Works with all major providers OpenClaw supports. Accurate pricing for Claude, GPT-4o, o3, and Gemini models built in. Unknown models fall back to Sonnet rates.
# Anthropic
ANTHROPIC_BASE_URL=http://localhost:4100/v1
 
# OpenAI
OPENAI_BASE_URL=http://localhost:4100/v1

Up and running
in under 5 minutes.

Step 01
Install and start the proxy
Clone the repo, run npm install, and start ClawCost. It binds to localhost:4100.
$ npm run dev
Step 02
Point OpenClaw at ClawCost
Add one line to your OpenClaw environment file. That's the only change needed — no plugins, no code modifications.
ANTHROPIC_BASE_URL=http://localhost:4100/v1
Step 03
Set budgets, add alerts, go
Open the dashboard, set your limits, and optionally paste a Slack webhook or Resend key for alerts at 80% and 100%. Then forget about it.
Open → http://localhost:4100

Free to self-host.
Pro for teams who mean business.

The open source version is free forever. Upgrade to Pro for per-model budgets, 90-day history, cost forecasting, and custom alert thresholds.

Open Source
Free

Self-host on your own machine. Full feature set including alerts — no limits, forever.

  • Proxy for OpenAI, Anthropic, Gemini, DeepSeek
  • Real-time per-model token tracking
  • Hard daily + monthly budget blocks
  • Local SQLite — data never leaves your machine
  • Live dashboard at localhost
  • Slack, Discord + email alerts
  • 30-day cost history
  • 90-day history
  • Per-model budgets
  • Cost forecasting
View on GitHub →
Coming Soon
Team
$49/mo

Shared visibility and controls across your whole agent fleet.

  • Everything in Pro
  • Up to 10 team members
  • Per-project budget allocation
  • Shared team dashboard
  • Unlimited cost history
  • CSV + JSON export
  • Audit log
  • Priority support + onboarding call
Join waitlist →

Never get a surprise
AI bill again.

One command. One env var. Full control over what your agents spend.

$ npm install && npm run dev

Get early access to the hosted version

✓ You're on the list — we'll email when the hosted version is ready.

From the same team
Want AI that does more than track costs?

ClawHQ is a self-hosted AI team platform — 30+ agents, Discord and Slack wired up, one Docker command to deploy. Engineering, sales, and support packs included.

Meet ClawHQ →