OpenAltFinder

Best Free & Open Source Alternatives to Portkey

Compare 3 open-source Portkey alternatives including OmniRoute , UnoRouter and Experiential

If you're looking for the best open-source alternative to Portkey, OmniRoute is a strong place to start. If it doesn't quite fit your needs, there are plenty of other great options worth exploring, including UnoRouter and Experiential. We've ranked the top alternatives to help you compare your options and find the right fit.

#1OmniRoute

OmniRoute

Self-hosted AI gateway that sends Claude Code, Cursor and other coding tools through hundreds of providers with free-tier fallback and token compression.

OmniRoute is a self-hosted AI gateway that puts one OpenAI-, Claude-, Gemini- and Responses-API-compatible endpoint in front of several hundred model providers, 150+ of which carry free tiers. You install it with npm, Docker or the Electron desktop app, connect your own provider accounts (OAuth sign-in, API keys, local runtimes such as Ollama and LM Studio, or keyless public endpoints), then point Claude Code, Codex, Cursor, Cline, Continue, Aider, OpenCode or GitHub Copilot Chat at http://localhost:20128/v1. Requests are matched to your own providers from your machine, and keys, quotas, spend and health are managed in a single local dashboard.

Routing is the core feature. model: auto builds a live combo from the providers you connected, or you assemble your own chain from 22 strategies (priority, fill-first, weighted, cost-optimized, quota-weighted, reset-aware, context-relay and more) with four fallback tiers that run from subscription quota to API keys to cheap models to free tiers. Three resilience layers — a provider circuit breaker, per-key cooldown and per-model lockout — keep one dead key or rate-limited model from ending a session. A 12-engine compression pipeline (RTK plus Caveman by default) cuts eligible tool output and context by 15–95% while a preservation engine leaves code blocks, JSON, URLs and structured data untouched.

Beyond proxying, OmniRoute ships a CLI with more than 80 commands, a built-in MCP server (110 tools over stdio, HTTP or SSE), an A2A agent endpoint, webhooks and a semantic response cache. Provider credentials are encrypted with AES-256-GCM in a local SQLite database, prompts make no extra hop through a hosted service, and telemetry is off by default. Where OpenRouter, Portkey and Cloudflare AI Gateway are metered services between you and the model vendors, OmniRoute is MIT-licensed software you run yourself, and it can route through flat-rate subscriptions and free tiers that hosted gateways generally cannot.

Read more
#2UnoRouter

UnoRouter

Self-hostable frontend for an AI model gateway: model catalog, API keys, usage and a local-first chat client.

UnoRouter is the open-source (AGPL-3.0) web frontend of the UnoRouter AI gateway, published by the same project that runs unorouter.com. It is a Next.js 16 app with an Elysia backend-for-frontend that sits in front of a new-api fork aggregating 130+ upstream model providers, and it covers the parts of an OpenRouter-style service users actually touch: a model catalog with live pricing and price comparison, API keys, usage logs, credits and billing, gift cards, affiliate tracking and a status page.

It also ships a full chat client in the same UI, in the RisuAI/SillyTavern class: characters, lorebooks, presets, loadouts, Lua triggers, sandboxed JS plugins, group chats, peer-to-peer rooms, in-chat image generation and SillyTavern character-card import. Chat state lives in a single SQLocal/OPFS database inside the browser (one copy per device), so guests can use it and it keeps working offline; moving to another device is export and import. A third surface probes endpoints with nonce-tagged prompts to check whether a provider really serves the model it claims, and publishes public rankings from server-issued probes.

For self-hosting the repo ships a multi-stage Dockerfile (Bun build, distroless runtime) and ArgoCD-managed Kubernetes manifests. The frontend needs SYSTEM_ACCESS_TOKEN and a SESSION_SECRET of at least 32 characters; Turso/libSQL, Tavily and Runware keys are optional, and the database only holds the public model-tester rankings. The gateway it fronts is a separate new-api deployment, and the managed service at unorouter.com is the paid hosted option.

Read more
#3Experiential

Experiential

Open source AI gateway and router that exposes hosted, BYOK, local, and custom models through one OpenAI-compatible API.

Experiential is an open source gateway and router for AI agent workflows. It gives you one OpenAI-compatible API in front of hosted models, your own provider keys (BYOK), local models, and custom fine-tuned models, so agents and apps call a single endpoint instead of juggling provider SDKs. A setup wizard (pip install experiential, then exp) walks you through connecting providers, issuing keys, and setting a default spend budget, and a hosted version at platform.experientiallabs.ai serves the same API — OpenAI-compatible plus Anthropic Messages — if you don't want to run the gateway yourself.

Beyond proxying requests, Experiential acts as a control plane: you decide which users and agents can use which models, for which use cases, and how much they can spend. It collects OpenTelemetry traces from your agent traffic, and exp build uses those traces to simulate your workload and fit a custom router optimized for quality, speed, and cost. You can go a step further with exp optimize model, which fine-tunes an open source model on your traces via Thinking Machines' Tinker.

Compared to hosted routers like OpenRouter, Experiential is Apache-2.0 licensed and can run entirely on your own machine, so keys and prompts never have to leave your infrastructure. Compared to gateway platforms like Portkey or Cloudflare AI Gateway, it focuses on agent workflows — per-identity budgets, trace-driven routing, and turning production traffic into custom routers or fine-tuned models you own.

Read more

Frequently Asked Questions

Are there any open source alternatives to Portkey?

Yes, there are 3 open source alternatives to Portkey. Popular options include OmniRoute, UnoRouter, Experiential. These alternatives are free to use and many offer self-hosting options.

What is the best free alternative to Portkey?

The best free alternative to Portkey depends on your specific needs. OmniRoute is a popular choice with self-hosting capabilities. All alternatives listed here are open source and free to use.

Can I self-host an alternative to Portkey?

Yes, 3 of the alternatives listed here can be self-hosted, giving you complete control over your data and privacy.

Why should I switch from Portkey to an open source alternative?

Open source alternatives to Portkey offer several advantages: no vendor lock-in, complete data ownership, no subscription fees, the ability to self-host for privacy and security, and active community support. You can also customize the software to fit your specific needs.

Portkey

Portkey

Portkey is an AI gateway and observability platform for teams building LLM applications. It exposes 250+ models through one API and adds routing, caching, guardrails, rate limiting, and budget controls, alongside request tracing, cost analytics, and prompt management. The gateway is available as a hosted service with a free tier and paid team plans, and Portkey also publishes an open source gateway under the same brand.

Visit Portkey

Get the latest open source alternatives delivered weekly.
Discover tools that give you freedom from proprietary software.

People are looking for alternatives to...

Browse all →
Notion

Notion

Notion is an all-in-one AI-powered workspace that combines notes, tasks, wikis, databases, and project management tools into a unified platform. It enables teams and individuals to centralize information, automate repetitive workflows, and collaborate seamlessly—from simple docs to advanced knowledge bases and live project tracking.

32 alternatives
Discord

Discord

Discord is a free communication platform that lets people connect through text, voice, and video across customizable communities called “servers.” Originally popular among gamers, it has expanded into a hub for all kinds of groups—ranging from study clubs and fandoms to professional teams—thanks to features like topic-based channels, screen sharing, live streaming, and integrations with other apps. Its mix of casual chat and organized spaces makes it a versatile tool for both socializing and collaboration.

13 alternatives
1Password

1Password

1Password is a commercial password manager developed by AgileBits. It stores login credentials, credit card details, software licenses, secure notes, and other sensitive information in encrypted vaults protected by a master password and a Secret Key. The service is available on macOS, Windows, Linux, iOS, Android, and as browser extensions, with data syncing across devices through 1Password's cloud. Features include a built-in password generator, secure sharing of vaults between users, and Watchtower, which flags weak, reused, or compromised passwords. 1Password offers plans for individuals, families, and businesses, with shared vaults, role-based access controls, and admin tools for team management. It uses a zero-knowledge architecture with end-to-end AES-256 encryption, meaning data is encrypted on the user's device and 1Password cannot access the contents of stored vaults. Pricing follows a subscription model with monthly or annual billing; no free tier is available, though a trial period is offered.

10 alternatives
Google Analytics

Google Analytics

Google Analytics is a web analytics service by Google that tracks and reports website traffic. It helps businesses and individuals understand user behavior, measure performance, and optimize content by providing insights into visitor demographics, sources, and engagement patterns.

15 alternatives
Goodreads

Goodreads

Goodreads is Amazon's social cataloging platform for books, allowing users to track books they have read, are reading, or want to read. It offers reviews, recommendations, reading challenges, and community features for book enthusiasts.

4 alternatives
Jira

Jira

Jira is a proprietary project management and issue tracking tool by Atlassian, widely used for agile software development, sprint planning, and bug tracking.

18 alternatives
ChatGPT

ChatGPT

OpenAI's flagship conversational AI assistant, with chat, image generation, code execution, and plugins for general-purpose tasks.

7 alternatives
Claude Code

Claude Code

Anthropic's official CLI for running Claude in your terminal — agentic coding with file edits, bash, and tool use driven by the Claude API.

6 alternatives
Google Authenticator

Google Authenticator

Google Authenticator is a free mobile app developed by Google that provides two-factor authentication (2FA) to enhance account security. It generates time-based, one-time passcodes (TOTP) or counter-based codes (HOTP) that users enter along with their password when signing into supported services. By scanning a QR code or entering a setup key, users can link the app to their accounts, ensuring that even if a password is stolen, unauthorized access is far less likely without the corresponding code from the app. It works offline, making it both secure and convenient for protecting online accounts.

6 alternatives
TV Time

TV Time

TV Time is a mobile app for tracking TV shows and movies you watch. It lets you log episodes, discover new content, read reviews, and connect with other fans. Owned by Whip Media, it is one of the most popular media tracking apps with millions of users worldwide.

6 alternatives
Adobe Photoshop

Adobe Photoshop

Adobe Photoshop is the industry-standard image editing and graphic design software used by photographers, designers, and digital artists for photo manipulation, compositing, and digital painting. Part of the Adobe Creative Cloud suite.

9 alternatives
Adobe Premiere Pro

Adobe Premiere Pro

A professional video editing application by Adobe, widely used for film, TV, and web video production.

10 alternatives