Skip to main content

Cost guardrails for LLM agent runs.

Project description

agentcap

agentcap is a cost guardrail for LLM agent runs. It calculates safe token limits before execution and enforces strict budget ceilings using real usage data.

Install

pip install agentcap

Documentation

See DOCUMENTATION.md for full usage details.

Supported models

See agentcap/models.json for the list of currently supported models. To add more models, open a PR.

Note: Prices may change. Please verify with the provider.

Model pricing sources

OpenAI pricing: https://developers.openai.com/api/docs/pricing?latest-pricing=standard
Anthropic pricing: https://platform.claude.com/docs/en/about-claude/pricing
Gemini pricing: https://ai.google.dev/gemini-api/docs/pricing#standard

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentcap-0.1.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentcap-0.1.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file agentcap-0.1.0.tar.gz.

File metadata

  • Download URL: agentcap-0.1.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for agentcap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 df9791a1824e091a8b83717aea74618387dc5abf7a129e9c358a257fc2dd1d44
MD5 920957018466657de013e66596d67938
BLAKE2b-256 16fce412370afd9a54d1db031620c0cb38373a383027b7618fec8f195de9786c

See more details on using hashes here.

File details

Details for the file agentcap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentcap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for agentcap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01f065c96986301b41e880ce6472dfb212b79b38711e37d3470e8c2cc3ed5e24
MD5 1f5d8d90de2750ff8c9d5c3603292b85
BLAKE2b-256 411fd68ec92133a5e5ce68bc1152c1096f553b421e11fc3098912530a34c01f7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page