An open-source harness for measuring LLM workloads — cost, quality, and latency — on your own traffic.
Status: pre-release. v0.1.0 targeted for the end of the two-week sprint starting 2026-07-21. The harness core is runnable today in mock mode; the API surface is still unstable. See
Planning/Project-Plan.mdfor the plan.
Instar answers one question — which model mix, which router, for which use case, on my traffic? — for two kinds of adopter:
- Teams with in-house engineering — ML platform, AI enablement, or product-engineering groups — who run Instar against their own workloads directly.
- Leaders who have the AI question but not the plumbing — heads of marketing, operations, finance, and other AI-adopting functions — who engage a consulting partner to run it on their behalf. Instar is built by the team at Atelier, Purple Blossom AI's consulting practice, which uses it in that role; the tool is Apache 2.0 and any firm can do the same.
Either path produces the same artifact: evidence grounded in your workloads, not vendor benchmarks.
A workload is a JSONL file of captured LLM calls — the trace of AI calls one real workflow makes. Replay it through a routing policy and see what a cheaper model would have cost you, and what it would have cost you in quality:
$ instar route --traffic Engineering/fixtures/marketing-content-ops.jsonl \
--catalog Engineering/fixtures/catalogs/example-departments.json
route -> runs/route-feature_category-mock
policy=feature_category saved=36.9% q_all=0.989 q_weak=0.978 weak=6/12Sweep a threshold to draw the cost/quality curve, which is the artifact that actually answers "how much can we save before quality starts to hurt?":
$ instar route --traffic your-workload.jsonl --catalog your-catalog.json \
--sweep 0.2,0.4,0.6,0.8Or compare two gateways on per-call latency:
$ instar gateway --traffic your-workload.jsonl \
--a-url http://localhost:4000 --a-name litellm \
--b-url https://api.example.com --b-name directEvery run writes result.json, a Markdown report, and (for sweeps) a CSV.
Runs default to mock mode — deterministic, no API keys, no network, no spend, green in CI. Mock numbers are placeholders, never a measurement; every report says so on its face. Add --live and credentials to hit real providers.
# from source (v0.1)
git clone https://github.com/PurpleBlossomAI/instar
cd instar
pip install -e .The harness core is stdlib-only — the bare install pulls in nothing. That includes the OpenAI-compatible backend, so vLLM, Ollama, LiteLLM, OpenRouter, and OpenAI are all reachable without an extra dependency. Anthropic's SDK is an optional extra (pip install -e ".[anthropic]").
PyPI publication is deferred to v0.2 (see Planning/Project-Plan.md §14) — pip install instar requires committing to a stable API surface we're not ready to promise at v0.1.
Python 3.11+.
Engineering/Docs/RUNBOOK.md— how to actually run it, including a walkthrough for measuring your own workload.Engineering/Docs/PROVIDERS.md— connecting Instar to a hosted LLM or a self-hosted small model.Engineering/Docs/GUIDE-Creating-Rubrics.md— a step-by-step guide to writing a rubric that decides your AI-spend question.Engineering/Docs/RUBRICS.md— the rubric reference: every field, metric, and verdict rule.Engineering/Docs/CODE-OVERVIEW.md— orientation for contributors: architecture, the four core abstractions, and how to extend each.Planning/Project-Plan.md— the plan: IP boundary, roadmap, sprint, open questions.Planning/Naming.md— why "Instar," what off-box verifications are still owed before public announcement.- Docs site — MkDocs Material scaffold arrives in Week 2; will publish to GitHub Pages under
purpleblossomai.github.io/instar/.
- Not a router. Production routing is the job of OpenRouter, LiteLLM, Portkey, Kong, and Cloudflare AI Gateway. Instar tells you which routing choices would have paid off on your traffic.
- Not a general eval platform. Promptfoo, Braintrust, and DeepEval already win on breadth.
- Not an observability store. Langfuse, Helicone, Arize, and LangSmith already own trace storage.
- Not a hosted service. No SaaS, no dashboard-as-a-product.
- Not a container for consulting IP. Per-department rubrics and customer-derived fixtures live in their owners' private repos, not here.
Full anti-scope in Planning/Project-Plan.md §1.
- License: Apache 2.0. See
LICENSE. - Contributing:
CONTRIBUTING.mdis a Week-1 sprint task and will land shortly. Until then, issues and PRs welcome; only Brian and Prithvi have merge rights at v0.1 (seePlanning/Project-Plan.md§6). - Security:
SECURITY.mdalso lands Week 1. Until then, please email security concerns privately rather than opening a public issue.
github.com/PurpleBlossomAI/gateway-lab — Prithvi's parallel experimental space. Not the shipped artifact.