GET THE API + AI SUMMIT 2026 RECAP GARTNER® NAMES KONG A LEADER FOR 7TH YEAR TIME TO TAKE CONTROL OF YOUR AI ECOSYSTEM KONG NAMED A LEADER IN FORRESTER WAVE: API MANAGEMENT SOFTWARE
  • [Why Kong ](/company/why-kong)Why Kong
  • _API & AI CONNECTIVITY TECHNOLOGIES_
    The AI Connectivity Platform
    []
    API ManagementAI ManagementEvent ManagementMonetization
    Migration Services
    API Advisory Services + Forward Deployed EngineersNEW
    • RUNTIMES
    • [API Gateway ](/products/kong-gateway)API Gateway
    • [AI Gateway HOT](/products/kong-ai-gateway)AI Gateway HOT
    • [Event Gateway ](/products/event-gateway)Event Gateway
    • [Service Mesh ](/products/kong-mesh)Service Mesh
    • [Context Mesh ](/products/kong-konnect/features/context-mesh)Context Mesh
    • [Kong Operator ](/products/kong-operator)Kong Operator
    • [Webhook Engine ](/products/kong-webhook-engine)Webhook Engine
    • CORE SERVICES
    • [AI Registry NEW](/products/mcp-registry)AI Registry NEW
    • [Catalog ](/products/kong-konnect/features/api-service-catalog)Catalog
    • [APIOps & Automation ](/products/apiops-automation)APIOps & Automation
    • APPS & AI AGENTS
    • [Developer Portal ](/products/kong-konnect/features/developer-portal)Developer Portal
    • [Usage Billing & Metering ](/products/kong-konnect/features/usage-based-metering-and-billing)Usage Billing & Metering
    • [Observability ](/products/kong-konnect/features/api-observability)Observability
    • [KAi Agent ](/products/kong-konnect/features/kai-ai-agent)KAi Agent
    • [Identity & Access ](/products/governance-and-identity)Identity & Access
    • [AI Cost Management ](/products/ai-cost-management)AI Cost Management
    DEVELOPER TOOLS
    [Insomnia ](https://insomnia.rest/)Insomnia [Plugins ](https://developer.konghq.com/plugins/)Plugins [Volcano ](https://volcano.dev/)Volcano [Kong MCP ](https://developer.konghq.com/konnect-platform/konnect-mcp/)Kong MCP [Documentation ](https://docs.konghq.com/)Documentation [Open Source ](/community)Open Source
      • FOR PLATFORM TEAMS
      • [Developer Platform ](/solutions/building-developer-platform)Developer Platform
      • [Kubernetes and Microservices ](/solutions/build-on-kubernetes)Kubernetes and Microservices
      • [Observability ](/solutions/observability)Observability
      • [Service Mesh Connectivity ](/solutions/service-mesh-connectivity)Service Mesh Connectivity
      • [Kafka Event Streaming ](/solutions/kafka-stream-api-management)Kafka Event Streaming
      • FOR EXECUTIVES
      • [Open Banking ](/solutions/open-banking)Open Banking
      • [Legacy Migration ](/solutions/legacy-api-management-migration)Legacy Migration
      • [Platform Cost Reduction ](/solutions/api-platform-consolidation)Platform Cost Reduction
      • [Kafka Cost Optimization ](/solutions/reduce-kafka-cost)Kafka Cost Optimization
      • [API Monetization ](/solutions/api-monetization)API Monetization
      • [AI Monetization ](/solutions/ai-monetization)AI Monetization
      • FOR AI TEAMS
      • [AI-Native API Management ](/solutions/ai-native)AI-Native API Management
      • [Agent Gateway ](/agent-gateway)Agent Gateway
      • [Trigger Agents from Events ](/solutions/event-driven-ai-agents)Trigger Agents from Events
      • [AI Governance ](/solutions/ai-governance)AI Governance
      • [AI Security ](/solutions/ai-security)AI Security
      • [Token Cost Management ](/solutions/ai-cost-optimization-management)Token Cost Management
      • [Agentic Infrastructure ](/solutions/agentic-ai-workflows)Agentic Infrastructure
      • [MCP Production ](/solutions/mcp-production-and-consumption)MCP Production
      • [MCP Traffic Gateway ](/solutions/mcp-governance)MCP Traffic Gateway
      • FOR DEVELOPERS
      • [Mobile App API Development ](/solutions/mobile-application-api-development)Mobile App API Development
      • [GenAI App Development ](/solutions/power-openai-applications)GenAI App Development
      • [API Gateway for Istio ](/solutions/istio-gateway)API Gateway for Istio
      • [Decentralized Load Balancing ](/solutions/decentralized-load-balancing)Decentralized Load Balancing
      • BY INDUSTRY
      • [Financial Services ](/solutions/financial-services-industry)Financial Services
      • [Healthcare ](/solutions/healthcare)Healthcare
      • [Higher Education ](/solutions/api-platform-for-education-services)Higher Education
      • [Insurance ](/solutions/insurance)Insurance
      • [Manufacturing ](/solutions/manufacturing)Manufacturing
      • [Retail ](/solutions/retail)Retail
      • [Software & Technology ](/solutions/software-and-technology)Software & Technology
      • [Transportation ](/solutions/transportation-and-logistics)Transportation
    NEW
    Kong for Startups
    Apply for $100k credits & 50% off AI Gateway
  • [Pricing ](/pricing)Pricing
      • DOCUMENTATION
      • [Kong Konnect ](https://developer.konghq.com/konnect/)Kong Konnect
      • [Kong Gateway ](https://developer.konghq.com/gateway/)Kong Gateway
      • [Kong Mesh ](https://developer.konghq.com/mesh/)Kong Mesh
      • [Kong AI Gateway ](https://developer.konghq.com/ai-gateway/)Kong AI Gateway
      • [Kong Event Gateway ](https://developer.konghq.com/event-gateway/)Kong Event Gateway
      • [Kong Insomnia ](https://developer.konghq.com/insomnia/)Kong Insomnia
      • [Plugin Hub ](https://developer.konghq.com/plugins/)Plugin Hub
      • EXPLORE
      • [Blog ](/blog)Blog
      • [Customer Stories ](/customer-stories)Customer Stories
      • [Learning Center ](/blog/learning-center)Learning Center
      • [eBooks ](/resources/e-book)eBooks
      • [Reports ](/resources/reports)Reports
      • [Demos ](/resources/demos)Demos
      • [Videos ](/resources/videos)Videos
      • EVENTS
      • [API + AI Summit ](/events/conferences/api-ai-summit)API + AI Summit
      • [Webinars ](/events/webinars)Webinars
      • [User Calls ](/events/user-calls)User Calls
      • [Workshops ](/events/workshops)Workshops
      • [Meetups ](/events/meetups)Meetups
      • [See All Events ](/events)See All Events
      • FOR DEVELOPERS
      • [Engineering Blog ](/blog/engineering )Engineering Blog
      • [Get Started ](https://developer.konghq.com/)Get Started
      • [Community ](/community)Community
      • [Certification ](/academy/certification)Certification
      • [Training ](https://education.konghq.com)Training
      • COMPANY
      • [About Us ](/company)About Us
      • [We're Hiring! ](/company/careers)We're Hiring!
      • [Press Room ](/company/press-room)Press Room
      • [Contact Us ](/company/contact-us)Contact Us
      • [Kong Partner Program ](/partners)Kong Partner Program
      • [Enterprise Support Portal ](https://support.konghq.com/s/)Enterprise Support Portal
      • [Documentation ](https://developer.konghq.com)Documentation
  • [](/search)
  • [Login](https://cloud.konghq.com/login)Login
  • [Book Demo](/contact-sales)Book Demo
  • [Get Started](/products/kong-konnect/register)Get Started
[Blog](/blog)Blog
  • [AI Gateway ](/blog/tag/ai-gateway)AI Gateway
  • [AI Security ](/blog/tag/ai-security)AI Security
  • [AIOps ](/blog/tag/aiops)AIOps
  • [API Security ](/blog/tag/api-security)API Security
  • [API Gateway ](/blog/tag/api-gateway)API Gateway
|
    • [API Management ](/blog/tag/api-management)API Management
    • [API Development ](/blog/tag/api-development)API Development
    • [API Design ](/blog/tag/api-design)API Design
    • [Automation ](/blog/tag/automation)Automation
    • [Service Mesh ](/blog/tag/service-mesh)Service Mesh
    • [Insomnia ](/blog/tag/insomnia)Insomnia
    • [Event Gateway ](/blog/tag/event-gateway)Event Gateway
    • [View All Blogs ](/blog/page/1)View All Blogs
We're Entering the Age of AI Connectivity [Read more](/blog/news/the-age-of-ai-connectivity)Read moreProducts & Agents:
    • [Kong AI Gateway](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong API Gateway](/products/kong-gateway)Kong API Gateway
    • [Kong Event Gateway](/products/event-gateway)Kong Event Gateway
    • [Kong Metering & Billing](/products/kong-konnect/features/usage-based-metering-and-billing)Kong Metering & Billing
    • [Kong Insomnia](/products/kong-insomnia)Kong Insomnia
    • [Kong Konnect](/products/kong-konnect)Kong Konnect
  • [Documentation](https://developer.konghq.com)Documentation
  • [Book Demo](/contact-sales)Book Demo
  1. Home
  2. Blog
  3. Engineering
  4. The Developer Guide for Setting Up the AI Gateway
[AI Gateway](/blog/tag/ai-gateway)AI Gateway
October 28, 2026
16 min read

# The Developer Guide for Setting Up the AI Gateway

***UI + MCP***

Teja Kummarikuntla
Product Advocate, Kong

When an application calls a model provider directly, the service needs the provider's API key, and any control over that traffic has to be built into the service itself. For one service calling one model, that is the right amount of machinery.

It holds up less well as the application grows. Every new service needs the key too, limits and logging are reimplemented in each one.

An AI gateway moves those concerns onto the path the requests already take. This guide explains what one is and does, then sets one up on [_Kong Konnect_](https://konghq.com/products/kong-konnect)_Kong Konnect_ and sends a request through it. Extending that, you can also [set up a rate limit](#add-token-rate-limit)set up a rate limit on that traffic, counted in tokens rather than requests.

## What is an AI gateway?

An AI gateway is a reverse proxy built for model traffic. Your application sends an OpenAI-formatted request to the gateway instead of to a provider, and the gateway handles the rest of the trip.

For each request it:

  • - Authenticates the caller and resolves it to an identity you defined
  • - Applies the policies attached to the model being addressed
  • - Selects an upstream target from the ones configured for that model
  • - Converts the request into that provider's format and sends it
  • - Converts the response back into the format your client expects
  • - Records tokens, cost, latency, and more

In your application, the base URL changes first:

## python
1# calling the provider directly
2client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
3
4# calling through the gateway
5client = OpenAI(
6    base_url="http://localhost:8000/v1",
7    api_key=os.environ["GATEWAY_KEY"],
8)

The `model `field in your request body changes too. It carries a name you define on the gateway rather than the provider's model id:

## python
1response = client.chat.completions.create(
2    model="chat-default",          # a name you configure, not "gpt-4o"
3    messages=[{"role": "user", "content": "Say this is a test"}],
4)

That indirection is what the rest depends on. chat-default can resolve to gpt-4o today and to a Claude model tomorrow, while the calling code stays the same. The same name is what policies attach to, what usage is recorded against, and what limits are scoped by.

## text
1Direct
2  your app ─────────────────────────► OpenAI
3            provider SDK, provider key, per-app limits,
4            per-app logging, per-app retry logic
5
6Through a gateway
7  your app ──► AI gateway ──► OpenAI
8               │              Anthropic
9               │              self-hosted model
10               │
11               identify caller · apply policy · select target
12               convert format · record tokens, cost, latency

The gateway in this guide is [_Kong AI Gateway_](https://developer.konghq.com/ai-gateway/)_Kong AI Gateway_, which runs on Konnect and speaks the OpenAI request format in front of OpenAI, Anthropic, Azure, Bedrock, Gemini, Mistral, and others.

## Why you need a gateway?

Which of these matter depends on what you are building. The ones that come up most often:

**Credential control.** Every service that calls a model needs the provider key, and any one of them that leaks it exposes the whole provider account. Rotation means a coordinated change across all of them. A gateway holds the provider key itself and issues each service its own credential, which you can revoke one at a time.

**Per-caller limits and attribution.** Provider billing sees one API key. It cannot tell you which service, team, or customer spent what, and it cannot stop one of them consuming the whole quota. A gateway sees every request with a caller identity attached, so limits and cost reporting can be scoped per consumer.

**Provider independence.** The provider SDK, request format, and model name are built into every service that calls them. Moving to a cheaper model, or pointing one service at a different provider, means editing and redeploying each one. Behind a gateway, the name your code sends stays fixed while the upstream behind it changes.

Beyond these, a gateway is also where caching, guardrails, data redaction, and tool access control can be applied once rather than per service. Those are linked in [where to go next](#wheretogonext)where to go next.[](https://docs.google.com/document/d/1ekkh64ql0M1vKaHNa8nnXy646R0rXPCA/edit#heading=h.lw5yrq2l3n1w)

## What this guide covers?

Two outcomes, in order:

  1. - An OpenAI request flowing through the gateway and returning a response.
  2. - A rate limit on that traffic, counted in tokens rather than requests.

Three pieces of setup come first. They are done once in the Konnect UI.

  1. - [Create the AI Gateway in Kong Konnect](#create-ai-gateway)Create the AI Gateway in Kong Konnect,
  2. - [Connect a data plane node](#connect-data-plane-node)Connect a data plane node,
  3. - [Create a Vault in Konnect](#create-vault-konnect)Create a Vault in Konnect for holding your model provider key.

After that, the remaining set up configuration can be built two ways and the guide covers both in full:

  1. - Set up from the [Kong Konnect UI](#kong-konnect-ui)Kong Konnect UI,
  2. - Set up [from an AI coding agent](#ai-agent)from an AI coding agent using Kong's Konnect MCP server.

Pick one and follow it through. [_Kongctl_](https://developer.konghq.com/kongctl/)_Kongctl_, [_AI Gateway API_](https://developer.konghq.com/api/konnect/ai-gateway/)_AI Gateway API_ and Terraform do the same job and are linked at the end. For a self-hosted deployment rather than Konnect, see [_configuring AI Gateway on-prem_](https://developer.konghq.com/ai-gateway/configure-on-prem/)_configuring AI Gateway on-prem_.


## Prerequisites for both UI and MCP approach

You can use the **Kong Konnect UI** for setting up the prerequisites. The three steps in this section are prerequisites for both routes(UI and MCP approach)

### Before you start

Accounts and keys:

  • - A Kong Konnect account. The [_30-day trial_](https://konghq.com/products/kong-konnect/register)_30-day trial_ needs no credit card. You need permission to create an AI Gateway in the organization. Note your org's region (US, EU, AU, or IN), since Konnect URLs and API hosts are region-scoped.
  • - An OpenAI API key with credit on it.

Provider calls are billed by the provider. The Konnect trial does not cover model usage.

Two terms, used throughout. The **control plane** is the Konnect-hosted service holding your providers, models, and policies. It is never in the request path. The **data plane node** is the proxy that is.

### Step 1: Create the AI Gateway

In [_Konnect_](https://cloud.konghq.com/ai-manager/v2/gateways)_Konnect_ UI, open **AI Gateway** in the left navigation and select **New gateway**.

Creating a gateway is a two-part wizard: the control plane first, then the data plane. The control plane step asks for a name and an optional description. This is what holds every provider, model, and policy you configure later, so name it something you will recognize. You will need this name again in the agent prompts, so note it. Select **Next**.

### Step 2: Connect a data plane node

The second part of the wizard asks how you want to run the data plane. Choose **self-managed**, then pick a platform. **Docker** is the quickest for a local setup.

Leave the remaining options at their defaults and continue. Konnect generates a **certificate and a run script** containing it. Copy the script and run it on a machine with Docker running.

While the node starts, the wizard shows it as **awaiting connection**. Once it connects, that changes and you can select **View gateway**.

**Verify two things.** In Konnect, the gateway overview should now show the control plane and data plane as done, with models still outstanding. Locally, confirm the proxy is listening:

## shellSession
1curl -i http://localhost:8000
## json
1{"message":"no Route matched with those values","request_id":"b176a014b5261a495b12f01f1c816101"}

A `404` with that body, and a `Server: kong/<version>-ai-gateway` header, means the proxy is up and nothing is routed yet. That is the expected result here.

If the status never leaves awaiting connection, the node has not reached Konnect. Check that Docker is running, that the script finished without error, and that the machine can reach `*.cp.konghq.com`.


### Step 3: Create a Vault in Konnect and store your provider key

The gateway and its node are running, but there is nothing yet for them to forward requests to. The first thing to put in place is the provider key, because the provider you create next reads it rather than holding it.

Kong AI Gateway reads credentials from a vault entity that supports several providers. This guide uses the **Konnect** Vault, which keeps secrets inside Konnect and needs no external secret manager. The other backends, including AWS Secrets Manager, Google Secret Manager, Azure Key Vault, HashiCorp Vault and CyberArk Conjur, are covered in the [_AI Vault reference_](https://developer.konghq.com/ai-gateway/entities/ai-vault/)_AI Vault reference_.

Storing the key here means it is entered once, in Konnect, and referenced everywhere else. It is never typed into a provider field and never passed to an agent.

Open your gateway and go to the **Vaults** tab.

  1. - Select **New vault**.
  2. - In the **Vault configuration** dropdown, select **Konnect** as the vault type.
  3. - Under **General information**, enter a **Name**. Use lowercase with hyphens, for example `model-keys`. A description is optional.
  4. - Select **Save**.

Open the vault you just created and store the key.

  1. - Select **Store new secret**.
  2. - **Key**: `openai-key`
  3. - **Value**: the complete header value, in the form `Bearer <YOUR_OPENAI_KEY>`
  4. - Select **Save**.

The `Bearer` prefix is part of the stored value, not part of the provider configuration. A vault reference replaces an entire field, so whatever you store here becomes the complete `Authorization` header. A secret holding only the key produces a header without `Bearer`, which the provider rejects.

Secret values cannot be read back once stored. To change one, open the secret and rotate it.

**Verify:** the vault appears under **Vaults**, and opening it lists `openai-key`.

The prerequisite setup is complete, you can continue the complete set up from

  1. - [Configure from the Kong Konnect UI](#kong-konnect-ui)Configure from the Kong Konnect UI,
  2. - [Configuring from an AI agent](#ai-agent)Configuring from an AI agent. (using the Kong Konnect MCP Server)

## Configure from the Konnect UI

With the gateway, the data plane and the vault in place, two pieces of configuration remain. A provider and a model, so requests reach OpenAI. A rate limiting policy, so one caller cannot consume the whole provider quota.

### Step 4: Add the OpenAI provider

With the key stored, you can add the provider. A provider is the gateway's connection to one upstream LLM service: which service it is, and how to authenticate to it. It is created before the model, because the model points at it.

Go to **Providers** and select **New provider**.

  1. - Enter a **Display name**, for example `OpenAI Main`, and a **Name**, `openai-main`. The name is how the model references this provider.
  2. - Select the provider type, **OpenAI**.
  3. - Under authentication, choose how the provider authenticates upstream. There are two modes:
    • - **Provided by client or agent**: each caller sends its own `Authorization` header and the gateway passes it upstream. Use this when callers already hold their own provider credentials.
    • - **Provided by AI Gateway**: the gateway attaches the credential to every request, so callers never need the provider key.
  4. - Leave the mode set to **Provided by AI Gateway**. This is what removes the provider key from your applications.
  5. - **Header name**: `Authorization`
  6. - For the header value, select the **Lookup key in vault** link below the field.
  7. - In the dialog, select the `model-keys` vault, then the **Secret ID** `openai-key`. **Secret key** is optional and can be left empty.
  8. - Select **Use key**.
  9. - Create the provider.

The header value now holds a reference to the Konnect vault rather than the key itself.

Kong supports a wide range of providers, including Azure OpenAI, Amazon Bedrock, Anthropic, Gemini, Mistral, Cohere, DeepSeek, Databricks, and vLLM. The [_provider reference_](https://developer.konghq.com/ai-gateway/entities/ai-model-provider/)_provider reference_ documents the authentication shape for each.

**Verify:** the provider is listed. Reading it back returns the credential redacted, which indicates it is stored rather than that the write failed. The only conclusive test is a completion in [the first request](#step6-first-request)the first request.

### Step 5: Create a model

The provider knows how to reach OpenAI, but nothing yet gives your application a URL to call. That is the [_AI Model_](https://developer.konghq.com/ai-gateway/entities/ai-model/)_AI Model_: the name clients address, the path it is served on, and the upstream target the gateway forwards to.

Go to **Models** and select **New model**.

  • - **Name**: `chat-default`. Keep the name provider-neutral, since the model is the stable address your application calls while the upstream behind it can change.
  • - **Target models**: select the provider `openai-main`, then the upstream model `gpt-4o.`
  • - **LLM format**: **OpenAI**.
  • - **Model capabilities**: select **Chat completions**. Each capability you enable exposes its own endpoint under the base path, so adding **Responses** would also expose `/responses.`
  • - **Routing** → **Base path**: `/v1`.
  • - **Model alias**: an additional name clients may send in the `model `field. The model is already addressable by its **Name**, so an alias is only needed when callers must keep using a different string, for example a provider model id they already hardcoded. Leave it empty.

**Base path** is only the prefix. The capability supplies the rest of the route, so Chat completions turns `/v1 `into `/v1/chat/completions,` and a request to `/v1 `on its own returns 404.

The **Name** is the gateway-side model name described in [What is an AI gateway.](#what-is-ai-gateway)What is an AI gateway. It is what clients send in the` model `field, and it is not the upstream model id.

**Verify:** the model shows as enabled, with base path `/v1 `and one target.


### Step 6: Send your first request

The route is live as soon as the model is created, so you can send something through it. The model's page in Konnect gives you a ready-made `curl` command. Copy it and make two changes:

  1. - Replace the data plane host with `http://localhost:8000`, since your node is running locally.
  2. - Delete the `Authorization `header. The gateway attaches the provider credential itself, so a client-side one is redundant here.

What you end up with:

## shellSession
1curl -i -X POST http://localhost:8000/v1/chat/completions \
2  --json '{"model":"chat-default","messages":[{"role":"user","content":"Say this is a test"}]}'

A working setup returns `200`:

## json
1{
2  "id": "chatcmpl-EWsvXwtr7ceHSzfc3ZLbbNhY0bCMj",
3  "object": "chat.completion",
4  "model": "gpt-4o-2024-08-06",
5  "choices": [
6    {"index": 0, "message": {"role": "assistant", "content": "This is a test. How can I assist you today?"}, "finish_reason": "stop"}
7  ],
8  "usage": {"prompt_tokens": 12, "completion_tokens": 12, "total_tokens": 24}
9}

Three things to check:

  1. - The status is `200`.
  2. - The completion is in `choices[0].message.content`.
  3. - `usage` is present. Those token counts feed the cost calculation, the [rate limiting policy](#add-token-rate-limit)rate limiting policy, and Konnect analytics. A response without `usage` is counted nowhere.

The `model` field carries OpenAI's own resolved version of gpt-4o, not the chat-default name you sent. To see which target actually served a request, read the response header instead:

## text
1X-Kong-LLM-Model: openai/gpt-4o

The value is `provider/target`, using the names you gave them.

In your application, this endpoint is the `base_url `shown in [What is an AI gateway](#what-is-ai-gateway)What is an AI gateway, and `chat-default` is the model name alongside it.

**Shortcut to be aware of.** This endpoint has no authentication. Anything that can reach port 8000 can spend your OpenAI credit. Add authentication before this node is reachable from anything other than your own machine.


### Step 7: Add a token rate limit

Traffic is now reaching OpenAI through the gateway, which is the point at which most teams want a limit on it. Rate limits are normally counted in requests, but a request is a weak unit for model traffic: one can use fifty tokens and the next fifty thousand. The [_AI Rate Limiting Advanced_](https://developer.konghq.com/ai-gateway/policies/ai-rate-limiting-advanced/)_AI Rate Limiting Advanced_ policy counts the tokens the provider reports in each response, which is the number that tracks spend.

Open your gateway, go to the **Policies** tab, and select **New policy**. Find **AI Rate Limiting Advanced** in the policy list. The form has three numbered sections.

**1. General information**

  • - **This policy is enabled**: leave it on, you can turn it off when it’s not needed.
  • - **Display name**: a name you will recognise, for example `chat-default-token-limit`.

**2. Scope**

Choose **Scoped**, which applies the policy to specific models, MCP servers and agents.. **Global** would apply it to every model on the gateway, which is not what you want while one model is under test.

**3. Policy configuration**

**Identifier** sets what the counter is keyed by. Accepted values are `ip`, `credential`, `consumer`, `service,` `header`, `path` and `consumer-group.` It defaults to `consumer,` which gives each authenticated caller its own budget. You have not configured consumers yet, so for now the limit applies across all traffic to this model. It starts behaving per caller once you add authentication . Leave it at `consumer`.

**Policies** hold the rules. Select **Add policies** to create one. A rule has four parts.

  • - **ID**: an optional reference to a rate limiting policy stored elsewhere. Leave it empty and define the rule inline.
  • - **Match**: optional. Leave it empty and the rule applies to all traffic reaching this model. Covered below if you need to narrow it.
  • - **Limits**: required. This is where the number goes. Covered below.
  • - **Window type**: `sliding`, `fixed` or `calendar. sliding `is the default and the right choice here, because it measures the trailing window continuously rather than resetting on a clock boundary.

Inside the rule, select **Add limits**:

  • - **Limit**: the number of tokens allowed in the window. Enter `60`, which is low enough to trigger while you are watching.
  • - **Window size**: the window in seconds, used by` sliding `and `fixed`. Enter `60`.
  • - **Period**: `week` or `month`, used only when **Window type** is `calendar`, as an alternative to **Window size**. Leave it empty.
  • - **Week start day**: `monday` through `sunday`, used only with a week period. Leave it empty.
  • - **Month day**: required when **Period** is `month`, ignored otherwise. Leave it empty.
  • - **Tokens count strategy**: which figure from the provider's `usage` object is counted. `total_tokens` counts prompt plus completion, and is the default. The alternatives are `prompt_tokens, completion_tokens` and `cost`. Leave it at `total_tokens`.

**Limit** and **Window size** are the only two values this form actually needs. Everything else above has a working default.

If you later want one rule per team rather than one for the whole model, select **Add match** inside the rule:

  • - **Type**: what to match on. Accepted values are `consumer`, `consumer_group`, `credential`, `ip`, `header`, `path`, `model`, `provider` and `service`.
  • - **Values**: the values that satisfy the match, one per entry, added with **Add values**.
  • - **Key**: the name of the thing being read, for header and path matches. For a `header `match on `X-Team`, the key is `X-Team` and the values are the team names.
  • - **Partition by**: off by default, which counts all matching traffic against one shared budget. Turn it on to give each matched value its own counter.

Below the rules:

  • - **Strategy**: where the counters live. `local` keeps them in the node's memory and is correct for the single node you are running. `redis` is required once you run more than one node, because `local` counts per node and the effective limit becomes your number multiplied by the node count. `cluster `is the third option.
  • - **Dictionary name**: the shared memory zone the `local `strategy writes counters to. Leave it at `kong_rate_limiting_counters`.

Leave **Show additional settings** closed. Create the policy, then attach it to `chat-default `when the wizard asks which entities it applies to.

When you set a real limit later, account for agent traffic. A tool loop can fire five or six calls to satisfy one user request, so a number that looks generous per user can cut a conversation off partway through.

**To verify:**

  1. - With the limit at 60 tokens per minute, send [_the request_](https://docs.google.com/document/d/1ekkh64ql0M1vKaHNa8nnXy646R0rXPCA/edit#heading=h.meoti8j2yv3p)_the request_ repeatedly. Successful responses carry a remaining count that falls with each call:
## text
1X-AI-RateLimit-Limit-minute-policy-1: 60
2X-AI-RateLimit-Remaining-minute-policy-1: 41

    2. Within a few requests you should get a `429` whose body is `{"message":"AI token rate limit exceeded for provider(s): "}`, carrying both the per-policy headers and unsuffixed ones:

## text
1X-AI-RateLimit-Remaining-minute-policy-1: 0
2X-AI-RateLimit-Reset: 42
3X-AI-RateLimit-Retry-After: 42

    3. Set a realistic limit before moving on. A sliding window means the counter drains gradually, so the endpoint stays limited for up to a full window after you change it.

## Configure from an AI agent

Kong publishes a [_Konnect MCP server_](https://developer.konghq.com/konnect-platform/konnect-mcp/)_Konnect MCP server_, which gives an AI coding agent access to the Konnect configuration API. This section reaches the same end state as the UI walkthrough, and is self-contained: you do not need to read the UI steps to follow it.

It is organised in two parts. By the end of the first, an OpenAI request is flowing through your gateway and you have a` curl `command that proves it. The second rate-limits that traffic by token count.

**Complete **[**Required setup**](#prerequisites-ui-mcp)**Required setup**** first.** The agent configures Konnect, but it cannot create the parts that run on your machine, and it should not be given a provider key. You need:

  1. - An AI Gateway, from [creating the gateway](#create-ai-gateway)creating the gateway. Note its name; every prompt asks for it.
  2. - A connected data plane node, from [connecting a data plane](#connect-data-plane-node)connecting a data plane.
  3. - A Konnect vault named `model-keys` holding a secret with the key openai-key, from [creating the vault](#create-vault-konnect)creating the vault.

The prompts use the names `model-keys`, `openai-key`, `openai-main` and c`hat-default`. If you followed the setup as written, the only thing to change is your gateway name. If you chose different names, change them in the prompts to match.

### Connect the Konnect MCP server

This guide uses Claude Code:

## shellSession
1claude mcp add --transport http kong-konnect https://global.mcp.konghq.com

Authorization uses OAuth. A browser window opens so you can sign in to Konnect and grant access, and no token is needed. If the browser does not open, invoke the server once by asking the agent to use a `kong-konnect` tool; the authorization flow starts at that point.

If you would rather not use OAuth, pass a Konnect personal access token instead. Generate one from the [_Konnect tokens page_](https://cloud.konghq.com/global/account/tokens)_Konnect tokens page_:

## shellSession
1claude mcp add --transport http kong-konnect https://global.mcp.konghq.com/ \
2  --header "Authorization: Bearer $KONNECT_PAT"

Confirm the connection with `claude mcp list`. Regional endpoints are available if you prefer one: `us.`, `eu.`, `au.` and `in.mcp.konghq.com`.

For **VS Code, Cursor, GitHub Copilot, Windsurf, Eclipse and other clients**, the per-client JSON config is in Kong's [_installation guide_](https://developer.konghq.com/konnect-platform/konnect-mcp/installation/)_installation guide_.

Optionally add the [_Kong skills_](https://developer.konghq.com/skills/install/)_Kong skills_, which give the agent Kong product knowledge alongside API access:

## shellSession
1/plugin marketplace add kong/ai-marketplace
2/plugin install kong-konnect@ai-marketplace

For agents without plugin support, `npx skills add kong/ai-marketplace` installs the same set.

### Proxy the LLM request via Kong AI Gateway

With the gateway, the node and the vault in place, the two entities that carry traffic are the provider and the model. The provider holds the connection to OpenAI and reads its credential from your vault; the model is the name your application addresses and the route it is served on. One prompt creates both, and the agent finishes by handing you a `curl `command to test with.

Requires the three items in [Required setup](#prerequisites-ui-mcp)Required setup. The equivalent in the UI is [adding a provider](#add-provider)adding a provider and [creating a model](#create-a-model)creating a model.


## text
1Using the kong-konnect MCP server, configure the AI Gateway named
2"<YOUR GATEWAY NAME>".
3
4Context you can rely on:
5- A Konnect vault named model-keys already exists on this gateway.
6- It holds a secret with the key openai-key, whose value is a complete
7  Authorization header value in the form "Bearer <key>".
8- Do not create, modify or read any secret. Reference the existing one.
9
10Create the following:
11
121. An AI model provider:
13   - name: openai-main
14   - display name: OpenAI Main
15   - type: openai
16   - upstream authentication: a single header named Authorization whose value
17     is the vault reference {vault://model-keys/openai-key}
18
192. An AI model:
20   - name: chat-default
21   - display name: chat-default
22   - format: openai
23   - route base path: /v1
24   - capability: chat completions
25   - one target: upstream model gpt-4o on provider openai-main
26
27When you are done:
28- Read the provider and the model back and show me their configuration.
29- Give me a curl command that sends a chat completion to chat-default through
30  my data plane at http://localhost:8000. It must not include an Authorization
31  header, because the gateway supplies the provider credential.

Run the `curl `command the agent returns. A working setup answers 200, with a `usage `object carrying the token counts and an `X-Kong-LLM-Model: openai/gpt-4o `response header naming the target that served it. [Sending your first request](#step6-first-request)Sending your first request describes the full response and what each part is for.

Your OpenAI traffic is now proxied through Kong AI Gateway. From here, [set up the rate limit](#setting-rate-limit)set up the rate limit to cap token consumption on this model.

### Set up the rate limit

With traffic flowing, the next thing to add is a limit. Rate limits are normally counted in requests, but a request is a weak unit for model traffic, since one can use fifty tokens and the next fifty thousand. This prompt creates an [_AI Rate Limiting Advanced_](https://developer.konghq.com/ai-gateway/policies/ai-rate-limiting-advanced/)_AI Rate Limiting Advanced_ policy that counts the tokens the provider reports, and attaches it to your model alone rather than to the whole gateway.

Requires the previous section. The equivalent in the UI is [adding a token rate limit](#add-token-rate-limit)adding a token rate limit.

## text
1Using the kong-konnect MCP server, on the AI Gateway named
2"<YOUR GATEWAY NAME>":
3
4Create an AI Rate Limiting Advanced policy:
5- name: tok-limit
6- display name: tok-limit
7- limit: 60 total tokens
8- window size: 60 seconds
9- leave tokens_count_strategy at total_tokens, window_type at sliding, and
10  strategy at local
11
12Attach the policy to the model named chat-default only. Do not enable it
13globally and do not attach it to any other model.
14
15When you are done, read the policy back and confirm that chat-default lists it.

Send the same request four or five times. Successful responses carry `X-AI-RateLimit-Remaining-minute-policy-1`, counting down with each call, and then a 429 whose body is `{"message":"AI token rate limit exceeded for provider(s): "}`.

Sixty tokens per minute is deliberately low so the limit is easy to observe. Raise it to something realistic before you use the gateway for anything else. A sliding window drains gradually, so the endpoint stays limited for up to a full window after you change the number.

Review the entities the agent created before sending production traffic. It is writing configuration to a running gateway.


## Where to go next

  • - Identity and access: [_auth strategies_](https://developer.konghq.com/ai-gateway/entities/ai-auth-strategy/)_auth strategies_, [_consumers_](https://developer.konghq.com/ai-gateway/entities/ai-consumer/)_consumers_, [_tiered budgets with Kong Identity_](https://developer.konghq.com/ai-gateway/enforce-tiered-ai-budgets-with-kong-identity/)_tiered budgets with Kong Identity_
  • - Data protection: [_AI data governance_](https://developer.konghq.com/ai-gateway/ai-data-gov/)_AI data governance_, [_PII sanitizer_](https://developer.konghq.com/ai-gateway/policies/ai-sanitizer/)_PII sanitizer_
  • - Cost and monetization: [_model cost management_](https://developer.konghq.com/ai-gateway/model-cost-management/)_model cost management_, [_metering and billing_](https://developer.konghq.com/metering-and-billing/)_metering and billing_
  • - Agents and tools: [_MCP servers_](https://developer.konghq.com/ai-gateway/entities/ai-mcp-server/)_MCP servers_, [_mapping an API to MCP tools_](https://developer.konghq.com/ai-gateway/map-api-to-mcp-tools/)_mapping an API to MCP tools_, [_A2A routing_](https://developer.konghq.com/ai-gateway/get-started-with-ai-agent/)_A2A routing_
  • - Operations: [_metrics_](https://developer.konghq.com/ai-gateway/monitor-ai-llm-metrics/)_metrics_, [_audit log reference_](https://developer.konghq.com/ai-gateway/ai-audit-log-reference/)_audit log reference_, [_kongctl for version-controlled config_](https://developer.konghq.com/kongctl/)_kongctl for version-controlled config_
  • - Your own coding agents through the gateway: [_AI CLIs_](https://developer.konghq.com/ai-gateway/ai-clis/)_AI CLIs_

To create the gateway and the data plane node without clicking through [creating the gateway](#create-ai-gateway)creating the gateway and [connecting a data plane](#connect-data-plane-node)connecting a data plane, use the quickstart script. Generate a personal access token from the [_Konnect tokens page_](https://cloud.konghq.com/global/account/tokens)_Konnect tokens page_ first:

## shellSession
1export KONNECT_TOKEN='your-konnect-pat'
2curl -Ls https://get.konghq.com/ai | bash -s -- -k $KONNECT_TOKEN

That creates the AI Gateway control plane and runs a data plane node locally, which covers the first two setup steps. You still [create the vault](#create-vault-konnect)create the vault, then the [provider](#add-provider)provider and the [model](#create-a-model)model.

## Frequently Asked Questions (FAQ)

Q: What is an AI gateway?

A: An AI gateway is a specialized reverse proxy designed specifically for model traffic. It sits between your applications and LLM providers (such as OpenAI or Anthropic) to handle request routing, provider authentication, format conversions, policy enforcement, rate limiting, and analytics.

Q: How does rate limiting work with AI Gateway?

A: Unlike traditional rate limiting that measures traffic by request volume, Kong AI Gateway offers AI Rate Limiting Advanced, which tracks token usage (prompt, completion, total tokens, or cost) reported by model providers. This ensures limits align directly with actual usage and compute spending.

Q: How does the AI Gateway secure API keys?

A: Provider keys are stored centrally in a secure vault (such as Konnect Vault, AWS Secrets Manager, or HashiCorp Vault) rather than hardcoded into application source code or passed via agent prompts. The gateway injects the credential dynamically into upstream requests.

Q: Can I set up Kong AI Gateway using AI agents?

A: Yes. Kong provides a Konnect MCP (Model Context Protocol) server that enables AI coding agents (like Claude Code, Cursor, or Windsurf) to configure control planes, providers, models, and policies directly using natural language prompts.

Q: Does setting up an AI gateway alter application request formats?

A: No. Applications can continue using standard OpenAI SDK formats. You only need to update the base URL to point to the data plane endpoint and send custom gateway model names instead of raw provider model identifiers.

- [AI Gateway](/blog/tag/ai-gateway)AI Gateway- [AI Connectivity](/blog/tag/ai-connectivity)AI Connectivity

Table of Contents

  • What is an AI gateway?
  • Why you need a gateway?
  • What this guide covers?
  • Prerequisites for both UI and MCP approach
  • Configure from the Konnect UI
  • Configure from an AI agent
  • Where to go next
  • Frequently Asked Questions (FAQ)

## More on this topic

_eBooks_

## The C-Suite's Guide to AI Governance

_Videos_

## How PolyAI Uses Kong Gateway to Power Developer-Friendly Conversational AI APIs

## See Kong in action

Accelerate deployments, reduce vulnerabilities, and gain real-time visibility. 

[Get a Demo](/contact-sales)Get a Demo
**Topics**
- [AI Gateway](/blog/tag/ai-gateway)AI Gateway- [AI Connectivity](/blog/tag/ai-connectivity)AI Connectivity
Teja Kummarikuntla
Product Advocate, Kong

Recommended posts

# Your Multi-Agent System Is Only as Reliable as Its Context Layer

[Engineering](/blog/tag)EngineeringAugust 19, 2026

Multi-agent workflows live and die on context. Every agent-to-agent call and every agent-to-tool call is either a retrieval — fetching information the agent needs — or a mutation — changing state that downstream agents will depend on. At prototype s

Hugo Guerrero

# The Architecture Decision Your Multi-Agent System Will Live With

[Engineering](/blog/tag)EngineeringAugust 13, 2026

Multi-agent systems are, at their core, context distribution systems. Every agent in your workflow is a consumer and producer of context. The interesting architectural questions are all about how that context moves. Two operations drive everything:

Hugo Guerrero

# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy

[Engineering](/blog/tag)EngineeringJuly 2, 2026

Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are

Kong

# AI Token Cost Management: Why AI Spend Gets Out of Control (and How To Fix It)

[Enterprise](/blog/tag)EnterpriseSeptember 24, 2026

This post is based on Kong's webinar on token cost management. Watch it below, or keep reading for the breakdown. Token cost management is how a business tracks, controls, and governs what it spends on AI model usage, the same way it already track

Kong

# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect

[Engineering](/blog/tag)EngineeringMay 20, 2026

Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age

Anika Suri

# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction

[Engineering](/blog/tag)EngineeringMay 4, 2026

Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,

Marco Raffaelli

# Kong AI Gateway 2.0 Is Now GA

[Product Releases](/blog/tag)Product ReleasesSeptember 1, 2026

If you're running agents in production, you've felt this problem: every agent, every LLM application, every MCP client needs to be configured against a growing sprawl of MCP servers, each with its own endpoint, its own handshake, and its own access

Greg Peranich

# Your Multi-Agent System Is Only as Reliable as Its Context Layer

[Engineering](/blog/tag)EngineeringAugust 19, 2026

Multi-agent workflows live and die on context. Every agent-to-agent call and every agent-to-tool call is either a retrieval — fetching information the agent needs — or a mutation — changing state that downstream agents will depend on. At prototype s

Hugo Guerrero

# The Architecture Decision Your Multi-Agent System Will Live With

[Engineering](/blog/tag)EngineeringAugust 13, 2026

Multi-agent systems are, at their core, context distribution systems. Every agent in your workflow is a consumer and producer of context. The interesting architectural questions are all about how that context moves. Two operations drive everything:

Hugo Guerrero

# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy

[Engineering](/blog/tag)EngineeringJuly 2, 2026

Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are

Kong

# AI Token Cost Management: Why AI Spend Gets Out of Control (and How To Fix It)

[Enterprise](/blog/tag)EnterpriseSeptember 24, 2026

This post is based on Kong's webinar on token cost management. Watch it below, or keep reading for the breakdown. Token cost management is how a business tracks, controls, and governs what it spends on AI model usage, the same way it already track

Kong

# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect

[Engineering](/blog/tag)EngineeringMay 20, 2026

Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age

Anika Suri

# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction

[Engineering](/blog/tag)EngineeringMay 4, 2026

Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,

Marco Raffaelli

# Kong AI Gateway 2.0 Is Now GA

[Product Releases](/blog/tag)Product ReleasesSeptember 1, 2026

If you're running agents in production, you've felt this problem: every agent, every LLM application, every MCP client needs to be configured against a growing sprawl of MCP servers, each with its own endpoint, its own handshake, and its own access

Greg Peranich

# Your Multi-Agent System Is Only as Reliable as Its Context Layer

[Engineering](/blog/tag)EngineeringAugust 19, 2026

Multi-agent workflows live and die on context. Every agent-to-agent call and every agent-to-tool call is either a retrieval — fetching information the agent needs — or a mutation — changing state that downstream agents will depend on. At prototype s

Hugo Guerrero

# The Architecture Decision Your Multi-Agent System Will Live With

[Engineering](/blog/tag)EngineeringAugust 13, 2026

Multi-agent systems are, at their core, context distribution systems. Every agent in your workflow is a consumer and producer of context. The interesting architectural questions are all about how that context moves. Two operations drive everything:

Hugo Guerrero

# AI Gateway vs. Direct LLM API Integration: The Architecture Decision Defining Your AI Strategy

[Engineering](/blog/tag)EngineeringJuly 2, 2026

Most teams start the same way. A developer creates an API key, calls OpenAI or Anthropic, and ships a prototype. The problems surface when that prototype becomes five production services calling three providers. Hardcoded provider dependencies are

Kong

# AI Token Cost Management: Why AI Spend Gets Out of Control (and How To Fix It)

[Enterprise](/blog/tag)EnterpriseSeptember 24, 2026

This post is based on Kong's webinar on token cost management. Watch it below, or keep reading for the breakdown. Token cost management is how a business tracks, controls, and governs what it spends on AI model usage, the same way it already track

Kong

# A Unified Gateway for APIs + Agentic Applications on VMware VKS with Kong Konnect

[Engineering](/blog/tag)EngineeringMay 20, 2026

Built on top of Kong API Gateway, the Kong AI Gateway is designed to address key challenges in enterprise AI adoption. Modern AI applications rarely rely on a single model; instead, they orchestrate multiple GenAI providers, agent frameworks, Age

Anika Suri

# Building a Secure, Scalable AI Infrastructure with Kong and Akamai: A Technical Introduction

[Engineering](/blog/tag)EngineeringMay 4, 2026

Together, the following components represent the three layers of the new AI platform: AI Gateway: Kong AI Gateway (including MCP support) controls both GenAI and MCP flow and orchestrates the existing services like Vector Databases, Event Streaming,

Marco Raffaelli

# Kong AI Gateway 2.0 Is Now GA

[Product Releases](/blog/tag)Product ReleasesSeptember 1, 2026

If you're running agents in production, you've felt this problem: every agent, every LLM application, every MCP client needs to be configured against a growing sprawl of MCP servers, each with its own endpoint, its own handshake, and its own access

Greg Peranich

## Ready to see Kong in action?

Get a personalized walkthrough of Kong's platform tailored to your architecture, use cases, and scale requirements.

[Get a Demo](/contact-sales)Get a Demo
## step-0
    • Company
    • [About Kong ](/company)About Kong
    • [Customers ](/customer-stories)Customers
    • [Careers ](/company/careers)Careers
    • [Press ](/company/press-room)Press
    • [Events ](/events)Events
    • [Contact ](/company/contact-us)Contact
    • [Pricing ](/pricing)Pricing
      •    * [Terms](/legal/terms-of-use)
      •    * [Privacy](/legal/privacy-policy)
      •    * [Trust and Compliance](https://trust.konghq.com/)
    • Platform
    • [Kong AI Gateway ](/products/kong-ai-gateway)Kong AI Gateway
    • [Kong Konnect ](/products/kong-konnect)Kong Konnect
    • [Kong Gateway ](/products/kong-gateway)Kong Gateway
    • [Kong Event Gateway ](/products/event-gateway)Kong Event Gateway
    • [Kong Insomnia ](/products/kong-insomnia)Kong Insomnia
    • [Documentation ](https://developer.konghq.com)Documentation
    • [Book Demo ](/contact-sales)Book Demo
    • Compare
    • [AI Gateway Alternatives ](/performance-comparison/ai-gateway-alternatives)AI Gateway Alternatives
    • [Kong vs Apigee ](/performance-comparison/kong-vs-apigee)Kong vs Apigee
    • [Kong vs AWS ](/performance-comparison/kong-vsaws)Kong vs AWS
    • [Kong vs IBM ](/performance-comparison/ibm-api-connect-vs-kong)Kong vs IBM
    • [Kong vs Mulesoft ](/performance-comparison/kong-vs-mulesoft)Kong vs Mulesoft
    • [Kong vs Postman ](/performance-comparison/kong-vs-postman)Kong vs Postman
    • [Kong vs LiteLLM ](/performance-comparison/kong-vs-litellm)Kong vs LiteLLM
    • Explore More
    • [Kong for Startups ](/solutions/startup-program)Kong for Startups
    • [Open Banking API Solutions ](/solutions/open-banking)Open Banking API Solutions
    • [API Governance Solutions ](/solutions/api-governance)API Governance Solutions
    • [Istio API Gateway Integration ](/solutions/istio-gateway)Istio API Gateway Integration
    • [Kubernetes API Management ](/solutions/build-on-kubernetes)Kubernetes API Management
    • [API Gateway: Build vs Buy ](/campaign/secure-api-scalability)API Gateway: Build vs Buy
    • Open Source
    • [Kong Gateway ](https://developer.konghq.com/gateway/install/)Kong Gateway
    • [Kuma ](https://kuma.io/)Kuma
    • [Insomnia ](https://insomnia.rest/)Insomnia
    • [Kong Community ](/community)Kong Community

Kong enables the connectivity layer for the agentic era – securely connecting, governing, and monetizing APIs and AI tokens across any model or cloud.

  • English
  • Japanese
  • Frenchcoming soon
  • Spanishcoming soon
  • Germancoming soon
[Everything is 200 OK](https://status.konghq.com/)
© Kong Inc. 2026
Interaction mode