A plugin that injects up-to-date cloud cost awareness into coding agents to prevent unexpected billing from metered services.

Stars

160

7-day growth

+67

Forks

2

Open issues

0

License

MIT

Last updated

2026-07-19

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It addresses the gap between frozen LLM knowledge and rapidly changing cloud pricing by versioning cost rules in the repo and injecting them into agent sessions across 11+ agent hosts.

Who it is for

  • Developers using AI coding agents (Claude Code, Copilot, etc.)
  • Non-technical users who deploy via agents and face surprise bills
  • Teams managing cloud costs in agent-driven development workflows

Use cases

  • Preventing infinite loops that incur per-request charges (e.g., Cloudflare KV writes)
  • Avoiding forgotten ephemeral resources (e.g., Neon databases, E2B sandboxes) that run up bills
  • Checking free-tier quotas before deploying to services like Vercel or GitHub Actions

Strengths

  • Supports 11+ agent platforms with a single ruleset and source of truth
  • Researched and cross-checked pricing data (22 service groups, 2025-07) with drift detection
  • Non-blocking — provides context without halting the agent's command
  • Two-tier intensity (quiet/normal/strict) to match user tolerance for reminders

Considerations

  • Scoped to normal usage cost awareness, not credential leaks or fraud
  • Requires manual installation per agent platform (npm package plus host-specific setup)
  • Static rule copies must be regenerated after editing AGENTS.md to stay in sync

README quick start

frugal

Cloud cost awareness for coding agents.

English | 简体中文


Agents deploy to Vercel, spin up Neon databases, run E2B sandboxes, push commits that trigger GitHub Actions — all metered — and non-technical users only find out on the monthly bill. frugal makes the agent spend consciously: surface free-tier numbers and fail-open vs hard-pause on first touch, optional usage digs, one-line notice before lasting paid resources, and tear down of what it left running. It never blocks the command.

Works across Claude Code, Codex, GitHub Copilot, Qoder, Gemini CLI, OpenCode, pi, Cursor, Windsurf, Cline, and Kiro — one ruleset, one source of truth.

Why a plugin, not “just tell the model to be careful”?

LLMs ship with frozen training-cut knowledge of free tiers, defaults, and “how this cloud bills.” Cloud pricing and fail-open traps move every quarter (Workflows per-step billing, Spend Management notify-only, free-tier cliffs). The model still “remembers” last year’s story.

frugal keeps the numbers and tripwires in the repo — versioned, researched, testable — and injects them into the agent loop on each session / pre-CLI hit. Update the package (or pull the repo) and the loop gets current billing, not whatever the weights last memorized.

How it saves you money

Two layers, both context-cheap (~1.7 KB of rules per session + at most 5 full reminders per day — after that, new services still get a numbers-only line — never blocking), with intensity levels like a volume knob:

LevelSession + injectWhen to use
quietFree-tier / key quota numbers onlyHate noise but still want numbers
normal (default)Numbers + one trap; dig optionalMost people
strict+ real-bill context; confirm scary actionsNon-technical / vibe-coding
  • Session rules (SessionStart): one short line on first touch, announce lasting paid resources, kill ephemeral things, escalate only for scary spend.
  • Just-in-time data (PreToolUse): vercel → short Vercel line, wrangler r2 → R2, git push with workflows → Actions — once per provider per session. Horror-dollar amounts stay in strict (and the skill), not every deploy.

This is scoped to normal usage that quietly runs up a bill — wrong tier, a forgotten resource, a loop that hits a paid meter, a config default nobody checke

Related repositories

Similar projects matched by category, topics, and programming language.

react
Featured
react GitHub avatar

react

React is a JavaScript library for building user interfaces with declarative, component-based, and cross-platform design.

Web DevelopmentFrontend Frameworks
246,741
tandpfun
Featured
tandpfun GitHub avatar

wardrobe

A GPT‑image powered app that extracts individual garment cutouts from photos, organizes them into a digital wardrobe, and generates modeled outfit previews.

JavaScript
1,570
mshumer
Featured
mshumer GitHub avatar

Claude-of-Duty

A browser-based first-person shooter built entirely with procedural generation and orchestrated AI agents, featuring 55k lines of Three.js/WebGL2 code and no art assets.

AI & Machine LearningAI Agents
1,234