OpenSmartRoute AI Models Platforms: Self-Hosted and Cloud Routing
OpenSmartRoute acts as an open-source LLM router that directs requests to specific AI model platforms based on cost, latency, and availability. It supports both self-hosted deployments where engineers manage their own endpoints and hosted platforms that abstract away infrastructure management.
Supported Model Providers and Endpoints
The router connects to a wide range of model providers through standardized OpenAI-compatible endpoints or native APIs. The compatibility matrix defines how the router interacts with each vendor. For example, the OpenAI preset uses the OpenAI chat and embeddings endpoints, while the Azure preset utilizes Azure OpenAI or Azure AI Foundry with specific header configurations. The Hugging Face preset connects to the Inference Providers via the router.huggingface.co/v1 endpoint. Amazon Bedrock, Google Gemini, and Google Cloud Vertex AI are also supported, each requiring specific endpoint URLs and credential handling. The router can also direct traffic to Anthropic, Mistral, Groq, xAI, Cohere, OpenRouter, or custom in-house gateways like Ollama, vLLM, or LiteLLM.
When configuring a workspace, users connect their own endpoints and keys at /platform/dashboard/providers. This allows organizations to map catalogue targets to models on their preferred cloud providers. For instance, Azure connections use the deployment name, while Bedrock connections use the specific model ID. Once configured, every request executed with execute: true runs the chosen target on the workspace's endpoint using the workspace's credentials. This ensures that usage lands on the workspace's own cloud bill, keeping prompts inside the data boundary the organization chose.
Self-Hosted vs. Hosted Deployment Options
Engineers can choose between running the router as a self-hosted service or using the hosted platform. The self-hosted option involves deploying the osr serve image or using the Python SDK to run the router on-premises or in a private cloud. This setup requires configuring the deployment to allow private model endpoints by setting OSR_PLATFORM_BYOK_ALLOW_PRIVATE=true. In this mode, the router manages its own routing logic, quotas, budgets, and learners, while the actual model calls go to the configured external endpoints.



