Claude Cost Optimizer
by Sagargupta16
Claude Cost Optimizer is a Claude Code skill that cuts your token spend with copy-paste configs and proven strategies instead of vague advice. It claims 30-60% savings on Claude Code costs in normal use, with a 'strict' mode in its cost-mode skill targeting 60-70% output reduction — and the repo documents one real case hitting $114.18/month, a 61% cut. The core is a cost-mode skill that strips unnecessary content from responses, suggests cheaper models for simple tasks, recommends CLI tools instead of burning tokens, adds session-awareness reminders, and prefers diffs over full file rewrites. Around it sits a full toolkit: context optimization (.claudeignore and CLAUDE.md management), model-selection guidance for when to reach for Opus vs Sonnet vs Haiku, workflow patterns like plan mode and subagents, a team-budgeting framework, MCP and agent cost analysis, prompt-caching guidance, and CLI tools to actually measure your spend. Install it into Claude Code via the plugin marketplace, or into any multi-agent environment with 'npx skills add Sagargupta16/claude-cost-optimizer'. It's MIT-licensed.
Installation
Key Features
- ✓cost-mode skill: strips filler, suggests cheaper models, prefers diffs over rewrites, and adds session-awareness reminders
- ✓Claims 30-60% savings in normal use; a strict mode targets 60-70% output reduction (one documented case: 61%, $114.18/month)
- ✓Context optimization via .claudeignore and CLAUDE.md management to stop wasting tokens on irrelevant files
- ✓Model-selection guidance for choosing Opus vs Sonnet vs Haiku per task
- ✓Team-budgeting framework plus MCP and agent cost analysis and prompt-caching guidance
- ✓CLI tools to measure spend, so savings are verified, not assumed
Use Cases
- →Cutting Claude Code bills 30-60% without changing what you build
- →Routing simple tasks to Haiku or Sonnet and saving Opus for work that needs it
- →Setting and tracking a per-developer or per-team token budget
- →Stopping context bloat — using .claudeignore and a tight CLAUDE.md so you don't pay to re-read junk files