Portus

Rust-based Kubernetes gateway for HTTP, LLM and MCP traffic

Working when we checked on .

Visit Portus

What is Portus?

Portus is an open-source Kubernetes gateway written in Rust that carries HTTP, LLM and MCP traffic on a single data plane. It targets platform engineers and teams running Kubernetes who need a Gateway API-conformant ingress plus an AI gateway for LLM providers and MCP tool servers. It passes all 130 Gateway API v1.6.2 conformance tests with no skips, achieves 224k requests per second at 2.98ms p99 latency on a 32-vCPU AWS instance, and supports fourteen policy CRDs including rate limits, retries, CORS and JWT auth. LLM calls are routed by request body with per-key token budgets, and provider API keys never leave the cluster. It also runs standalone as a plain reverse proxy with built-in ACME certificates.

Portus pricing

Pricing model: Freemium

Portus pros

  • 130/130 Gateway API v1.6.2 conformance tests passed with no skips
  • 224k requests per second through 3 proxy pods at 2.98ms p99 latency
  • Issues portus_sk_ keys storing only hashes; provider keys never leave the cluster
  • Per key, user, tenant or route token budgets with x-portus-tokens-remaining headers
  • MCP federation lets multiple tool servers appear as one, with no session state on gateway pods
  • Standalone mode with built-in ACME/Let's Encrypt certificates and hot reload without dropped connections

Portus cons

  • Benchmarks from one machine only, and agentgateway is ahead on 1 MiB plain-HTTP downloads with less memory per pod
  • Failover figures show errors without a RetryPolicy configured
  • Rust and Kubernetes-focused; requires a cluster or manual YAML configuration to operate
  • No pricing, support tiers or commercial plans are documented on the site

Frequently asked questions about Portus

What is Portus?

Portus is a Kubernetes gateway built in Rust that proxies HTTP, LLM and MCP traffic on a single data plane. It is fully conformant with Gateway API v1.6.2 and supports HTTPRoute, GRPCRoute, TLSRoute, TCPRoute, UDPRoute and more.

How does Portus handle LLM API keys?

The ledger issues its own portus_sk_ keys and stores only hashes. The provider's key never leaves the cluster, so clients use Portus-issued keys instead of provider credentials.

Can Portus enforce token budgets?

Yes. Token budgets can be set per key, user, tenant or route, reserved before a call and settled after. Every response carries an x-portus-tokens-remaining header.

Which LLM provider dialects does Portus support?

It supports Anthropic and OpenAI dialects. Tokens are metered from JSON and streamed responses, and refusals come back in the provider's own error shape. Claude Code works unchanged by pointing ANTHROPIC_BASE_URL at the gateway.

How does Portus route MCP traffic?

It matches the JSON-RPC method and the tool named in a tools/call, so tools like github.* can live on one server and others elsewhere. Multiple servers can be federated to appear as one, with tools named <server>.<tool>.

What authentication does Portus support?

It supports Basic, API-key, JWT and forward auth among its fourteen policy CRDs, plus OAuth bearer tokens from OIDC issuers like dex verified locally, where groups become tenants and scopes can gate tools.

Does Portus drop connections during config reloads?

No. Configuration arrives over mTLS gRPC and swaps atomically. Each data plane acknowledges the fingerprint it applied, which drives the Gateway's Programmed condition.

Can Portus run outside Kubernetes?

Yes. Pointing the data plane at a single YAML file runs it as a plain reverse proxy with the same routing, policies and TLS, including built-in Let's Encrypt certificates via ACME and hot reload.

Who is Portus for?

It is aimed at platform and DevOps teams running Kubernetes who need a high-performance Gateway API ingress that also fronts LLM providers and MCP tool servers under one set of policies.

How fast is Portus?

Portus 0.2.12 handled 224,173 requests per second at 256 connections through 3 proxy pods with 2.98ms p99 latency on an AWS c7a.8xlarge (32 vCPUs), beating agentgateway by roughly 31-33% on bare GET benchmarks.

Categories

Use cases

Alternatives to Portus

Similar AI tools

Search AI tools on NeedAnAI · All AI tools A–Z