Status: [LIVE] Endpoints found: https://places.googleapis.com/v1/places:searchText https://docs.spendbrake.dev/api/ Source: https://github.com/KIvanow/spend-brake # Spend Brake 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. You keep your provider account and your own key. The real key never leaves Spend Brake; clients only ever hold revocable virtual keys. **Documentation: [docs.spendbrake.dev](https://docs.spendbrake.dev)**. Hosted service: [spendbrake.dev](https://spendbrake.dev). ## 5-minute quickstart For a production install (HTTPS, published images, backups, upgrades, scaling), see [Self-hosting](https://docs.spendbrake.dev/self-hosting/) ([docs/self-hosting.md](docs/self-hosting.md) in this repo). To use the hosted service instead, see the [Quickstart](https://docs.spendbrake.dev/quickstart/). Requirements: Docker, Node 22+ (for the CLI), a Google Maps Platform key. ```sh git clone https://github.com/KIvanow/spend-brake && cd spend-brake cp infra/.env.example infra/.env # fill in the secrets, e.g.: sed -i "s|^BRAKE_MASTER_KEY=.*|BRAKE_MASTER_KEY=$(openssl rand -base64 32)|; \ s|^BRAKE_ACTION_SECRET=.*|BRAKE_ACTION_SECRET=$(openssl rand -base64 32)|; \ s|^BRAKE_SETUP_TOKEN=.*|BRAKE_SETUP_TOKEN=$(openssl rand -hex 24)|; \ s|^VALKEY_PASSWORD=.*|VALKEY_PASSWORD=$(openssl rand -hex 24)|; \ s|^POSTGRES_PASSWORD=.*|POSTGRES_PASSWORD=$(openssl rand -hex 24)|" infra/.env export BRAKE_VERSION=0.4.0 # the published images to run docker compose -f infra/docker-compose.yml -f infra/docker-compose.release.yml up -d --wait ``` That starts the proxy (`:8080`), admin API