jev-switch
Unofficial Rust gateway routing /v1/systemone requests to TypeSafe, Vercel, OpenRouter or local Laya via an editable DAG.
Overview
Jev Switch is a lightweight gateway for the Jev protocol. A Rust/axum daemon exposes POST /v1/systemone with the Jev request and response shape, and routes each call through an editable routing graph to upstream providers: TypeSafe's official API, Vercel, OpenRouter (via structured JSON chat completions) or a local Laya service. The gateway handles protocol translation, routing, failover and forwarding; it does not load model weights.
It runs in two modes: local, which listens on loopback without call tokens, and cloud, which listens publicly and requires tokens with a separate admin session. Delivery options include a React console, a Tauri desktop app, Docker and a headless CLI. Features include a playground for side-by-side comparison of endpoints, upstream model discovery, keys that stay in the daemon and are never read back, live telemetry, per-request traces and multimodal field pass-through. A listing reports 155 workspace tests plus end-to-end smoke tests across Choice, Score and Noul. Documentation is in Chinese.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Other | Forwards caller-defined Choice, Score and Noul requests; the gateway decides only which upstream serves them | — |
How it works
- Client posts a Jev-shaped request to /v1/systemone
- Routing DAG selects an upstream by priority
- Adapter translates dialect and forwards; failover on error
- Typed result returned with trace and telemetry recorded
Strengths
- One endpoint across several Jev-compatible providers
- DAG failover and per-request traces
- Keys stay server-side and are never returned
- Listing reports 155 workspace tests and CI
Caveats
- Unofficial project
- Documentation is in Chinese
- Cloud mode requires careful token and admin setup
At a glance
- Type
- Proxy
- Status
- beta
- Language
- Rust
- Runtime
- Daemon / Tauri desktop / Docker
- Has code
- yes
- Has tests
- yes
- License
- Apache-2.0
Use cases and integrations
How curated lists describe it
Local gateways / cloud relay: dual-mode Rust router for typed Jev decisions — tokenless local multi-upstream routing (Vercel, TypeSafe, local Laya) with noul/boolean translation and DAG failover, or token-gated cloud relay aggregating Jev endpoints behind one API, proven by 155 workspace tests plus end-to-end smoke over Choice/Score/Noul round-trips.
yibie/awesome-jevThis project integrates Jev to provide structured decisions for its workflow. See the repository for implementation details.
logicrw/awesome-jev-projectsA fast, local-first gateway for aggregating and routing TypeSafe Jev model…
wh000wh000/awesome-jev-liveUnofficial Rust gateway for caller-defined Jev Choice, Score, and Noul requests: it forwards each `/v1/systemone` request to a Vercel or Laya model selected by user-configured routes and returns the typed result; a React/Tauri console manages providers and routes.
cobanov/awesome-jev
Frequently asked questions
Does jev-switch run a model?
No. It is a gateway; inference happens on the upstream providers.
Which upstreams are supported?
TypeSafe SystemOne, Vercel, OpenRouter and local Laya services, plus any server with the same /v1/systemone format.
Is it safe to expose publicly?
Cloud mode requires call tokens and a separate admin session; local mode listens only on loopback.
Related projects
Go gateway that puts local and hosted System One models behind one TypeSafe API, with a local Laya router choosing Laya or Jev.
ServicebetaGoPython client that sends one Choice/Score/Noul request down a fallback chain of hosted and local decision models with confidence gates.
LibrarybetaPythonGo harness for System One models: hosted Jev, open Kev in-process via llama.cpp, and Cloudflare Clef, with typed helpers and a CLI.
ServicebetaGoOpen-source dual-brain runtime that answers typed decisions with a fast local engine or the Jev API before falling back to LLMs.
ServicebetaPython, TypeScriptTypeScript library for one-line local decisions with open models (kev-0.6b, kev-4b, open-jev), no API keys or cloud.
ProjectbetaTypeScriptSwift 6 bridge that runs System One decision models behind Apple's Foundation Models API, on device with Laya or via hosted endpoints.
ProjectbetaSwift