Topics / #api-gateway

API gateway projects on GitHub

Gateways that route, secure and manage traffic between clients and backend services.

As of , the most-starred API gateway projects on GitHub are OmniRoute (91.5K stars), litellm (64.1K stars) and CLIProxyAPI (59.7K stars). GitHub.Locker tracks 49 API gateway repositories with 851.8K stars combined. The fastest-growing on November 30 was magpie, with +557 stars in a day.

49Projects
851.8KStars in total
+2.2KStars in a day

Hot right now

Most stars gained in a day · Nov 30

The all-time top

49 projects · by stars

  1. #1 · cheaper-inference/OmniRoute

    OmniRoute

    OmniRoute is a free, open-source AI gateway that puts 359 providers and 1200+ models (Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax, etc.) behind one API endpoint, with quota-aware automatic fallback when a provider runs out.

    91.5K
  2. #2 · BerriAI/litellm

    litellm

    LiteLLM is an open source AI Gateway that gives you one unified interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and more) using the OpenAI API format.

    64.1K
  3. #3 · router-for-me/CLIProxyAPI

    CLIProxyAPI

    CLIProxyAPI is a proxy server that exposes OpenAI, Gemini, Claude, and Grok compatible API endpoints, letting you access CLI-based AI accounts (Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code, Devin) through any standard OpenAI/Gemini/Claude-compatible client or SDK.

    59.7K
  1. 4

    new-api

    52.7KQuantumNous/new-api · Go

    New API is a self-hosted gateway that unifies access to many AI providers (OpenAI, Claude, Gemini, DeepSeek, etc.) behind a single endpoint, converting between OpenAI-, Claude-, and Gemini-compatible formats and giving you usage tracking, billing, and access control.

    Deploy on Railway
  2. 5

    sub2api

    46.3KWei-Shaw/sub2api · Go

    Sub2API is an open-source, self-hosted gateway written in Go that unifies Claude, OpenAI, Gemini, and Grok subscriptions behind one API, letting a group of people pool (‘carpool’) a single subscription and split the cost while still using each provider’s native tools.

  3. 6

    kong

    44.4KKong/kong · Lua

    Kong is a cloud-native API gateway that also acts as an AI and MCP gateway, handling routing, load balancing, authentication, and traffic management for microservices and LLM/agentic traffic.

  4. 7

    magpie

    42.4Kyetone/magpie · Go

    Magpie is a menu bar app that lists every AI coding agent installed on your machine next to the model each one is currently set to; click a value and pick a different model from a dropdown.

  5. 8

    claude-code-router

    38.2Kmusistudio/claude-code-router · TypeScript

    Claude Code Router (CCR) is a local model gateway and control plane for coding agents: your agents get one stable local endpoint while you manage providers, models, routing rules, and tools from one app.

  6. 9

    one-api

    37.5Ksongquanpeng/one-api · JavaScript

    One API is a self-hosted LLM gateway and key management system: you pool API keys from many providers, and it serves them all through a single OpenAI-compatible API, with a web panel for users, quotas and billing.

  7. 10

    nginx

    33.9Knginx/nginx · C

    NGINX ('engine x') is a free, open source web server, load balancer, reverse proxy, API gateway and content cache — described as the world's most popular web server.

    Deploy on Railway
  8. 11

    consul

    30.1Khashicorp/consul · Go

    Consul is a distributed, highly available, data center aware solution for connecting and configuring applications across dynamic, distributed infrastructure. It is built to be datacenter aware and can support any number of regions without complex configuration.

    Deploy on Railway
  9. 12

    spring-cloud-alibaba

    29.2Kalibaba/spring-cloud-alibaba · Java

    A Spring Cloud toolkit from Alibaba: a one-stop set of components for building distributed Java applications on Alibaba middleware such as Nacos, Sentinel, RocketMQ and Seata.

  10. 13

    SafeLine

    23.5Kchaitin/SafeLine · Go

    SafeLine is a self-hosted web application firewall (WAF) and reverse proxy that protects your web apps from attacks and exploits by filtering and monitoring HTTP traffic.

  11. 14

    pydantic-ai

    21.3Kpydantic/pydantic-ai · Python

    Pydantic AI is the Python AI SDK for building agents: a typed, extensible agent loop where every model is a string swap away. The same agent runs behind a web frontend, in the terminal, on a voice call, or as a plain object you call run() on.

  12. 15

    experiential

    20.1Kexperientiallabs/experiential · Python

    Experiential is an open source gateway and router for agent workflows that lets you use hosted, BYOK, and local models through one OpenAI-compatible API, control who can spend how much on which models, and turn production traffic into a custom optimized router or your own fine-tuned model.

  13. 16

    OpenWA

    17.6Krmyndharis/OpenWA · TypeScript

    A free, open-source, self-hosted WhatsApp API gateway: it exposes messaging over a REST API with webhooks and a web dashboard, and you run it on your own server.

  14. 17

    apisix

    17.3Kapache/apisix · Lua

    Apache APISIX is an open-source, dynamic, real-time, high-performance API Gateway that also serves as an AI Gateway. It provides traffic management — load balancing, canary release, circuit breaking, authentication, observability — for both north-south and east-west traffic.

  15. 18

    awesome-microservices

    14.6Kmfornos/awesome-microservices

    A curated list of Microservice Architecture related principles and technologies — a link catalog of platforms, frameworks, toolkits, standards and further reading for building service-oriented systems.

  16. 19

    zuul

    14.1KNetflix/zuul · Java

    Zuul is Netflix's L7 (application-layer) gateway service that handles dynamic routing, monitoring, resiliency, and security for traffic flowing into a set of backend services.

  17. 20

    gateway

    13.5KPortkey-AI/gateway · TypeScript

    An open-source AI gateway that routes your requests to 1,600+ language, vision, audio and image models across 45+ providers through one fast, friendly API, with guardrails, caching, retries and fallbacks built in.

    Deploy on Railway
  18. 21

    nasiko

    12KNasiko-Labs/nasiko · Rust

    Nasiko is a single control-plane server that deploys, routes, secures, and observes AI agents built on the A2A protocol, acting as the one checkpoint every agent-to-agent call passes through.

  19. 22

    imgproxy

    11.2Kimgproxy/imgproxy · Go

    imgproxy is a fast, standalone server that resizes, crops, converts, and optimizes images on the fly by fetching them from a source URL you provide.

    Deploy on Railway
  20. 23

    chalice

    11.1Kaws/chalice · Python

    Chalice is a Python framework for writing serverless apps: you write ordinary Python functions, and it creates and deploys the AWS Lambda functions and REST APIs behind them.

  21. 24

    tyk

    10.9KTykTechnologies/tyk · Go

    Tyk is an open-source, cloud-native API Gateway that lets you manage REST, GraphQL, TCP, gRPC and MCP (Model Context Protocol) traffic in one place, adding authentication, rate limiting, quotas and analytics to your APIs.

  22. 25

    bifrost

    9.7Kmaximhq/bifrost · Go

    An open-source, high-performance AI gateway that unifies 23+ LLM providers behind a single OpenAI-compatible API, with automatic failover, load balancing, semantic caching, and budget controls built in.

    Deploy on Railway
  23. 26

    FractalWorkspace

    9.2KFractal-Compute-Orchestrations/FractalWorkspace · Python

    Fractal is a distributed computing ecosystem that harvests compute from edge devices (like Android phones) to run federated learning and large foundation model inference, while keeping raw user data on-device.

  24. 27

    grok2api

    7.9Kchenyme/grok2api · Go

    Grok2API is a self-hosted Go gateway that pools multiple Grok Build, Grok Web, and Grok Console accounts and exposes them through unified OpenAI- and Anthropic-compatible APIs, with a built-in React admin dashboard.

  25. 28

    gpt-load

    7.2Ktbphp/gpt-load · Go

    GPT-Load is a self-hosted AI gateway that routes API keys and subscription accounts (OpenAI, Anthropic, Gemini, and more) through a single entry point, with scheduling, failover, request logs, and usage accounting.

  26. 29

    ClawRouter

    6.7KBlockRunAI/ClawRouter · TypeScript

    ClawRouter is an open-source LLM router built for autonomous agents: it picks the cheapest capable model from 78 models across 9 providers in under 1ms, entirely locally, and lets an agent pay per request with USDC (via the x402 protocol) instead of signing up for a human account.

  27. 30

    agentgateway

    6.5Kagentgateway/agentgateway · Rust

    Agentgateway is an open-source proxy built on AI-native protocols (MCP and A2A) that provides security, observability, and governance for agent-to-LLM, agent-to-tool, and agent-to-agent communication across any framework and environment.

  28. 31

    open-connector

    6.3Koomol-lab/open-connector · TypeScript

    OpenConnector is an open-source connector gateway that lets AI agents authenticate to and call 1,000+ SaaS providers (GitHub, Gmail, Notion, Slack, BigQuery, etc.) through a shared catalog of prebuilt Actions, acting as an open alternative to Pipedream or Composio.

  29. 32

    monid

    6.2Kmonid-ai/monid · TypeScript

    It's 'OpenRouter for agent tools': one base URL and one key give an agent access to 2,000+ tools across 72+ providers, so you integrate one API instead of wiring up dozens of vendors yourself.

  30. 33

    AgnesAI-Models

    5.3KAgnesAI-Labs/AgnesAI-Models

    Agnes AI is the official gateway and model catalog for Agnes AI, giving developers OpenAI-compatible access to multimodal models for text, image, video, and agent workflows through one unified API.

  31. 34

    openclaw-zero-token

    5.2Klinuxhsj/openclaw-zero-token · TypeScript

    OpenClaw Zero Token is a fork of OpenClaw that lets you use major AI chat models like Claude, ChatGPT, Gemini, DeepSeek, Qwen, Doubao, Grok, Kimi, GLM and others for free, by logging into their official web UIs once in a browser instead of paying for API tokens, then routing calls to them through one unified gateway.

  32. 35

    executor

    4.6KUsefulSoftwareCo/executor · TypeScript

    An open-source integration layer for AI agents: configure each integration (MCP servers, OpenAPI specs, GraphQL APIs) once with auth and per-tool policies, and every MCP-compatible agent shares the same catalog instead of keeping its own copy.

  33. 36

    ccx

    4KBenedictKing/ccx · Go

    CCX is a high-performance AI API proxy and protocol translation gateway that sits in front of Claude, OpenAI Chat, OpenAI Images, OpenAI Embeddings, Codex Responses, and Gemini APIs, giving you one unified entrypoint for all of them.

  34. 37

    folkbench

    4KFolkbench/folkbench · TypeScript

    Folkbench is a benchmark and directory site for AI API relay providers (中转站) that resell access to models like GPT, Claude, Gemini, Grok and DeepSeek. It tracks each provider's availability rate, P95 response time, and pricing per model so you can compare them with real data instead of marketing claims.

  35. 38

    awesome-remote-mcp-servers

    3.5Kpunkpeye/awesome-remote-mcp-servers

    A curated, categorized directory of remote MCP (Model Context Protocol) servers that you connect to over the network instead of running locally, covering everything from CRM and databases to browser automation and payments.

  36. 39

    Agent2API

    2.5Kaimod-cc/Agent2API · Rust

    Agent2API is a local reverse proxy that turns the login sessions of various AI desktop coding clients (WorkBuddy, Raccoon/CatPaw, AutoClaw, Qoder, Cline, Accio, ZCode, CodeArts, Trae, Loomy, KukuAI, MonkeyCode, Antigravity and more) into one OpenAI-compatible API gateway, so any client that accepts a custom base_url can call those clients' model quotas through a single endpoint, without an upstream API key.

  37. 40

    ThinkWatch-Lite

    1.1KThinkWatchProject/ThinkWatch-Lite · TypeScript

    ThinkWatch Lite is a local gateway that sits between AI coding clients (Claude Code, Codex, and others) and their upstream providers, letting you switch providers and models without reconfiguring each client, while tracking request cost and blocking malicious tool calls.

  38. 41

    every-app

    986every-app/every-app · TypeScript

    EveryApp is a project to make every SaaS open source by building the next generation of web apps for AI agents, self-hosted on your own Cloudflare account.

  39. 42

    anythingmcp

    803HelpCode-ai/anythingmcp · TypeScript

    AnythingMCP is a self-hosted MCP gateway that turns REST/OpenAPI, SOAP, GraphQL, OData or SQL APIs into MCP tools usable by Claude, ChatGPT and Copilot, shipping with hundreds of ready-made connectors for systems like SAP, ERPs and e-commerce platforms.

  40. 43

    agent-safe-pipeline

    672decionis/agent-safe-pipeline · TypeScript

    Agent-Safe Pipeline is a reference implementation of an 'Execution Authority' architecture that sits between AI agents or APIs and consequential HTTP actions: it intercepts the action, asks Decionis whether it is authorized, and only forwards it if a single-use grant is issued, otherwise holding it for a human or refusing it, with every decision leaving tamper-evident evidence.

  41. 44

    casbin-gateway

    650apache/casbin-gateway · Go

    An open-source gateway for the AI coding agents on your machine: it watches what every agent does, relays their model traffic through one endpoint covering 44 vendors, and grades whether the API behind each key is what you actually paid for.

  42. 45

    booking-microservices

    549evangelosvlachos96-dotcom/booking-microservices · C#

    A practical flight-booking system built as .NET 10 microservices, using Vertical Slice Architecture, DDD, CQRS, Event Sourcing, gRPC, RabbitMQ, Wolverine, PostgreSQL, MongoDB and .NET Aspire.

  43. 46

    grok-register

    520xinxinshuhao-create/grok-register · Python

    grok-register is an automated toolkit that registers x.ai (Grok) accounts, extracts their SSO tokens, mints OAuth access/refresh tokens via Device Flow, and runs a daemon that keeps replenishing an account pool for an API gateway like grok2api.

  44. 47

    DoulorCloud

    281Doulor/DoulorCloud · TypeScript

    Doulor Cloud is a self-hosted, all-in-one cloud resource distribution platform: each user gets a subdomain, a domain email address, R2-backed direct-link file storage, a personal Bento-style profile page, and access to a shared AI API relay, all running on a static frontend plus Cloudflare Workers with no persistent server.

  45. 48

    busbar

    225GetBusbar/busbar · Rust

    Busbar is a self-hosted execution control plane that sits between AI applications and the AI providers they call, letting operators verify, govern, route, and record every model request, MCP tool call, and A2A agent delegation before it reaches its destination.

  46. 49

    k8s_stack_base

    119neurwerk/k8s_stack_base · Python

    This is the Base Helm chart repository for Neurwerk, a Kubernetes platform. It provides the shared platform charts, release contracts, namespaces, defaults, and validation that the rest of the Neurwerk stack (Studio, Tooling, PII Engine, Gateway Processor, API Key Bridge, Keycloak Theme) is built on top of.

Often tagged together