Checks your budget before every request
Change one base URL. Your existing OpenAI or Anthropic client keeps working, including streaming.
Daily, monthly and per-run limits
We estimate cost and reserve budget before forwarding. Once you're over a limit, the call is refused and never reaches the provider.†
Loop stop
Detects repeated identical prompts (e.g. 5 in 10 minutes) and blocks them with a clear fuse_loop_detected error.
Drop-in compatible
Works with the OpenAI Chat Completions and Anthropic Messages APIs. Tag a run with the x-costlatch-run-id header to give it its own budget.
Two lines to set up
Point your client at CostLatch and use your cl_ key. Your provider key is stored encrypted, and by default we don't store prompt or completion content. Requests are processed in memory.
CostLatch is a second safety latch. Keep your provider's own spend limits switched on too.
# OpenAI-compatible OPENAI_BASE_URL=https://costlatch.com/v1 OPENAI_API_KEY=cl_your_key # Anthropic-compatible ANTHROPIC_BASE_URL=https://costlatch.com ANTHROPIC_API_KEY=cl_your_key
Simple pricing
Solo
7-day free trial, card required. Then US$19/month (local taxes may apply), renews monthly until cancelled. Cancel anytime before day 7 and you won't be charged. New customers only: one free trial per customer, on Solo or Pro.
- Up to 3 proxy keys
- Daily, monthly and per-run caps
- Loop stop
- OpenAI and Anthropic compatible
Pro
7-day free trial, card required. Then US$39/month (local taxes may apply), renews monthly until cancelled. Cancel anytime before day 7 and you won't be charged. New customers only: one free trial per customer, on Solo or Pro.
- Up to 20 proxy keys
- Daily, monthly and per-run caps
- Loop stop
- OpenAI and Anthropic compatible
Solo (US$19/month, 3 keys) and Pro (US$39/month, 20 keys) both start with a 7-day free trial for new customers. A card is required, you won't be charged during the trial, and it then renews monthly until you cancel. Local taxes (e.g. GST/VAT) may be added at checkout.
Solo: free for 7 days, then US$19/month (local taxes may apply).
Your card won't be charged today. On 6 Dec 2026 you'll be charged US$19 (local taxes may apply), then every month on that date until you cancel. Cancel any time before 6 Dec 2026 in Dashboard → Manage billing and you won't pay anything.
Prices are set in US dollars. At checkout, Stripe may show and charge the price converted into your local currency; the amount shown at checkout is the amount charged.
Prices are set in US dollars. At checkout, Stripe may show and charge the price converted into your local currency; the amount shown at checkout is the amount charged. Local taxes (e.g. GST/VAT) may be added at checkout depending on your location.
Renews monthly until cancelled. Cancel anytime from your dashboard (Manage billing opens the Stripe customer portal). See our Refund & Cancellation Policy.
†CostLatch checks your budget before forwarding each request. Spend can still slightly exceed a cap, for example from requests already in progress or running at the same time, or where our cost estimate differs from the provider’s final charge. Keep your provider’s own limits on too. See our Terms (cl 3.3).