How styayur/omniroute-ps works
OmniRoute-PS is a local PowerShell OpenAI-compatible LLM router. CLI and IDE clients send requests to its HTTP server, which exposes OpenAI and Anthropic endpoints; the documented shared protocol IR supports cross-protocol routing to configured upstream providers. The README also describes configuration, health and metrics endpoints, worker queueing, circuit breaking, hot reload, and structured logging. Source excerpts were unavailable, so relationships below are limited to README-documented behavior; implementation ownership and finer call flows could not be verified.
Main entry points: Server.ps1 HTTP server · Config.ps1 Configuration · Router.ps1 Route selection · Protocol.ps1 Canonical protocol IR
Components 18
Entry and HTTP
- PowerShell CLI
omniroute.ps1 - HTTP server
src/Server.ps1 - OpenAI endpoints
src/Server.ps1 - Anthropic endpoint
src/Server.ps1
Protocol and routing
- Canonical protocol IR
src/Protocol.ps1 - Route selection
src/Router.ps1 - Provider adapters
src/Adapters.ps1 - HTTP transport
src/Transport.ps1
Runtime services
- Worker pool and queue
src/Server.ps1 - Circuit breaker
src/Router.ps1 - Health endpoints
src/Health.ps1 - Prometheus metrics
src/Metrics.ps1
Configuration and operations
- Configuration
src/Config.ps1 - Config hot reload
src/Config.ps1 - Redacted structured logs
src/Logging.ps1 - JSON Schema
schemas/omniroute.schema.json
Other components
- CLI and IDE clients
- LLM providers
Connections 19
- CLI and IDE clients → HTTP server: send requests
README.md - PowerShell CLI → HTTP server: start serving
README.md - HTTP server → OpenAI endpoints: exposes
README.md - HTTP server → Anthropic endpoint: exposes
README.md - OpenAI endpoints → Canonical protocol IR: uses shared IR
README.md - Anthropic endpoint → Canonical protocol IR: uses shared IR
README.md - Canonical protocol IR → Route selection: routes requests
README.md - Route selection → Provider adapters: selects provider
README.md - Provider adapters → HTTP transport: forwards requests
README.md - HTTP transport → LLM providers: sends requests
README.md - Configuration → Route selection: configures routes
README.md - Configuration → Provider adapters: configures providers
README.md - HTTP server → Worker pool and queue: queues work
README.md - Route selection → Circuit breaker: uses breaker
README.md - HTTP server → Health endpoints: serves health
README.md - HTTP server → Prometheus metrics: serves metrics
README.md - Configuration → Config hot reload: supports reload
README.md - Configuration → JSON Schema: validated by
README.md - HTTP server → Redacted structured logs: logs requests