Skip to content
This page is not translated yet — showing the original. We never ship machine translation as a placeholder.
Needs tinkeringMIT⚪ Tested only

Portkey AI Gateway

In one line:Portkey AI Gateway 是一个给要接多家模型的团队用的开源网关,用一套 API 转发到上千个模型。

Portkey AI Gateway 是一个给要接多家模型的团队用的开源网关,用一套 API 转发到上千个模型。

Official source

We host and mirror nothing — the official page is the source of truth.

No hotlinkable official icon; showing a generated placeholderPA Portkeyhttps://github.com/Portkey-AI/gatewayOpen official page
Official sourceYou are leaving AIWorksWell for Portkey. That site is not under our control; its content, privacy and security are its own responsibility. Please judge for yourself.

Install prompt

Copy it, paste it into your AI (Claude Code, Codex, ChatGPT…), and it installs and verifies for you.

47 lines
我需要你帮我在我的机器上安装并运行一个软件。

【软件信息】
名称:Portkey AI Gateway
用途:Portkey AI Gateway 是一个给要接多家模型的团队用的开源网关,用一套 API 转发到上千个模型。
官方来源:https://github.com/Portkey-AI/gateway
许可:MIT
Scroll inside the box with your mouse wheel — copying still gives you the full prompt1190 chars

Copy → paste into your own AI → it installs for you

Contact the original author (Portkey)

Bugs in the software itself go to the author's own official channel — that is where they actually receive them. We pass things on; we do not answer for the author.

Install failed?

Paste the raw error — once triaged and verified it is written back here, so the next person's AI avoids it. No login needed.

About this entry

What it is

Portkey AI Gateway 是开源的模型网关(MIT 许可),夹在应用与模型厂商之间做统一转发。来源:https://portkey.ai/https://portkey.ai/

  • 一套请求格式转发到上千个模型,换厂商只改配置
  • 自带重试、回退与路由,官方自述处理过每天上百亿 token
  • 体积极小,官方给的延迟数字是低于 1 毫秒

Getting it running

主推「复制提示词」——粘贴给你的 AI(Claude Code / Codex / ChatGPT)代装。人工兜底:按官方文档在 Node 项目里引网关,或 Docker 起服务,配好至少一家模型的密钥后发一次请求。验证:请求经网关转发后能拿到模型回复。来源:https://portkey.ai/docshttps://portkey.ai/docs

以上坑来自 https://portkey.ai/https://portkey.ai/ 与它的官方文档。

来源与署名

Mentioned from:GitHub · 原作者 Portkey(MIT)。

Summary for AI

Portkey AI Gateway 夹在你的应用与模型厂商之间,用一套统一的请求格式转发到上千个语言、视觉、语音与图像模型,并负责重试、回退与路由。官方自述它体积极小、延迟低于 1 毫秒,同时带护栏与可观测能力。可以自托管,也可以用官方托管版。

A self-contained answer paragraph — this is the part AI search quotes. · Page reviewed 2026-10-22

FAQ

它自己提供模型吗?

不提供。它只做转发与路由,模型的额度与密钥仍是你自己的。

为什么要在中间加一层?

换厂商只改一行配置,还能统一做重试、回退与日志。

Pitfalls / known issues

All recorded from real installs, and injected into the prompt above.

  • •它只做转发,各家模型的参数差异仍要自己对齐。
  • •多一层代理意味着多一个要监控的环节。
  • •官方主推托管版,自托管版的更新滞后于托管版。

You might also like

We store, mirror and repackage nothing. Every install path points to the author’s own official page.

Nothing here has been reviewed by an app store. Judge the source and licence yourself; you install at your own risk.