Skip to content
Skillpedia
Misc81k · #1604

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.md

Copy 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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-cost-tracker/skills/cost-local/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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_count on the native API, llama.cpp timings, vLLM /metrics), not the lossy OpenAI-compatible usage, 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills