Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

LLM Cost Python Packages

Python packages with the GitHub topic llm-cost. Sorted by monthly downloads, with stars and forks.
Helicone
helicone-helpers

🧊 Open source LLM observability platform. One line of code to monitor, evaluate, and experiment. YC W23 🍓

46K 6K 709
superbasedapp
superbased-observer

Track what every AI coding agent costs and see the limit coming. Per-session, per-model cost for Claude Code, Codex, Cursor and 37 more tools from your provider's own token counts, plus limit gauges, a dangerous-command guard and dashboard terminals. Free, Apache-2.0, runs on your machine.

11K 66 6
metergraph
metergraph

Zero-dependency Python and TypeScript SDKs for function-level LLM cost attribution across major LLM providers and integrations, including OpenAI, Anthropic, Gemini, and Vercel AI.

8K 1 1
OptimNow
cloud-finops-mcp

Cloud FinOps Skill & MCP by OptimNow. FinOps Foundation aligned knowledge for AI agents: cloud cost (AWS/Azure/GCP/OCI), AI inference economics, Kubernetes, data platforms, allocation, chargeback, anomaly management, waste detection, GreenOps. Installs into 12 AI tools, or connect the hosted MCP server by URL. Content refreshed weekly.

7K 76 20
ferro-labs
ferrogw

Unified AI Gateway for 30+ LLMs (OpenAI, Anthropic, Bedrock, Azure etc) with Caching, Guardrails, A/B test & cost controls. Go-native Fastest & Scalable AI Gateway LiteLLM & Kong AI Gateway alternative.

5K 302 39
glassflow
glassflow-rius

OpenTelemetry-native agent observability: trace every LLM call, tool call and agent step, with cost per call, alerts, and Claude Code / Codex / Cursor session tracing. Python SDK.

5K 3 0
kazenai-ai
kazenai

A hard spending limit for every customer's AI. Python SDK that checks each OpenAI and Anthropic call against a limit before it runs.

4K 0 0
orvi2014
baar-core

Budget-Aware Agentic Routing (BAAR) — Intelligent LLM model selection with a zero-call financial kill-switch. Save 90% on costs without losing accuracy.

4K 20 3
pach-boop
tokencur

The CUR for your tokens — convert multi-provider AI/LLM usage into FOCUS-conformant cost datasets, validated by the FinOps Foundation's focus-validator

4K 1 0
kalibr-ai
kalibr

Stop overpaying to run your agents. Kalibr routes every request to lower-cost model and tool paths without degrading performance.

3K 34 3
gaurav-gandhi-2411
adk-tracegauge

See what your Google ADK agent costs (per-invocation USD from token usage) and fail CI when it gets more expensive.

3K 0 0
pouriaetab
llmledger-mcp

Which AI model should you use, and what will it cost? Every price change in LiteLLM's catalogue since 2023, Arena ratings, a competing risks model, an MCP plug-in and an Agent Skill. Rebuilt daily.

3K 0 0
magna56
fiscallm

Open-source AI cost and margin per user. Matches each user's OpenAI, Claude and Gemini cost to what they pay you (RevenueCat, Stripe, CSV). Self-hostable. TypeScript and Python SDKs.

3K 1 3
domondi1
inferrail

Self-hosted OpenAI/Anthropic-compatible gateway: give each AI agent run a dollar budget, enforced before the provider, with a payload-free per-run cost record.

3K 1 0
YauhenBichel
context-handoff

Claude Code plugin: meter what each turn costs, write a handoff note, resume cheaply after /clear

2K 0 0
kodji7202-code
runledger-ai

Audit, cost and real-time guard for AI coding agents: receipts, risk score, rollback. Claude Code, Codex CLI, Factory Droid, Aider.

2K 0 0
helicone
helicone

🧊 Open source LLM observability platform. One line of code to monitor, evaluate, and experiment. YC W23 🍓

2K 6K 714
dev-formata-io
limitr

Most flexible usage billing & limits for AI: credits, metering, caps, and custom deals for every user and agent, in one policy that runs in your app and changes live.

2K 13 1
KushagraKanaujia
throttle-pro

Stop renting your AI. Throttle tests your AI calls against cheaper models on your own traffic and moves the ones that pass. Open source.

2K 7 6
kazenai-ai
kazenai-finops

A hard spending limit for every customer's AI. Customer SDK for Agent FinOps: limits checked before each call, with cost per customer, feature and workflow.

2K 0 0
Abhiindigloo
model-finder-mcp

Model Finder: find the cheapest AI model that passes your own tests. MCP server + Agent Skills for model audits, evals, cheapest-first routing and local model sizing.

2K 7 2
amirimi
litellm-brownout

LiteLLM plugin that downgrades selected routes to cheaper models as a team's budget runs out

1K 1 1
thequantumfalcon
kry-attest

Tamper-evident receipts for reported LLM efficiency events, with offline integrity and benchmark-arithmetic verification

1K 1 0
superbasedapp
superbased-sdk

Track what every AI coding agent costs and see the limit coming. Per-session, per-model cost for Claude Code, Codex, Cursor and 37 more tools from your provider's own token counts, plus limit gauges, a dangerous-command guard and dashboard terminals. Free, Apache-2.0, runs on your machine.

1K 66 6
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology