For an open source llm proxy and gateway, the strongest matches are lm-sys/routellm (RouteLLM provides an OpenAI-compatible API gateway and traffic manager), coaidev/coai (CoAI is a self-hostable AI gateway that unifies multiple) and xiangsx/gpt4free-ts (This repository provides a self-hostable TypeScript-based LLM API proxy). berriai/litellm and quantumnous/new-api round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “open source alternatives to litellm”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
RouteLLM is a routing framework and traffic manager designed to direct prompts between high-capability and low-cost large language models. It functions as an API gateway that mimics the OpenAI specification to route requests across different model providers. The system optimizes operational costs by splitting traffic between model tiers based on predicted win rates and prompt complexity. It includes a calibration tool to analyze sample queries and determine the optimal cost-quality tradeoff for traffic distribution. The framework provides a tool for measuring the accuracy and cost efficiency
RouteLLM provides an OpenAI-compatible API gateway and traffic manager for splitting workloads across multiple model providers, making it a great fit for cost-optimized LLM routing.
CoAI is an enterprise-grade, self-hostable AI gateway platform that unifies access to over 200 AI models from more than 35 providers through a single OpenAI-compatible API endpoint. It functions as a multi-tenant gateway, routing requests across providers with load balancing, automatic failover, and priority-based routing, while exposing standard OpenAI API endpoints for chat, image generation, model listing, and billing to enable seamless integration with existing tools and clients. The platform distinguishes itself through a comprehensive set of operational capabilities built around the gat
CoAI is a self-hostable AI gateway that unifies multiple LLM providers behind a single OpenAI-compatible API with load balancing, failover, and usage metering.
gpt4free-ts is a TypeScript-based LLM API proxy and gateway that provides a unified interface for accessing large language models without paid subscriptions or official API keys. It functions as a containerized AI bridge that routes requests to various free third-party providers to retrieve chat completions. The project acts as an OpenAI API wrapper, translating requests and responses into the standard OpenAI chat completions format to ensure compatibility with existing AI tools. It utilizes a provider-based routing system to distribute request loads across available endpoints. The gateway s
This repository provides a self-hostable TypeScript-based LLM API proxy and gateway with an OpenAI-compatible interface, multi-provider routing, and response streaming, though it focuses primarily on free third-party provider aggregation rather than enterprise API key management and billing.
LiteLLM is a unified gateway and proxy server designed to centralize access to over one hundred language model providers. It provides a standardized API interface that abstracts vendor-specific schemas, allowing developers to interact with diverse models through a single, consistent format. By acting as a central traffic management layer, it enables organizations to route, secure, and govern model interactions across multiple deployments. The platform distinguishes itself through its policy-driven architecture, which uses configuration-based routing to manage traffic distribution, load balanc
LiteLLM is a self-hostable LLM proxy and unified gateway providing multi-provider routing, an OpenAI-compatible API, load balancing, rate limiting, and virtual key management.
This project is an AI model API gateway and proxy server designed to provide a unified interface for interacting with diverse artificial intelligence service providers. It functions as a centralized middleware platform that routes, load balances, and translates API requests across multiple models, enabling developers to access text, image, audio, and video generation capabilities through a single, standardized integration. The gateway distinguishes itself through comprehensive administrative and financial controls, including event-driven usage accounting, real-time token consumption tracking,
This repository is a self-hostable AI model API gateway and proxy server that provides multi-provider routing, load balancing, API key management, and token usage tracking with an OpenAI-compatible interface.
Manifest is a language model provider unification system that standardizes access to multiple AI backends through a single interface. It functions as a centralized management layer for integrating various cloud-based and local model providers to simplify how applications request completions. The system provides intelligent model routing and high availability infrastructure by directing queries based on complexity and automatically triggering model fallbacks when a primary provider fails. It distinguishes itself through multi-tenant AI management, organizing agents into isolated groups with de
Manifest provides a centralized management layer for standardizing access to multiple AI backends with intelligent routing and fallbacks, though it serves more as an integration framework than a traditional drop-in API gateway.
This project is an artificial intelligence gateway that functions as a centralized middleware layer for managing, securing, and observing interactions with language, vision, and audio models. It provides a unified interface that standardizes requests across multiple providers, enabling teams to integrate AI capabilities into their applications through a consistent set of tools and protocols. The gateway distinguishes itself through its comprehensive infrastructure governance and traffic management capabilities. It allows for policy-driven routing, automated failover, and load balancing across
This repository provides a centralized AI gateway that handles multi-provider routing, load balancing, fallback, and usage analytics with an OpenAI-compatible interface, making it an ideal self-hostable solution for managing language model traffic.
This project provides a unified interface for interacting with a wide range of artificial intelligence services, acting as a central orchestration layer for text and image generation. It standardizes access to diverse AI backends, allowing developers to integrate multiple language and vision models through a single, consistent programming interface. By abstracting provider-specific protocols and authentication requirements, the tool simplifies the development of applications that rely on external AI services. The platform distinguishes itself through a resilient request routing architecture d
This project acts as an AI request router and reverse proxy integrating multiple model providers with automated failover and fallback capabilities, fitting the LLM gateway category even though it focuses heavily on free client access rather than traditional API key management.
This project is an API proxy that provides free and paid access to ChatGPT models through an OpenAI-compatible endpoint. It acts as a reverse proxy, routing requests to ChatGPT while maintaining full compatibility with OpenAI's SDK interface, allowing any application or tool that supports a custom base URL and API key to connect. The service offers a free tier that provides access to ChatGPT models for chat, image generation, and voice dialogue without requiring an official subscription, along with a paid tier that unlocks over 130 OpenAI models including GPT-4 with lower latency and reduced
This project acts as an API proxy for ChatGPT models with OpenAI compatibility, but it focuses specifically on proxying and monetising access to ChatGPT rather than serving as a general multi-provider LLM gateway for routing across diverse upstream vendors.
Fauxpilot is a self-hosted AI coding assistant and local inference server. It functions as a proxy and API gateway that redirects traffic from IDE plugins to a local large language model, allowing for AI-assisted programming without external cloud dependencies. The project provides a specialized API emulation layer that mimics coding assistant protocols and a standardized OpenAI-compatible interface. This enables supported code editors to use local models for completions and suggestions by overriding default proxy URLs. The system includes capabilities for downloading and deploying local mod
Fauxpilot is a self-hosted AI coding assistant proxy designed to route traffic to local inference servers for IDE plugins, which makes it a specialized development tool rather than a general-purpose unified LLM gateway for multiple commercial providers.
LocalAI is a local generative AI platform and inference engine designed to host large language, vision, and audio models on private hardware. It functions as an API compatible gateway that mimics proprietary service endpoints, allowing existing third-party software to integrate with a self-hosted backend. The platform distinguishes itself as a distributed AI model orchestrator, capable of scaling inference across machine clusters using VRAM-aware routing and hardware coordination. It provides a unified interface for diverse open-source backends and supports self-hosted RAG infrastructure thro
LocalAI is a local inference engine and self-hosted model runner rather than a multi-provider gateway designed to route requests across external LLM APIs like OpenAI and Anthropic.
KoboldAI-Client is a web-based interface and toolkit for interacting with large language models. It functions as a local AI text generator for storytelling and conversational AI, providing a front end for models hosted either on local hardware or within cloud-provisioned environments. The system includes a persona manager that uses external modules and soft-prompting to guide AI responses toward specific characters and writing styles. It also provides an API wrapper that exposes a standardized, OpenAI-compatible REST API, allowing external applications to communicate with the hosted models.
KoboldAI-Client is a local text-generation frontend and model runner rather than a centralized multi-provider gateway, though it does offer an OpenAI-compatible API for accessing hosted models.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| lm-sys/routellm | 5.1K | Python | Apache-2.0 | |
| coaidev/coai | 9.2K | TypeScript | Apache-2.0 | |
| xiangsx/gpt4free-ts | 7.7K | TypeScript | GPL-3.0 | |
| berriai/litellm | 50.6K | Python | NOASSERTION | |
| quantumnous/new-api | 39.7K | Go | AGPL-3.0 | |
| mnfst/manifest | 7K | TypeScript | MIT | |
| portkey-ai/gateway | 12.1K | TypeScript | MIT | |
| xtekky/gpt4free | 66.3K | Python | GPL-3.0 | |
| popjane/free_chatgpt_api | 6K | — | mit | |
| fauxpilot/fauxpilot | 14.7K | Python | MIT |