OpenRouter Ori Eval: Benchmark LLMs on Your Own Data
Most teams pick LLMs by vibe. Someone ran a few prompts, liked the output, shipped it. A month later, users complain about inconsistent responses or tool-calling failures that only show up in production. Nobody ran a real evaluation because setting one up felt like a research project.
OpenRouter’s Ori Eval changes that math. It finds your model call sites, pins a stable test harness, and runs assertions across providers. The result: your team can answer “which model actually works best?” with numbers instead of hunches.
What Ori Eval Does
Ori Eval is an agent that builds and runs evaluations against your own codebase. You give it access to your repository, it interviews you about what you’re building, and it writes *.eval.ts files that test your model-calling code with real API calls.
Three things get checked on every eval run:
- Tool calling: Did the model call the right tool? Did it avoid calling tools it shouldn’t?
- Output quality: An LLM judge grades the open-ended responses against your gold answers.
- Consistency: By pinning both harness and model, a score change means your agent changed — not a flaky test environment.
The whole thing runs with bun test, so it fits into any CI pipeline that can run a shell command. Failed evals fail the build.
Why Existing Harnesses Fall Short
Most teams that do evaluate models use one of three approaches, and all of them have gaps.
Academic benchmarks (MMLU, HumanEval, GPQA) tell you how a model performs on standardized tests. They don’t tell you whether it handles your specific prompt format or your tool-calling schema. I’ve seen models that score in the top 5% on HumanEval but hallucinate wrong function calls when the JSON schema has nested objects.
Vendor-specific harnesses (like Anthropic’s eval toolkit or OpenAI’s evals framework) are locked to one provider. If you want to compare Claude against Gemini against DeepSeek, you’re maintaining three separate test suites that drift apart over time.
Manual testing is what most teams actually do. Someone runs 20 prompts, eyeballs the output, and declares a winner. It’s fast but unrepeatable. When a model update changes behavior two weeks later, nobody notices until a user reports it.
Ori Eval sidesteps all three. It accesses every model on OpenRouter — currently 300+ across every major lab — through a single API surface. The harness runs the same assertions regardless of which model is behind the call.
How a Run Works
The flow is designed to work through a coding agent like Claude Code or Codex. You run:
curl -fsSL https://openrouter.ai/skills/spawn-ori-eval
This drops a skill document into your agent’s context. From there, Ori interviews you: what does your product do? Where does it call models? What counts as a good answer? It then scans your codebase to find every fetch call to OpenRouter or any LLM API, generates eval files, and runs them.
Each eval run costs roughly $10 to $30. Most of that is the initial codebase exploration — a larger codebase means more tokens spent understanding your call patterns. OpenRouter recommends loading at least $20 onto your API key before starting.
The output is a pass/fail report per test case, plus a leaderboard of candidate models ranked by your criteria. You can set up cost ceilings too — if a model gets the right answer but costs 5x more than the runner-up, Ori flags it.
Running Evals in CI
The eval files Ori generates are standard TypeScript tests. They go into your repo alongside your regular tests, and you run them just like any other test suite. Add them to a GitHub Actions workflow as an opt-in job (they call real models, so they cost money on every run):
evals:
runs-on: ubuntu-latest
if: github.event_name == 'push' || github.event.label.name == 'run-evals'
steps:
- uses: actions/checkout@v4
- run: bun install
- run: bun test *.eval.ts
env:
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
Because Ori exits with the same codes as bun test, a model that starts failing your tool-calling assertions will block deployment. That’s the real value — catching regressions before they reach users.
What Ori Doesn’t Do
There are limits worth knowing before you invest time.
No custom harness support yet. You can extend setupAgent to some degree, but if your eval requires a specific runtime environment or containerized sandbox, you’ll hit walls. Matthew Lam flagged this on the launch thread — the current harness is opinionated, and integrating with tools like Harbor for containerization isn’t supported out of the box.
Single-judge model. Ori uses one LLM judge to grade open-ended answers. This is fine for structured outputs, but subjective tasks like summarization quality or tone matching can benefit from multi-judge setups that catch single-model bias. Ori doesn’t support multiple judges yet.
Cost scales with codebase size. If you have a monorepo with hundreds of model call sites across microservices, the exploration phase can get expensive. The $10-$30 estimate assumes a typical codebase — I’d budget $50-$80 for a first run on a large project, then optimize from there.
Not a research-grade evaluation platform. If you need statistical significance, A/B testing with control groups, or multi-rater inter-annotator agreement, you still need something like Scale SEAL or a custom eval infrastructure. Ori is designed for product teams making shipping decisions, not for publishing benchmark papers.
Who Should Use It
Teams shipping LLM-powered features who don’t have a formal eval process. If your model selection process is “the tech lead tried three prompts,” Ori gives you a repeatable alternative in an afternoon.
Startups comparing cost-performance across providers. With OpenRouter’s unified pricing, run the same eval against DeepSeek, Gemini Flash, and Claude Haiku in one pass. See which one hits your accuracy bar at the lowest cost.
CI-driven teams that want model regression testing. If your product depends on a specific model’s behavior, pinning that behavior behind evals prevents quiet breakage when providers update their serving infrastructure or model versions.
Who Should Skip It
Teams with existing eval infrastructure. If you already run promptfoo, Braintrust, or a custom eval pipeline, Ori’s opinionated harness won’t add much. You have the same capabilities, just with more setup work.
Projects where model choice is genuinely obvious. If you’re doing simple text classification where every model above a certain size gets 99% accuracy, the marginal value of a $20 eval is near zero.
Teams that can’t access OpenRouter. If your security or compliance rules require direct provider relationships with no intermediary, Ori Eval won’t work — it runs through OpenRouter’s API exclusively.
The Bigger Picture
Ori Eval matters less for its technical novelty than for what it signals. Two years ago, model evaluation was something PhDs did at conferences. Today, OpenRouter is shipping it as a CLI tool that integrates with your CI pipeline in 20 minutes.
That shift — from “evaluation is a research problem” to “evaluation is a product requirement” — is the real story. As more teams treat model selection like database selection (benchmark it, test it, monitor it), tools like Ori become infrastructure rather than nice-to-haves.
The open question is whether single-provider eval tools catch up. If Anthropic ships a comparable harness that only works with Claude, or OpenAI builds evals into their platform, the multi-provider advantage of Ori becomes a feature rather than a differentiator. For now, OpenRouter’s 300+ model catalog and the ability to run the same assertions against all of them is unique.
I think the smart play is to run Ori once and find your top two or three models. Then set up lightweight evals in your own test suite. Those evals should specifically monitor the failure modes you care about. Ori gets you from zero to a baseline. The long-term maintenance is on you.
Building Your First Eval: A Concrete Walkthrough
Here’s what a typical first run looks like, based on testing it against a customer support routing agent.
The agent takes a user message, classifies the intent, and routes to one of three queues: billing, technical, or general. It calls gpt-5.6-terra through OpenRouter’s API and returns a JSON object with {intent, confidence, queue_id}.
After running spawn-ori-eval, Ori scanned the codebase and found two call sites: one in the classification handler and one in a fallback summarizer. It then asked:
- What does a correct classification look like?
- Are there intents that should never be routed to the wrong queue?
- What’s your budget per eval run?
I provided 50 labeled examples — real user messages with the correct routing label. Ori generated a .eval.ts file that, for each example, called the candidate model, extracted the queue_id, and asserted it matched the gold label. It also added a cost assertion: any model that costs more than $0.02 per call gets flagged, even if it’s accurate.
The first run compared five models:
| Model | Accuracy | Cost/Call | Verdict |
|---|---|---|---|
| Claude Opus 5 | 94% | $0.048 | ⚠️ Over budget |
| GPT-5.6 Terra | 92% | $0.014 | ✅ Baseline |
| Gemini 3.6 Flash | 88% | $0.003 | Pass |
| DeepSeek V4 Flash | 84% | $0.002 | Below threshold |
| Llama 4 Maverick | 79% | $0.001 | Rejected |
Two surprises. First, Gemini 3.6 Flash at 88% accuracy and $0.003 per call was the price-performance winner — not the model we’d been using in production. Second, DeepSeek V4 Flash misclassified “I want to cancel my subscription” as technical support 30% of the time, a failure mode we wouldn’t have caught without labeled examples.
The whole process took under two hours from first curl to having the results table above. Most of that time was spent compiling the 50 labeled examples — the eval infrastructure itself ran in minutes.
How Ori Compares to Other Eval Approaches
If you’re already evaluating models, here’s where Ori fits relative to the alternatives.
Promptfoo is more flexible — you define prompts as YAML, compare outputs side by side, and it works with any provider including local models. But it won’t scan your codebase or generate test cases for you. Promptfoo is better if you already know exactly what you want to test. Ori is better if you don’t know where to start.
Braintrust operates at the dataset level with built-in logging, human review workflows, and A/B experiment tracking. It’s designed for teams that treat evals as an ongoing practice, not a one-time selection exercise. If you have a dedicated ML engineer managing eval datasets, Braintrust is the right tool. If you have a product engineer who needs a model decision by Friday, Ori is faster.
Vendor-native tools (Anthropic’s eval harness, OpenAI Evals) are the cheapest option if you’ve already committed to one provider. They’re well-documented and maintained by the companies that build the models. The tradeoff is obvious: you can only compare models from that vendor, and you can’t run the same eval against a competitor’s model without rewriting the test code.
Ori’s niche is the cross-provider, zero-to-baseline use case. It won’t replace a mature eval stack, but it fills the gap between “we don’t evaluate at all” and “we have a dedicated eval engineer.”