Millwright
Rust-based, self-hosted LLM router
Get picks like this daily. Today's launch numbers, the top launches, AI and tech news, and a daily opportunity pick, straight to your inbox.
Want to reach these readers? Sponsor an issue.
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 PostgreSQLFull 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.
HN · launched Jul 22, 2026 · 10 upvotes (top 46%) · 0 views
Niche: llm routing and gateway tools · 143 launches, 5 in the last 7 days ▼ -62% · Explore this niche →
Category and tags
- Horizontal
- Model & infra
- Developer
- AI-native
- Hobby / open-source project
Visit website ↗ Source listing ↗
More like this: all 143 launches in llm routing and gateway tools →
Could you build this?
Partial The basic proxying and routing logic is vibe-codeable, but building a production-grade, low-latency, resilient LLM gateway in Rust with high-throughput streaming, fallbacks, and connection pooling requires solid systems engineering.
What it would actually take: The software is built with Rust using Tokio, Axum/Hyper, and Tower services to handle streaming HTTP SSE connections, token-bucket rate limiting, semantic caching, and dynamic failovers across heterogeneous provider APIs. The hard parts are maintaining near-zero proxy latency overhead under heavy concurrency, handling divergent provider token-counting conventions, and implementing reliable circuit-breaker patterns.
Discussion
7 comments analyzed.
Competitors mentioned: role-model (on-device router alternative)
Concerns raised: Energy consumption/environmental impact, Vendor lock-in risk with foreign companies, Cognitive dependency - losing ability to use own brain, Pricing will increase after undercharging phase, Legal uncertainty around training on copyrighted software
Competitors
Other products that read as similar to this one : 654 launches clear the similarity bar, closest 8 shown.
Attention rank: #315 of 655 (itself plus its competitors, highest first, normalized so YC and Product Hunt are compared fairly).
Launched 266 days after the earliest competitor.
- We built open OpenRouter that turns usage into a better model · hn · 2026-08-27 · 222 upvotes · similarity 0.54
- xhub · github · 2026-10-19 · 68 upvotes · similarity 0.53
- LLM-Gateway · hn · 2026-03-27 · 7 upvotes · similarity 0.53
- Open-source model routing for coding agents at Astra-level performance · hn · 2026-09-30 · 119 upvotes · similarity 0.53
- Foreman, a self-hosted LLM gateway for cost aware model routing · hn · 2026-07-08 · 15 upvotes · similarity 0.53
- Semwright · ph · 2026-10-08 · 68 upvotes · similarity 0.52
- Smart model routing directly in Claude, Codex and Cursor · hn · 2026-06-26 · 216 upvotes · similarity 0.51
- TheLittleHost · hn · 2026-03-16 · 7 upvotes · similarity 0.50
The niche, labels, vibe code rating and competitor comparison on this page are analysis by Nicheloom. If you use them, please credit nicheloom.com. How you may use our data.