Is the open model on par?
Prove which open-weight model can replace your closed-model API, on your own traffic and hardware, then migrate with a quality gate and a rollback. These pages are generated from the repo, so they cannot drift from it.
Step through the loop
Section titled “Step through the loop”Press play, or pick a scenario, to follow your traffic from capture to a receipt and see where the loop says no.
1. Capture your real traffic
Run onpar observe --upstream https://api.openai.com/v1 and point your app at it. Prompts are redacted before they touch disk, and a redaction failure drops the record.
- your app
- gateway and solver
- stores
- proven
- refused
Start here
Section titled “Start here”Install, and see what this machine can runYou need Python 3.11 or newer. Nothing else: the sizing half of onpar has zero runtime dependencies, so the first command runs before anything is installed.
Ten seconds to a fitWhat can this machine run, before you install anything?
Your first proof, in ten minutesCan an open model on your own machine take over the work you send to a closed one?
The loop
Section titled “The loop”Observe: your traffic becomes the benchmarkWhat do your requests actually look like, and can you keep them without risking them?
Distill: your traffic becomes an eval setWhich tasks does your traffic actually contain, and how much of each?
Fit: what runs here, and the arithmeticWhich open model can you actually serve on this hardware, at your context and your concurrency?
Serve: the engine of seven, configuredWhich engine should serve this model for your workload, and with which flags?
Prove: per task, with intervals, or `?`Is the open model on par with the one you pay for, task by task, and how sure can you be?
Migrate: shadow first, alwaysHow do you move real users to the open model without betting them on one eval?
Guard: three kinds of staleDoes the proof you migrated on still describe what production is doing?
For agents
Section titled “For agents”For agents: what you may callThis page is written to you, the agent driving onpar for a person.
Say what you are buildingCan you describe the workload in a sentence instead of filling in a form?
Learn inference on your own numbersWhy does a model fit or not, and what limits its speed, on the machine you are sitting at?
The interactive labA memory lab that sizes weights, KV cache and overhead as you move the sliders, and the written curriculum with diagrams.
Reference
Section titled “Reference”The receiptA receipt is the file onpar prove writes: what was proven about each task in your traffic, with its confidence, and what was not. You can hand it to someone who does not trust you. The format lives in src/onpar/prove/rec
The eval setThe eval set is the JSON file onpar distill writes from your captures and onpar prove reads. Each item is one real request, the answer your incumbent gave, and a slot for the candidate's answer. One reader parses it on e
MCP toolsEvery tool onpar-mcp exposes, with its inputs, from the TOOLS registry in src/onpar/mcp.py. What the tools are for, and the wall around them, is on for agents. Inputs are optional unless marked required.
CLI referenceGenerated from the parser by tools/clireference.py; onpar --help is the authority and a test fails when this page lags it. Verbs are in the order the loop runs. Exit codes: 0 done; 1 the call was well-formed and either t
Decisions
Section titled “Decisions”Latest: ADR-0020 — Agentic evals: replay the step, not the promptThe incumbent had answered something else. It had seen a system prompt, the prior turns of the conversation, the tool results the harness fed back, the tool schemas it was allowed to call, and the output format demanded.
All 20 architecture decision recordsEvery load-bearing choice, including the two later reversed. Each one records the context, the options and why.
Project
Section titled “Project”The specs that built the product: history and intent, kept out of the reader’s path.