Skip to content

LLM Cost Optimizer Jev

Fixture-first LLM router that picks the lowest expected-cost qualified route, verifies output before release, and records cost provenance with idempotency keys.

Stars
0
Language
Python
License
APACHE-2.0
Published by
Community
Author
lorensation
Last verified
Oct 2026

An intelligent routing layer powered by TypeSafe AI's System One model Jev that sits in front of multiple LLM providers, analyzes each incoming request’s complexity, routes it to the cheapest model capable of handling it at acceptable quality, and continuously validates that routing decisions are correct.

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

An evidence-based LLM router that chooses the lowest expected-cost qualified route, verifies every output before release, and records complete cost provenance. The repository starts safely in fixture mode: it makes no paid calls and makes no savings claim. The response includes the immutable policy snapshot, model, checks, attempt count, and cost status. contractpassed means all configured gates passed; it is not a claim of guaranteed factual truth.

Quoted from the project's README. Read the full README.

Highlights

  • Starts in fixture mode with no paid calls; real smoke needs credentials plus an explicit microdollar budget flag.
  • Response carries policy record, model, checks, attempt count, and cost status; contract_passed means gates passed.
  • SQLite uses WAL with atomic reservations, durable audit leases, and idempotency keys; at most two attempts.
  • Serves API via uvicorn, worker via python -m app.worker, dashboard via Streamlit, or docker compose.

Watch out

Experimental: synthetic profiles and fixture outputs test behavior only; real routing needs measured profiles and labels. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

2kGitHub stars
A desktop AI assistant with a Jev / System One inline plugin for classification, routing, verification, and scoring without chat-style output.
Jev Tools & CLIs#community#python#desktop
452GitHub stars
An AGPL MCP server and JSON-first CLI exposing 110 astrology and metaphysics techniques from Horosa to local AI clients, running offline on macOS and Windows with SQLite-backed call history.
Jev Tools & CLIs#community#jevbest
209GitHub stars
A Python harness for System One models. It runs Jev and other decision models locally, or through HarnessRouter.ai.
Jev Tools & CLIs#community#python#open-models
21GitHub stars
MIT-licensed Python tool router for coding agents that keeps obvious calls on a fast path, asks Jev (default typesafe/jev-1.13 via OpenRouter) for genuinely ambiguous choices, and can run bounded MCTS when multi-step consequences matter. Ships a CLI, MCP server and hook integrations.
Jev Tools & CLIs#community#routing#mcp
39GitHub stars
Video tool where Jev scores subtitle segments and code assembles a short highlights cut plus a de-watered full cut with timestamped summaries.
Jev Tools & CLIs#community#jevbest#catalog-import
24GitHub stars
macOS floating WeChat companion that reads the visible chat with on-device Vision OCR, judges intent and reply risk with Jev, drafts toned replies with GPT, and only fills text after you approve it.
Jev Tools & CLIs#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

The request shape barely changes across surfaces; the surrounding contract does. When to call the API directly and when a gateway, a Worker binding, or a router entry earns its extra hop.
Jev Tools & CLIs#gateway#vercel#cloudflare
Read article
Taking a decision checkpoint out of Python: what the GGUF and browser WebGPU exports preserve, what they change, and the parity evidence the model cards publish.
Jev Tools & CLIs#open-models#local#onnx
Read article
Jev labels a record that already exists. Code moves, flags, or holds it. How the document, mail, and transfer tools keep the action out of the model.
Jev Tools & CLIs#classification#email#security
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai