PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Cost Control Python Packages

Python packages with the GitHub topic cost-control. Sorted by relevance, with stars and monthly downloads.
loopgain-ai
loopgain

An open-source cost controller for AI agent loops — stops a loop when it's actually converged and rolls back before it degrades, instead of running to a fixed max_iterations cap. Real-time loop-gain (Aβ) bands + best-so-far rollback. Adapters for LangGraph, CrewAI, AutoGen, LangChain, OpenAI Agents, and Claude Agent SDK; raw API for custom stacks.

4K 3 1
figuard
figuard

Pre-flight spend authorization for AI agents. Reserve-confirm lifecycle, concurrency-safe, append-only audit ledger.

3K 3 0
amabito
veronica-core

Runtime containment kernel for LLM agents. Enforces budget, step, retry, and circuit-breaker limits before the model call.

2K 5 0
bmdhodl
agentguard47

Your AI agent just burned $200. AgentGuard stops it at $5. Runtime cost guardrails for AI agents — budget enforcement, loop detection, kill switch. Zero dependencies, MIT licensed.

2K 4 2
anilatambharii
agentmesh-proxy

The governance plane for AI agents — policy, budget, and audit across every framework. Istio for AI agents.

2K 1 1
vishal-dehurdle
state-harness

Runtime safety net for LLM agents. Detects token spirals, kills doomed tasks early, tells you exactly why. Rust core, Python SDK. pip install state-harness

1K 16 2
marcoschulz7
agentbrake-sdk

The emergency brake for multi-agent systems. Stop runaway LangChain & CrewAI agents before they burn your budget.

1K 1 0
arieradle
shekel

LLM budget control and cost governance for AI agents. Python library for token budgets, usage limits and guardrails for OpenAI, Anthropic, LangChain, LangGraph and agentic systems.

1K 16 1
runcycles
langchain-runcycles

LangChain agent middleware for Cycles — pre-tool-call authorization and per-tenant budget enforcement for Python agents using create_agent

1K 0 0
MonetiseBG
monetise-circuit-breaker

Runtime economic governance for AI agents. Circuit Breaker adds risk-managed execution, cost ceilings, and kill switches to autonomous AI workflows.

856 0 0
figuard
figuard-langchain

Pre-flight spend authorization for AI agents. Reserve-confirm lifecycle, concurrency-safe, append-only audit ledger.

856 3 0
runcycles
runcycles

Python AI agent budget control — enforce LLM cost limits, tool permissions, and multi-tenant policies before agent actions execute.

696 0 1
wangkevin2100-cell
agentcap-guard

Provider-agnostic hard dollar budgets + loop detection for AI agent runs. Stops the spend before it happens.

513 0 0
trytenet
tenet-python

Python SDK for Tenet — a hard cost cap, approval gates, and a tamper-evident audit log for every AI agent tool call. One line wraps any agent framework.

481 0 0
HYP3R00T
costcutter

CostCutter is a serverless, Python-based tool that helps users manage AWS resources and avoid surprise cloud costs. By monitoring budgets and automatically cleaning up resources when thresholds are exceeded, CostCutter keeps your AWS environment tidy and cost‑efficient.

429 1 0
runcycles
runcycles-openai-agents

Runtime budget, action, and audit authority for the OpenAI Agents SDK — enforce LLM cost limits, tool call caps, and audit trails before execution.

347 0 0
teilomillet
enzu

Budgeted LLM runs with hard caps + typed outcomes + async job mode. Python/CLI/HTTP. OpenAI-compatible.

278 3 1
magicrails
magicrails

🛑 Emergency brake for AI agents. Hard budget caps, loop detection, and state-stasis guards in 3 lines of Python. Stops runaway agents before the $500 overnight invoice.

229 1 0
veloryn-intel
veloryn

Deterministic cost-bounded execution for multi-step LLM workflows

206 1 0
rocketlang
langchain-kavachos

The kill-switch between your AI agents and your credit card. Agentic spend governance for Claude Code, OpenAI Codex, and any JSONL-logging agent.

197 0 0
rocketlang
crewai-kavachos

KavachOS DAN gate + budget guard for CrewAI agents — pre-execution governance via AEGIS

166 0 0
rocketlang
xshieldai-langchain

The kill-switch between your AI agents and your credit card. Agentic spend governance for Claude Code, OpenAI Codex, and any JSONL-logging agent.

156 0 0
rocketlang
xshieldai-crewai

The kill-switch between your AI agents and your credit card. Agentic spend governance for Claude Code, OpenAI Codex, and any JSONL-logging agent.

145 0 0
samuelbrhane
tokvigil

Application-layer AI usage control platform with SDKs and a policy engine to enforce budgets, limits, and audit logs per user, feature, and plan.

108 0 0
    • Data from PyPI, GitHub, ClickHouse, and BigQuery