Open-source alternatives to OpenRouter

OmniRoute leads with 95, ahead of headroom (92) and new-api (91). Updated from public GitHub data.

The highest-scoring open-source projects in Gateways and observability. They are picks, not exact replacements, so read the weaknesses before you switch.

Try before you install
axonhub live demo
Open-source alternatives to OpenRouter
RankProjectScore
1OmniRouteLLM gateway routing one OpenAI-compatible endpoint across 372 providersGateways and observability90.5k starsMIT95 out of 100
2headroomCompresses tool outputs, logs and history before they reach the LLMGateways and observability80.9k starsApache-2.092 out of 100
3new-apiGateway that unifies LLM providers behind OpenAI, Anthropic and Gemini APIsGateways and observability52.6k starsAGPL-3.0known advisory in latest version91 out of 100
#4LiteLLMOpenAI-format gateway and Python SDK for calling 100+ LLM providersGateways and observability64k starscustom license88 out of 100
#5freellmapiOpenAI-compatible gateway pooling free-tier LLM providers with automatic failoverGateways and observability58.7k stars+15,949 (+37%) in 30 daysMIT88 out of 100
#6experientialOpenAI-compatible LLM gateway with per-user budgets and traffic-trained routersGateways and observability19.4k stars+6,284 (+48%) in 30 daysApache-2.088 out of 100
#7llm-gatewayOpenAI-compatible gateway routing requests across providers, subscriptions, local modelsGateways and observability7.7k stars+72 (+0.9%) in 30 daysMIT88 out of 100
#8clawrouterLocal LLM router that picks the cheapest capable model per requestGateways and observability6.7k starsMIT83 out of 100
#9axonhubLLM gateway that translates between OpenAI, Anthropic and Gemini APIs Live demo ↗ (opens in a new tab)Gateways and observability5.5k stars+111 (+2.1%) in 30 daysApache-2.083 out of 100
#10BifrostGo AI gateway with web UI, fallbacks, budgets and semantic cachingGateways and observability10k starsApache-2.082 out of 100

Reviews

195 out of 100

OmniRoute

LLM gateway routing one OpenAI-compatible endpoint across 372 providers

90.5k starsMITlast commit Nov 2026

OmniRoute is a TypeScript gateway that exposes one endpoint at localhost:20128/v1 and routes requests to 372 providers, including many free tiers, with automatic fallback between them. It accepts OpenAI, Claude, Gemini and Responses API formats, and a dashboard handles keys and free-tier quota tracking. Users bring their own provider accounts; the README's free-token figures are estimates, not a grant.

Strengths

  • Single /v1 endpoint covers 372 providers with automatic fallback to healthy targets
  • Dashboard tracks free-tier pools and quota use at /dashboard/free-tiers
  • Works with coding CLIs such as Claude Code, Codex, Cline and Cursor via one config
  • Installable via npm, Docker or Electron; MIT licensed; includes MCP and A2A support

Weaknesses

  • Free-token headline is an estimate; provider limits and terms change and can lower it
  • Providers flagged tos: avoid are excluded from automatic routing by default
  • Fresh install may have no eligible route until you connect a provider account
  • Large surface (372 providers, 19 routing strategies) makes setup and review heavy
  • no GPU
  • Docker + Compose
  • Needs Provider accounts or API keys, Node.js (npm) or Docker
  • Models: OpenAI API, Claude API, Gemini API, Responses API
  • port 20128
292 out of 100

headroom

Compresses tool outputs, logs and history before they reach the LLM

80.9k starsApache-2.0last commit Nov 2026

Headroom is a Python library, local proxy and CLI that shrinks agent context before it is sent to an LLM provider. It routes JSON, source code and text to separate compressors and keeps originals locally so the model can retrieve them. `headroom wrap` configures coding agents such as Claude Code, Codex, Aider and Cline to go through the proxy.

Strengths

  • Seeded, offline benchmark: 21–57% fewer input tokens across four agent scenarios
  • One-command `headroom wrap` for many coding agents, reversible with `headroom unwrap`
  • Compression runs locally; reported 0.21 ms p50 on a 10K-token JSON result
  • Originals cached locally and retrievable by the model via `headroom_retrieve`

Weaknesses

  • Little savings on prose or already-dense output; gains depend on repetitive payloads
  • Cursor and ZCode need manual base-URL setup; Cortex Code is library-only
  • Third-party OpenAI-compatible providers need an extra flag or the key goes to OpenAI
  • Output token reduction is off by default and reported as an estimate
  • no GPU
  • Docker + Compose
  • Needs Python 3.13 (for uv tool install), Serena (installed by headroom wrap), Kompress-v2-base model from Hugging Face
  • Models: OpenAI, Anthropic, Bedrock, Gemini, OpenAI-compatible providers
  • port 8787
391 out of 100

new-api

Gateway that unifies LLM providers behind OpenAI, Anthropic and Gemini APIs

52.6k starsAGPL-3.0last commit Nov 2026known advisory in latest version

New API is a Go and Gin gateway that connects upstream providers such as OpenAI, Anthropic, Gemini, Azure OpenAI, AWS Bedrock, Vertex AI, DeepSeek and Qwen. It exposes them through OpenAI Chat/Responses, Anthropic Messages and Gemini endpoints. A web console handles channel routing, users, quotas, pricing and usage logs. It runs on SQLite by default, or on MySQL or PostgreSQL with optional Redis.

Strengths

  • Converts between OpenAI, Anthropic Messages and Gemini request formats via RelayKit
  • Channel priorities, weights, retries and multiple upstream keys per channel
  • Per-user quotas, subscriptions, usage logs and expression-based pricing
  • Starts on SQLite with one container; Compose file adds PostgreSQL and Redis

Weaknesses

  • AGPL-3.0 with extra terms requiring attribution and a visible project link in modified UIs
  • Protocol conversion is not exact; tools and fields may not map across protocols
  • Multi-node setups need shared database, secrets and Redis, or rate limits count per node
  • Public or resale use brings filing and compliance duties the README leaves to the operator
  • no GPU
  • Docker + Compose
  • Needs SQLite, MySQL >= 5.7.8 or PostgreSQL >= 9.6, Redis (optional), ClickHouse (optional, log database)
  • Models: OpenAI, Anthropic, Google Gemini, Azure OpenAI, AWS Bedrock
  • port 3000
#488 out of 100

LiteLLM

OpenAI-format gateway and Python SDK for calling 100+ LLM providers

64k starscustom licenselast commit Nov 2026

LiteLLM translates requests in the OpenAI format to more than 100 LLM providers, and runs either as a Python SDK or as a proxy server. The proxy adds virtual keys, spend tracking, guardrails, load balancing and an admin dashboard. It also fronts A2A agents and MCP servers, and the README cites 8ms P95 latency at 1k RPS.

Strengths

  • Covers chat, responses, embeddings, images, audio, batches and rerank endpoints across many providers
  • Works as an in-process Python SDK or a standalone proxy server
  • Proxy includes virtual keys, spend tracking, guardrails and load balancing
  • Also fronts MCP servers and A2A agents through the same gateway

Weaknesses

  • Endpoint support varies per provider; the README table shows many gaps
  • License is detected as NOASSERTION; check the repo's license files before use
  • An Enterprise tier exists; the README excerpt does not say which features are paid
  • Two SDK packages (litellm, litellm-core) overlap and cannot be installed together
  • no GPU
  • Models: OpenAI, Anthropic, Gemini, AWS Bedrock, Azure
  • port 4000
#588 out of 100

freellmapi

OpenAI-compatible gateway pooling free-tier LLM providers with automatic failover

58.7k stars+15,949 (+37%) in 30 daysMITlast commit Nov 2026

FreeLLMAPI serves one OpenAI-compatible /v1 endpoint, plus Anthropic Messages, Gemini and opt-in Ollama surfaces, in front of 34 free-tier providers and custom OpenAI-compatible endpoints. A router ranks models, retries on 429/5xx with key rotation, and tracks RPM/RPD/TPM/TPD per key. Provider keys are AES-256-GCM encrypted in SQLite, and a React dashboard manages keys and the fallback chain.

Strengths

  • Per-key rate counters keep routing under each provider's free-tier caps
  • Covers chat, embeddings, images, video and speech, plus Anthropic and Gemini wire formats
  • One-command setup for Claude Code, Codex CLI, Cursor, Aider and other agents
  • About 40 MB RSS idle on Node 20+, including Raspberry Pi

Weaknesses

  • Free installs get new models 30 days late; same-day catalog needs $19/yr premium
  • Catalog updates depend on a signed feed from freellmapi.co
  • Single-user by design; no multi-user setup described
  • Quality and limits depend on free tiers that providers change without notice
  • no GPU
  • Docker + Compose
  • Needs Node.js 20+, SQLite, Provider API keys, Docker (optional)
  • Models: OpenAI-compatible APIs, Anthropic Messages API, Gemini API, Ollama API (opt-in)
  • port 3001
#688 out of 100

experiential

OpenAI-compatible LLM gateway with per-user budgets and traffic-trained routers

19.4k stars+6,284 (+48%) in 30 daysApache-2.0last commit Nov 2026

Experiential runs a local gateway that exposes hosted, BYOK and local models through one OpenAI-compatible API, with access rules and spend budgets per user and agent. It can also build a custom router from OpenTelemetry traces and fine-tune an open model on them through Tinker. A hosted platform serves the same API, including Anthropic Messages.

Strengths

  • Install with pip and start with `exp`; local gateway listens on 127.0.0.1:8000
  • Per-identity model access and budgets (setup wizard defaults to a $50.00 budget)
  • Builds a router from OTLP traces and can fine-tune a model from them
  • Hosted option accepts BYOK keys for OpenAI, Anthropic, Gemini, Azure, Bedrock, Fireworks, OpenRouter

Weaknesses

  • Traffic capture is experimental, macOS only, needs Python 3.13+, and has reliability issues
  • Model fine-tuning depends on the external Tinker service
  • Anonymous PostHog telemetry is on by default and must be disabled manually
  • No Docker or compose files detected
  • no GPU
  • Needs Tinker (for model fine-tuning), Provider API keys (OpenAI, Anthropic, Gemini, Azure, Bedrock, Fireworks, OpenRouter)
  • Models: OpenAI-compatible API, Anthropic Messages API (hosted), hosted models, BYOK models, local models
  • port 8000
#788 out of 100

llm-gateway

OpenAI-compatible gateway routing requests across providers, subscriptions, local models

7.7k stars+72 (+0.9%) in 30 daysMITlast commit Nov 2026

Manifest LLM Gateway exposes one OpenAI-compatible endpoint in front of 35 built-in provider connections, 18 subscription flows, local runtimes and custom endpoints. Sending "model": "auto" lets it pick the model. It logs full request bodies for successes and errors, tracks spend with limits and notifications, and falls back to other models when a query fails.

Strengths

  • Supports 35 provider connections plus any custom /v1/chat/completions or /v1/messages endpoint
  • Can route through 18 subscription flows (e.g. ChatGPT, Claude, Copilot), not only API keys
  • Connects local runtimes: Ollama, LM Studio (port 1234), llama.cpp (port 8080)
  • Full body logs, cost tracking, limits and model fallback on failure

Weaknesses

  • Self-hosting is Docker-only; the npm-based path is no longer supported
  • Volume-backed templates are single-instance; scaling out needs S3-compatible storage
  • Needs a database and recording storage; Postgres appears in the hosted templates
  • no GPU
  • Docker + Compose
  • Needs Docker, PostgreSQL, S3-compatible storage (for scaled deployments)
  • Models: OpenAI, Anthropic, Google Gemini, AWS Bedrock, OpenRouter
  • port 2099
#883 out of 100

clawrouter

Local LLM router that picks the cheapest capable model per request

6.7k starsMITlast commit Nov 2026

ClawRouter runs a local proxy on port 8402 with an OpenAI-compatible endpoint. It scores each request across 15 dimensions and picks the cheapest model that can handle it, from about 90 chat models behind BlockRun's gateway. Payment is USDC over x402 on Solana or Base, or a card-funded API key. Seven free models need no signup. It also installs as an OpenClaw plugin.

Strengths

  • Routing runs locally in under 1 ms, with no external calls for the decision
  • OpenAI-compatible proxy works with Cursor, continue.dev and the OpenAI SDK
  • Seven free models usable without signup, key or wallet
  • Pay by x402 USDC per request or by card-funded API key

Weaknesses

  • Paid models go through BlockRun's hosted gateway, not directly to each provider
  • Savings figures come from the vendor's own published workload mix
  • About 90 chat models, fewer than OpenRouter's listed 200+
  • Card top-ups cost 5.5% + $0.30; wallet use adds $0.001 per transaction
  • no GPU
  • Needs Node.js, BlockRun gateway (blockrun.ai), USDC wallet (Solana or Base) or BlockRun API key
  • Models: OpenAI, Anthropic, Google, xAI, DeepSeek
  • port 8402
#983 out of 100

axonhub

LLM gateway that translates between OpenAI, Anthropic and Gemini APIs

Live demo ↗ (opens in a new tab)5.5k stars+111 (+2.1%) in 30 daysApache-2.0last commit Nov 2026

AxonHub is a Go gateway that accepts requests in OpenAI, Anthropic or Gemini format and translates them for the configured provider channel, so a client SDK can call another vendor's model without code changes. It adds request tracing, RBAC with usage quotas, per-request cost tracking and load balancing with failover. Embedding, rerank and image generation endpoints are also supported.

Strengths

  • Cross-format translation: call Claude with the OpenAI SDK or GPT with the Anthropic SDK
  • Per-request cost breakdown for input, output and cached tokens, plus thread-level tracing
  • Covers text, image generation, embedding and rerank APIs across about a dozen providers
  • Public demo instance with a demo account for trying the admin UI

Weaknesses

  • Realtime API is listed as Todo; AWS Bedrock and Google Cloud channels are still in testing
  • Mixed licensing: Apache-2.0 plus LGPL-3.0 for the llm directory
  • Deployment is delegated to an agent skill; the README gives no manual install steps
  • Main README is mostly Chinese, with sponsor blocks taking much of the page
  • no GPU
  • Docker + Compose
  • Compose runs PostgreSQL
  • Models: OpenAI, Anthropic, Gemini, DeepSeek, Zhipu
  • port 8090
#1082 out of 100

Bifrost

Go AI gateway with web UI, fallbacks, budgets and semantic caching

10k starsApache-2.0last commit Nov 2026

Bifrost is a Go AI gateway that fronts 23+ providers (OpenAI, Anthropic, Bedrock, Vertex and more) with one OpenAI-compatible API and drop-in paths for the OpenAI, Anthropic and GenAI SDKs. It starts with npx or Docker on port 8080 with a web UI, and adds fallbacks, load balancing, semantic caching, MCP tool access, virtual keys, budgets and Prometheus metrics. Clustering, guardrails and the MCP gateway are enterprise features.

Strengths

  • Single Go binary via npx or Docker with zero-config web UI on 8080
  • Drop-in base URLs for OpenAI, Anthropic and Google GenAI SDKs
  • Virtual keys, team budgets, OIDC provisioning and Prometheus metrics
  • 11 microsecond added latency at 5k RPS in its own benchmark

Weaknesses

  • Guardrails, clustering, adaptive load balancing and MCP gateway are enterprise-only
  • Benchmarks are self-reported on t3 instances
  • 23+ providers, fewer than LiteLLM or Portkey
  • Semantic caching needs a vector store backend
  • no GPU
  • Models: OpenAI, Anthropic, AWS Bedrock, Google Vertex, Azure, Cerebras, Cohere, Mistral, Ollama, Groq and more
  • port 8080