---
title: "Self-Hosted LLM Gateways: One Key, MCP Tools, Spend Caps"
slug: "self-hosted-llm-gateway-one-api-key-mcp-spend-caps"
author: "Miguel Amigot"
date: "2026-11-24 12:00:00"
category: "Premium"
sector: "cross"
topics: "llm gateway, ai gateway, self-hosted llm gateway, one api key for every llm, mcp gateway, llm spend caps, ai cost controls, unified ai billing, litellm, portkey, kong ai gateway, openrouter, agentic router, model-agnostic, ibl.ai"
summary: "A buyer's comparison of LLM gateways (ibl.ai Agentic Router, LiteLLM, Portkey, Kong AI Gateway, OpenRouter) on one API key for every model, MCP tool access, spend caps, unified billing and calling your own agents, with hosting and licence stated for each."
banner: ""
thumbnail: ""
linkedin: |
  Every team that ships AI ends up with the same drawer of keys: one per model provider, one per tool, and nothing that stops a runaway script before the invoice does.

  The fix is a gateway: one API key in front of every model. We compared five options on the four things buyers actually ask for.

  → One key for every model. LiteLLM, Portkey, Kong and OpenRouter all do this; ibl.ai's Agentic Router puts 40+ providers and 330+ chat models behind one endpoint.
  → MCP tools behind the same key. LiteLLM and Portkey document MCP gateways; Kong's MCP proxy is Enterprise-only; ibl.ai's catalog lists 7,700+ MCP servers plus your own.
  → Spend caps. LiteLLM budgets keys, users and teams; Portkey's budget limits are for Enterprise plan and select Pro customers; OpenRouter caps credits per key; ibl.ai caps the organization, each agent and each person on an agent.
  → Hosting. OpenRouter is a hosted service. The rest run on your infrastructure.

  The difference that decides it: gateways route model, tool and, increasingly, agent calls. The Agentic Router also runs and exposes the agents you built on ibl.ai, with their knowledge, memory and guardrails, from REST, WebSocket, the SDK or any MCP client. And you own all the code and the data.

  #iblai #AgenticAI #EnterpriseAI #LLM #MCP #AIGateway #FinOps
---

## The Short Answer

**ibl.ai's Agentic Router is a self-hosted LLM gateway that puts 40+ model providers and 330+ chat models, 7,700+ MCP servers and the agents you built behind one API key, with one usage-based bill and spend caps per organization, per agent and per person on an agent. It runs in your cloud, on-premise or air-gapped, and you own all the code and the data.**

Open-source gateways such as [LiteLLM](https://docs.litellm.ai/docs/mcp) and [Portkey](https://github.com/Portkey-AI/gateway) also give you one key for many models, and both document an MCP gateway. [OpenRouter](https://openrouter.ai/docs/quickstart) gives you one hosted endpoint for hundreds of models.

The choice comes down to what sits behind the key. A gateway routes model, tool and, increasingly, agent calls. The [Agentic Router](/product/agentic-router) is also the door to the agents your organization runs on ibl.ai, so the same key that calls a model calls your own agent.

## Which LLM gateways give one API key for every model, MCP tools and spend caps?

Five LLM gateways cover most shortlists in November 2026: ibl.ai's Agentic Router, LiteLLM, Portkey, Kong AI Gateway and OpenRouter. Four of the five run on your own infrastructure; OpenRouter is a hosted service.

The table states each one's licence and hosting, then what its own documentation says about models, MCP and spend caps. Where a feature sits behind a paid tier, the table says so.

<table style="width:100%; border-collapse:collapse; margin:1.5rem 0; font-size:0.95rem;">
  <thead>
    <tr style="background:#f5f5f0; border-bottom:2px solid #2175C5;">
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Gateway</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Licence and hosting</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Models behind one key</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">MCP tool access</th>
      <th style="text-align:left; padding:0.75rem; color:#5f6368;">Spend caps</th>
    </tr>
  </thead>
  <tbody>
    <tr style="background:#f0f9ff; border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>ibl.ai Agentic Router</strong></td>
      <td style="padding:0.75rem;">Full source code under a perpetual licence; your cloud, on-premise or air-gapped</td>
      <td style="padding:0.75rem;">40+ providers, 330+ chat models; your own provider keys preferred</td>
      <td style="padding:0.75rem;">7,700+ MCP servers in the catalog plus your own; credentials bound per organization, agent or user</td>
      <td style="padding:0.75rem;">Organization, agent, and person-on-an-agent; block or alert; server-side</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>LiteLLM Proxy</strong></td>
      <td style="padding:0.75rem;">MIT licence; self-hosted, budgets need a Postgres database</td>
      <td style="padding:0.75rem;">One OpenAI-format endpoint across providers</td>
      <td style="padding:0.75rem;">MCP Gateway: a fixed endpoint for all MCP tools</td>
      <td style="padding:0.75rem;">Proxy, team, team member, user, virtual key and customer budgets; per-model budgets on Enterprise</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>Portkey AI Gateway</strong></td>
      <td style="padding:0.75rem;">MIT licence; self-hostable (Docker, Node.js) or Portkey's cloud</td>
      <td style="padding:0.75rem;">1,600+ LLMs (repo description) across 45+ providers</td>
      <td style="padding:0.75rem;">MCP Gateway with auth and observability</td>
      <td style="padding:0.75rem;">Cost or token budget limits, for Enterprise plan and select Pro customers</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>Kong AI Gateway</strong></td>
      <td style="padding:0.75rem;">Self-hosted (Docker, Kubernetes) or Kong Konnect</td>
      <td style="padding:0.75rem;">AI Proxy plugin translates OpenAI-format requests to many providers</td>
      <td style="padding:0.75rem;">AI MCP Proxy plugin, AI Gateway Enterprise only</td>
      <td style="padding:0.75rem;">Token quotas and cost budgets through AI Consumer Groups (tier not stated in the docs cited)</td>
    </tr>
    <tr style="border-bottom:1px solid #e5e7eb;">
      <td style="padding:0.75rem;"><strong>OpenRouter</strong></td>
      <td style="padding:0.75rem;">Hosted service; no self-hosted option documented</td>
      <td style="padding:0.75rem;">Hundreds of models through one endpoint</td>
      <td style="padding:0.75rem;">Not covered in the docs cited here</td>
      <td style="padding:0.75rem;">Optional credit limit per API key, with scheduled resets</td>
    </tr>
  </tbody>
</table>

Sources: [LiteLLM budgets](https://docs.litellm.ai/docs/proxy/users), [LiteLLM MCP](https://docs.litellm.ai/docs/mcp), [Portkey gateway](https://github.com/Portkey-AI/gateway), [Portkey budget limits](https://portkey.ai/docs/product/ai-gateway/virtual-keys/budget-limits), [Kong AI Gateway](https://developer.konghq.com/ai-gateway/), [Kong AI MCP Proxy](https://developer.konghq.com/plugins/ai-mcp-proxy/), [OpenRouter quickstart](https://openrouter.ai/docs/quickstart), [OpenRouter key limits](https://openrouter.ai/docs/features/provisioning-api-keys). ibl.ai figures are from the [Agentic Router](/product/agentic-router) page.

## How do you get one API key for every LLM provider?

One API key for every LLM provider means a single endpoint that holds the provider credentials and translates each request into the provider's own format. Every gateway in the table above does this, so it is the floor, not the differentiator.

On ibl.ai's Agentic Router the grid covers 40+ providers and 330+ chat models, among them Anthropic, Google, OpenAI, Meta, Mistral, DeepSeek, Qwen and xAI, reached through OpenRouter, Vertex, Foundry, Bedrock or each provider's own API. The [catalog update](/updates/llm-catalog-45-providers-any-model) records how it grew.

Two details matter more than the count. A request routes to the highest-priority gateway that has a usable key, and your organization's own provider keys are preferred over platform keys.

The model list syncs every six hours, and a new model goes live only after a verification gate tests multi-turn recall, streaming, tool calling, image input and a real, non-zero cost.

## Which LLM gateway gives MCP tool access behind the same key?

An LLM gateway with MCP tool access lets an agent discover and call tools through the same endpoint it uses for models.

LiteLLM describes its MCP Gateway as "a fixed endpoint for all MCP tools"; Portkey's repository documents an MCP Gateway; Kong ships an AI MCP Proxy plugin that its docs list as AI Gateway Enterprise only.

On ibl.ai the connector catalog lists 7,700+ MCP servers, counted from the platform's own catalog on November 22, 2026, and any internal server connects by URL. The setup is documented under [MCP servers](/docs/os/agent-settings/mcp).

The difference is where the credential lives.

ibl.ai binds an MCP server's credentials at the scope you choose: the whole organization, one agent or one user. Tools then read your systems of record in place, with no copy of the data, and every call is logged on systems you administer.

## Can one bill cover every AI model and tool?

Unified billing across AI models and tools means one meter for every model call and every tool call behind the key, instead of one invoice per provider. On ibl.ai's Agentic Router every call lands on one bill priced by usage, never by seat.

The Cost tab breaks spend down by provider, model, user and individual call, with latency percentiles beside it, as described in the [cost analytics update](/updates/analytics-cost-by-model-and-transcripts). That is the view a finance team needs before it sets a ceiling.

Usage pricing is the right shape for a gateway because traffic is uneven.

A per-seat price charges for every person whether they send one request or ten thousand; a usage meter charges for the tokens actually consumed. The same logic runs through the rest of ibl.ai, where there is no per-seat pricing.

## Which self-hosted AI gateway enforces spend caps?

A self-hosted AI gateway with spend caps stops requests once a budget is reached, on infrastructure you run.

LiteLLM budgets the whole proxy, teams, team members, users, virtual keys and end customers, and needs a database to enforce them. Portkey's budget limits are for Enterprise plan and select Pro customers. OpenRouter, which is hosted, caps credit per key.

ibl.ai's [spend limits](/updates/spend-limits) work at three scopes: the whole organization, one agent, and one person on one agent. Each carries its own reset period (day, week, month or year), near-limit alert thresholds and a mode that either blocks requests or alerts administrators.

Enforcement runs server-side, so a runaway script stops at the cap whatever client it calls from. Limits stack: a request must clear every limit that applies to it, so the tightest one governs.

## Is there an API to call your own AI agents from any app?

An API to call your own AI agents from any app means the agent, with its knowledge, memory and guardrails, is reachable from code you write.

Gateways now route agent traffic too: LiteLLM ships an [A2A Agent Gateway](https://docs.litellm.ai/docs/a2a) and Kong an [AI A2A Proxy plugin](https://developer.konghq.com/plugins/ai-a2a-proxy/) (Enterprise, 3.14+).

They route calls to agents you host yourself; the knowledge, memory and guardrails are yours to build and run.

On ibl.ai every agent your organization builds on [Agentic OS](/product/agentic-os) is callable from the Agentic Router: a REST call, a streaming WebSocket session, the @iblai/iblai-js SDK, an agent skill, or any MCP client such as Claude Code or Cursor.

The REST surface documents more than 1,000 endpoints in the live [API reference](/developer/api-reference).

Authentication takes two forms. People call with their own token, and roles are enforced on each request, so an agent answers only what that caller may see.

A backend calls with a tenant-scoped platform key in an `Api-Token` header, which lives on your server and never in browser code. The [developer hub](/developer) lists 164 agent skills that map each task to exact REST calls.

## Why does owning the gateway matter for AI cost and data?

Owning the LLM gateway matters because every prompt, tool result and cost record passes through it. Run it yourself and that traffic stays in your perimeter; rent it and a third party sees every request.

LiteLLM and Portkey are MIT-licensed, so self-hosting either one keeps the gateway in your hands too. The gap is everything around the gateway: the agents, the per-user identity, the MCP credential scoping and the billing view, which you then assemble and operate yourself.

ibl.ai ships those as one platform. You own all the code and the data, it is model-agnostic across any LLM, and you can deploy anywhere, from your own cloud to a fully air-gapped network.

The same choice shows up one layer down, in the [self-hosted LLM serving stack](/blog/self-hosted-llm-serving-stack-ollama-vllm-tgi), and in why the [LiteLLM supply-chain incident](/blog/litellm-supply-chain-attack-own-ai-infrastructure) pushed teams to audit what runs inside their gateway.

For per-request model choice inside OpenClaw agents, ibl.ai's open-source [OpenClaw Router](/blog/iblai-openclaw-router-cost-optimizing-model-routing) picks the cheapest capable model. The [Agentic Router](/product/agentic-router) page lists the full surface.

## Why does owning the AI stack matter?

**ibl.ai is the agentic AI platform where you own all the code and the data. You self-host the entire stack inside your own perimeter, run it model-agnostic across any LLM and switch anytime, and pay by usage with no per-seat pricing — so you can deploy anywhere: your cloud, on-premise, GovCloud, or fully air-gapped.**

- **You own all the code and the data.** Full source code under a perpetual license, running on your infrastructure. Not API access to someone else's platform — the stack itself is yours.
- **Model-agnostic.** Run any LLM — Claude, GPT, Gemini, Llama, Command, or your own fine-tune — and switch providers without rewriting the platform.
- **No per-seat pricing.** Usage-based billing against a budget cap you set. Cost tracks what your organization actually uses, not how many people you employ.
- **Deploy anywhere.** Your cloud, your VPC, on-premise, GovCloud, or a fully air-gapped network with no outbound connectivity.

1.6M+ users across 400+ organizations run the platform this way, including NVIDIA, MIT, and Syracuse University.

ibl.ai is family-owned and operated from New York, NY — a U.S.-headquartered, domestically-owned long-term partner, not a vendor that sells licenses and moves on.
