AI API & Agent
Spend Firewall.
Hard dollar caps on every LLM call.
When you hit $50, it stops. Not an alert — it stops. Point your existing client at LLMCap and keep the rest of your code.
Per workspace · Per key · Per agent · Per run
The live demo uses sample data — no account, API key, or provider credentials required.
LLMCAP_KEY is your LLMCap proxy key — you create it in the dashboard under Proxy Keys, it starts with tg_live_, and it travels in the X-LLMCap-Key header, never in the URL. ANTHROPIC_API_KEY stays your own provider key: keep it in your environment as you do today. The Provider Secret Vault is the alternative, but it reaches your request only when that request carries no provider credential header, and the official OpenAI and Anthropic Python SDKs both require a credential in normal use — as do the official Google and Cohere SDKs. Mistral is the one official SDK that can omit it. The Provider API Keys page explains where the Vault does apply.
“I set up a $20 budget alarm for AWS Bedrock. On May 1, I received a bill for several hundred dollars. The alarm was never triggered. AWS support was apologetic but would not offer any kind of refund.”
Works with every major provider
Setup in 5 minutes
How LLMCap works
Point your client at LLMCap
Set your client’s base URL to proxy.llmcap.io and send your LLMCap proxy key in the X-LLMCap-Key header. For the Anthropic, OpenAI, Google, Mistral and Cohere SDKs that is two client settings and nothing else. AWS Bedrock is the exception: it is called over plain HTTPS with SigV4 credential headers, so it takes a small request helper rather than an SDK option.
Set your cap
Define daily, monthly, or per-key dollar limits in the dashboard. Per-model granularity supported.
Sleep peacefully
When a cap is hit, the next call gets a 429 and no model generation is started for it. Calls already in flight still settle, so the cap is a hard stop on new spend.
Know why costs spike.
Before the bill arrives.
Hard caps are just the start. LLMCap tracks cache efficiency, anomalies, and cost per deployment — so you can fix the root cause.
Spend Anomaly Alerts
When daily spend exceeds 2× your 7-day rolling average, an alert fires in minutes. Not after the invoice.
Cache Hit Rate Tracking
Anthropic prompt cache hit rate tracked daily. Alert fires when rate drops > 40 percentage points — a silent token cost spike, caught.
Deploy Cost Attribution
Tag requests with x-llmcap-version. Dashboard shows cost broken down by deployment — catch expensive prompt refactors before they ship.
Budget Threshold Alerts
Proactive warnings at 80% and 95% of your daily cap. You get time to act before LLMCap blocks requests at 100%.
Error Rate Spike Detection
Tracks provider error rates per workspace per hour. When error rate exceeds 25% with at least 20 requests, an alert fires — provider outages caught before your users notice.
Per-agent. Per-run.
Pre-dispatch enforcement.
Tag your LLM calls with agent and run IDs. Set your own daily cap per agent and total cap per run in the dashboard. LLMCap reserves estimated spend before forwarding the request — over-budget calls are refused before the model is invoked.
Reserve
Workspace, agent daily, and run total budgets checked atomically in Redis. Estimated spend reserved before any provider call.
Call
Request forwarded to the LLM provider. Reservation holds spend while the call is in-flight — streaming responses pass through in real time.
Settle
Actual token cost settled. Unused reservation released. Retry-safe — duplicate request IDs are detected without double-counting spend.
Example amounts · Limits set by you · disabled by default
Customer-defined limits
You set agent and run caps in the dashboard. Off by default — opt in per workspace.
Composes with workspace caps
Agent caps enforce alongside existing workspace and key budgets. The tightest limit wins.
Retry-safe
Pass X-LLMCap-Request-Id to prevent double-counting on retries. Duplicate request IDs are rejected before provider dispatch and are not reserved twice.
Untagged traffic
Requests without agent headers have no agent or run budget applied. Normal workspace, key, and model limits still apply.
Enterprise controls.
Per-key granularity.
Not just spend caps — a complete governance layer. Control which models run, who can call from where, and get notified the moment something looks wrong.
Policy Engine
Allow and block rules evaluated on every request. Write only block rules and everything else keeps working. Write one allow rule and the workspace becomes an allowlist — anything unlisted is refused. A block always wins over an allow. Scope any rule to a provider, model, project, or a single key.
IP Allowlisting
Restrict each API key to specific IP addresses or CIDR ranges. Requests from outside the allowlist are rejected with 403 before they touch your LLM budget.
{ "event": "budget_threshold", "threshold": "95%", "spent_usd": 47.50, "limit_usd": 50.00 }
Webhook Notifications
Push anomaly events to any HTTPS endpoint — PagerDuty, Slack, Teams, or your own webhook. Payloads are HMAC-SHA256 signed so you can verify authenticity.
Admin Audit Log
Every key creation, budget change, policy update, and RBAC assignment is logged with actor, timestamp, and target. Filter by action type, actor, or date range. Prune old entries on schedule.
Provider Secret Vault
Store your Anthropic, OpenAI, Google, Mistral or Cohere API key in LLMCap encrypted with AES-256-GCM. LLMCap uses the stored key only when a request arrives with no provider credential header, and the official OpenAI and Anthropic Python SDKs both require a credential in normal use — as do the official Google and Cohere SDKs. So the Vault applies to raw HTTP calls, to custom clients, and to the official Mistral SDK, which is the one that can be constructed to send no credential. Bedrock keeps signing with your own SigV4 headers.
Role-Based Access Control
Invite teammates with scoped permissions. Admins manage keys and budgets. Developers access logs and analytics. Viewers can read dashboards but can't create or revoke keys.
Organizations & Projects
Group workspaces under Organizations — perfect for agencies managing multiple clients. Tag API calls with Projects to get cost attribution broken down by team, product, or feature.
Data Privacy
You own your data.
We only touch what's necessary.
LLMCap needs metadata to enforce your cap. It never needs your conversations. Here's exactly what we log — and what we never touch.
HTTPS end-to-end
Your app → LLMCap and LLMCap → provider are both HTTPS. There is no plaintext endpoint to connect to.
AES-256-GCM at rest
Provider keys stored in Secret Vault are encrypted with a 96-bit random nonce per entry, key stored separately.
Immutable audit log
Every admin action is append-only. UPDATE and DELETE are blocked at the DB trigger level — not just policy.
Available everywhere you code
Works in your workflow
VS Code Extension
Live spend in your status bar. Click to see today's usage, burn rate, and blocked count — without leaving the editor.
Terminal CLI
Check spend, browse logs, manage keys, and set policies from the command line. Works on macOS, Linux, and Windows.
Windows Tray App
System tray icon shows live spend. Right-click for stats and quick actions. Always visible, never intrusive.
Simple pricing
Pick your plan
3-day trial, no charge until it ends · Cancel anytime
after 3-day trial
- ✓2 Proxy Keys
- ✓All 6 providers incl. Bedrock
- ✓Daily & monthly caps
- ✓Per-agent daily & per-run spend caps
- ✓Budget threshold alerts (80% / 95%)
- ✓Cache hit rate monitoring
- ✓Deploy cost attribution
- ✓1 Organization · 1 Project
- ✓30-day audit log
- ✓1 user
- ✓Email support
after 3-day trial
- ✓Unlimited Proxy Keys
- ✓All 6 providers incl. Bedrock
- ✓Per-key & per-model caps
- ✓Policy Engine (allow/block rules)
- ✓IP Allowlisting per key
- ✓Per-key RPM rate limits
- ✓Provider Secret Vault (AES-256-GCM)
- ✓Role-Based Access (Admin / Dev / Viewer)
- ✓Organizations + Projects
- ✓Per-agent daily & per-run spend caps
- ✓Webhook alerts (PagerDuty, Slack, Teams)
- ✓Error rate & spend spike detection
- ✓Budget threshold alerts (80% / 95%)
- ✓90-day audit log + log pruning
- ✓Up to 5 users
- ✓Priority support
Credit card required for trial. Cancel before day 3 and you won't be charged.
Two things worth knowing before you subscribe. LLMCap governs API traffic from applications, scripts and agents you control — anything where you can set the base URL and send a header. A ChatGPT, Claude or Gemini web subscription is not supported: it produces no API traffic, so there is nothing for LLMCap to cap. If that is your only AI spend, this product will not help you. And your provider bills you for model usage directly — an LLMCap subscription pays for the gateway, not for your Anthropic, OpenAI, Google, Mistral, Cohere or AWS consumption.