Topics / #cost-optimization
Cost-optimization projects on GitHub
Tools for estimating and reducing cloud infrastructure spending.
As of , the most-starred Cost-optimization projects on GitHub are infracost (12.6K stars), automq (10.9K stars) and skypilot (10.7K stars). GitHub.Locker tracks 15 Cost-optimization repositories with 80.3K stars combined. The fastest-growing on October 16 was cost-xray, with +206 stars in a day.
Hot right now
Most stars gained in a day · Oct 16
+206cost-xray
tigerless-labs/cost-xray · ★ 5.4Kcost-xray is a local tool that captures the raw API traffic between Claude Code or Codex and their providers, then breaks down exactly what's in each request and what each part costs — system prompts, tool schemas, MCP blocks, cached vs fresh tokens, and more.
router
weave-os/router · ★ 5.6KA drop-in proxy that routes every prompt from your coding agent or app to the best available model across Anthropic, OpenAI, Gemini, and OSS models via OpenRouter, cutting inference costs by 40-70% just by swapping the API endpoint.
+3pxpipe
teamchong/pxpipe · ★ 7.5Kpxpipe is a local proxy that cuts Claude Code's (and other LLM clients') input token usage by rendering bulky context — system prompts, tool docs, and conversation history — as compact PNG images instead of raw text, since an image's token cost depends on its pixel size, not the amount of text packed into it.
+3hermes-jev-skills
kerpopule/hermes-jev-skills · ★ 1.1KHermes Jev Skills gives an AI agent a cheap, fast 'second brain' for small routine decisions (model routing, memory filtering, skill selection, turn compaction, computer/browser use) so the expensive frontier model only does the writing. The decisions are handled by Jev, TypeSafe's calibrated decision model.
The all-time top
15 projects · by stars
- 12.6K
#1 · infracost/infracost
infracost
Infracost gives engineers, AI coding agents, and CI/CD pipelines cloud cost estimates and FinOps recommendations for Terraform, Terragrunt, CloudFormation, and AWS CDK before changes are deployed.
- 10.9K
#2 · AutoMQ/automqautomq
AutoMQ is a diskless, stateless fork of Apache Kafka that stores all log data on S3 or S3-compatible object storage instead of local disks, cutting cloud costs by up to 10x and removing cross-AZ traffic fees.
- 10.7K
#3 · skypilot-org/skypilotskypilot
SkyPilot is an open-source system for running, managing, and scaling AI workloads — training, serving, batch inference — on any infrastructure: your own Kubernetes or Slurm clusters, reserved GPUs, or 20+ clouds.
- 4

metaflow
10.3KNetflix/metaflow · PythonMetaflow is an open-source Python framework for building, managing and deploying real-life AI and ML systems — from quick prototyping in notebooks to reliable production deployments.
- 5

pxpipe
7.5Kteamchong/pxpipe · TypeScriptpxpipe is a local proxy that cuts Claude Code's (and other LLM clients') input token usage by rendering bulky context — system prompts, tool docs, and conversation history — as compact PNG images instead of raw text, since an image's token cost depends on its pixel size, not the amount of text packed into it.
- 6

ClawRouter
6.6KBlockRunAI/ClawRouter · TypeScriptClawRouter is an open-source LLM router built for autonomous agents: it picks the cheapest capable model from 78 models across 9 providers in under 1ms, entirely locally, and lets an agent pay per request with USDC (via the x402 protocol) instead of signing up for a human account.
- 7
router
5.6Kweave-os/router · GoA drop-in proxy that routes every prompt from your coding agent or app to the best available model across Anthropic, OpenAI, Gemini, and OSS models via OpenRouter, cutting inference costs by 40-70% just by swapping the API endpoint.
- 8

cost-xray
5.4Ktigerless-labs/cost-xray · Pythoncost-xray is a local tool that captures the raw API traffic between Claude Code or Codex and their providers, then breaks down exactly what's in each request and what each part costs — system prompts, tool schemas, MCP blocks, cached vs fresh tokens, and more.
- 9
cascadeflow
3.9Klemony-ai/cascadeflow · PythonAn open-source in-process intelligence layer (cascading runtime) for AI agents: it sits inside the agent execution loop and optimizes every model call for cost, latency, quality, budget, compliance, and energy.
- 10

ai-agents-the-definitive-guide
2.8KNicolepcx/ai-agents-the-definitive-guide · Jupyter NotebookIt is the companion code repository for the book 'AI Agents - The Definitive Guide': a set of runnable Jupyter notebooks that walk through every chapter, from basic agent patterns to production deployment and threat modeling.
- 11
typesafe-computer-use
1.2Kawlevin/typesafe-computer-use · PythonA Python agent that drives your Mac toward a goal you type in plain English: it OCRs the screen, a cheap classifier picks each action, and it clicks — about $0.0002 per step.
- 12

hermes-jev-skills
1.1Kkerpopule/hermes-jev-skills · PythonHermes Jev Skills gives an AI agent a cheap, fast 'second brain' for small routine decisions (model routing, memory filtering, skill selection, turn compaction, computer/browser use) so the expensive frontier model only does the writing. The decisions are handled by Jev, TypeSafe's calibrated decision model.
- 13

ai-system-design
672amitshekhariitbhu/ai-system-design · MarkdownA free, open-source guide that teaches AI System Design step by step: how to combine GPUs, inference servers, caches, vector databases, AI agents, guardrails, and evals into one system that is fast, cheap, reliable, and safe.
- 14

jev-router
602gargpratyush/jev-router · JavaScriptjev-router automatically picks the cheapest capable AI model for each turn in Claude Code or OpenAI Codex, sending simple requests to a fast/cheap tier and hard requests to a stronger tier, while keeping each CLI's native interface, tools, and authentication untouched.
- 15
Astra-Ares
308miuuyy/Astra-Ares · JavaScriptAstra-Ares is an experimental tool that lets Jev, an AI evaluator, adapt GPT-6's reasoning effort while a Codex task runs, matching thinking depth to each next step to reduce token usage.
Related topics
Often tagged together