agentleFS
mergisimergisi/awesome-openclaw-agents/skills/claude/model-cost-compare/SKILL.md

model-cost-compare

Skill4k starsChanged 9 months agoMITView on GitHub

Trigger when the user asks which model to use, wants to compare model costs, says "what's cheapest for this task", "should I use Opus or Sonnet", "can a smaller model handle this", or "/model-cost-compare". Estimates token cost across Opus 4.6, Sonnet 4.6, GLM-5.1, Minimax M2.7, and local Gemma 4, then recommends the cheapest model capable of the task.

1 other project uses a version of this.

Trending

Quiet since October.about the whole repository

Jan 2026: 0 mentionsFeb 2026: 3 mentionsMar 2026: 9 mentionsApr 2026: 3 mentionsMay 2026: 0 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 1 mentionOct 2026: 1 mentionNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the mergisi/awesome-openclaw-agents repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about mergisi/awesome-openclaw-agents

The biggest 5 of 18 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 18

Talked about on GitHub and Bluesky (18 times).

On GitHub · 16

11 more on GitHub

On Bluesky · 2

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use these rough figures. They are not exact.

    line 19
  2. Distinctive:

    Don't recommend Opus by default "just to be safe".

    line 72
  3. Distinctive:

    Don't recommend a local model for agentic tool-use loops — they spiral.

    line 73
  4. Distinctive:

    Always flag prices as approximate.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Model Cost Compare

Given a task description (and optionally a rough prompt / input size), estimate the cost of running it on each available model tier and recommend the cheapest one that can actually do the job.

When to use

  • "Which model should I use for X?"
  • "Is it worth running this on Opus or will Sonnet do?"
  • "Can I offload this to a local model?"
  • "/model-cost-compare — classify 10k support tickets"

Pricing table (indicative — always flag as "check provider docs")

Use these rough figures. They are not exact; confirm before quoting real numbers to the user.

ModelTierInput ($/1M tok)Output ($/1M tok)ContextStrengths
Opus 4.6 (1M)Frontier~$15~$751MAgentic, long-context, hard reasoning
Sonnet 4.6Mid~$3~$15400kEveryday coding, agents, drafting
GLM-5.1Budget hosted~$0.60~$2.20256kCheap bulk work, decent reasoning
Minimax M2.7Budget hosted~$0.40~$1.80256kVery cheap, OK for templated output
Gemma 4 (local)On device$0 marginal$0 marginal32kFree but slow, weak at multi-step logic

Indicative pricing as of OpenClaw 2026.4.11. Check the provider docs before billing decisions.

Instructions

  1. Parse the user's task. Extract:
    • Task type: reasoning, extraction, classification, drafting, translation, agentic tool use, long-context synthesis.
    • Input size estimate: in tokens. If the user says "10k tickets averaging 500 tokens", that's 5M input tokens. If unknown, ask for a rough size.
    • Output size estimate: short label? full essay? JSON record?
    • Volume: one-off or batch?
  2. Rule out incapable models. Use this capability floor:
    • Agentic multi-tool flows with long reasoning → Opus or Sonnet only.
    • Structured extraction / classification with clear schema → any tier, including Gemma 4 local.
    • Long-context synthesis (>400k tokens) → Opus only.
    • Privacy-sensitive data that cannot leave the machine → Gemma 4 local only.
  3. For each surviving model, compute:
    cost = (input_tokens / 1_000_000) * input_price
         + (output_tokens / 1_000_000) * output_price
    Multiply by volume. Show your arithmetic so the user can sanity-check.
  4. Print the comparison as a Markdown table sorted cheapest first. Bold the recommended row.
  5. End with a one-line recommendation: Recommended: <model> — <1-sentence reason>.

Output example

Input: "Classify 10,000 customer support emails into 5 categories. Avg 400 input tokens, 20 output tokens."

Total tokens: 4M input, 200k output

| Model       | Input cost | Output cost | Total   | Capable? |
|-------------|-----------:|------------:|--------:|---------:|
| **Gemma 4** |     $0.00  |      $0.00  |  $0.00  |   yes    |
| Minimax M2.7|     $1.60  |      $0.36  |  $1.96  |   yes    |
| GLM-5.1     |     $2.40  |      $0.44  |  $2.84  |   yes    |
| Sonnet 4.6  |    $12.00  |      $3.00  | $15.00  |   yes    |
| Opus 4.6    |    $60.00  |     $15.00  | $75.00  |   overkill |

Recommended: Gemma 4 local — classification with a fixed 5-label schema is trivial for on-device models and costs nothing.

Anti-patterns

  • Don't recommend Opus by default "just to be safe". If Sonnet can do it, say so.
  • Don't recommend a local model for agentic tool-use loops — they spiral.
  • Always flag prices as approximate.

Example invocations

  • /model-cost-compare classify 10k support tickets into 5 buckets
  • "What's the cheapest model that can draft 200 SEO meta descriptions a day?"
  • "Should I use Opus or Sonnet for this 800k-token codebase review?"

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.