cost

cost is a skill for Claude Code, Codex from floomhq/moto. It costs 73 tokens per session (913 once invoked), scanned A, original, MIT.

A cost-estimation guide for AI services, cloud infrastructure, and technical features. It explains token-based pricing and basic cost calculations.

In plain words
What is it for?
Use it to estimate LLM API bills, compare cloud or infrastructure costs, and assess the financial impact of a planned feature.
Why use it?
It helps turn usage estimates and pricing details into a clearer budget, while reminding you that provider prices can change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument.

Good fit Use it to estimate LLM API bills, compare cloud or infrastructure costs, and assess the financial impact of a planned feature.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/floomhq/moto/cost
View source ↗ floomhq/moto
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add floomhq/moto --skill cost
Clone the repo
git clone --depth 1 https://github.com/floomhq/moto

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cost

README.md
[![agentmods](https://agentmods.dev/badge/skills/floomhq/moto/cost/github.svg)](https://agentmods.dev/skills/floomhq/moto/cost)
Your own site
<a href="https://agentmods.dev/skills/floomhq/moto/cost"><img src="https://agentmods.dev/badge/skills/floomhq/moto/cost/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cost

Your own site · 80×15
<a href="https://agentmods.dev/skills/floomhq/moto/cost"><img src="https://agentmods.dev/badge/skills/floomhq/moto/cost.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 73 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 913 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00073 $0.00913
Opus 5.5 $0.00029 $0.00365
Sonnet 5.5 $0.00015 $0.00183
Haiku 4.5 $0.00007 $0.00091

Measured 3mo ago against content hash 66d267d7ad73, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cost scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

claude/skills/cost/SKILL.md · 104 lines

How it starts

The opening of the file, as written. The whole thing — 104 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Cost Skill

LLM API Pricing (as of early 2026)

Always verify current prices at the provider's pricing page - these change frequently.

Anthropic Claude

Model Input (per 1M tokens) Output (per 1M tokens)
Claude Opus 4 ~$15 ~$75
Claude Sonnet 4 ~$3 ~$15
Claude Haiku 3.5 ~$0.80 ~$4

OpenAI

Model Input (per 1M tokens) Output (per 1M tokens)
GPT-4o ~$2.50 ~$10
GPT-4o mini ~$0.15 ~$0.60

Google Gemini

Model Input (per 1M tokens) Output (per 1M tokens)
Gemini 2.5 Pro ~$1.25 ~$10
Gemini 2.5 Flash ~$0.15 ~$0.60

Token Estimation

Rough approximations:

  • 1 token ≈ 4 characters ≈ 0.75 words
  • 1 page of text ≈ 750 tokens
  • Average email ≈ 200-400 tokens
  • Short code file ≈ 500-2000 tokens

Cost Calculation

def estimate_cost(
    input_tokens: int,
    output_tokens: int,
    input_price_per_million: float,
    output_price_per_million: float
) -> float:
    input_cost = (input_tokens / 1_000_000) * input_price_per_million
    output_cost = (output_tokens / 1_000_000) * output_price_per_million
    return input_cost + output_cost

# Example: 1000 requests with 500 input tokens, 200 output tokens each
# Using Claude Sonnet ($3 in, $15 out per 1M)
total_input = 1000 * 500   # 500K tokens
total_output = 1000 * 200  # 200K tokens
cost = estimate_cost(total_input, total_output, 3, 15)
# = $0.15 + $3.00 = $3.15 for 1000 requests

Cloud Hosting (rough estimates)

Service Small Medium Large
Vercel (hobby) Free $20/mo $150+/mo
Render (web service) $7/mo $25/mo $85+/mo
Hetzner VPS €5/mo €20/mo €80+/mo
AWS EC2 (t3) $15/mo $60/mo $250+/mo

Analysis Framework

When asked to estimate costs:

  1. Identify usage patterns: How many requests/day? Batch or real-time?
  2. Estimate token counts: Input context size + expected output size
  3. Calculate monthly volume: requests/day × 30
  4. Apply pricing: Use the table above or current pricing page
  5. Add buffer: Add 20-30% for variance and growth
  6. Compare alternatives: Show cost at different models/providers

Read the full file on GitHub · 104 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 104 lines · 73 tokens per session scan A 66d267d7ad73

Subscribe to this mod's changes

cost is a skill published in the GitHub repository floomhq/moto (32 stars, last pushed 5mo ago), licensed MIT. It adds 73 tokens to every session and 913 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cost compared with skills from other repositories

cost next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
costfloomhq/motoSkill325mo agoMITA73Claude Code, Codex
memstack-business-financial-modelcwinvestments/memstackSkill43318d agoMITA71Claude Code
eval-agentsFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A80Claude Code
land-and-deployFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A41Claude Code
sandbox-unblockFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A65Claude Code
self-assessmentFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A12Claude Code, Codex
review-prFlorianBruniaux/claude-code-ultimate-guideSkill7.6kyesterdayCC-BY-SA-4.0A45Claude Code