Open source · 2026
AI Cost Guard
Local-first gateway for AI coding agents: budget checks, rule-based command guardrails and metadata-only usage logging.
ContextOpen-source tool for developers who use coding agents such as Cline and Claude Code in VS Code.
ProblemAgent usage and spend are often invisible until a bill or quota error appears, and agents can request secrets or waste tokens on huge contexts.
SolutionA small CLI and local proxy between the coding agent and the configured model provider, with editable YAML rules, a local SQLite budget store and a reversible install.
Stack
PythonCLIProxySQLiteYAML
Links
AI Cost Guard is deliberately small: it does not replace the agent or the model provider. It makes agent usage more observable, more constrained and easier to reason about.