Awesome Infra for AI › LLM Gateways & Proxies

Nayjest/lm-proxy

⭐ 155 Python repository created 2025-05-24

LM-Proxy is an OpenAI-compatible HTTP proxy server and gateway designed to unify access to various Large Language Model providers and local inference solutions through a single, standardized API endpoint. Built with Python, FastAPI, and MicroCore, it seamlessly integrates cloud providers like Google, Anthropic, and OpenAI, as well as local PyTorch-based inference. The tool acts as a drop-in replacement for OpenAI's API, allowing users to switch between different cloud providers and local models without altering existing client code, ensuring provider-agnostic applications. Key features include full support for real-time token streaming, secure Virtual API key management, and dynamic model routing based on model name patterns. It can be used both as an importable Python library and a standalone HTTP service. Configuration is flexible, supporting TOML, YAML, JSON, or Python files for managing connections, routing rules, and access control. This project aims to eliminate integration complexity, making it easier to build and deploy LLM-powered applications in production environments or for experimentation.

https://github.com/Nayjest/lm-proxy

aianthropicapi-proxyfastapigoogle-ailanguage-modelsllmllm-apillm-gatewayllm-inferencellm-proxyopenaiopenai-apiproxyproxy-serverpython

Also in LLM Gateways & Proxies

diegosouzapw/OmniRoute

OmniRoute is a free AI gateway that unifies access to over 170 AI providers, offering token compression, auto-fallback, and aggregating free tiers to provide billions of free tokens monthly.

Mintplex-Labs/anything-llm

AnythingLLM is an all-in-one local-first AI application for chatting with documents, managing AI agents, and integrating with various LLMs and vector databases, offering dynamic model routing and m...

BerriAI/litellm

LiteLLM is an open-source AI Gateway and Python SDK providing a unified interface to over 100 LLM providers, with features like cost tracking, guardrails, load balancing, and observability.

QuantumNous/new-api

new-api is a unified LLM gateway and AI asset management system that enables aggregation, distribution, and cross-conversion of various LLMs into OpenAI, Claude, or Gemini compatible formats, offer...

Kong/kong

Kong Gateway is a cloud-native API and AI gateway offering high performance, extensibility via plugins, and advanced AI traffic capabilities including multi-LLM support, semantic security, and cach...

decolua/9router

9Router is an AI router and token saver that connects various AI coding tools to over 40 AI providers, optimizing usage with auto-fallback, quota tracking, and token compression.

apache/apisix

Apache APISIX is a dynamic, real-time, high-performance API Gateway that can also function as an AI Gateway, providing AI proxying, load balancing for LLMs, and robust security for AI agents.

lidge-jun/opencodex

OpenCodex is a universal local proxy that enables OpenAI Codex, Claude Code, and Grok Build to utilize any LLM provider, offering advanced model routing, account pooling, and API key management.