Python cost-optimization

Open-source Python projects categorized as cost-optimization

Top 23 Python cost-optimization Projects

cost-optimization
  1. skypilot

    The AI Compute Platform for frontier teams. SkyPilot turns fragmented AI compute into one AI supercomputer, so frontier AI teams build custom intelligence faster.

    Project mention: Skypilot: Run, manage, and scale AI workloads on any AI infrastructure | news.ycombinator.com | 2026-01-30
  2. Kargo

    Stop Scripting Promotions. Start Shipping with Kargo. Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.

    Kargo logo
  3. metaflow

    Build, Manage and Deploy AI/ML Systems

  4. cascadeflow

    Cascading runtime for AI agents. Optimize cost, latency, quality, and policy decisions inside the agent loop.

    Project mention: "Smart Model Routing: Why Your AI Agent Shouldn't Use the Same Model for Everything" | dev.to | 2026-06-27

    cascadeflow: https://github.com/lemony-ai/cascadeflow

  5. optscale

    FinOps and cloud cost optimization tool. Supports AWS, Azure, GCP, Alibaba Cloud and Kubernetes.

  6. service-screener-v2

    A tool for customers to evaluate their AWS service configurations based on AWS and community best practices and receive recommendations on potential improvements.

  7. kubeledger

    System of Record for Kubernetes cost accounting: per-namespace CPU, memory and GPU usage, with the 30% non-allocatable overhead made visible. Connects to AI assistants via MCP (Claude, Gemini, Mistral, Cursor) for plain-language analysis. Formerly Kube-Opex-Analytics.

  8. koku

    An open source solution for cost management of cloud and hybrid cloud environments.

  9. AppSignal

    Monitoring that respects your time & budget. APM, error tracking, and dashboards for modern web apps. Ten-minute setup, transparent flat pricing, and support from engineers who actually use the product.

    AppSignal logo
  10. frugon

    Free, local, open-source LLM cost analyzer - see where your LLM bill leaks, on your machine.

    Project mention: Claude Fable 5 vs. Kimi K3 vs. GPT 5.6 Sol [video] | news.ycombinator.com | 2026-07-17

    Re: "Show HN: Frugon – Find which LLM calls a cheaper model could handle (local, MIT)" https://github.com/Rodiun/frugon and cost to converge:

  11. ec2-spot-converter

    A tool to convert AWS EC2 instances back and forth between On-Demand and Spot billing models.

  12. llm-router

    Universal LLM router for AI coding tools. Works with Claude Code, Cursor, Codex, Gemini CLI, Copilot and more. Free-first fallback chain cuts costs 35-80%. (by ypollak2)

    Project mention: LLM Router – MCP server that routes Claude Code tasks to cheaper models | news.ycombinator.com | 2026-04-05
  13. credit-optimizer-v5

    Save 47% on Manus AI credits automatically. Zero downsides. Pays for itself in ~27 prompts. Free MCP Server (PyPI) + $12 Manus Skill bundle with Fast Navigation (115x speed boost).

    Project mention: How I Built a Credit Optimizer That Saves 30-75% on AI Agent Costs (Open Architecture) | dev.to | 2026-05-25

    The Credit Optimizer is available at creditopt.ai — it includes:

  14. SpecJudge

    Local-first CLI that reads your Spec-Driven Development artifacts and recommends the best value-for-money AI model to implement them. Powered by Ollama — your specs never leave your machine.

    Project mention: Specjudge, tells you which model you should use for each task | news.ycombinator.com | 2026-08-06
  15. justllms

    Production-ready Python library for multi-provider LLM orchestration

  16. GreenKube

    GreenKube: CO2 monitoring and FinGreenOps tool for K8s

    Project mention: Show HN: GreenKube – Open-source K8s cost and CO2 optimization engine | news.ycombinator.com | 2026-06-03
  17. localharness

    An open-source, model-agnostic agent harness for local LLMs. Define agents in YAML (tools, memory, deny-first permissions) and run them against any OpenAI-compatible endpoint: vLLM, Ollama, LM Studio, or llama.cpp.

    Project mention: LocalHarness – an agent harness for local LLMs (open-source) | news.ycombinator.com | 2026-06-15
  18. permafrost

    Freeze Claude Code's prompt prefix so DeepSeek's automatic cache always hits — alignment proxy + coalescing + keepalive, installable as a CC plugin. Measured 64% cheaper on real Claude Code traffic. (by jianzhichun)

    Project mention: Permafrost – freeze Claude Code's prompt prefix, cut your DeepSeek bill 64% | news.ycombinator.com | 2026-06-09
  19. wattage

    A token-spend profiler and cost-regression gate for AI agents.

    Project mention: Show HN: Wattage – finds the tokens your Claude Code sessions wasted | news.ycombinator.com | 2026-08-26
  20. botanu-sdk-python

    SDK to track cost-per-outcome for AI workflows

    Project mention: Show HN: Cost per Outcome for AI Workflows | news.ycombinator.com | 2026-02-24
  21. finopsmcp

    The headless FinOps intelligence layer: API-first, agent-first cost control for cloud + AI. Connect your cloud stack in Claude, Cursor, or the terminal, and gate what agents do to your infra before they act. Propose-only. Open source, local-first. (by getnable)

    Project mention: Show HN: Nable – Local-first cost intelligence tool for cloud and AI | news.ycombinator.com | 2026-07-15
  22. SCAPO

    🧘 Reddit-powered AI optimization tips | Save your time and credits | can cover 380+ services | Real tips from real users

  23. 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.

    Project mention: Why Budget Alerts Never Stop Runaway LLM Spend | dev.to | 2026-08-29

    Most of the annoying parts here are already solved. baar-core is an open-source Python library that wraps this into a decorator around your LLM client: pip install baar-core, set a cap, and it raises a 402 before the provider is ever contacted rather than after the tokens are billed. Atomic reservation is the piece I'd have gotten wrong on my own, and it's the piece that stops concurrent calls from jointly clearing a limit that neither one individually exceeded. noburn.dev is what we built on top of it for teams: the same pre-flight enforcement blocking the API call before it fires when a user is over budget, plus per-user caps and the ledger view.

  24. llmslim

    Shrink LLM prompts by 40-70% while preserving meaning, semantic chunking + extractive summarization

    Project mention: Building LLMSlim: Architecture Deep-Dive into Deterministic Prompt Compression | dev.to | 2026-07-18

    GitHub with reproducible benchmarks: https://github.com/Thanatos9404/llmslim

  25. arch-compiler

    An architecture-level AI harness that compiles constraints and NFRs into explicit, reviewable architecture decisions. Combines a deterministic compiler, curated pattern registry, and agent workflow skills to drive approval, re-approval, and implementation against an architectural contract.

    Project mention: Architecture Is the Missing Layer in AI Harness Engineering | dev.to | 2026-04-04

    Architecture Compiler: https://github.com/inetgas/arch-compiler

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Python cost-optimization discussion

Log in or Post with

Python cost-optimization related posts

  • Show HN: Wattage – finds the tokens your Claude Code sessions wasted

    1 project | news.ycombinator.com | 26 Aug 2026
  • Catching the AI Agent Failure Mode Your Loop Guard Can't See

    1 project | dev.to | 27 Jul 2026
  • Beyond Rule-Based Gateways: Implementing a Layer 5 Homeostatic Radar for Fintech Ingestion via Python

    2 projects | dev.to | 2 Jul 2026
  • Show HN: Tokentoll, a CI gate for LLM API cost regressions

    1 project | news.ycombinator.com | 30 May 2026
  • How I Built a Credit Optimizer That Saves 30-75% on AI Agent Costs (Open Architecture)

    1 project | dev.to | 25 May 2026
  • My Manus AI Credit Usage After 30 Days — The Data

    1 project | dev.to | 16 Apr 2026
  • The Hidden Cost of AI Agents: How I Built an MCP Server That Saves 47% on Manus Credits

    1 project | dev.to | 26 Mar 2026
  • A note from our sponsor - Kargo
    akuity.io | 11 Sep 2026
    Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now. Learn more →

Index

What are some of the best open-source cost-optimization projects in Python? This list will help you:

# Project Stars
1 skypilot 10,568
2 metaflow 10,255
3 cascadeflow 3,965
4 optscale 2,181
5 service-screener-v2 570
6 kubeledger 485
7 koku 312
8 frugon 212
9 ec2-spot-converter 199
10 llm-router 78
11 credit-optimizer-v5 50
12 SpecJudge 47
13 justllms 43
14 GreenKube 32
15 localharness 31
16 permafrost 22
17 wattage 22
18 botanu-sdk-python 18
19 finopsmcp 17
20 SCAPO 17
21 Baar-Core 16
22 llmslim 15
23 arch-compiler 10

Sponsored
Stop Scripting Promotions. Start Shipping with Kargo
Kargo automates promotion across dev, staging, and prod with approval gates and verification. Open source, built by the team behind Argo CD. Download now.
akuity.io

Did you know that Python is
the 1st most popular programming language
based on number of references?