Skip to content

Instar

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.md for the plan.

Who it's for

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.

What it looks like

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/12

Sweep 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.8

Or 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 direct

Every 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.

Install

# 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+.

Where to go next

What Instar is NOT

  • 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, contributing, security

  • License: Apache 2.0. See LICENSE.
  • Contributing: CONTRIBUTING.md is 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 (see Planning/Project-Plan.md §6).
  • Security: SECURITY.md also lands Week 1. Until then, please email security concerns privately rather than opening a public issue.

Related

github.com/PurpleBlossomAI/gateway-lab — Prithvi's parallel experimental space. Not the shipped artifact.

About

an open-source project to help companies shed their old habits in order to grow and assume a new form of work with AI.

Resources

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages