More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Spend Brake: hard caps for paid API calls

    1

    Route paid API calls through Spend Brake and handle 402 budget caps right.

    Free

    Security scanned
    Spend Brake: hard caps for paid API calls

    Spend Brake: hard caps for paid API calls

    Example session with this skill installed

    Our app calls Google Places and Tavily directly. Put them behind Spend Brake (hosted), cap at $5/day, and make sure the UI handles running out of budget.

    • Read your context and instructions
    • Compiled the spend brake

    The agent finds every Places and Tavily call site, swaps the base URLs for https://proxy.spendbrake.dev/google-places and /tavily, reads the sb_live_… key and proxy URL from env instead of the provider keys, and wraps calls so that a 402 budget_exceeded throws a typed error that the UI shows (with resetsAt) instead of retrying. It then tells the user what they still have to do: sign up, add their Google and Tavily keys, create the key, set the $5/day org cap under Caps (or brake caps set org --day 5), and restrict the Google key to the proxy's IPs.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    This skill teaches a coding agent to put a project's paid API calls behind Spend Brake, an open-source egress proxy that prices each call per SKU before forwarding it and refuses it with 402 when a hard cap would be crossed. The agent swaps provider base URLs for the Spend Brake proxy and uses a Spend Brake virtual key for Google Maps Platform, Twilio, Mapbox, HERE, Tavily, Exa, Brave Search, SerpApi and custom APIs. It covers setting up the hosted service or a self-hosted Docker install, setting caps per org, key, SKU, environment, agent or session by day or month, handling 402 budget_exceeded and the other proxy errors without retry loops, running an agent inside a capped brake session, and defining a custom API with its prices. Every command, URL and header comes from the Spend Brake docs. The skill has no scripts, makes no network calls of its own and has no credentials.

    What it does

    • Maps each supported provider to its Spend Brake base URL and key slot
    • Walks through hosted signup or self-hosted docker compose + brake init
    • Sets caps via dashboard, brake caps set, or PUT /v1/caps/{scope}
    • Adds 402/403/429/503 handling that surfaces the message and does not retry-loop
    • Caps an agent run with brake session --budget …
    • Defines and adds a custom API (perRequest or reported pricing)

    Known limitations

    • Hosted signup, provider-key entry and Google key restriction are steps the user does, not the agent
    • Client-side Google Maps (JS API, tiles, widgets) is not proxied
    • Custom API caps are only as accurate as the prices you enter
    • Overshoot is bounded by one request's worst case, not zero
    • Free hosted plan: 1 key, 1 provider, 1 custom API, up to $50/month protected spend
    • Pinned to docs as of Spend Brake 0.2.1

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.

    Requires manual setup of provider keys in the Spend Brake dashboard or CLI. Only supports REST-based providers. Accuracy depends on pricing definition updates.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 12 days ago

    • Free with an Agensi account

    Software
    Git

    Permissions

    Terminal / Shell
    Network Access
    Listed12 days ago

    What's inside

    Frequently Asked Questions

    Spend Brake acts as a budget-aware proxy that intercepts API calls before they reach your provider, allowing it to block requests and return a 402 error if your predefined daily or monthly spending limits have been reached.

    Yes, while it supports popular services like Google Maps and SerpApi, you can also define custom pricing models for any REST API to ensure your proprietary integrations stay within budget.

    Spend Brake is framework-agnostic and works with any tool that makes HTTP calls, making it ideal for Node.js, Python, or Go-based agents, as well as autonomous loops that might otherwise trigger runaway costs.

    The purchase includes the core proxy architecture, access to the hosted dashboard for monitoring, the Docker-based self-hosted stack, and the CLI for managing virtual keys and budget scopes.

    Setup involves either deploying the Docker container or using the hosted dashboard, then simply updating your API base URL to the proxy and swapping your provider keys for Spend Brake's virtual keys.

    Yes, the multi-scope capping feature allows you to mint temporary, low-budget keys for specific sessions, effectively sandboxing the financial risk of a single task or developer.

    New in DevOps & Cloud

    Free