ccam-cost-guard — Claude Code plugin: costs and setup
The ccam-cost-guard plugin tracks Claude Code spending, forecasts the month-end bill, and sets alerts when cost thresholds are reached.
MIT ★ 1,198 updated 2026-10-23
/plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor
/plugin install ccam-cost-guard@claude-code-agent-monitor-pluginsWhat ccam-cost-guard does
ccam-cost-guard compares current spending with a target budget and projects the month-end total from the daily trend. It also surfaces the most expensive sessions and estimates savings from routing suitable work to lower-priced models.
The plugin uses the Agent Monitor pricing engine and connects cost-threshold alert rules to the monitoring flow. Its dashboard is available at http://localhost:4820, so that address is part of the setup for viewing spend data and alerts.
Installation is provided through the Claude Code marketplace. Codex appears among the supported platforms, while the supplied installation path targets Claude Code.
What it helps with
- track spending against a target budget
- project the month-end cost from daily usage
- identify the most expensive sessions
- estimate savings from cheaper model routing
- set alerts for spending thresholds
Example prompts for the agent
- Compare current Claude Code spending with the target budget and forecast the month-end total.
- Find the priciest sessions and estimate savings from routing work to cheaper models.
- Set cost-threshold alert rules and connect them to the dashboard at
http://localhost:4820.
How to install ccam-cost-guard
Plugin marketplace
/plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor/plugin install ccam-cost-guard@claude-code-agent-monitor-pluginsStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about ccam-cost-guard
How do I install ccam-cost-guard in Claude Code?
Add the marketplace with /plugin marketplace add hoangsonww/Claude-Code-Agent-Monitor, then install the plugin with /plugin install ccam-cost-guard@claude-code-agent-monitor-plugins.
What does ccam-cost-guard do?
It tracks spending against a budget, forecasts the month-end cost, highlights expensive sessions, estimates savings from cheaper models, and wires up cost alerts.
What does ccam-cost-guard use to monitor costs?
The plugin relies on the Agent Monitor pricing engine and the dashboard at http://localhost:4820 for spend data and cost-alert rules.
Source text
ccam-cost-guard · MIT
Budget tracking, spend forecasting, and cost-threshold alerts for Claude Code usage via the Agent Monitor pricing engine. Watches spend against a target budget, projects month-end cost from the daily trend, surfaces the priciest sessions, estimates savings from cheaper-model routing, and wires up cost alert rules — all backed by the dashboard at http://localhost:4820.
© Son Nguyen · MIT · hoangsonww/Claude-Code-Agent-Monitor