Claude Code plugin
Claude Cost Optimizer
Cut Claude Code costs with sourced levers -- prompt caching, model routing, Batch -- plus an installable skill, CLI tools, a cost calculator and 12 deep-dive guides
Install
/plugin marketplace add Sagargupta16/claude-cost-optimizerFound in the project README. Check it for setup steps after installing.
git clone https://github.com/Sagargupta16/claude-cost-optimizer.gitFrom the README
Claude Cost Optimizer
Cut Claude Code costs with sourced levers: cache reads bill at 5% of input on Opus 5.5 and Sonnet 5.5, Haiku 5.5 costs 1/40 of Opus 5.5 per token (prompts up to 100K tokens), and Batch is 50% off (Anthropic pricing) -- with an installable skill, CLI tools, and 12 deep-dive guides.
No one has published a typical saving for a mixed Claude Code workload, so this repo does not quote one. What is measured: prompt caching cut cost by a factor of 4.8 to 7.2 on a research agent and by 83% to 86% on a small triage agent (Anthropic's cost guide, read 2026-11-01); Anthropic's cost-optimization cookbook stacked model choice, effort and caching on one agent for a 13x lower cost per task ($0.2906 to $0.0223, 10/10 tasks passed both ways); and the cost guide's search over effort and model on tau2-bench retail cut cost per task 61% ($0.142 to $0.055) within a 2-point pass-rate band. See How far can you actually go?, and price your own sessions with /usage or claude-rate.
Live site: sagargupta.online/claude-cost-optimizer -- Repo Analyzer | Cost Calculator | Badge Checker. How the pieces fit: How It Is Built.
Repo Analyzer: paste a public repo, get a grade and the fixes
Cost Calculator: cache-aware monthly spend and where it goes
Screenshots come from scripts/capture-screenshots.py (Playwright against a local build, 1440x900 and 390x844), which also renders the site's 1200x630 social preview image.
Install
Claude Code (official plugin system):
Multi-agent (Cursor, Cline, Codex, 40+ agents):
Then activate in any session:
What cost-mode Does
Technical accuracy is never sacrificed. Code in commits and PRs is written normally.
Full skill documentation
Rate your setup
Locally, one command (recommended)
claude-rate runs on your filesystem -- no…How plugins work
- A plugin bundles slash commands, subagents, skills, hooks, MCP servers and status lines so they install together.
- Add the marketplace inside Claude Code with /plugin marketplace add Sagargupta16/claude-cost-optimizer, then run /plugin to pick what to install.
- You can turn a plugin off again from /plugin without deleting anything.
Details
- Repository
- Sagargupta16/claude-cost-optimizer
- Language
- Python
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- ai-codingai-developmentai-toolsanthropicbest-practicesclaudeclaude-codecost-optimizationcost-reductiondeveloper-toolsllmprompt-engineering
- Listed in
- awesome-claude-code-toolkit
FAQ
What is Claude Cost Optimizer?
Cut Claude Code costs with sourced levers -- prompt caching, model routing, Batch -- plus an installable skill, CLI tools, a cost calculator and 12 deep-dive guides It is a plugin for Claude Code, from Sagargupta16/claude-cost-optimizer on GitHub.
How do I install Claude Cost Optimizer?
Run /plugin marketplace add Sagargupta16/claude-cost-optimizer inside Claude Code, then follow the setup in the README.
Is Claude Cost Optimizer popular?
Sagargupta16/claude-cost-optimizer has 42 GitHub stars and 4 forks, and is included in 1 curated Claude Code list. It was last updated on 3 November 2026.
More plugins & marketplaces
Sawyer Mart
70SawyerHood/sawyer-mart
Claude Code plugin marketplace
Consultant
57yoichiojima-2/consultant
50+ consulting frameworks used by McKinsey, BCG, Bain, and Accenture — packaged as a Claude Code plugin
Jerry
37geekatron/jerry
Plugin adding behaviour and workflow guardrails with knowledge accrual.
Deep Implement
55piercelamb/deep-implement
Claude Code plugin that implements code from /deep-plan sections with TDD, code review, and git workflow
Skill Remnawave Xray
69Case211/skill-remnawave-xray
Claude Code skill/plugin: Remnawave + Xray Reality/Vision + Caddy selfsteal + mihomo — reference, config generation, diagnostics
Salesably Marketplace
54Salesably/salesably-marketplace
Claude Code plugins for sales and marketing teams. Built by Salesably.ai.
Browse the most popular Claude Code mods, all plugins & marketplaces, or the skills and MCP server directories.