Status: [LIVE] Endpoints found: https://places.googleapis.com/v1/places:searchText Source: https://github.com/KIvanow/spend-break # 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 priced per request with the generic adapter. You keep your provider account and your own key. The real key never leaves Spend Brake; clients only ever hold revocable virtual keys. ## 5-minute quickstart For a production install (HTTPS, published images, backups, upgrades, scaling), see [docs/self-hosting.md](docs/self-hosting.md). Requirements: Docker, Node 22+ (for the CLI), a Google Maps Platform key. ```sh git clone https://github.com/KIvanow/spend-break && cd spend-break 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 docker compose -f infra/docker-compose.yml up -d --build --wait ``` That starts the proxy (`:8080`), admin API (`:8081`), notifier (`:8082`), dashboard (`:3000`), worker, Valkey and Postgres. Then set up your org, store the Google key and get a virtual key: ```sh pnpm install && pnpm --filter @spend-brake/cli build # or: npx @spend-brake/cli alias brake="node $PWD/apps/cli/dist/brake.cjs" # Secrets from the environment (or omit them to be prompted): flags would land in shell history. export BRAKE_SETUP_TOKEN="