kong README

The project's README from github.com/Kong/kong. As one markdown file: README.md.

Stars GitHub commit activity Build Status Version License Twitter Follow

Kong or Kong Gateway is a cloud-native, platform-agnostic, scalable API 𖧹 LLM 𖧹 MCP Gateway distinguished for its high performance and extensibility via plugins. It also provides advanced AI traffic capabilities with multi-LLM support, semantic security, MCP traffic security and analytics, and more.

By providing functionality for proxying, routing, load balancing, health checking, authentication (and more), Kong serves as the central layer for orchestrating microservices or conventional API traffic - and agentic LLM and MCP as well - with ease.

Kong runs natively on Kubernetes thanks to its official Kubernetes Ingress Controller.



Installation | Documentation | Discussions | Forum | Blog | Builds | AI Gateway | Cloud Hosted Kong


Getting Started

If you prefer to use a cloud-hosted Kong, you can sign up for a free trial of Kong Konnect and get started in minutes. If not, you can follow the instructions below to get started with Kong on your own infrastructure.

Let’s test drive Kong by adding authentication to an API in under 5 minutes.

We suggest using the docker-compose distribution via the instructions below, but there is also a docker installation procedure if you’d prefer to run the Kong Gateway in DB-less mode.

Whether you’re running in the cloud, on bare metal, or using containers, you can find every supported distribution on our official installation page.

  1. To start, clone the Docker repository and navigate to the compose folder.
  $ git clone https://github.com/Kong/docker-kong
  $ cd docker-kong/compose/
  1. Start the Gateway stack using:
  $ KONG_DATABASE=postgres docker-compose --profile database up

The Gateway is now available on the following ports on localhost:

Next, follow the quick start guide to tour the Gateway features.

Getting started with AI Gateway for LLM and MCP

If you would like to get started with Kong AI Gateway capabilities including LLM and MCP features, please refer to the official AI documentation.

Features

By centralizing common API, AI and MCP functionality across all your organization's services, Kong Gateway creates more freedom for engineering teams to focus on the challenges that matter most.

The top Kong features include:

Plugin Hub

Plugins provide advanced functionality that extends the use of the Gateway. Many of the Kong Inc. and community-developed plugins like AWS Lambda, Correlation ID, and Response Transformer are showcased at the Plugin Hub.

Contribute to the Plugin Hub and ensure your next innovative idea is published and available to the broader community!

Contributing

We ❤️ pull requests, and we’re continually working hard to make it as easy as possible for developers to contribute. Before beginning development with the Kong Gateway, please familiarize yourself with the following developer resources:

Use the Plugin Development Guide for building new and creative plugins, or browse the online version of Kong's source code documentation in the Plugin Development Kit (PDK) Reference. Developers can build plugins in Lua, Go or JavaScript.

Releases

Please see the Changelog for more details about a given release. The SemVer Specification is followed when versioning Gateway releases.

Join the Community

Konnect Cloud

Kong Inc. offers commercial subscriptions that enhance the Kong Gateway in a variety of ways. Customers of Kong's Konnect Cloud subscription take advantage of additional gateway functionality, commercial support, and access to Kong's managed (SaaS) control plane platform. The Konnect Cloud platform features include real-time analytics, a service catalog, developer portals, and so much more! Get started with Konnect Cloud.

License

Copyright 2016-2026 Kong Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

kong (Kong/kong)

Searching Database…

44.3K ·GitHub
这是什么?Kong 是一个云原生 API 网关,同时也可作为 AI 和 MCP 网关,为微服务以及 LLM/智能体流量处理路由、负载均衡、身份验证和流量管理。
这是我要导入的库,还是我要运行的独立服务?这是一个独立的代理服务器,你可以(例如通过 Docker)把它部署在 API 前面,而不是需要导入代码中的库。
我该怎么让它运行起来?克隆 Docker 仓库,进入 compose 文件夹,然后启动整套服务;之后网关会在 localhost:8000(代理)、8001(Admin API)和 8002(Kong Manager Web UI)上监听。
试用它一定要装 Docker 吗?还是可以直接裸机运行?推荐的快速上手方式是 Docker Compose,不过 Kong 也支持裸机、容器和 Kubernetes 部署,具体见其官方安装页面。
没有数据库也能运行吗?可以,除了传统的基于数据库的部署方式外,Kong 还支持无数据库(DB-less)的声明式配置模式。
它能在 Kubernetes 上运行吗?能,Kong 提供原生的 Kubernetes Ingress Controller,可直接在 Kubernetes 集群中运行。
AI Gateway 支持哪些 LLM 服务商?它提供统一的 LLM API,可在多家服务商之间路由,包括 OpenAI、Anthropic、GCP Gemini、AWS Bedrock、Azure AI、Databricks、Mistral 和 Huggingface。
Kong 能对 MCP 流量做什么?Kong 为 MCP 流量提供治理、安全和可观测性功能,还能从任意 RESTful API 自动生成 MCP 服务器。
我可以用自定义插件扩展 Kong 吗?可以,Kong 拥有插件系统和 Plugin Hub;开发者可以使用 Plugin Development Kit,用 Lua、Go 或 JavaScript 编写插件。
如果我不想自己托管,有没有托管的云版本?有,Kong Konnect 是一款商业化的云端托管 SaaS 控制平面,在开源 Gateway 的基础上提供更多功能、分析和支持。
What are similar projects?tyk, apisix, busbar, litellm, bifrost, evenfire, istio, OmniRoute
Creator
Kong
Size
95.7 MB
Stars
44.3K
Age
11y
Commits · 90 Days