Skip to content

Every model. Every tool. One gate.

opengate is a self-hosted AI gateway and MCP host. Your API keys, your AI subscriptions and your MCP servers, behind one address.

Every provider you pay for. Every plan you already have. Every MCP server you trust.

One API for all your model providers.

Use the OpenAI or Anthropic SDK, name any model as provider/model, and opengate translates where the formats differ.

47 provider presets, or anything that speaks the OpenAI API.

Your AI subscriptions work as providers too.

Sign in the way each CLI does, then call the plan through /api.

Left this week, pick a plan to use it

When a plan runs out, the alias moves on

Using a subscription this way is subject to its vendor’s terms.

A budget on each API key.

Pick which models a key may use and how much it may spend; past that it gets a 429.

Daily budget

Simulated, with the day sped up.

Fast, even while logging each request.

Benchmarked against LiteLLM, Bifrost, Portkey, Helicone, TensorZero, agentgateway and ContextForge.

/api/v1, 64 at once
10,983 answers a second
next best 3,278
/mcp, 64 sessions
15,624 tool calls a second
next best 14,438
One request at a time
0.19 ms median answer
next best 0.22 ms

2 CPUs per gateway, mock provider, 2026-11-30. It is not first everywhere; see the full benchmark results.

All your MCP servers behind one URL.

Agents sign in once with OAuth and see the tools their user is allowed to use.

Connects

Claude Code Codex Claude Desktop ChatGPT Cursor OpenCode Goose Cline Windsurf GitHub Copilot Anything that speaks Streamable HTTP and OAuth
claude mcp add --transport http opengate https://gate.example.com/mcp
# then /mcp inside Claude Code to sign in through the browser

Tools, one switch each

github__create_issue1,204
github__delete_branch0
linear__list_issues3,881
postgres__query9,452
sentry__search_issues612
  • Servers from npm, PyPI or a URL
  • Owned by a user or a team
  • Each user brings their own credentials

Installed servers run in a sandbox.

Each process gets its own uid and can only reach public addresses. gVisor is optional.

opengate API, OAuth and both endpoints
Postgres users, keys, logs, encrypted secrets
Runner container internal network, no host mounts, no Docker socket
npx server-github own uid
uvx mcp-server-postgres own uid
npx sentry-mcp own uid

no route to the database, the host or another process’s files

Egress proxy resolves each host itself and refuses every address that is not public
The internet the APIs your servers talk to

All requests and tool calls, in one log.

With tokens, cost and status. Tool arguments and results are not stored.

Simulated traffic.

Also included.

  • Teams
  • Single sign-on
  • Playground
  • REST API
  • Admin MCP endpoint
  • Audit log
  • Body logging
  • One-click server updates
  • NixOS module

Open your own gate.

It runs on your server.

Run it with Docker Compose.

Free software. Docker 28 or newer, or the NixOS module.

Deployment guide

~/opengate
git clone https://git.cumsek.com/opengate/opengate.git && cd opengate
cp .env.example .env
# set PUBLIC_URL, ENCRYPTION_KEY, RUNNER_TOKEN and POSTGRES_PASSWORD in .env
docker compose --profile prod up -d --build
docker compose logs opengate | grep -i "setup token"
# Then open http://localhost:8080/setup and create the first admin.