Open Source Alternatives
  • Alternatives
  • Categories
    Categories by size882 projects
    • Developer Tools461
    • AI & Machine Learning404
    • Web Development196
    • Business & Productivity191
    • Communication & Collaboration126
    • Security & Monitoring126
    • IT Management123
    • Product & Project Management106
    • Cloud & Hosting105
    • Data & Analytics104
    Browse all 21 categoriesLLMOps & AI Tooling, Design & Creative and 9 more
  • Blog
  • Advertise
SearchNotion, Slack, password manager.../
Submit
Open Source Alternatives
  • Alternatives
    • Developer Tools461
    • AI & Machine Learning404
    • Web Development196
    • Business & Productivity191
    • Communication & Collaboration126
    • Security & Monitoring126
    • Browse all 21 categories
  • Blog
  • Advertise
Submit your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product

  • Categories
  • Tag
  • Advertise

Resources

  • Blog
  • Collection
  • Submit

Company

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap

Alternatives

  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
© 2026 Open Source Alternatives. All rights reserved.
Open SourceAlternatives
Home/Categories/AI & Machine Learning/freellmapi
icon of freellmapi

freellmapi

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

  • 38.2K stars
  • MIT
  • Active this week
  • Last commit 1 day ago

Last verified Oct 20, 2026

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

Visit websiteGitHub38.2K stars1-click deploy on Hostinger
image of freellmapi
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.

Read the full breakdownHide the full breakdownWho it is for, how it works, trade-offs, the quick start and the FAQ
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 · quick start

Quick start#

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#

OmniRoute

Alternative toOpenRouter

352-provider AI gateway with automatic fallback and token compression

  • 78,353 GitHub stars
  • MITLicence MIT

Litellm

Alternative toPortkey

Self-hosted AI gateway for 100+ LLMs in OpenAI format

  • 61,759 GitHub stars
  • CustomLicence MIT with enterprise directory carve-out

sub2api

Alternative toOpenRouter

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

  • 44,454 GitHub stars
  • LGPL-3.0Licence LGPL-3.0

Switchyard

Alternative toPortkey

LLM proxy with API translation and multi-backend routing

  • 3,413 GitHub stars
  • Apache-2.0Licence Apache-2.0

9Router

Alternative toOpenRouter

Smart AI Router with 3-Tier Fallback

  • 31,123 GitHub stars
  • MITLicence MIT

Bifrost

Alternative toPortkey

Open-source AI gateway with 23+ providers, failover, and MCP support.

  • 8,975 GitHub stars
  • Apache-2.0Licence Apache-2.0
by category

Open source tools in these categories#

404

AI & Machine Learning

freeCodeCamp, OpenClaw, REA (Reverse Engineer Anything)
78

APIs & Integration

n8n, Firecrawl, iptv
461

Developer Tools

REA (Reverse Engineer Anything), superpowers, Skills for Real Engineers
Hostinger

Run freellmapi on your own server

Hostinger sets freellmapi up as a one-click app on a VPS.

Deploy on Hostinger

Featured

Omnara

Alternative toCClaude Managed Agents

Open-source agent deployment API. Self-host or use Omnara Cloud.

  • 2,957 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents

Inbox Zero

Alternative toSuperhuman

AI email assistant that drafts replies and clears your inbox

  • 12,712 GitHub stars
  • AGPL-3.0Licence AGPL-3.0
  • #Email

rakazo

Alternative toGrok Bot

AI teammates you own: your keys, your model, your machine.

  • 4,904 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents
Feature your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Find open source alternatives to paid software

/
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Airtable to AITable
  • Muse to OpenClaw
  • GitHub Copilot to Cline
  • Datadog to Netdata
  • Microsoft Teams to Rocket.Chat
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Firebase to Supabase
  • 1Password to KeePassXC
  • Confluence to Docmost
  • Contentful to Strapi
  • Adobe Premiere Pro to Shotcut
  • ChatGPT to AnythingLLM
  • LangSmith to Langfuse
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Airtable to AITable
  • Muse to OpenClaw
  • GitHub Copilot to Cline
  • Datadog to Netdata
  • Microsoft Teams to Rocket.Chat
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Firebase to Supabase
  • 1Password to KeePassXC
  • Confluence to Docmost
  • Contentful to Strapi
  • Adobe Premiere Pro to Shotcut
  • ChatGPT to AnythingLLM
  • LangSmith to Langfuse