selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

Kong logo

Self-host Kong

3.9.4
ReleaseOpen SourceApache-2.0
helm install my-kong kong/ingress -n kong --create-namespace
Updatedlast month
LanguageLua
Setup difficultyAdvanced
MobileResponsive
ThemeDark mode
Stars
44 383
CPU
2 vCPU
RAM
4GB
Storage
10GB
Port
8000 (proxy), 8001 (admin), 8002 (manager)
Requires
PostgreSQL
Docker
kong/kong
Kong screenshot 1

What is Kong?

Kong Gateway is a cloud-native, platform-agnostic, and scalable API and AI Gateway. It is designed for high performance and extensibility via plugins, making it a central layer for orchestrating microservices, conventional API traffic, and AI workloads. Kong supports advanced routing, load balancing, health checking, authentication, and more. It also provides AI traffic capabilities, including multi-LLM support, semantic security, MCP traffic governance, and analytics.

Kong Gateway can be deployed in various environments, including Kubernetes, Docker, and traditional infrastructure. It supports hybrid and multi-cloud deployments, making it suitable for modern, distributed architectures. Kong Gateway is highly extensible, with a rich ecosystem of plugins for authentication, rate limiting, logging, monitoring, and more.

Kong Gateway is widely used for securing, managing, and scaling APIs and AI workloads, making it a popular choice for enterprises and developers alike.

Kong alternatives

All self-hosted alternatives to Apigee → All self-hosted alternatives to AWS API Gateway → All self-hosted alternatives to MuleSoft →

Should you self-host Kong?

Kong scores 81/100 on selfhost.directory (how scoring works) and ranks #1 of 18 in API Management. It has 44 383 GitHub stars, +124 in the last 30 days.

It shipped 3 stable releases in the past year. The latest, 3.9.4, came out on 12 October 2026. New versions land roughly every 2 months.

Setup is advanced: plan for several services and some ongoing maintenance. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Lua.

Its closest alternative on selfhost.directory is Traefik (86/100, 65 562 stars). It scores higher overall, so compare the two before you pick. See Kong vs Traefik side by side.

Features

  • AI Gateway
  • API Gateway
  • Authentication
  • Hybrid Mode
  • Kubernetes Ingress Controller
  • Load Balancing
  • Observability
  • Plugins
  • Rate Limiting

Kong README

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.

How to install Kong

Install Kong with Docker Compose

Docker Engine 20.10+, Docker Compose 1.29+
Environment variables
KONG_DATABASE: postgres, KONG_PG_HOST: db, KONG_PG_USER: kong, KONG_PG_PASSWORD: kong
version: '3.5'
services:
  kong:
    image: kong/kong:latest
    environment:
      KONG_DATABASE: postgres
      KONG_PG_HOST: db
      KONG_PG_USER: kong
      KONG_PG_PASSWORD: kong
    ports:
      - "8000:8000"
      - "8001:8001"
      - "8002:8002"
    depends_on:
      - db
  db:
    image: postgres:9.5
    environment:
      POSTGRES_DB: kong
      POSTGRES_USER: kong
      POSTGRES_PASSWORD: kong
    volumes:
      - postgres_data:/var/lib/postgresql/data
volumes:
  postgres_data:
  1. Save the above as docker-compose.yml.
  2. Run docker-compose up -d to start Kong Gateway and PostgreSQL.
  3. Access Kong Manager at http://localhost:8002.

How to configure Kong

  • KONG_DATABASEpostgresSpecifies the database to use (postgres or cassandra).

    values: postgres, cassandra

  • KONG_PG_HOSTlocalhostPostgreSQL host address.

    values: Any valid hostname or IP address

  • KONG_PG_USERkongPostgreSQL username.

    values: Any valid PostgreSQL username

  • KONG_PG_PASSWORDkongPostgreSQL password.

    values: Any valid PostgreSQL password

  • KONG_PROXY_ACCESS_LOGlogs/access.logPath for proxy port request access logs.

    values: Any valid file path or 'off' to disable

Kong releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Can Kong Gateway be used for AI workloads?

Yes, Kong Gateway provides advanced AI traffic capabilities, including multi-LLM support, semantic security, and MCP traffic governance.

What authentication methods are supported?

Kong Gateway supports a variety of authentication methods, including JWT, OAuth, LDAP, and more. These can be configured via plugins.

What databases does Kong Gateway support?

Kong Gateway supports PostgreSQL and Cassandra as its primary databases. PostgreSQL is the most commonly used and recommended for production environments.

How do I install Kong Gateway?

You can install Kong Gateway using Docker, Docker Compose, Kubernetes, or traditional package managers. For Docker Compose, use the provided `docker-compose.yml` and run `docker-compose up -d`. For Kubernetes, use the Helm chart.

What is Kong Gateway?

Kong Gateway is a cloud-native, high-performance API and AI Gateway. It provides advanced routing, load balancing, authentication, and AI traffic capabilities, including multi-LLM support, semantic security, and MCP traffic governance.

More in API Management

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…