Reel Prompts

FreeLLMAPI Setup Guide: One Local Endpoint for Free LLM APIs

Install the open source router, add your own free-tier keys, and connect Claude Code or any OpenAI-compatible client.

  • Updated 26 November 2026
  • Prompts 5 ready to copy
  • Time About 20 to 40 minutes for the first install and a test request
  • Tools FreeLLMAPI, Docker or the desktop app, Claude Code or any OpenAI-compatible client

Or open it on Instagram.

On this page
  1. Quick answer: how to set up FreeLLMAPI
  2. Setup Builder
  3. Key takeaways
  4. What FreeLLMAPI is
  5. What you need
  6. Step 1: Install FreeLLMAPI on your machine
  7. Step 2: Add your own provider keys
  8. Step 3: Connect Claude Code or another client
  9. Step 4: Send a test request with model auto
  10. Step 5: Read the limits before you rely on it
  11. Get more prompt packs

DO THIS Follow these steps on the screen.

PROMPT Copy this text and paste it into the tool.

THEN What you should see next.

MAKE IT YOURS Swap the words in [BRACKETS].

These are the FreeLLMAPI setup steps from the Reel, expanded with the official commands and the limits the project itself publishes. Every command below is ready to copy.

Quick answer: how to set up FreeLLMAPI

FreeLLMAPI is an open source, self-hosted router. You add your own free-tier LLM API keys. It gives you one local endpoint that is compatible with the OpenAI API, plus an Anthropic-style messages endpoint so Claude Code can use that pool.

To set it up:

  1. Install it with the official Docker one-liner, Docker Compose, or the desktop app.
  2. Open http://localhost:3001, add your provider keys on the Keys page, and copy the unified API key from the header.
  3. Connect a client. For Claude Code, the official command is npx freellmapi setup-claude --url http://localhost:3001 --api-key [YOUR_UNIFIED_KEY].
  4. Send a test request with model set to auto.

This does not run Claude's own models. It is for personal experiments and learning, not production. Or use the Setup Builder to fill the commands for your install method and client.

Setup Builder

Pick how you want to install FreeLLMAPI and which client you will use. Tap Build my setup commands to get copy-ready install, connect and test commands filled in for your machine. Nothing you type is sent to a server. It stays in your browser.

Install method

Leave this as localhost unless you bound the router to another host on a trusted network.

Copy the key from the Keys page header in the dashboard. You can leave the placeholder and replace it later. Do not commit a real key to git.

Key takeaways

  • FreeLLMAPI is a local router, not a company that gives you a private 10 billion token budget.
  • You only get the free quota of the keys you add. The "about 10.1 billion tokens a month" figure is listed combined catalog capacity, checked on 26 Nov 2026.
  • Claude Code can connect. Claude's own models do not run through this pool.
  • Official install needs Docker (or the desktop app). Read the install script before you pipe it to bash if you prefer.
  • The official Claude Code command includes --url and --api-key. The Reel shows a shorter form.
  • The official disclaimer: use this for learning and experiments. Swap to a paid API before you ship anything real.
  • Keep the dashboard on localhost unless you are on a trusted network.

What FreeLLMAPI is

A Reel graphic of the tashfeenahmed/freellmapi GitHub repository card
From the Reel: FreeLLMAPI is an open source project on GitHub.

The project lives at github.com/tashfeenahmed/freellmapi and freellmapi.co. It is MIT-licensed. You run it on your own machine.

In plain terms, it does four useful things:

  • Stores the provider keys you add, encrypted at rest.
  • Exposes one OpenAI-compatible API at http://localhost:3001/v1.
  • Also exposes /v1/messages so Anthropic-style clients such as Claude Code can talk to the free-tier pool (not to Claude models).
  • Routes and fails over when a key hits a 429 or a 5xx error, and tracks per-key quota.
A Reel graphic of free model names including ChatGPT, Gemini, Groq, Mistral, Qwen, Kimi and GLM
From the Reel: free-tier models from the providers you add keys for, in one place.

As of the official docs checked on 26 Nov 2026, the catalog tracked about 87 providers, 736 model families, and 1,313 free endpoints, with roughly 10.1 billion tokens a month of listed combined free-tier capacity. Browse the live list at freellmapi.co/models. Those numbers change. They are not a promise of what one person will receive.

A Reel graphic that lists 87 providers with free plans and 1,313 free model endpoints
From the Reel: catalog counts at the time the video was made, not a personal quota.

Free installs use a monthly catalog snapshot. A model joins that snapshot 30 days after it lands in the live feed. A Premium live catalog is optional ($19 a year, or $49 once, according to the official site when this page was written). The router itself stays free and MIT-licensed either way.

A Reel graphic that shows a large monthly free token figure
From the Reel: the large token figure is listed catalog capacity, not your personal budget.

What you need

ToolYou use it toCost, honestly
Docker, or the FreeLLMAPI desktop appRun the local router and dashboardThe software is free. Docker Desktop and app stores have their own terms.
Free-tier keys from the providers you wantGive the router something to callEach company sets its own free limits. You create those keys yourself.
A unified API key from the dashboardPoint Claude Code, curl, or an OpenAI SDK at localhostCreated locally after install. Keep it private.
Claude Code or any OpenAI-compatible clientSend requests through the routerThe client you already use. Claude Code is not the same thing as Claude's paid API models.

Optional: Premium live catalog at the official price on freellmapi.co. You do not need it to try the setup.

Step 1: Install FreeLLMAPI on your machine

DO THIS

  1. Install Docker if you want the one-liner or Compose path. Or skip Docker and use the desktop app.
  2. Copy one of the official install commands below.
  3. Paste it into your terminal and run it.
  4. When it finishes, open http://localhost:3001 in your browser.
Official one-liner (Docker required)
# Prefer to read the script first: https://freellmapi.co/install.sh
curl -fsSL https://freellmapi.co/install.sh | bash

The official one-liner sets up ~/freellmapi, generates an encryption key, pulls the image, and starts the container. Re-running it is safe: your .env and encryption key are preserved, and the container updates to the latest image. You can override defaults with FREELLMAPI_DIR, PORT, or HOST_BIND.

Official Docker Compose (macOS or Linux)
git clone https://github.com/tashfeenahmed/freellmapi.git
cd freellmapi

# Generate an encryption key for at-rest key storage
ENCRYPTION_KEY="$(openssl rand -hex 32)"
printf "ENCRYPTION_KEY=%snPORT=3001n" "$ENCRYPTION_KEY" > .env

docker compose up -d

Windows PowerShell steps are in the official install docs. On Windows, the project says the easiest path is the signed Microsoft Store desktop app, which also updates itself. The .exe on GitHub Releases is the same app, unsigned. macOS builds are listed as arm64 (Apple Silicon) or x64 (Intel).

THEN

You should now be able to load the dashboard at http://localhost:3001. Next, you will add your own provider keys and copy the unified API key.

MAKE IT YOURS

If you already run Docker on a home lab or a Raspberry Pi, use Compose and keep the default bind on 127.0.0.1. Only set HOST_BIND=0.0.0.0 when you need another device on a trusted network to reach the dashboard. Do not put this on the public internet. The project is single-user and guarded mainly by the unified API key.

Step 2: Add your own provider keys

DO THIS

  1. Open http://localhost:3001.
  2. Go to the Keys page.
  3. Create a free-tier API key on each provider site you want to use, then add that key in the dashboard.
  4. Reorder the Fallback Chain if you have a preferred order.
  5. Copy the unified API key from the Keys page header. That is the key your client will use.

You have to create each company's free key yourself. The router cannot invent quota you do not have. Keys stay in a local SQLite database, encrypted at rest. Do not paste real keys into public chats, screenshots, or git.

THEN

You now have at least one upstream key and one local unified key. Next, you will point Claude Code or another client at the router.

MAKE IT YOURS

Start with one or two providers you already have accounts with, then add more if a daily cap is too tight. The official model list at freellmapi.co/models shows rate limits, context windows, and free-token budgets for each endpoint. Check a provider's terms before you send traffic through a proxy.

Step 3: Connect Claude Code or another client

A Reel graphic of a terminal and the short setup-claude command
From the Reel: the short command. The official docs also require –url and –api-key.

DO THIS

  1. Keep the dashboard running.
  2. Copy the official Claude Code command below, and replace the key placeholder.
  3. Paste it into your terminal and run it.
  4. If you use another client, set the base URL to http://localhost:3001/v1 and paste the unified key there instead.
Official Claude Code setup
npx freellmapi setup-claude --url http://localhost:3001 --api-key [YOUR_UNIFIED_KEY]

The Reel shows $ npx freellmapi setup-claude without the flags. Use the official command above so the client knows the URL and the key.

Other official helpers include npx freellmapi launch (Claude Code) and npx freellmapi launch-codex (Codex), which keep credentials out of config files. The project also lists setup paths for Cursor, Gemini CLI, OpenCode, Cline, Roo Code, Aider, and other OpenAI, Anthropic, Gemini, or Ollama compatible clients. See the official agent list.

THEN

Your client should now talk to the local router instead of a single provider URL. Next, send a short test request and confirm which model served it.

MAKE IT YOURS

If you already use Cursor, Codex, or another agent, do not guess a command. Copy it from the official agent docs linked above. For a generic OpenAI SDK, the base URL is http://localhost:3001/v1 and the model can be auto.

Step 4: Send a test request with model auto

A Reel graphic about automatic failover when a model limit is hit
From the Reel: if one free tier is rate limited, the router can fail over to the next model in your chain.

DO THIS

  1. Copy one of the test commands below.
  2. Replace [YOUR_UNIFIED_KEY] with the unified key from the dashboard.
  3. Run it.
  4. Confirm you got a reply, then check which model served it (X-Routed-Via in the Python example, or the dashboard analytics).
Python test (official style)
from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:3001/v1",
    api_key="[YOUR_UNIFIED_KEY]",
)

response = client.chat.completions.with_raw_response.create(
    model="auto",
    messages=[{"role": "user", "content": "Summarise the fall of Rome in one sentence."}],
)
completion = response.parse()
print(completion.choices[0].message.content)
print("Routed via:", response.headers.get("x-routed-via"))
curl test
curl http://localhost:3001/v1/chat/completions 
  -H "Authorization: Bearer [YOUR_UNIFIED_KEY]" 
  -H "Content-Type: application/json" 
  -d '{"model":"auto","messages":[{"role":"user","content":"Say hello in one short sentence."}]}'

model="auto" lets the router pick. Official docs also mention auto:fast, auto:smart, a profile, or a specific model id. Every response can carry an X-Routed-Via header with the provider and model that actually served the request.

THEN

If the test works, your setup is complete enough for personal experiments. If it fails, check that the container or desktop app is running, that at least one provider key was saved, and that the unified key is correct.

MAKE IT YOURS

Try a real task from your own work, such as summarising a local README, once the hello-world test passes. Watch how often a 429 appears later in the day. That is expected on stacked free tiers, not a broken install.

Step 5: Read the limits before you rely on it

A Reel graphic with honest limits: Claude models are not included, you add your own keys, and it is for learning and experiments
From the Reel: Claude's own models are not included, you add your own keys, and this is for learning and experiments.

DO THIS

  1. Read the official limits and disclaimer once, all the way through.
  2. Decide whether this router is only for practice, or whether a paid API is the right next step for a real product.
  3. Keep provider keys and the unified key private.

Official limits the project lists:

  • No frontier models.
  • Variable latency, and no SLA.
  • Quality can dip late in the day as top models hit daily caps, then reset at UTC midnight.
  • For personal experimentation and learning, not production.
  • If you build something real on top of it, swap in a paid API before you ship.
  • Your relationship with each upstream provider is still governed by the terms you accepted when you created that account.

THEN

You now have a local, OpenAI-compatible endpoint backed only by the free-tier keys you added, plus a clear picture of what it is not. Use the builder below if you want the commands filled in for your setup.

MAKE IT YOURS

Treat this as a learning lab. If a client project or a public app needs a stable model, budget for a paid API and keep this router for drafts, experiments, and practice.

Get more prompt packs

I add a new prompt pack with every Reel. Join the email list below and you get a mail when the next one is live. You can also see all packs on the AI Prompts hub, including stickman video prompts and the Claude AI Shorts team setup.

Official sources used for this page: the FreeLLMAPI README, the install guide, and freellmapi.co, checked on 26 Nov 2026. Catalog counts and prices can change.

Frequently asked questions

What is FreeLLMAPI?

FreeLLMAPI is an MIT-licensed, self-hosted router by tashfeenahmed. You add your own free-tier provider keys. It exposes one OpenAI-compatible API at http://localhost:3001/v1, and an Anthropic-compatible /v1/messages endpoint so tools such as Claude Code can use that free-tier pool. The official repo is github.com/tashfeenahmed/freellmapi and the site is freellmapi.co.

Does FreeLLMAPI run Claude's own models?

No. The project is a router in front of free-tier models from providers you add keys for. Claude Code can connect to that pool, but Claude's own models are not part of it.

Is FreeLLMAPI really free?

The software is MIT-licensed and you can run it at no cost. You still need to create each provider's free-tier key yourself, and you only get that provider's free quota. The catalog figure of about 10.1 billion tokens a month is listed combined free-tier capacity across the catalog, not a personal budget. A paid live catalog feed is optional at $19 a year or $49 once. Pricing can change, so check freellmapi.co.

How do you install FreeLLMAPI?

The official one-liner is curl -fsSL https://freellmapi.co/install.sh | bash and it needs Docker. You can also clone the repo and use Docker Compose, or install the desktop app from GitHub Releases. On Windows, the project recommends the Microsoft Store listing.

How do you connect Claude Code to FreeLLMAPI?

After the dashboard is running and you have a unified API key, the official command is npx freellmapi setup-claude --url http://localhost:3001 --api-key YOUR_UNIFIED_KEY. The Reel shows a shorter form of that command. The --url and --api-key flags are required in the official docs.

Is it safe to expose FreeLLMAPI on the internet?

No. The project is local-first and single-user. By default it binds to 127.0.0.1. Only bind it to 0.0.0.0 on a trusted local network, and never put the dashboard on the public internet.

Can I use this in production?

The official disclaimer says the project is for personal experimentation and learning, not production. If you build something real, swap in a paid API before you ship. Each upstream provider's terms still apply.

Liked this pack? Get the next one first.

Subscribe on YouTube Follow on Instagram My Udemy courses
Get new prompts by email
Scroll to Top