Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By EvilFreelancerv1.0.1MITIn 1 marketplace
Estimate the floor (self-) cost of a self-hosted LLM token: electricity + hardware amortization. Measures power (nvidia-smi) and tok/s on the server, asks for tariff and hardware cost, prints cost per 1M input/output tokens. Not the market API price.
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
/token-cost — estimate the floor cost of a self-hosted LLM token: electricity
plus hardware amortization. This is the physical lower bound (the "bedrock"), not the
market API price. Based on the article
Почём нынче токен для народа? by Pavel Rykov.
The skill gathers the formula inputs by querying the server where it can and asking the user for the rest, then prints cost per 1M input/output tokens.
C_1M = ((P_kW * T_kWh + S / H_life) * 1e6) / (R_tok_s * 3600)
| Symbol | Meaning | Source |
|---|---|---|
P_kW | real power draw under load (kW) | measured (nvidia-smi) |
T_kWh | electricity tariff (RUB/kWh) | asked |
R_tok_s | speed, decode for output / prefill for input (tok/s) | measured (benchmark) |
S | hardware cost (RUB) | asked |
H_life | lifetime hours = years × 365 × 24 | asked (default 5 y) |
Input and output are computed separately; idle utilization raises the amortization share per useful token.
| File | Purpose |
|---|---|
SKILL.md | Agent instructions (frontmatter name, version, description). |
scripts/token_cost.py | Math + measure-power (samples nvidia-smi). stdlib only. |
scripts/bench_speed.py | Measures decode/prefill tok/s against an OpenAI-compatible endpoint. stdlib only. |
# Measure real power while the model is generating
python3 scripts/token_cost.py measure-power --overhead-w 150
# Measure speed against the running endpoint (vLLM / llama.cpp / NeuralDeep)
python3 scripts/bench_speed.py --base-url http://localhost:8000 --model gpt-oss-120b
# Full estimate with amortization
python3 scripts/token_cost.py compute \
--measure-power --tariff 6.97 \
--decode-tok-s 90 --prefill-tok-s 1440 \
--hw-cost 700000 --life-years 5 --utilization 1.0
Reference example (2×RTX 4090 48 GB, GPT-OSS-120B, Saint Petersburg tariff) reproduces the article: ≈10.76 RUB/1M output by electricity, ≈60 RUB/1M output with 5-year amortization.
This skill is distributed through the rpa-skills catalog (a Claude Code plugin marketplace), and also installs as a plain skill folder (Cursor, OpenAI Codex, Kimi Code CLI, and others).
As a plugin (Claude Code) — add the catalog once, then install this skill from it:
/plugin marketplace add EvilFreelancer/rpa-skills
/plugin install token-cost@rpa-skills
In Coddy: the rpa-skills catalog is built into Coddy as a system source,
so there is nothing to connect. One sync installs this skill together with the rest of the collection
into ~/.coddy/skills/token-cost/ and keeps it up to date (or press Sync all in Settings → Skills):
coddy skills sync
As a plain skill folder — copy or symlink this repository into a skill root (its SKILL.md lives at the repo root):
| Tool | Path |
|---|---|
| Coddy | ~/.coddy/skills/token-cost/ |
| Claude Code | ~/.claude/skills/token-cost/ |
| Cursor | ~/.cursor/skills/token-cost/ |
| OpenAI Codex | ~/.codex/skills/token-cost/ |
| Kimi Code CLI | ~/.kimi/skills/token-cost/ |
The directory name must match the name field in SKILL.md.
/token-cost in agent chat.@ context — attach the skill folder or SKILL.md.description in SKILL.md.Part of rpa-skills — Pavel Rykov's agent-skills collection (see notes on vibe coding and the prompt collection cursor-vibe-prompts).
Based on the article Почём нынче токен для народа? by Pavel Rykov.
Licensed under the MIT License — see LICENSE.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
token-cost@rpa-skills is listed by evilfreelancer/rpa-skills — review the source before installing
npx claudepluginhub evilfreelancer/rpa-skills --plugin token-costPlugins from other owners that cover similar ground