AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
Route AI agent prompts to the best model by balancing accuracy, cost, and latency
AI summary · README
Developer toolsPython · ShellGitHub @Lars-confiSelf-installOwner unconfirmed
Paste into Claude or ChatGPT for installation instructions suited to your environment.
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Installable projects can be verified without a deployment domain. Use GitHub sign-in for a personal repository, or the repository verification file above for an organization repository.
Ask about other verification options
Loading the full README. The saved excerpt is shown below.
The Intelligent Decision Engine for AI Agents.
RealityRouter is a high-performance LLM routing gateway designed for the
agentic era. Standard proxies pass requests through; RealityRouter uses
Expected Utility Theory and real-time calibration to choose the best model
for every individual prompt — balancing accuracy, cost, and latency.
In a world where model performance fluctuates and costs vary by orders of
magnitude, RealityRouter puts the choice back in the hands of the user.Read the full README ↗The Intelligent Decision Engine for AI Agents.
RealityRouter is a high-performance LLM routing gateway designed for the agentic era. Standard proxies pass requests through; RealityRouter uses Expected Utility Theory and real-time calibration to choose the best model for every individual prompt — balancing accuracy, cost, and latency.
In a world where model performance fluctuates and costs vary by orders of magnitude, RealityRouter puts the choice back in the hands of the user.
For developers building AI agents (Zed, Cursor, Claude Code, Roo Code, OpenClaw, AutoGPT), picking a model is usually a trade-off between "too expensive" (flagship models on every query) and "too unreliable" (small local models that miss). RealityRouter solves this by acting as smart middleware that:
RealityRouter is probably what you want if you are saying any of these:
It is not a way to cap your spend — there is no budget ceiling — and it will not tell you which single model to standardise on. It removes that decision instead, per request.
curl -fsSL https://raw.githubusercontent.com/Lars-confi/RealityRouter/main/install.sh | bash
realityrouter.dev/install.sh redirects to the same file. To check what you
downloaded before running it, see
verifying the installer.
FAQ · Quickstart · Agent-assisted install
Every request is passed through a decision-theoretic engine. For each
candidate model m in your configured pool, RealityRouter computes:
EU(m) = p · R − α · cost − β · latency
p — calibrated probability of success on this specific prompt.R — constant reward for a correct answer.α — your cost sensitivity (tune in the dashboard).β — your latency sensitivity (tune in the dashboard).The router picks argmax EU — every model, every query.
Dynamic tuning. The dashboard exposes
αandβas live sliders. Slide left for maximum frugality; slide right for raw speed. Changes take effect on the next request — no restart, no redeploy.
RealityRouter sits between the model and your agent to enforce protocol compliance:
/plugin marketplace add Lars-confi/RealityRouter then
/plugin install reality-router@confidentia).RealityRouter exposes an OpenAI-compatible API. The supported endpoints and features are listed in the API reference. You don't need to rewrite your agent — just change your environment variables:
http://localhost:8000/v1 (obtain dynamically via reality-router status)SECURITY.md before remote deployment.auto (to let the router choose the best model) or a specific model ID (which pins the request to that model, bypassing initial selection while still supporting validation and escalation)RealityRouter is fully agent-native and designed to be managed and controlled programmatically.
If you are an AI coding agent (like Zed, Claude Code, Cursor, Roo Code, etc.) or an automation script, you can interact with RealityRouter headlessly:
reality-router setup --agent to configure RealityRouter. This will automatically scan your environment variables (OPENAI_API_KEY, GEMINI_API_KEY, etc.), autodetect local Ollama, choose default coefficient penalties, and complete the installation without any prompts.reality-router setup --non-interactive to assert that all configurations are present. If API credentials or models are missing, it will crash with documented, non-zero exit codes.reality-router auth --agent --json to start OAuth authentication. It prints newline-delimited JSON (NDJSON) events (e.g. auth_required with verification_uri and user_code) and never logs sensitive tokens.reality-router doctor --json to perform active checks. The command exits with precise exit codes (0 if healthy, 10 if config file missing, 11 if auth missing, 12 if provider keys missing, 14 if port is busy).reality-router status --json to get detailed stats about the daemon status, port, pid, and active provider models.RealityRouter is MIT licensed. See the LICENSE file for the full text.
We're building user-centric AI infrastructure. If you're interested in decision theory, agent protocols, or high-performance routing, contributions are welcome.
Built by Confidentia AI and the open-source community.