Skip to content

llmbroker

Combine many free, rate-limited LLMs into one reliable model — with no premium subscription and no single point of failure. No heavyweight dependencies like LangChain.

Quick start

Install llmbroker. Free models are called with the providers' API keys — which keys you need and where to get them, llmbroker tells you itself:

llmbroker env freetier > .env   # a .env skeleton: each key, and above it where to get it

Fill in whichever are easy to get — one is enough — and call:

import llmbroker

broker = llmbroker.Broker()
print(broker.ask("Hello, how are you?").text)

That is the whole setup — no config file. Broker() brings up a curated pool of free models, reads keys from the environment (and from a .env in the working directory) and keeps the model list current by itself.

A key you never got breaks nothing: a model without one simply stays inactive. And when a model hits its rate limit, the broker cools it down and moves to the next — you get an answer rather than an error, for as long as one model is alive.

What it can do