modelmile
Plugin for Claude Code

Cut your Claude Code bill by 65%.

When you send a message to Claude Code, modelmile analyses it, picks the right model and the right effort, adapts the cache, and saves you tokens — which means money off your API bill.

claude plugin install modelmile --marketplace https://www.modelmile.dev/marketplace.json --config apiKey=votre-cle-ici

Works with Pro and Max subscriptions, and with Claude Code API keys and proxies.

One message, three prices.

A message to Claude Code reads roughly 12,000 tokens and writes 900. Here is what it costs depending on which model handles it. Haiku costs forty times less than Opus: that is where the saving comes from.

For example: a message asking to fix a typo does not need Opus. Haiku handles it just as well, for a fraction of the price.

Haiku 5.5

$0.00 per message

Sonnet 5.5

$0.03 per message

Opus 5.5

$0.07 per message

SimulatorAn average price per message, compared to Opus everywhere

Your bill, before and after.

65

off your bill that is $36.65 over the month

Opus for everything$55.97
With modelmile$19.32

Over 2,000 messages: $55.97 with Opus for everything, $19.32 with modelmile, 65% less.

An estimate, not a bill.

2,000

how many messages you send to Claude Code in a month

how many messages you send to Claude Code in a month

Setting

The step you apply to everything: more frugal, or more demanding.

Average price of a message

$0.0097

Observed on our own sessions, not derived from yours. The cache switch above applies to it.

What leaves your machine fits on one line.

What goes outWhyTo
Your account’s modelmile keyAt session start, only if a key is configured.POST /api/availability
Never sent
  • prompt
  • transcript
  • message
  • content
  • text
  • code

field names, as they are written in the code

A test reads the plugin code, finds every network call, and compares it to this list.

What the plugin does not do

01

No saving guaranteed in advance

The result depends on what you ask. The simulator shows you the arithmetic instead of hiding it.

02

Never at the expense of quality

If stepping down would cost more than staying, the plugin stays. A hard message keeps the model that can handle it.

03

You stay in charge

One command pauses the plugin: the current model and effort are kept as they are, and nothing changes them until you resume.

04

Nothing from your conversation leaves

The analysis happens on your machine. What you write never travels to our servers.

Install.

One command, with your modelmile key. The plugin decides from your next message. Without a key it does nothing — the key is what links the plugin to your account and your message balance.

claude plugin install modelmile --marketplace https://www.modelmile.dev/marketplace.json --config apiKey=votre-cle-ici
/modelmile-pauseKeeps the current model, decides nothing more.
/modelmile-repriseResumes decisions on the next message.
/modelmile-etatActive or paused, setting, last decision.
/modelmile-journalThe last ten decisions, with their reason.