Open Source Portkey Alternatives

Route LLM requests without vendor fees. Open source Portkey alternatives for AI gateway, model routing, and API observability you fully own.

8 alternatives available

Portkey is a platform designed to help AI teams productionize their Gen AI applications. It offers features like an AI Gateway for controlling access and managing API requests, sophisticated Observability tools to monitor LLM behavior and catch anomalies, Guardrails for ensuring AI safety and compliance, and a Prompt Management system. It aims to simplify the complex process of deploying AI models into real-world applications.

However, some users may seek alternatives to Portkey due to its potentially limited customization options or a desire for complete self-hosting and control. While Portkey offers an open source component, users may prefer a fully open source stack for greater flexibility and cost savings. The need for robust LLM monitoring, strong AI governance features, and the ability to manage prompts effectively drive many users to explore alternative solutions.

The core components Portkey provides – AI gateway, observability and guardrails - are critical for any production GenAI application. Building these tools in-house or leveraging a suite of open source alternatives allows teams greater control and potentially lower long-term costs. Additionally, some organizations may have specific security or compliance requirements that necessitate a fully self-managed infrastructure.

What Portkey Offers

01

AI Gateway

Controls access to AI models and manages API requests, ensuring secure and regulated usage of LLMs.

02

Observability Dashboard

Provides real-time monitoring of LLM behavior, allowing teams to catch anomalies and proactively manage usage patterns.

03

Guardrails

Enforces safety and compliance rules on LLM responses, preventing unintended outputs and ensuring responsible AI usage.

04

Prompt Management

Offers tools for creating, versioning, and managing prompts used by LLMs, improving AI application performance and consistency.

Common Use Cases

01

Production AI Applications

Deploying and scaling GenAI models for real-world applications, such as chatbots or content generation tools.

02

AI Governance & Compliance

Monitoring and controlling AI models to ensure they adhere to safety regulations and organizational policies.

03

LLM Observability

Tracking the performance and behavior of large language models to identify issues and optimize results.

04

AI Agent Development

Building and managing AI agents that interact with external systems and data sources.

Open Source Alternatives

TypeScript
95%
MIT

OmniRoute

AI Agents

70,824

A free, open-source AI gateway connecting Claude Code, Codex, Cursor, Cline, and Copilot to 237 AI providers (90+ free) through one endpoint, with automatic fallback and token-compression to stretch free-tier limits further.

View details
86
Repo Health
70
Technical
71
Dependency
Built with
TypeScript 95%
Updated 1 weeks ago
Python
82%
MIT

LiteLLM

AI Development · Developer Tools

59,745

Open source AI gateway and Python SDK that gives you one OpenAI-compatible interface to call 100+ LLM providers, with built-in routing, cost tracking, guardrails, and virtual keys.

View details
92
Repo Health
81
Technical
69
Dependency
Built with
Python 82%
TypeScript 12%
Updated 1 weeks ago
Rust
79%
Apache 2.0

TensorZero

Ab Testing Experimentation · AI Development · Monitoring

11,717

TensorZero unifies the LLM gateway, observability, evaluation, optimization, and experimentation stack behind a single OpenAI-compatible API, built in Rust for sub-millisecond p99 latency.

View details
53
Repo Health
87
Technical
69
Dependency
Built with
Rust 79%
TypeScript 15%
Updated 4 months ago
Rust
65%
Apache 2.0

agentgateway

AI Development · Developer Tools · Mcp

5,071

An open source AI-native proxy that secures, observes, and governs agent-to-LLM, agent-to-tool, and agent-to-agent communication through MCP, A2A, and unified LLM routing.

View details
88
Repo Health
82
Technical
69
Dependency
Built with
Rust 65%
Go 23%
Updated 1 weeks ago
TypeScript
78%
LGPL 3.0

Latitude

AI Agents · Monitoring

4,686

Open-source AI agent monitoring that catches what will break next before your users do.

View details
86
Repo Health
88
Technical
67
Dependency
Built with
TypeScript 78%
Rust 11%
Python 11%
Updated 2 weeks ago
TypeScript
96%
Other

LLM Gateway

AI Development · Devops

1,663

One API endpoint for 25+ LLM providers — route, track costs, enforce compliance, and switch models without changing your code.

View details
86
Repo Health
80
Technical
68
Dependency
Built with
TypeScript 96%
Updated 1 weeks ago
Python
63%
Apache 2.0

otari

AI Development · Developer Tools

494

A self-hosted, OpenAI-compatible LLM gateway that puts one endpoint in front of 40+ providers, with virtual API keys, per-user budgets enforced before spend, and full usage tracking.

View details
81
Repo Health
88
Technical
77
Dependency
Built with
Python 63%
TypeScript 35%
Updated 1 weeks ago
TypeScript
90%
MIT

RelayPlane

AI Agents

203

An npm-native, drop-in LLM proxy for Node.js — swap in as your OpenAI/Anthropic base URL to get per-request cost tracking, task-aware routing, budget enforcement, and anomaly detection running locally, for free.

View details
73
Repo Health
68
Technical
74
Dependency
Built with
TypeScript 90%
Updated 2 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers