cost-local
What it does
This skill estimates what it costs to run an AI model on your own computer or server, including power and hardware. It is for people weighing a local AI setup against a paid online service.
When to use it
- ✓When you are deciding whether to buy hardware for running AI models locally.
- ✓When you want to compare a local model's cost with a hosted one.
- ✓When you want to see how much use makes a local setup pay off.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-local/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Would it be cheaper to run an AI model on my own computer than to pay for an API?”
5 new skills a week. 1 minute to read.
How it works
The skill uses your power use, electricity price, hardware price and measured speed to estimate the cost per million tokens. It shows the result at several usage levels, because usage changes the answer.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Cost Local
node ${CLAUDE_PLUGIN_ROOT}/scripts/local-cost.mjs --tok-per-s 80 --busy 0.25 --compare claude-haiku-4-5
Inputs (all the user's): --watts-idle, --watts-active, --kwh, --hw-price, --life-years, --resale. --tok-per-s is required and must be a measured generation speed.
Rules
- Cost = fixed (amortisation + idle power, paid busy or not) + marginal (extra watts while generating). Utilisation decides the answer: always show the table at 5/25/50/100% busy.
- It is an estimate from the inputs; say so. Nothing is measured.
- Compare against a same-capability hosted model, not a frontier one; price alone is a poor reason to buy a GPU for sporadic use.
- Read real counts from the server (Ollama
eval_count/prompt_eval_counton the native API, llama.cpptimings, vLLM/metrics), not the lossy OpenAI-compatibleusage, and count model reloads (load_duration) as overhead.
FAQ
Are the results measured?
No. They are estimates from the numbers you give, and the skill says so in its output.
Why does the usage level matter?
Hardware and idle power cost the same whether you use them or not, so light use makes local AI more expensive per token.
What speed does it need?
It needs a measured generation speed in tokens per second, which you must get from a real test.
Details
Original description by the author
Cost per million tokens on hardware you own (Ollama, llama.cpp, vLLM, LM Studio) from watts, electricity price, hardware price and measured tokens/second, and the utilisation at which local beats a hosted model. Use for local-vs-API break-even questions.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1604
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
blucli
394kHelps your agent find, play, pause, group, and adjust the volume of Bluesound and NAD speakers through the blu command.
camsnap
394kHelps your agent grab snapshots, short clips, or motion events from network cameras and local webcams that you have set up.
eightctl
394kHelps your agent check and control an Eight Sleep pod, including its temperature, alarms, and sleep schedules.