DEDUPED Hot AI repos, turned into use cases Get 5 a day

How to add a local model server beside the free tiers with Freellmapi

Register llama.cpp, LM Studio, vLLM, or Ollama as a custom provider in the same router.

Authorization notice. Freellmapi is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA developer who runs a local model on their own hardware and wants it to share the same endpoint and fallback chain as cloud free tiers.

The problemLocal model servers and cloud free tiers each need separate client configuration, so switching between them breaks existing apps.

The outcomeLocal and cloud models sit behind one /v1 endpoint, and the router can fall over between them under the same chain rules.

What you need first

  • Node 20 or newer, or Docker for the one-liner install
  • API keys from one or more free-tier providers (for example Google, Groq, Cerebras, Mistral, OpenRouter)
  • A machine that can run the router on localhost:3001

Steps

  1. Start your local server (llama.cpp, LM Studio, vLLM, or Ollama) and note its OpenAI-compatible base URL.
  2. Install the router with curl -fsSL https://freellmapi.co/install.sh | bash or the local setup in docs/en/install/01-install.md.
  3. On the Keys page, add a custom provider with that base URL and select the chat, embedding, image, or audio models it serves.
  4. Reorder the Fallback Chain so the local model sits where you want it.
  5. Send one request with the local model name and confirm the response comes from your server.

Prompt for your agent

In the freellmapi repo (tashfeenahmed/freellmapi), add a custom OpenAI-compatible provider pointing at <local-server-url> on the Keys page and route one chat request to it. Expected output: a completion generated by the local model. Verify that the router logs the request under the custom provider and not a cloud provider.

Caveat. The README lists llama.cpp, LM Studio, vLLM, and Ollama as examples of custom endpoints, but the exact setup steps for each server are not in the README, so check their docs.

Share: X LinkedIn Hacker News Email Copy link

Disclaimer

Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page