← Back to Leaderboard
Ftashfeenahmed

tashfeenahmed/freellmapi

Self-hosted LLM gateway for routing across free tiers and custom endpoints

Engineering Health (Methodology)
A+ · 100/100
Maintenance Activity
● Updated today
Latest Release
v0.16.62
Commercial License Check
MIT · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption25/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedAPICLI
Total Stars
★ 61,969
24h Growth
+161
7d Growth
+2,603
Forks
9,062

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

tashfeenahmed/freellmapi Star History (2026-04-20 - 2026-12-04) ALL-TIME STAR HISTORY (2026-04 – 2026-12) +62k in 228d · avg +272/day 65.4k 32.7k 0 2026-04-20: ★ 12026-05-09: ★ 8262026-05-23: ★ 4,4282026-06-06: ★ 7,8632026-06-20: ★ 10,7962026-07-04: ★ 14,6282026-07-18: ★ 15,8992026-08-01: ★ 17,0742026-08-15: ★ 18,1762026-08-29: ★ 21,8292026-09-12: ★ 25,3392026-09-26: ★ 28,6442026-10-10: ★ 32,6222026-10-24: ★ 40,7502026-11-07: ★ 48,7012026-11-21: ★ 56,2022026-12-04: ★ 61,969 ★ 62k 2026-04 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

FreeLLMAPI is a single-user, self-hosted inference gateway, not a model runtime. Its TypeScript monorepo separates the server, dashboard, CLI and desktop app into server/, client/, cli/ and desktop/, with a shared/ directory. Clients authenticate with a unified key; the router selects the highest-priority eligible model with a healthy key within its limits. Provider keys are encrypted at rest in SQLite and decrypted in memory for outbound calls. On an upstream 429 or 5xx, the router cools down the affected key and tries the next candidate in the chain.

The protocol adapters sit in front of the same router. The extension point is a custom OpenAI-compatible endpoint, which can point to a remote gateway or a separate local runtime such as llama.cpp, LM Studio, vLLM or Ollama. Model and quota metadata are maintained separately: the gateway verifies catalog downloads against a pinned Ed25519 key before applying updates to its local database, preserving user enablement choices and custom providers. The catalog service is not in the prompt or completion path.

Key Capabilities & Differentiators

The OpenAI-style API covers Chat Completions, Responses, legacy Completions, embeddings, model discovery, images, video, speech and transcription. Anthropic clients can use /v1/messages, Gemini clients get /v1beta surfaces, and opt-in Ollama emulation provides NDJSON chat and generation. Tool calls and structured output parameters are handled at the compatibility layer, but endpoint availability does not mean every upstream model implements every feature. The virtual fusion model fans out to multiple models in parallel, then sends their drafts to a judge model for synthesis.

The catalog lists 87 providers, 736 model families and 1,313 provider/model endpoints, including 1,137 chat and 68 embedding endpoints. Its roughly 10.1 billion monthly tokens represent aggregate listed free-tier capacity, not an allocation for one installation. Usable capacity depends on the keys, quotas and account eligibility available to that user. For example, the Apify media integrations in v0.16.57 use fixed presets and per-run caps, and require an eligible hard-capped Free account with sufficient credit.

Trade-offs & Limitations

Compared with calling the OpenAI API directly, FreeLLMAPI lets one client rotate through multiple providers and local backends without changing SDKs. In return, the operator must manage provider accounts, keys, quotas and fallback behavior. A successful fallback can change which model answers, and retries can add latency, so an automatically routed endpoint is a poor baseline for tests that require a fixed model. Free tiers have no SLA or frontier-model access, and stronger options can drop out as daily quotas are exhausted. fusion also consumes quota across multiple upstream calls rather than one.

Unlike a direct local runtime such as Ollama, this gateway does not itself run models. SQLite encryption protects stored keys at rest, but prompts still go to whichever remote providers serve them. The single-user design and loopback default make it a better personal tool than a shared public gateway. The router is MIT-licensed; provider terms remain separate. Free installations use a signed catalog snapshot delayed by 30 days, while Premium pays for the live feed, not dedicated model capacity or better service guarantees.

Hardware & Deployment Guide

The Docker Compose service uses ghcr.io/tashfeenahmed/freellmapi:latest, reads .env, runs with NODE_ENV=production and serves on port 3001, bound to localhost by default. The dashboard is at http://localhost:3001; add provider keys and configure the fallback chain there, then point an OpenAI client at http://localhost:3001/v1 with the unified key. Source builds require Node >=20.18.0 and <25.0.0, plus npm >=10.0.0. Keep the SQLite data and encryption key together in a protected backup. Windows and macOS desktop builds also bundle the local router and dashboard.

The gateway needs no GPU when it delegates inference to remote providers; size the Node service for concurrent requests and streams, and provision local inference backends separately. Self-hosting does not make remote providers or catalog refreshes offline. Compose also includes an opt-in Watchtower update path that requires the autoupdate profile and WATCHTOWER_TOKEN. In v0.16.56 the Playground gained reasoning controls for supported models and /v1/models gained an option to show only currently runnable models. v0.16.57 expanded eligible Apify video and image generation.

Routing: Per-key usage and health checks inform selection; a 429 or 5xx triggers cooldown and fallback.
Protocol coverage: OpenAI Chat Completions and Responses, Anthropic Messages, Gemini /v1beta and opt-in Ollama emulation.
Backend extension: Register custom OpenAI-compatible chat, embedding, image and audio endpoints alongside hosted providers.
Catalog integrity: A pinned Ed25519 key verifies catalog updates before they are applied; custom providers and enablement choices are preserved.
Multi-model inference: The virtual fusion model requests drafts in parallel and passes them to a judge model for synthesis.
Client onboarding: CLI configuration generators offer --dry-run, while launch and launch-codex keep credentials out of client config files.
Best For

Individual developers experimenting with coding assistants or comparing hosted and local models behind one client configuration.

Skip If

You need predictable model behavior, guaranteed capacity or latency, multi-tenant isolation, or prompts that must stay on-device while using remote providers.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releases · Newer release v0.16.62 (2026-12-03) shipped after this reviewMethodology

Quick Start & Installation

DockerSelf-HostedAPICLI
npx freellmapi setup-claude --url http://localhost:3001 --api-key <unified-key>

Comparison vs. Top LLMs & Inference Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
freellmapi ★62k+2.6kTypeScriptMITSelf-hosted LLM gateway for routing across free tiers and custom endpoints
bifrost10.2k+125GoApache-2.0Self-hosted Go gateway for routing and governing multi-provider LLM traffic
gpt-load7.2k+6GoMITSelf-hosted Go gateway for routing LLM traffic across providers and credentials
OmniRoute92.1k+1.5kTypeScriptMITSelf-hosted OpenAI-compatible gateway for multi-provider routing and fallback

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/tashfeenahmed/freellmapi.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

tashfeenahmed/freellmapi Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about freellmapi

How do I connect an existing OpenAI SDK client?

Set the SDK’s base URL to http://localhost:3001/v1 and use the unified API key from the dashboard, not an upstream provider key. Start with model="auto" to let the router choose an eligible backend. Use a specific model ID when evaluating model behavior so automatic selection does not confound the comparison.

Does the gateway need a GPU or dedicated VRAM?

No GPU is needed for the gateway when inference runs on remote providers. Size the Node service for concurrent requests and streams, and allow persistent storage for SQLite. If you connect a local inference server such as llama.cpp or vLLM, size that server separately for the chosen model and concurrency.

Does the MIT license make the free provider pool suitable for commercial self-hosting?

The gateway is MIT-licensed, but that license does not grant rights to upstream inference or override providers’ free-tier terms. The project is positioned for personal experimentation. Before commercial use, verify each enabled provider’s terms and data-handling requirements independently. Premium buys faster catalog updates, not inference credits or an SLA.

When is the direct OpenAI API a better choice?

Use a direct API when you want one provider’s model behavior, quotas and feature set to be explicit and prefer not to operate a gateway. Use FreeLLMAPI when switching among providers or mixing cloud and local backends is the point of the experiment. OpenAI-compatible request formats do not make routed models equivalent to OpenAI models.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining tashfeenahmed/freellmapi? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature tashfeenahmed/freellmapi on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare