Portkey AI Gateway

Open-source AI gateway that routes to 1,600+ models with retries, caching, load balancing and guardrails.

Stale (no commit in 180+ days) LLM gateway & observability MIT

Quick answer

Portkey AI Gateway is an open-source AI gateway that routes to 1,600+ models with retries, caching, load balancing and guardrails, listed under LLM gateway & observability. A typical small-business use: one internal OpenAI-compatible endpoint in front of many provider keys with retries and fallbacks. The project publishes no official RAM figure, so we do not estimate a monthly server cost. License: MIT, which allows internal business use. Activity is low: the last commit was on May 25, 2026.

Last updated · facts verified against official docs on · sources

Low recent activity. The last commit on the default branch was 182 days ago (May 25, 2026). Check the gotchas below before deploying.
GitHub stars13.4k
Forks1.4k
Latest releasev1.15.2Jan 12, 2026
Last commitMay 25, 2026
Est. server cost—

Activity data comes from GitHub and was last refreshed Nov 23, 2026.

What is Portkey AI Gateway?

Portkey AI Gateway is a lightweight reverse proxy that puts hundreds of LLM, vision, audio and image providers behind one API. It adds configs for routing, retries, fallbacks, caching, load balancing and input/output guardrails. You can run the open-source image with Docker or Node, or use Portkey Cloud / the enterprise private-cloud build for hosted observability, org management and governance features marked as enterprise-only in the README.

Where it fits in a 10–200 person business

  • One internal OpenAI-compatible endpoint in front of many provider keys with retries and fallbacks
  • Apply shared guardrails and routing rules across agents and apps without changing each client
  • Add caching and weighted load balancing across providers or API keys

These use cases are our editorial suggestions, not claims made by the project.

Can a business use Portkey AI Gateway? (license)

LicenseMIT
TypePermissive: MIT / Apache-2.0: use, modify and sell with few obligations.
Internal business useAllowed under the license text
What to watchPermissive. Internal and commercial use allowed; keep license and notices.

This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.

Data & compliance: does Portkey AI Gateway phone home?

Telemetry (usage data sent to the vendor) Not documented
Other calls home by default (updates, marketplaces, default cloud services) Not documented

The gateway forwards to the LLM providers you configure; the docs do not say whether the OSS image phones home.

Single sign-on (OIDC / SAML / LDAP) Not documented
Audit log Not documented
Role-based access control (RBAC) Not documented
Data residency / GDPR notes from the project Not documented

Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.

What hardware does Portkey AI Gateway need?

The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.

GPU: No. It forwards requests to model APIs you configure.

No official CPU, RAM or disk figure is published for the open-source gateway image.

Source: github.com/Portkey-AI/gateway/blob/main/docs/installation-deployments.md

How much does it cost to host Portkey AI Gateway per month?

The project publishes no RAM figure we could verify, so we do not estimate a cost.

How to deploy Portkey AI Gateway

Method: Docker

docker run --rm -p 8787:8787 portkeyai/gateway:latest
# or with Compose:
# wget https://raw.githubusercontent.com/Portkey-AI/gateway/main/docker-compose.yaml
# docker compose up -d
# Gateway listens on port 8787

From the official instructions: github.com/Portkey-AI/gateway/blob/main/docs/installation-deployments.md. Always check the source for the current version before you run it.

Known gotchas when self-hosting Portkey AI Gateway

  • Logging & tracing, observability and prompt management for agent frameworks are marked as available in hosted and enterprise versions, not in the plain open-source gateway alone. source
  • The enterprise private-cloud build adds org management, governance and security features beyond the MIT gateway; compare the feature list before assuming Cloud-only capabilities are in the OSS image. source
  • By default the Docker image listens on port 8787 with no auth in front. Put a reverse proxy or network policy in front before exposing it beyond a trusted network. source

Alternatives in LLM gateway & observability

  • LiteLLM AI gateway that puts 100+ LLM providers behind one OpenAI-compatible API with keys and budgets.
  • New API Self-hosted AI API gateway (One API fork) that puts many model providers behind one key, with quotas, usage logs and cost tracking.
  • Langfuse LLM observability with tracing, prompt management, evaluations and cost tracking.
  • One API Original self-hosted LLM API gateway that puts many model providers behind one OpenAI-style key, with quotas and token management.
  • MLflow Open-source platform for LLM tracing, evaluation and prompt management plus classic ML experiment tracking and model registry.
  • Promptfoo CLI and web viewer for testing prompts, comparing models and red-teaming LLM apps before they ship.
  • Opik Open-source LLM observability and evaluation platform for tracing, evals, prompt management and monitoring.
  • Phoenix Free self-hosted LLM tracing, evaluation, datasets and prompt management from Arize.
  • Helicone Open-source LLM observability platform for tracing, cost and evaluation, with a self-hosted all-in-one image.
  • LangWatch Open-source LLM ops platform for tracing, evaluations, agent simulations, prompt management and an AI gateway.
  • ContextForge MCP Gateway IBM's open-source gateway and registry that puts MCP servers, A2A agents and REST/gRPC APIs behind one governed endpoint.
  • OpenLIT OpenTelemetry-native observability, evals, guardrails and cost tracking for AI agents, self-hosted under Apache 2.0.

Portkey AI Gateway FAQ

How much RAM does Portkey AI Gateway need?

Portkey AI Gateway does not publish an official RAM figure, so we do not state one.

Does Portkey AI Gateway need a GPU?

No. It forwards requests to model APIs you configure.

How much does it cost to self-host Portkey AI Gateway?

The software is free to download. The project publishes no official RAM figure, so we do not estimate a monthly server cost.

Is Portkey AI Gateway free for commercial use?

Portkey AI Gateway is licensed under MIT (Permissive). Internal business use is allowed under the license text. Permissive. Internal and commercial use allowed; keep license and notices. This is a summary, not legal advice.

What are common problems when self-hosting Portkey AI Gateway?

Logging & tracing, observability and prompt management for agent frameworks are marked as available in hosted and enterprise versions, not in the plain open-source gateway alone. The enterprise private-cloud build adds org management, governance and security features beyond the MIT gateway; compare the feature list before assuming Cloud-only capabilities are in the OSS image. By default the Docker image listens on port 8787 with no auth in front. Put a reverse proxy or network policy in front before exposing it beyond a trusted network.

Is Portkey AI Gateway still maintained?

Activity is low (no commit in 180+ days). Last commit: May 25, 2026. Latest release: v1.15.2 (Jan 12, 2026). Checked Nov 23, 2026.

How do I install Portkey AI Gateway?

The official method is Docker. The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/Portkey-AI/gateway/blob/main/docs/installation-deployments.md

What are self-hosted alternatives to Portkey AI Gateway?

Other apps in LLM gateway & observability: LiteLLM, New API, Langfuse, One API, MLflow, Promptfoo, Opik, Phoenix, Helicone, LangWatch, ContextForge MCP Gateway, OpenLIT.

Sources

Facts on this page were checked against the project's own repository and docs on 2026-11-05. Spotted something out of date? Tell us.