概要

フル名
docker.io/portkeyai/gateway
Registry
docker.io
名前空間
portkeyai
リポジトリ
gateway
キャッシュ Tag 数
81
最終同期
07/06/2026, 10:50 AM

概要

Portkey AI Gateway 镜像,统一代理 OpenAI/Anthropic 等多 LLM Provider,提供缓存、路由与可观测性,适合企业 AI 中台入口。

詳細

portkeyai/gateway 作为 LLM 反向代理,集中管理 API Key、fallback 链路与 usage 日志。典型用于多团队共享 LLM 配额与合规审计,与 LiteLLM 同类。定位为无状态 API 网关,需 Redis/PostgreSQL 可选;生产固定 tag、限流与 PII 过滤。

快速启动

docker run -d --name portkey-gateway \
  -p 8787:8787 \
  -e OPENAI_API_KEY=sk-xxx \
  docker.io/portkeyai/gateway:latest

推荐实践

docker run -d --name portkey-gateway \
  --restart unless-stopped \
  -p 8787:8787 \
  -e PORTKEY_API_KEY=pk-xxx \
  -e CACHE_MODE=redis \
  -e REDIS_URL=redis://redis.internal:6379 \
  docker.io/portkeyai/gateway:1.8.0

核心参数说明

  • -p 8787:8787 — Gateway OpenAI 兼容 API 端口
  • -e PORTKEY_API_KEY — 网关鉴权密钥(高敏
  • -e CACHE_MODE=redis — 响应缓存后端
  • -e REDIS_URL — Redis 连接
  • --restart unless-stopped — 网关持续在线
  • 固定 tag — 路由与 Provider 适配 pin

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: portkey-gateway
spec:
  replicas: 3
  selector:
    matchLabels:
      app: portkey-gateway
  template:
    metadata:
      labels:
        app: portkey-gateway
    spec:
      containers:
        - name: gateway
          image: docker.io/portkeyai/gateway:1.8.0
          ports:
            - containerPort: 8787
          envFrom:
            - secretRef:
                name: portkey-secrets
---
apiVersion: v1
kind: Service
metadata:
  name: portkey-gateway
spec:
  selector:
    app: portkey-gateway
  ports:
    - port: 8787
      targetPort: 8787

Ingress 统一 /v1 入口;HPA 按 QPS 扩缩,Secret 轮换 Provider Key。

Tagアーキテクチャプッシュ日時サイズDigest同期期望操作
docker.io/portkeyai/gateway
:latest
linux/amd64linux/arm64
2026/01/12 16:5159.0 MBsha256:552b53994ffe
docker.io/portkeyai/gateway
:1.15.2
linux/amd64linux/arm64
2026/01/12 16:5159.0 MBsha256:552b53994ffe
docker.io/portkeyai/gateway
:1.15.1
linux/amd64linux/arm64
2025/12/24 21:2259.0 MBsha256:45333b67137d
docker.io/portkeyai/gateway
:1.15.0
linux/amd64linux/arm64
2025/12/23 22:2759.0 MBsha256:8a11097357fb
docker.io/portkeyai/gateway
:1.14.3
linux/amd64linux/arm64
2025/11/27 00:2459.4 MBsha256:0899ca025045
docker.io/portkeyai/gateway
:1.14.2
linux/amd64linux/arm64
2025/11/21 20:4858.9 MBsha256:c5fa46134eb1
docker.io/portkeyai/gateway
:1.14.1
linux/amd64linux/arm64
2025/11/21 20:1258.9 MBsha256:c77d91a5e55b
docker.io/portkeyai/gateway
:1.14.0
linux/amd64linux/arm64
2025/11/07 22:0058.9 MBsha256:ca4963c852fa
docker.io/portkeyai/gateway
:1.13.0
linux/amd64linux/arm64
2025/10/23 21:0258.8 MBsha256:8b746124e872
docker.io/portkeyai/gateway
:1.12.3
linux/amd64linux/arm64
2025/09/29 20:1661.7 MBsha256:26e722d9e683
docker.io/portkeyai/gateway
:1.12.2
linux/amd64linux/arm64
2025/09/24 17:3361.7 MBsha256:00b3d7a5af94
docker.io/portkeyai/gateway
:1.12.1
linux/amd64linux/arm64
2025/09/19 15:3261.7 MBsha256:7b86cb582ccd
docker.io/portkeyai/gateway
:1.12.0
linux/amd64linux/arm64
2025/09/16 14:2861.7 MBsha256:abd8e91fb788
docker.io/portkeyai/gateway
:1.11.3
linux/amd64linux/arm64
2025/09/04 04:2161.8 MBsha256:96ca8dcb2912
docker.io/portkeyai/gateway
:1.11.2
linux/amd64linux/arm64
2025/08/18 21:5561.9 MBsha256:0f9987c163c7
docker.io/portkeyai/gateway
:1.11.1
linux/amd64linux/arm64
2025/08/07 03:4361.9 MBsha256:b1bacf21de51
docker.io/portkeyai/gateway
:1.11.0
linux/amd64linux/arm64
2025/07/29 20:0361.4 MBsha256:55dfdaeb6f20
docker.io/portkeyai/gateway
:1.10.2
linux/amd64linux/arm64
2025/07/16 16:5260.9 MBsha256:ef0779a78380
docker.io/portkeyai/gateway
:1.10.1
linux/amd64linux/arm64
2025/07/02 15:5360.9 MBsha256:4ce9e0a1da1e
docker.io/portkeyai/gateway
:1.10.0
linux/amd64linux/arm64
2025/06/26 01:4360.9 MBsha256:b608fd3db73c