developers · brick · runtime · shipped
awrouter
01problem
Every LLM call in the platform routes through MicroScheduler (:8150) -- but the routing logic (backend discovery, failover, tier maps, context fitting, streaming) is buried inside a 19,535-line service with 107 monorepo imports. A stranger cannot run it: it demands the internal CA, services.yaml discovery, secrets at:8111, the fleet's model inventory. The routing plane is valuable standalone and entangled by accident of packaging, not by design.
02install
pip install awrouter03commands
awrouter
04quick start
pip install awroutercore: stdlib-only
pip install "awrouter[serve]"+ the OpenAI wire server (fastapi/uvicorn)
05docs
06adopt it
Point it at your backends (vLLM / llama.cpp / any OpenAI-compatible endpoint); ask it which backend should serve model X right now, or to stream a completion with failover and context fitting.