Black Friday at Hostinger: 15% off yearly and longer plans with BFVPS15, until 6 Dec. See plans

Black Friday: 15% off hosting with BFVPS15

Open Source Alternatives
  • Alternatives
  • Categories
    Categories by size1,337 projects
    • Developer Tools684
    • AI & Machine Learning553
    • Business & Productivity330
    • Web Development220
    • Security & Monitoring204
    • Communication & Collaboration172
    • IT Management166
    • Design & Creative151
    • DevOps & CI/CD145
    • LLMOps & AI Tooling142
    Browse all 21 categoriesCloud & Hosting, Product & Project Management and 9 more
  • Blog
  • Advertise
SearchNotion, Slack, password manager.../
Submit
Open Source Alternatives
  • Alternatives
    • Developer Tools684
    • AI & Machine Learning553
    • Business & Productivity330
    • Web Development220
    • Security & Monitoring204
    • Communication & Collaboration172
    • 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

Add Open Source Alternatives as a preferred source on Google

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

  • 58.6K stars
  • MIT
  • Active this week
  • Last commit today

Last verified Nov 26, 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 websiteGitHub58.6K 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
ElectronReact
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

  • 90,315 GitHub stars
  • MITLicence MIT

Litellm

Alternative toPortkey

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

  • 63,835 GitHub stars
  • CustomLicence MIT with enterprise directory carve-out

sub2api

Alternative toOpenRouter

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

  • 46,662 GitHub stars
  • LGPL-3.0Licence LGPL-3.0

Switchyard

Alternative toPortkey

LLM proxy with API translation and multi-backend routing

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

9Router

Alternative toOpenRouter

AI gateway with 3-tier fallback and token compression for coders

  • 32,863 GitHub stars
  • MITLicence MIT

Manifest

Alternative toOpenRouter

Open source LLM gateway with auto-repair, fallback, and cost tracking

  • 7,654 GitHub stars
  • MITLicence MIT
by category

Open source tools in these categories#

553

AI & Machine Learning

REA (Reverse Engineer Anything), freeCodeCamp, OpenClaw
93

APIs & Integration

n8n, Firecrawl, iptv
684

Developer Tools

Skills for Real Engineers, REA (Reverse Engineer Anything), superpowers
Black Friday offerHostinger

Self-host freellmapi in 1 click

Keep it running 24/7, even when your laptop is off. Hostinger's 1-click template skips the server setup.

  1. 01

    Choose a plan

    Starts from $6.49/mo

  2. 02

    Apply

    15% off yearly and longer plans, until 6 Dec

  3. 03

    freellmapi deploys automatically

    Installed right after checkout

  4. 04

    Start building

    Focus on the app, not the server

Deploy on Hostinger

Sponsors

SnitchFeed

Live monitoring on LinkedIn, X, Reddit & more. Agentic social listening for startups.

Marketing & Growth

Windshift

Alternative toJira

Self-hosted work management for teams leaving Jira

  • 481 GitHub stars
  • AGPL-3.0Licence AGPL-3.0

Nuphos

Alternative toConductor

Agent workspace for teams running Claude Code or Codex

  • 802 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents
Advertise your product

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
  • Microsoft To Do to Super Productivity
  • Arc to Zen Browser
  • CapCut to Concat
  • Grok Bot to Rakazo
  • Superhuman to Inbox Zero
  • Discord to Stoat
  • Airtable to AITable
  • Datadog to SigNoz
  • Muse to OpenClaw
  • Railway to Coolify
  • GitHub Copilot to Cline
  • Confluence to Wiki.js
  • Microsoft Teams to Rocket.Chat
  • 1Password to KeePassXC
  • Zapier to n8n
  • Pinecone to Qdrant
  • Contentful to Strapi
  • Firebase to Supabase
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • Microsoft To Do to Super Productivity
  • Arc to Zen Browser
  • CapCut to Concat
  • Grok Bot to Rakazo
  • Superhuman to Inbox Zero
  • Discord to Stoat
  • Airtable to AITable
  • Datadog to SigNoz
  • Muse to OpenClaw
  • Railway to Coolify
  • GitHub Copilot to Cline
  • Confluence to Wiki.js
  • Microsoft Teams to Rocket.Chat
  • 1Password to KeePassXC
  • Zapier to n8n
  • Pinecone to Qdrant
  • Contentful to Strapi
  • Firebase to Supabase