Skip to main content

Setup and deployment

You're reading AI Gateway 2026.10.0. The newest release is 1.2.0. Go to the newest release

This section covers running the AI Gateway, from a first install through to a replicated production deployment. It is written for the administrators and platform engineers who operate the gateway rather than for the developers who publish proxies through it.

Most readers follow the same four stages: install the gateway, configure it, secure its management API, then deploy it at scale. Each stage below lists the pages that cover it.

Install the gateway​

Choose the environment you want to run in. For a first install on your own machine, the quick start guide walks through Docker Compose end to end.

PageWhat it covers
Install the gatewayChoose where to run the AI Gateway — local machine, virtual machine, Docker, or Kubernetes — and see what each context adds to the base installation.
Kubernetes deployment modesChoose between standalone and operator-managed Kubernetes deployment modes for API Platform AI Gateway.
Kubernetes standalone modeInstall and manage API Platform AI Gateway on Kubernetes using the standalone Helm chart without the Gateway Operator.
Kubernetes operator modeDeploy API Platform AI Gateway on Kubernetes using the Gateway Operator with platform CRDs or the Kubernetes Gateway API.
Immutable gatewayRun API Platform AI Gateway in immutable mode, loading LLM and MCP configurations from files at startup for GitOps workflows.

Configure the gateway​

Set the gateway's own configuration and give it a database to persist against.

PageWhat it covers
Gateway configuration and environment interpolationHow the API Platform Gateway loads its config.toml, injects environment values through interpolation tokens, and bootstraps required keys and certificates.
Set up the databaseCreate the database and apply the Gateway Controller schema for PostgreSQL or SQL Server before starting the API Platform AI Gateway.

Secure the gateway​

With both Basic Auth and identity provider validation disabled, the controller accepts every request, so enable one before the gateway handles real traffic.

PageWhat it covers
Secure the management APIConfigure Basic Auth or JWT/IDP authentication and role-based authorization for the AI Gateway Controller REST API.

Client credentials on proxies and providers are a separate surface, covered in Authenticate clients.

Deploy at scale​

These pages plan a high-availability deployment and size it against published benchmarks.

PageWhat it covers
Production deployment overviewPlan a high-availability production deployment of API Platform AI Gateway on Kubernetes with Helm, an external database, and replicated workloads.
Security hardeningHarden API Platform AI Gateway before production: AES-256 at-rest encryption keys, TLS for the listener and upstreams, and management API authentication.
Database configurationPoint AI Gateway controller replicas at a shared PostgreSQL or SQL Server database, inject the password from a Secret, and tune the connection pool.
Resources and scalingSize CPU and memory for the AI Gateway controller and runtime, spread replicas with anti-affinity, and configure autoscaling and pod disruption budgets.
Tune the gateway for AI trafficTune API Platform AI Gateway for LLM and MCP traffic: streaming timeouts, body buffers, guardrail limits, cost pricing data, and semantic cache backing.
Deploy and verifyInstall the API Platform AI Gateway Helm chart, confirm the controller and runtime are healthy, route a live LLM request, and run upgrades and rollbacks.
Connect to AI WorkspaceRegister a production AI Gateway with AI Workspace: the registration token as a Kubernetes Secret, the control plane address, TLS trust, and sync behavior.
AI Gateway performanceReview WSO2 API Platform AI Gateway performance test methodology, deployment architecture, metrics, and benchmark results for two-CPU and four-CPU gateway runtimes.
AI Gateway runtime with two CPUsView API Platform AI Gateway performance benchmark results with a two-CPU gateway runtime, including throughput, average response time, and percentiles.
AI Gateway runtime with four CPUsView API Platform AI Gateway performance benchmark results with a four-CPU gateway runtime, including throughput, average response time, and percentiles.

Was this page helpful?