The best Portkey AI Gateway alternatives
8 tools that do a similar job to Portkey AI Gateway, 8 of them open source. Each entry says what it does and who it suits, so you can pick the one that fits instead of the most famous.
You're replacing
Portkey AI GatewayOpen-source gateway that routes requests to many AI models through one API, with guardrails.
- 1

Botpress
Open source · MIT · ★ 15k
Open-source tools to build and deploy chatbots and LLM agents, centred on Botpress Cloud.
Best for: Developers who want to write integrations and bots as TypeScript code using the Botpress CLI and SDK; Teams already using Botpress Cloud who want to publish or deploy their own integrations
- 2

Composio
Open source · MIT · ★ 30.9k
SDK for building AI agents that can take actions in 1000+ apps via pre-authenticated tools.
Best for: Developers building AI agents that need to read or act in third-party apps; Teams already using a supported agent framework such as OpenAI Agents, LangChain, or Vercel AI SDK
- 3

promptfoo
Open source · MIT · ★ 26.7k
CLI and library for testing LLM prompts and red-teaming AI apps, with declarative configs.
Best for: Developers building apps on top of LLM APIs who want repeatable prompt tests; Teams comparing several models side by side on the same prompts
- 4

Codebase to Tutorial
Open source · MIT · ★ 12.7k
A Python tool that uses an LLM to read a GitHub repo or local folder and write a beginner tutorial about it.
Best for: Developers who need to understand a large unfamiliar open-source project; Students studying how real libraries are structured
- 5

claude-context
Open source · MIT · ★ 12.7k
Semantic code search server that lets Claude Code and other AI agents pull relevant code from a whole repo.
Best for: Developers working in large codebases where loading everything into an agent's context is impractical; People already using Claude Code, Cursor, Gemini CLI, Codex CLI or similar MCP-compatible agents
- 6

opencodex
Open source · MIT · ★ 18.2k
A local proxy that lets Codex and Claude Code use models from other providers.
Best for: Developers who already use Codex or Claude Code and want to try other model providers; People who want one local dashboard to manage multiple provider keys and models
- 7

ECC
Open source · MIT · ★ 295k
A set of skills, memory, and security rules that makes AI coding agents work more carefully.
Best for: Developers who already use Claude Code and want a shared workflow for planning, testing and review; Teams that want consistent agent behavior across several coding tools
- 8

code-review-graph
Open source · MIT · ★ 32.6k
Builds a local map of your codebase so AI coding tools read only the files a change touches.
Best for: Developers who use an MCP-compatible AI coding assistant on a large repository; Teams that want code reviews to focus on the files a change affects
How we pick: tools in the same category that solve the same problem, projects that name each other as alternatives, and open-source projects that describe themselves as an alternative to Portkey AI Gateway. We don't take payment for placement.