Every AI cent,
in a box you own.

AI Cost Gate sits between your agents and your LLM providers, tracking every request by project, agent, and model. Budgets that auto-stop runaway spend. SQLite or Postgres — pick your storage. Your prompts never leave your machine.

AI Cost Gate product interface preview

Provider-agnostic by design

Tracks every provider — OpenAI, Anthropic, Google, OpenRouter, and more. No vendor lock-in.

google

Why AI Cost Gate

Your agents will think before they spend.

Demo 01

Claude Code hit $30 — auto-stopped

Watch spend climb against a $30 budget. The gate blocks the next request before it blows past the limit.

Budget (claude-code session)$30.00
Spent: $3.10Remaining: $26.90
requestmodeltokenscost
coder-agentclaude-sonnet-4-69,400$3.10
Demo 02

3 agents, 5 providers, one SQLite file

Every cent attributed by agent and provider — all in a single local .db file.

agent \ providerOpenAIAnthropicGoogleMistralDeepSeek
research-agent$0.47$0.08
coder-agent$0.12$1.67
reviewer-agent$0.09
Total: $2.43
SQLite database: acg.db (single file, ~240 KB)
tables: requests, agents, projects, budgets, alerts
rows: 5 (demo)
Demo 03

No prompts stored, no cloud

Only metadata is logged. Prompts never leave your machine.

methodmodeltokenscost
POST /v1/chatclaude-sonnet-4-612,400$0.31
POST /v1/chatgpt-4o8,800$0.18
POST /v1/chatclaude-sonnet-4-621,000$0.52
POST /v1/chatgemini-2-pro5,400$0.09
POST /v1/chatclaude-sonnet-4-633,500$0.84
local-first topology
your-server → [ACG Gate :sqlite] → providers (OpenAI / Anthropic / …)
no cloud · no prompt storage

⚠️ These examples are for feature illustration only — the real product's pages may look and behave differently.

Per-request attribution

Every LLM call tracked with project, agent, and model tags. Know exactly where every cent goes.

Project / agent / model breakdown

Slice cost data by any dimension. See which project spends most, which agent is the heavy hitter, which model costs the most per request.

Budget auto-stop

Set per-project or per-agent budgets. When spend hits the threshold, the gate blocks the next request automatically.

Alerts & thresholds

Get notified before budgets blow. Configurable thresholds let you intervene early, not after the invoice arrives.

Provider-agnostic

Works with OpenAI, Anthropic, Google, OpenRouter, and any OpenAI-compatible API. No vendor lock-in.

SQLite or Postgres

Pick SQLite for zero-setup single-host, or Postgres for concurrent multi-agent and team deployments. Same code, same migrations — switch via one env var.

No prompt storage

Only metadata is logged — tokens, cost, model, timestamp. Your prompts and responses never touch the gate's storage.

REST API for agents

Agents query costs and budgets via a simple REST endpoint. Ask 'this costs $3, continue?' before every expensive call.

Where AI Cost Gate fits in

Real workflows where local-first cost control pays off.

Side project / weekend hacking

Claude Code session burnt $200 in an afternoon.

Per-project budget cap auto-stops at the threshold you set.

Internal toolchain integration

Need cost tracking inside our existing platform.

`docker compose up`, attribution flowing in 10 minutes.

Open-source maintainer

Sponsor bots and CI agents all hit paid APIs in parallel.

Per-agent budget caps keep each bot under its own ceiling.

Academic / research lab

Grant-funded API credits disappearing faster than papers ship.

Per-grant budget + alerts before the credit pool runs dry.

Side project / weekend hacking

Claude Code session burnt $200 in an afternoon.

Per-project budget cap auto-stops at the threshold you set.

Internal toolchain integration

Need cost tracking inside our existing platform.

`docker compose up`, attribution flowing in 10 minutes.

Open-source maintainer

Sponsor bots and CI agents all hit paid APIs in parallel.

Per-agent budget caps keep each bot under its own ceiling.

Academic / research lab

Grant-funded API credits disappearing faster than papers ship.

Per-grant budget + alerts before the credit pool runs dry.

Ready to see where your agents spend?

Deploy AI Cost Gate in 10 minutes. One SQLite file. Full control.