Open-source alternatives to OpenRouter

2 free, open-source alternatives with 48.8K total GitHub stars. The best open-source alternative to OpenRouter is LiteLLM, with 48.8K GitHub stars.

Updated July 2026Stats synced from GitHub
#1
LiteLLM

LiteLLM

Unified gateway for 100+ LLMs with spend tracking

LiteLLM is a Python SDK, Proxy Server (AI Gateway) to call 100+ LLM APIs in OpenAI format, with cost tracking, guardrails, loadbalancing and logging. Supports Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, VLLM, NVIDIA NIM.

aillmproxy
48.8K8.5KCustom
vs OpenRouter
Read more
#2
Proxed AI

Proxed AI

Secure AI API management for iOS apps with DeviceCheck

Proxed.AI is a secure proxy backend for iOS apps that protects your AI API keys and controls AI responses. Uses Apple DeviceCheck to lock down API keys and provides a visual schema builder to structure AI outputs.

aiproxyllm
60AGPL-3.0
vs Portkey
Read more

Compare OpenRouter alternatives

ToolStarsForksLicenseSelf-hosted
LiteLLM48.8K8.5KCustomYes
Proxed AI60AGPL-3.0Yes

OpenRouter is a hosted, unified API gateway that routes requests across 300+ LLMs from different providers, billed on a pay-as-you-go basis through OpenRouter's own account and credit system. Teams that want to run that same routing layer on their own infrastructure, or that need built-in spend tracking and budget controls rather than just pass-through billing, look for a self-hosted alternative.

LiteLLM is the closest match — a self-hostable gateway that unifies 100+ LLM providers behind one API, with the option to run it entirely on your own infrastructure instead of routing traffic through a third party.

FAQ

Is there a free, open-source alternative to OpenRouter?

Yes. LiteLLM is open source and free to self-host.

What's the best open-source alternative to OpenRouter?

LiteLLM is the standout option — it unifies 100+ LLM providers behind a single API and can run entirely on your own infrastructure instead of routing through a third-party account.

What are the top open-source alternatives to OpenRouter?

Browse all open-source alternatives to OpenRouter above, or explore the full Developer Tools category for more options.

Explore more alternatives