Routerly: Self-Hosted LLM Gateway with Runtime Routing Policies and Budget Control

✍️ OpenClawRadar📅 Published: April 19, 2026🔗 Source
Routerly: Self-Hosted LLM Gateway with Runtime Routing Policies and Budget Control
Ad

Routerly is a self-hosted LLM gateway built to address gaps in existing solutions. The developer created it because OpenRouter is cloud-based, and they wanted something runnable on their own infrastructure, while LiteLLM's routing felt too manual despite handling budgeting well.

Core Features

Instead of hardcoding a specific model in your application, Routerly lets you define routing policies that determine model selection at runtime. Available policies include:

  • Cheapest
  • Fastest
  • Most capable
  • Combinations of these policies

Budget control operates at the project level with actual per-token tracking, providing granular cost management.

Compatibility and Use

Routerly is OpenAI-compatible, meaning it can drop into existing workflows without code changes. Specifically mentioned compatible tools include:

  • Cursor
  • LangChain
  • Open WebUI

It works with "anything else" that uses the OpenAI API format.

Ad

Current Status

The developer acknowledges there are rough edges and is seeking community feedback on:

  • What's broken
  • What's missing
  • Whether the routing logic makes sense in practice
  • Whether it solves a real problem people have

The tool is completely free and open source, with no commercial sales pitch. The developer is focused on practical feedback from the technical community.

Resources

  • GitHub Repository: https://github.com/Inebrio/Routerly
  • Website: https://www.routerly.ai

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also