Skip to main content
The Portkey AI Gateway can be deployed in multiple ways to suit your infrastructure needs. Choose from managed services, self-hosted options, or enterprise deployments.

Deployment Methods

Docker

Run the gateway using Docker or Docker Compose for quick setup

Node.js

Deploy as a standalone Node.js server with npm or bun

Cloudflare Workers

Deploy to Cloudflare’s edge network for global distribution

Kubernetes

Deploy to Kubernetes clusters with our deployment manifests

Enterprise

Private cloud deployments with advanced security and support

Managed Deployment

Portkey runs this same Gateway on our API and processes billions of tokens daily. Portkey’s API is in production with companies like Postman, Haptik, Turing, MultiOn, SiteGPT, and more.

Sign up for managed deployment

Get started with Portkey’s managed service - no infrastructure required

Why Choose Managed?

  • Zero infrastructure management
  • Automatic scaling and updates
  • 99.99% uptime SLA
  • Built-in monitoring and analytics
  • Production-ready from day one

Self-Hosted Benefits

  • Complete Control - Full control over your infrastructure and data
  • Data Privacy - Keep all data within your environment
  • Customization - Modify and extend the gateway as needed
  • Cost Optimization - Pay only for your infrastructure costs
  • Compliance - Meet specific regulatory requirements

Quick Start

The fastest way to get started with self-hosting:
npx @portkey-ai/gateway
The gateway will start on http://localhost:8787 by default.

Next Steps

Configuration

Learn how to configure the gateway

API Reference

Explore the API endpoints

Build docs developers (and LLMs) love