Wayfinder Router: deterministic routing of queries between local and hosted LLM
TL;DR Highlight
A Rust router deterministically picks local or hosted LLMs per request and logs a receipt
Who Should Read
A developer mixing local LLMs and hosted APIs who wants an auditable record of which request went where
Core Mechanics
- One local endpoint picks the model
- Wayfinder puts a single local endpoint in front of the AI tools and models on your machine.
- It picks an eligible local, account-backed, or API model for each request.
- Every choice leaves a receipt
- After choosing a model it records a deterministic receipt explaining the choice.
- The scoring path is stated to be offline, deterministic, and keyless.
- Credentials are used only for delivery
- Credentials are resolved only after the route is chosen.
- Local models are discovered only from fixed loopback catalogs, and it never silently downloads or activates one.
- Coding agents connect to the same policy
- wayfinder-router connect <client> points Codex, Claude Code, OpenCode, Pi, or Aider at the loopback policy.
- The exec launcher never falls back to the direct provider and only applies process-local endpoint overrides.
- OpenAI and Anthropic compatible APIs
- OpenAI-compatible is at http://127.0.0.1:8088/v1 and Anthropic-compatible at http://127.0.0.1:8088.
- It also supports POST /v1/responses, with health at /healthz.
- A separate mode for network exposure
- For network deployments, mint a virtual key and run with --surface data-plane.
- That listener only exposes inference, authenticated model discovery, and /livez and /readyz.
Community Reactions
- Concern about carrying context
- One commenter asked how the next model learns the context if prompts route to different models.
- Another noted that passing context along means it lands cold, outside the cache.
- Experience that it fights the harness
- A commenter said they tried proxies like this and it did not work.
- Models differ in context windows and tool use, and the harness's compensations such as for tool call truncation get undermined by a routing proxy.
- Privacy is the stronger angle, some said
- One commenter said rule-based routing doubles as an auditable policy.
- They felt it is more compelling for controlling what data leaves than for saving cost.
- Alternative designs suggested
- One commenter wants harnesses to support routing plugins instead of HTTP proxies.
- Another described routing between agents by branch and tickets in git.
How to Apply
- Run the route command locally first
- Build with cargo and run wayfinder-router route "your sentence" to see the choice.
- Feed the same input several times and confirm the result is identical.
- Split policy by data sensitivity
- List the request types that must not leave your machine and turn them into local-only rules.
- Audit actual routing using the receipts.
- Connect your coding agent to the loopback policy
- Run wayfinder-router connect <client> for the client you use.
- Test context loss yourself when the model changes mid-session.
- Run team setups in data-plane mode
- Mint a virtual key with keys new and start the server with --surface data-plane.
- For containers, follow the README's read-only Docker example.
Try It
# Paste into Claude or ChatGPT (simplified version of the Wayfinder idea: designing a rule-based routing policy)
Build a deterministic rule table that splits my service's LLM requests between a local model and a hosted API.
Constraints:
- Scoring must use only the input string and metadata, with no external calls
- The same input must always produce the same result
- For each decision, emit a receipt JSON with 'chosen model, applied rule, reason'
Our request types:
{{request types}}
Data that must not leave:
{{sensitive data types}}
Available models:
{{local models / hosted models}}Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls