← All work
03 / The strategist / tool / PersonalOpen source

freelm.

Free LLM API Gateway for Python & Node.js

01 / The idea

freelm is an open-source Python and Node.js gateway that pools free-tier LLM providers behind one fault-tolerant, OpenAI-compatible call.

freelm is an open-source client and local endpoint that pools nine free-tier LLM providers (Google AI Studio, Groq, OpenRouter, Cloudflare Workers AI, Mistral, NVIDIA NIM, Z.ai, Cohere and Cerebras trial credits) plus two keyless fallbacks behind one OpenAI-compatible call. Since 0.5 it races a slow provider against the next one (a hung provider costs about 6 s instead of a 60 s failure in the published simulation) and ranks providers by measured latency. Available on PyPI and npm.

02 / What matters
  • 01

    Combine Gemini, Groq, OpenRouter, Cloudflare Workers AI, Mistral, NIM, Z.ai and Cohere

  • 02

    Failover that races slow providers: 6.3 s instead of a 60 s failure (simulation, 2026-10-10)

  • 03

    Automatic Failover across keys and providers

  • 04

    Drop-in OpenAI API shim (`freelm.compat.OpenAI`)

  • 05

    Available for Python (PyPI) and Node.js/TypeScript (npm)

Next / Keep exploring

There’s more.

Have a challenge in this space?

Let’s talk about it ↗
Shihab portraying Goku in an anime-inspired costume, keeping his own facial identity
The other lives of Shihab

01/ 08

The pursuit of better.

Goku / Dragon Ball

A training arc never really ends.

Personal cosplay artwork. Same face. A different world.Enter the six-form training arc ↗
A little energy from the whole world.
1 of 8