LLM Cost

Control what an LLM feature or agent pipeline costs without degrading it: fetch today's prices and count tokens for the exact model, not from memory, attribute token spend to a prompt path before changing anything, judge caching on reads per write, not hit rate, since a write costs a premium, route cheap steps to a small model against a measured bar, retrieve instead of stuffing, batch what nobody waits on, and set per-request and per-tenant ceilings with degrade, queue or refuse decided in advance. Use whenever someone says "our OpenAI bill tripled this month", "how do I use prompt caching", "should this call a cheaper model", "our agent loop is burning tokens", or "cap what a single request can spend". Not for running a bulk job through a batch API (llm-batch-processing), reading a usage or trace export (llm-trace-reader), the cloud bill (cost-review), load testing (capacity-planning), CPU time (profiling) or telemetry design (instrumentation).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit f959e38d95

Frequently asked questions

npx get-skill add greenblacked/llm-cost