tashfeenahmed/freellmapi

▲ 641 stars today★ 45,125⑂ 6,148

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint.

About tashfeenahmed/freellmapi

tashfeenahmed/freellmapi is an open-source project on GitHub, mainly written in TypeScript. 7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. All behind one /v1 endpoint, plus any custom OpenAI-compatible endpoint. It currently holds 45,125 stars and 6,148 forks with 39 open issues, and was last pushed on 2026-10-31 (repository created 2026-04-21).

Project Overview

AI Homed tracks it on the Today's Trending board, currently at rank #13 with 641 new stars today.

GitHub Repository Details

Repository tashfeenahmed/freellmapi · default branch main · size 23700 KB · watchers 245 · source: GitHub REST API and repository README

README

FreeLLMAPI

7.4 billion tokens per month. 34 free LLM providers. 635 free model endpoints. One OpenAI-compatible endpoint.

Aggregate free tiers from dozens of providers, plus custom OpenAI-compatible chat, embedding, image, and audio endpoints, behind a single /v1 API. Keys are stored encrypted. A router picks the best available model for each request, falls over to the next provider when one is rate-limited, and tracks per-key usage so you stay under every free-tier cap.

CI GitHub stars License: MIT PRs Welcome Docker image Ask DeepWiki

freellmapi.co · browse the full catalog: 474 model families, 635 free endpoints

English · 简体中文 · Русский · O'zbekcha

https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Download for macOS https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Download for Windows https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Self-host with Docker https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Get it on Google Play https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Download on the App Store

FreeLLMAPI dashboard — Models page with the monthly token budget

Your router updates its own model catalog from a signed feed: new free models, quota changes, and compatibility fixes land without a git pull. Free installs get the monthly snapshot, so a model reaches them 30 days after it joins the live feed; premium routers get it the same day. Go live at freellmapi.co ($19/yr, cancel anytime).

---

Contents

Guides: Install & deploy · API reference · Clients & coding agents · Prompt compression · Architecture & internals · Documentation index · Contributor guide

Why this exists

Every serious AI lab now offers a free tier, a few million tokens a month, a few thousand requests a day. On its own each tier is a toy. Stacked together, they add up to roughly 7.4 billion tokens per month of working inference capacity, across 474 model families / 635 provider endpoints from small-and-fast to reasonably capable.

The problem is that stacking them by hand is painful: thirty-four different SDKs, thirty-four different rate limits, thirty-four places a request can fail. FreeLLMAPI collapses that into one OpenAI-compatible endpoint. Point any OpenAI client library at your local server, and it routes transparently across whichever providers you've added keys for.

And the free-tier landscape shifts weekly: providers launch models, retire them, and change quotas without notice. FreeLLMAPI tracks all of that for you. The router pulls a signed model catalog from freellmapi.co on its own, so your install keeps up without a git pull. See Premium (live catalog) for how fast it keeps up.

The free tier, stacked — ~7.4B tokens of free inference per month across 34 providers

Supported providers

https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Google
Google
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Groq
Groq
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Cerebras
Cerebras
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/OpenCode Zen
OpenCode Zen
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Mistral
Mistral
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/OpenRouter
OpenRouter
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Cloudflare
Cloudflare
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Cohere
Cohere
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Z.ai (Zhipu)
Z.ai (Zhipu)
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/NVIDIA
NVIDIA
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/HuggingFace
HuggingFace
ModelScope
Qwen3 · DeepSeek V4 · GLM-5 (needs Aliyun cn binding)

… and 22 more free providers

Plus a custom provider — point chat, embedding, image, or audio models at any OpenAI-compatible endpoint (llama.cpp, LM Studio, vLLM, a local Ollama, or a remote gateway) from the Keys page.

The full, always-current list lives at freellmapi.co/models with per-model rate limits, context windows, and free-token budgets.

Compatible CLIs & coding agents

https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Claude Code
Claude Code
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Codex CLI
Codex CLI
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Gemini CLI
Gemini CLI
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Cursor
Cursor
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Cline
Cline
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Roo Code
Roo Code
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/OpenCode
OpenCode
https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Aider
Aider

… plus Continue, Goose, Qwen Code, Kilo Code, Crush, Zed, JetBrains AI, DeepSeek Harness, MiMo Code, AtomCode, OpenClaw, Hermes Agent, Pi, Reasonix, ZCode and any OpenAI-compatible, Anthropic, Gemini or Ollama client

Most agents configure themselves with one command that reads your live catalog, backs up the existing config and merges into it:

npx freellmapi setup-claude --url http://localhost:3001 --api-key 

All supported agents and their setup commands → · Per-tool recipes, MCP server and URL tokens →

How it compares

Feature comparison against OpenRouter, LiteLLM, and Portkey

Based on public documentation, July 2026 — corrections welcome.

Features

Feature overview The scope is deliberately narrow — see what's not supported yet.

Quick start

One-liner (Docker required — sets up ~/freellmapi, generates an encryption key, pulls the image, and starts the container):

curl -fsSL https://freellmapi.co/install.sh | bash

Prefer to read before you pipe to bash? The script is here. Re-running it is safe: your .env (and encryption key) is preserved and the container updates to :latest.

Open http://localhost:3001, add your provider keys on the Keys page, reorder the Fallback Chain to taste, and grab your unified API key from the Keys page header. That unified key is what you point your OpenAI SDK at.

On Windows, the easiest path is the desktop .exe installer from Releases (below). On Android, see the experimental Termux guide.

Everything else — Docker Compose, local development, declarative startup config, production builds, LAN access, and backups — is in docs/en/install/01-install.md.

Desktop app

A native menu-bar app lives in desktop/: the entire router + dashboard running locally from your tray, with a glass popover showing live request stats.

FreeLLMAPI desktop app

Download from Releases — the macOS .dmg and the Windows .exe installer are attached to every release. No account or password to set up: the only credential you need is the unified API key from the tray popover. Build-from-source steps and where your data lives: docs/en/install/01-install.md#desktop-app.

For macOS 12 Monterey or later, choose arm64 (Apple Silicon) or x64 (Intel). Both Mac builds also include a ZIP download.

Works with OpenAI-compatible clients

Anything that can target an OpenAI-compatible base URL works: set it to http://localhost:3001/v1 with the unified key from the dashboard. Every generator supports --dry-run; npx freellmapi launch (Claude Code) and launch-codex (Codex) keep credentials out of config files entirely. The router also doubles as an MCP server your agents can introspect mid-session.

ChatGPT connects to the same local router through a private Secure MCP Tunnel. The ask_freellmapi MCP tool routes a ChatGPT-requested task through /v1/chat/completions and returns the answer with served-model, fallback, cache, execution, and token metadata. Base URL and bearer authentication live in the tunnel-client configuration; the default model is set with MCP_INFERENCE_DEFAULT_MODEL (auto when unset). No key belongs in Git or in the MCP URL. ChatGPT setup →

Provider keys can be managed from the terminal too, with a dashboard session token (FREELLMAPI_DASHBOARD_TOKEN or --token): npx freellmapi keys add|list|remove|test , where keys test re-checks stored keys. See cli/README.md.

FreeLLMAPI is local-first and single-user by design. Your provider keys stay in your SQLite database, encrypted at rest, and requests go from your machine to the upstream providers you enabled.

Languages

The dashboard ships in 60 languages (the desktop tray menu in 6). The UI auto-detects your browser/system language on first load and you can switch any time from ⋯ → Settings; the choice is remembered. Right-to-left languages (العربية, עברית, فارسی, اردو) flip the whole layout automatically, and only the active language's dictionary is loaded — the rest never touch your bandwidth.

https://github.com/tashfeenahmed/freellmapi/blob/HEAD/United States https://github.com/tashfeenahmed/freellmapi/blob/HEAD/China https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Spain https://github.com/tashfeenahmed/freellmapi/blob/HEAD/France https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Brazil https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Italy https://github.com/tashfeenahmed/freellmapi/blob/HEAD/India https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Saudi Arabia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Bangladesh https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Russia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Pakistan https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Indonesia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Germany https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Japan https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Kenya https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Türkiye https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Vietnam https://github.com/tashfeenahmed/freellmapi/blob/HEAD/South Korea https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Iran https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Thailand https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Poland https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Ukraine https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Myanmar https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Romania https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Netherlands https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Malaysia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Philippines https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Nigeria https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Ethiopia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Uzbekistan https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Azerbaijan https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Sri Lanka https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Nepal https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Cambodia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Greece https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Czechia https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Hungary https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Sweden https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Israel https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Denmark https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Finland https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Norway https://github.com/tashfeenahmed/freellmapi/blob/HEAD/Slovakia

GitHub Stars & Activity

45,125Stars
6,148Forks
39Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars45,125
Forks6,148
Open issues39
Primary languageTypeScript
LicenseMIT
Stars gained today641
Created2026-04-21
Last pushed2026-10-31

Trending History

Daily boardrank #13 · ▲ 641 stars
Weekly boardrank #12 · ▲ 4,531 stars
Monthly boardrank #16 · ▲ 15,157 stars

Related AI Projects

1

stablyai / orca

TypeScript★ 111,636⑂ 7,055▲ 792 stars
→
2

paperclipai / paperclip

TypeScript★ 109,379⑂ 18,115▲ 311 stars
→
3

thedotmack / claude-mem

TypeScript★ 107,595⑂ 9,451▲ 1,723 stars
→
4

THU-MAIC / OpenMAIC

TypeScript★ 42,128⑂ 6,511▲ 115 stars
→
5

Crosstalk-Solutions / project-nomad

TypeScript★ 41,459⑂ 4,211▲ 98 stars
→
6

Yeachan-Heo / oh-my-claudecode

TypeScript★ 40,458⑂ 3,619▲ 29 stars
→
7

CopilotKit / OpenBot

TypeScript★ 9,111⑂ 1,140▲ 610 stars
→
8

CodeWithCJ / SparkyFitness

TypeScript★ 6,629⑂ 451▲ 54 stars
→

More AI Rankings