All Tools

Millwright – Rust-based, self-hosted LLM router

Free Design

Hey HN,

With the news of OpenRouter possibly being acquired and proliferation of hosted LLM routers (i.e. Ramp Router, Vercel’s AI Gateway), I saw the need for a self hosted solution focused on cost savings, transparency, and performance. So, I built an open sourced router with a simple CLI interface that can easily sit between coding agents and GenAI workloads.

For the curious and lazy, at the moment, Millwright has the tools for,

- Providers: OpenAI-compatible APIs, Anthropic, Amazon Bedrock

- Routing: policy-controlled model roles (cheap, mid, frontier), cheapest healthy route selection

- Protocols: OpenAI Chat Completions, Anthropic Messages, text and tool translation

- Cache Affinity: role-scoped session lanes without serializing concurrent agent traffic

- Spend Tracking: per-team costs, cache usage, model/provider mix, request traces

- Cost Analysis: measured usage and modeled candidate economics (HTML, Markdown, JSON)

- Reliability: bounded failover, circuit breakers, timeouts, concurrency limits

- Setup: interactive provider, model, and pricing configuration without storing provider secrets

- Deployment: one Rust binary, Docker, SQLite or PostgreSQL

Full disclosure: parts of the codebase were built with AI coding agents. All feedback is welcome, I’d especially value feedback on the routing policy, provider coverage, and anything that would block you from self-hosting it. Feel free to open feature/request and/or contribute as well.

Category
Pricing
Free
Type
AI Tool
Official
Best for: streamlining design workflows. Compare the top design alternatives listed below to find the right fit.

Pricing

Starting From
Free (Open Source)
Visit Website
Affiliate link — we may earn a commission

Related Deals

AppSumo — Lifetime AI Deals
Save on AI tools with one-time purchase. No subscriptions.
Browse Deals →

Compare Millwright – Rust-based, self-hosted LLM router with top alternatives

See how Millwright – Rust-based, self-hosted LLM router stacks up against other Design tools.

View Top Alternatives →

Frequently Asked Questions

What is Millwright – Rust-based, self-hosted LLM router?
Hey HN,With the news of OpenRouter possibly being acquired and proliferation of hosted LLM routers (i.e. Ramp Router, Vercel’s AI Gateway), I saw the need for a …
Is Millwright – Rust-based, self-hosted LLM router free?
Yes, Millwright – Rust-based, self-hosted LLM router offers a free plan.
What category does Millwright – Rust-based, self-hosted LLM router belong to?
Millwright – Rust-based, self-hosted LLM router is an AI tool in the Design category.