Introduction
ModelStill turns one narrow LLM task into a small model you own, proves it is as good as the cloud model, serves it with the cloud model as fallback, and keeps checking it.
ModelStill is a library and a self-hosted dashboard for one job: deciding, with numbers you can trust, whether a cheaper or self-trained model can take over a call your application sends to a cloud LLM today.
It is a library first. You can use it only to write evals and gates, or go all the way to training a small student model and serving it.
What it does
- Record. Read the calls you already log (Langfuse, Braintrust, OpenTelemetry GenAI spans, LiteLLM spend logs, any JSONL) into a dataset.
- Build eval sets. Turn records into benchmark cases, version them in the dashboard, and send disagreements to a human review queue.
- Score with intervals. Every score carries a 95% interval: exact Clopper-Pearson for pass/fail scores, a seeded bootstrap otherwise. A single number is never the result.
- Gate changes. Compare a candidate with the accepted baseline case by case. The gate checks the lower bound of the paired difference, flip rate, cost ratio and p95 latency, and stores every threshold and measured value.
- Distil. Train a LoRA or full-weight student on recorded answers, on your own GPU host or on Modal.
- Serve. Put the student behind the task's existing LiteLLM name with the ModelStill plugin. Roll out
off, thenshadow, thenserve. Roll back withmode: off. - Watch. Known-answer canaries, temperature-0 drift hashes and a log-prob watchdog catch a model that changes behind an unchanged name.
How a task moves through it
- Spec. One YAML file per task: instruction, output schema, requirements, teachers, judge, gate thresholds, training, serving and monitoring settings.
- Label. Calls are answered by two teacher models; disagreements go to a person.
- Train. A small model is trained with several seeds.
- Score. A judge from a different model family scores it, and scores are reported with exact intervals.
- Gate. Quality lower bound, cost, latency and flip rate decide whether it ships.
- Serve. The student answers when it is confident; otherwise the cloud model answers. Both answers are logged.
- Watch. Canaries and drift checks, with a fallback to the cloud model when something breaks.
ModelStill is self-hosted today. There is no hosted service and no public URL. The examples use the local defaults: the API on http://localhost:8787, the dashboard on http://localhost:4323 and the MCP server on http://localhost:3104/mcp. The Python package is not on PyPI yet; install it from the repository.
A first look
modelstill spec validate tasks/<task>/spec.yaml
modelstill eval runs history.jsonl
modelstill eval compare history.jsonl <before> <after>Explore the docs
Quickstart
Install, define a task, record a first eval and push it to the dashboard.
Authentication
ms_live_ API keys, the admin token and MCP OAuth.
Gate a change in CI
Post the gate as a pull-request comment and fail the job when it fails.
Check a model swap
Decide a model or provider swap from recorded calls, without a gold set.
Distil a task
From recorded answers to a gated student, end to end.
Serve with LiteLLM
off, shadow, serve and rollback behind the task's own name.
Monitor a task
Canaries, drift checks and the endpoint watchdog.
Import traces
Langfuse, Braintrust, OpenTelemetry, LiteLLM, JSONL, DeepEval, Inspect and Promptfoo.
CLI reference
Every modelstill command and flag.
API reference
The REST API the dashboard, the CLI and the MCP server use.
MCP & AI agents
Read tasks, evals and gates from Claude Code or Cursor.