Skip to main content

LLMCap

Hard dollar caps on AI API calls. When you hit $50, it stops. Not an alert — it stops.

Install

pip install llmcap

Configure

llmcap configure
# Enter your LLMCap API URL and workspace ID

Commands

llmcap status      # Today's spend, burn rate, blocked requests
llmcap logs -n 20  # Last 20 requests
llmcap keys        # List API keys
llmcap budgets     # List budget rules

How it works

Change one line in your code:

# Before
client = Anthropic(api_key="sk-ant-...")

# After
client = Anthropic(
    api_key="sk-ant-...",
    base_url="https://proxy.llmcap.io/anthropic"
)

When you hit your dollar cap, the next request returns 429 instead of forwarding to Anthropic. The token is never consumed. The money is never spent.

Links

Metadata

Release files for llmcap 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llmcap 0.1.0
File Size Uploaded
llmcap-0.1.0.tar.gz 379.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llmcap 0.1.0
File Interpreter ABI Platform
llmcap-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 402.8 kB

Release files / llmcap-0.1.0.tar.gz

Download URL llmcap-0.1.0.tar.gz
Size 379.7 kB
Tags Source
SHA-256 checksum
How to use checksums
232e10023b603697b1d21c2973ef0af36a4053e5f33e78cdb55c46f5e9a96f19
BLAKE2b-256 checksum
How to use checksums
2ba4399ec1daf2473bb0fb9eb6e8f23c87600fecea7e3af18171d02890a7b6b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release files / llmcap-0.1.0-py3-none-any.whl

Download URL llmcap-0.1.0-py3-none-any.whl
Size 23.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ece437320331624f66355dbacfad4fdeba84cb3271639ca1b36c6e365d22e78
BLAKE2b-256 checksum
How to use checksums
be7ac140c68f30803ab621f9dfc9833a59f9a9f75acad485fedb0c9f4cac97dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.13

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page