Open Source Alternatives LogoOpen Source Alternatives
AlternativesBlogAdvertise
Open Source Alternatives LogoOpen Source Alternatives

Stay Updated

Subscribe to our newsletter for the latest news and updates about Alternatives

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product
  • Categories
  • Tag
  • Sign In
Resources
  • Blog
  • Collection
  • Submit
  • Advertise your tool
Company
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap
Alternatives
  • Superhuman
  • Notion
  • Slack
  • Linear
  • Airtable
  • All alternatives
Copyright © 2026 All Rights Reserved.
Home/Categories/AI & Machine Learning/freellmapi
icon of freellmapi

freellmapi

Open source alternative to OpenRouter, Vercel AI Gateway, Portkey, Braintrust Gateway and DMXAPI

Connect to 635 free LLM models across 34 providers with one OpenAI-compatible API key, automatic failover, smart routing, and encrypted key storage.

21.6K starsTypeScriptMITActive this week
Visit websiteGitHub repo
image of freellmapi
Contents
  1. 01Who freellmapi is for
  2. 02The problem it solves
  3. 03How it solves it
  4. 04Strengths and trade-offs
  5. 05freellmapi vs alternatives
  6. 06Install and self-host
  7. 07Tech stack
  8. 08FAQ
  9. 09Similar open-source tools
TL;DR

freellmapi is a self-hosted router that aggregates free inference tiers from 34 AI providers, covering 635 model endpoints and roughly 7.4 billion tokens per month, behind one OpenAI-compatible API key. It replaces commercial API gateways like OpenRouter and Portkey with a zero-cost, MIT-licensed alternative you run on your own hardware. Deploy with a single Docker command; the router handles failover, smart routing, and per-key token tracking automatically. Best for developers and AI engineers running personal experimentation workloads who want to avoid paid API bills.MIT · TypeScript · 21.6K stars · Active this week

who it's for

Who freellmapi is for#

Developers using AI coding agents on personal projects

FreeLLMAPI gives Claude Code, Codex CLI, Cline, Aider, and 12 other agents a free model pool to draw from. Setup generators configure the agent in one command, pointing it at localhost:3001 with the unified key. No credit card, no usage bill.

Skip if:

Skip if you need production SLA guarantees or multi-user isolation. The tool is designed for single-user personal use, and the repository explicitly scopes it to personal experimentation.

AI engineers comparing models across providers

The live catalog covers 474 model families across 34 providers. The admin dashboard playground lets you test prompts against any model in the pool. Per-key usage counters surface which provider is closest to its rate cap in real time.

Skip if:

Skip if your evaluation needs are commercial or team-wide. FreeLLMAPI aggregates free tiers only; paid-tier models are not in scope unless you add a custom OpenAI-compatible endpoint.

Indie developers building AI-powered apps on a budget

7.4 billion tokens per month across 635 endpoints is a meaningful inference budget for solo development. The router handles failover silently, so your app keeps working when one provider hits its rate limit. MIT license means you can ship a product built on it without licensing friction.

Skip if:

Skip if your application will serve multiple end users making concurrent requests. FreeLLMAPI is a single-user local router, not a multi-tenant API gateway.

the problem

The problem it solves#

Every major AI lab now offers a free inference tier: a few million tokens per month, a few thousand requests per day. The challenge is that stacking thirty-four of these tiers by hand is painful. Each provider has its own SDK, its own rate-limit policy, and its own failure mode. A single application needs thirty-four API keys, thirty-four error handlers, and thirty-four places a request can silently drop.

Beyond the integration cost, the free-tier landscape changes constantly. Providers launch models, retire them, and change quotas without notice. Keeping a hand-rolled aggregator in sync requires ongoing maintenance on top of the original engineering work. Most developers either limit themselves to one or two providers, accepting unnecessary cost ceilings, or take on the burden of a brittle multi-provider setup.

how freellmapi solves it

How it solves it#

OpenAI-compatible API across 635 free endpoints

A single /v1 endpoint accepts any OpenAI-compatible client: SDKs, coding agents, or direct HTTP. The router exposes chat completions, embeddings, image generation, audio, and the Responses API that Codex CLI requires. Anthropic SDK clients can use /v1/messages directly, and Gemini CLI speaks its native /v1beta wire.

Smart routing with six strategies and automatic failover

Live per-model speed, capability, and reliability scores rank the fallback chain for each request. On a 429 or 5xx, the router retries the next available model automatically, with cooldowns and key rotation to stay under every free-tier cap. Six configurable routing strategies let you bias toward speed, capability, or cost.

Self-updating signed model catalog

The router pulls a signed catalog from freellmapi.co twice daily. New models, quota changes, and provider-quirk fixes land without a git pull or container restart. Free installs receive the monthly snapshot (30-day delay per model); premium routers get updates the same day.

AES-256-GCM encrypted key storage

Provider API keys are AES-256-GCM encrypted in SQLite and decrypted in-memory per request. Your applications see only a single unified freellmapi bearer token. Bulk import, export, and scheduled health checks are available from the admin dashboard.

Fusion multi-model synthesis

Request the virtual fusion model and the router fans your prompt out to a panel of diverse free models in parallel, then a judge model synthesizes one answer from the drafts. Useful for tasks where consensus across multiple models improves output quality without additional cost.

Desktop app and coding agent setup generators

A native menu-bar app runs the full router locally on macOS and Windows. Setup generators like npx freellmapi setup-claude and setup-codex configure Claude Code, Codex CLI, Cline, Aider, and 12 other agents automatically, backing up your existing config before merging.

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • MIT licensed with zero routing overheadThe core router is MIT licensed and costs nothing to run. Unlike commercial gateways such as OpenRouter or Portkey, which charge subscription fees or per-token markups, FreeLLMAPI routes across your own provider keys with no middle-layer fee. The only cost is the compute for a roughly 40 MB RSS process.
  • 7.4 billion free tokens per month across 34 providersBy aggregating free tiers from 34 providers across 635 endpoints, FreeLLMAPI turns individually toy-sized quotas into a working inference budget. Google, Groq, Cerebras, Mistral, Cloudflare, and 29 more providers contribute to the pool, stacking what would otherwise be isolated limits.
  • Works with every OpenAI-compatible client and several native formatsAny tool that can target a base URL works: set it to http://localhost:3001/v1 with the unified key. The router also speaks the Anthropic Messages API wire format, the Gemini /v1beta format, and NDJSON for Ollama-compatible clients. No client-side code changes required for most integrations.
  • Strong community growth since April 202621,620 GitHub stars and 3,061 forks since the repository was created in April 2026. CI is active, PRs are welcome, and the project ships a Chinese-language README alongside the English one, indicating active international adoption.

Trade-offs

  • -Scoped to personal experimentation by designThe repository description explicitly states 'Personal experimentation only.' Teams running production workloads or multi-user applications should evaluate whether this scope boundary fits their requirements before depending on the router in a shared environment.
  • -Free installs receive model catalog updates with a 30-day delayFree installs receive the monthly model catalog snapshot, meaning a new model or quota change reaches them 30 days after it joins the live feed. Staying current requires a premium subscription at $19 per year or a $49 one-time lifetime purchase.
  • -No managed hosting: you own the reliabilityThere is no hosted option for the router itself. If your server goes down, routing stops. Commercial gateways like OpenRouter and Portkey operate with redundancy and SLA guarantees; FreeLLMAPI delegates reliability entirely to your own infrastructure and operations.
versus alternatives

freellmapi vs alternatives#

FreeLLMAPI vs OpenRouter

Both aggregate multiple LLM providers behind a single API endpoint. The core difference is hosting model: OpenRouter is a managed cloud service; FreeLLMAPI is self-hosted software you run on your own machine.

FeatureFreeLLMAPIOpenRouter
LicenseMITProprietary
Self-hostingYesNo
Provider keysYour ownPlatform-managed
Routing feeNonePer-token markup
Catalog updatesDaily (premium) / Monthly (free)Real-time

FreeLLMAPI is the better choice when you want data locality, zero routing overhead, and full control over which provider keys you use. OpenRouter is the better choice when you need a zero-config managed service with immediate access to paid models or when self-hosting is not practical.

FreeLLMAPI vs Portkey

Portkey is a commercial AI gateway targeting teams and production workloads, with multi-user access, observability, and an SLA-backed managed service. FreeLLMAPI is a single-user local router scoped to personal experimentation.

FeatureFreeLLMAPIPortkey
LicenseMITProprietary
Target userIndividual developersTeams, production
Multi-user accessNoYes
Core costFreePaid subscription
Managed reliabilitySelf-hostedSLA-backed

FreeLLMAPI wins on cost and data privacy for personal use. Portkey wins when you need team-level access controls, observability dashboards, or production reliability guarantees that a self-hosted single-user router cannot provide.

FreeLLMAPI vs Vercel AI Gateway

Vercel AI Gateway is a managed service tightly integrated with the Vercel deployment platform, designed for switching between LLM providers in Vercel-hosted applications.

FeatureFreeLLMAPIVercel AI Gateway
LicenseMITProprietary
Self-hostingYesNo
Platform dependencyNoneVercel ecosystem
Free tier focusYesModel-agnostic

FreeLLMAPI is the right pick for developers who host applications outside the Vercel ecosystem or who specifically want to aggregate free provider tiers at zero routing cost. Vercel AI Gateway is the better fit for Vercel-hosted projects where platform integration and developer experience matter more than data locality.

install · self-host

Install and self-host#

bash
Self-hosting uses Docker and takes one setup command to install.
```bash
curl -fsSL https://freellmapi.co/install.sh | bash
```
tech stack · detected from GitHub

What it's built on#

Languages
JavaScriptTypeScript
Frameworks
React
Tooling
esbuild
frequently asked

FAQ#

Is FreeLLMAPI free to use?

The core router is free and MIT licensed. You run it on your own hardware with your own provider API keys, which are also free. A premium subscription at $19 per year (or $49 one-time lifetime) unlocks same-day model catalog updates; free installs receive the monthly snapshot with a 30-day delay per model.

Which AI providers does FreeLLMAPI support?

FreeLLMAPI aggregates free tiers from 34 providers including Google, Groq, Cerebras, Mistral, Cloudflare, Cohere, NVIDIA, HuggingFace, and OpenRouter. The full list with per-model rate limits, context windows, and token budgets is at freellmapi.co/models. You can also add any OpenAI-compatible custom endpoint.

Can I use FreeLLMAPI with Claude Code or other coding agents?

Yes. FreeLLMAPI includes automated setup generators for Claude Code, Codex CLI, Cline, Roo Code, Continue, Aider, Goose, and Cursor, among others. The npx freellmapi setup-claude command configures Claude Code to use the local router in one step, backing up your existing config before merging.

Does FreeLLMAPI support the OpenAI API format?

Yes. The router exposes a full OpenAI-compatible /v1 endpoint: chat completions, embeddings, image generation, audio, and the Responses API. It also speaks the Anthropic Messages API wire format for Claude Code and the Anthropic SDK, and the Gemini /v1beta format for Gemini CLI.

How do I install FreeLLMAPI?

The fastest path is a one-liner: curl -fsSL https://freellmapi.co/install.sh | bash. It sets up a directory, generates an AES-256-GCM encryption key, pulls the Docker image, and starts the container on port 3001. Windows users can download the .exe installer from the GitHub Releases page; macOS has a native menu-bar app.

also worth a look

Similar open-source tools#

Switchyard

Switchyard

LLM proxy with API translation and multi-backend routing

2.6KPythonApache-2.0
rtk

rtk

CLI proxy that removes 89% of agent context noise on average

77.7KRustApache-2.0
9Router

9Router

Smart AI Router with 3-Tier Fallback

26.6KJavaScriptMIT
Apache APISIX

Apache APISIX

Cloud-native API gateway with dynamic routing and plugins

17KLuaApache-2.0
browser-use

browser-use

Python library giving any LLM full browser control, MIT licensed

111KPythonMIT
sub2api

sub2api

One API gateway for Claude, OpenAI, Gemini, and Grok subscriptions

39.8KGoLGPL-3.0

Repository

Stars
21.6K
Forks
3.1K
License
MIT
Latest
v0.9.0
Last commit
1 day ago
Last verified
Aug 29, 2026
Repo
tashfeenahmed/freellmapi ↗

Additional details

Language
TypeScript
Open issues
66
Contributors
64
First release
2026

Categories

AI & Machine LearningAPIs & IntegrationDeveloper Tools

Tags

LLMAI Coding AssistantSelf HostedDeveloper Tools