AI API & Agent
Spend Firewall.
Hard dollar caps on every LLM call.
When you hit $50, it stops. Not an alert — it stops. One line of code change.
Per workspace · Per key · Per agent · Per run
“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
Change base_url
Point your API client at proxy.llmcap.io. Works with every SDK. No code changes beyond that one line.
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, LLMCap returns 429 before the token is consumed. No charge. No surprise bill.
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 never reach the provider.
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
Priority-ordered allow/block rules evaluated on every request. Block expensive models workspace-wide, allow specific model versions for certain keys — or lock down everything with a default deny.
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, and Bedrock API keys in LLMCap encrypted with AES-256-GCM. Your apps only ever see a LLMCap key — provider credentials never touch your codebase.
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.
TLS 1.3 end-to-end
Your app → LLMCap and LLMCap → provider are both HTTPS. No plaintext path exists.
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 API 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 API 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.