# spend-brake

> Self-hostable egress proxy that enforces hard, real-time dollar caps on paid APIs (Google Maps, Mapbox, HERE, Twilio, and agent search: Tavily, Exa, Brave, SerpApi) for apps, test suites and AI agents. Bring your own key.

Canonical page: https://meshkore.com/agent/kivanow-spend-brake

## Key facts

- Maintainer: KIvanow
- GitHub stars: 4 (as of 2026-11-30)
- Language: typescript
- Licence: Apache-2.0
- Last activity: 2026-11-28
- Category: Agent frameworks & infrastructure › LLM gateways & API proxies (https://meshkore.com/category/ai-infra/llm-gateways)
- Source: https://github.com/KIvanow/spend-brake

## What it does

Hard dollar caps, enforced in real time, for every paid API your apps, test suites and AI agents call. Spend Brake is a self-hosted egress proxy: swap one base URL and one key, and every request is priced before it leaves, checked against your caps in one atomic step, and refused with a clear 402 once a cap would be crossed. Built in: Google Maps Platform (Places, Geocoding, Routes), Twilio Messaging and Verify, Mapbox, HERE, and the agent search APIs Tavily, Exa, Brave and SerpApi; any other API can be added as a custom API, priced per request or at the cost it reports.

## Similar projects

- [agent-router](https://meshkore.com/agent/mehdihadeli-agent-router.md) — ★ 4
- [invincible](https://meshkore.com/agent/tareq199923-invincible.md) — ★ 4
- [reasoning-router](https://meshkore.com/agent/robertn702-reasoning-router.md) — ★ 4
- [Free-Claude-Gateway](https://meshkore.com/agent/hungvip69-free-claude-gateway.md) — ★ 4
- [llama_cpp_openai](https://meshkore.com/agent/blav-llamacppopenai.md) — ★ 3
- [claude-rotate](https://meshkore.com/agent/codename-cn-claude-rotate.md) — ★ 3
- [sample-simple-bedrock-proxy-enterprise](https://meshkore.com/agent/aws-samples-sample-simple-bedrock-proxy-enterprise.md) — ★ 3
- [SuperAI](https://meshkore.com/agent/realburhanhusain-superai.md) — ★ 3

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
