freellmpool
AGENTS.md119 starsChanged 6 months agoMITView on GitHub
Most agent frameworks and coding agents speak the OpenAI API. Because freellmpool proxy is an OpenAI-compatible endpoint, you can point them at it and they'll run on pooled free-tier inference — with failover when one provider rate-limits you mid-run (exactly when long agent loops tend to die). - Latest release: 0.13.0. GitHub and PyPI both provide 0.13.0, including the Hermes profile, freellmpool/spread routing, public /livez and /readyz, authenticated /v1/providers, /v1/models?ready=true, refreshed providers, Vercel AI Gateway support, and OpenCode registry-readiness hardening.…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Start the gateway once:
- Very specific: line 109
Use model alias quality in Hermes.
- Very specific: line 112
Use freellmpool/spread when whole-pool breadth matters more than capability.
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Using freellmpool as the free LLM backend for AI agents
Most agent frameworks and coding agents speak the OpenAI API. Because
freellmpool proxy is an OpenAI-compatible endpoint, you can point them at it
and they'll run on pooled free-tier inference — with failover when one provider
rate-limits you mid-run (exactly when long agent loops tend to die).
Release status
- Latest release: 0.13.0. GitHub and PyPI both provide 0.13.0, including
the Hermes profile,
freellmpool/spreadrouting, public/livezand/readyz, authenticated/v1/providers,/v1/models?ready=true, refreshed providers, Vercel AI Gateway support, and OpenCode registry-readiness hardening. Install it withpython -m pip install freellmpool. - Registry publication status: pending.
opencode-freellmpoolandopencode-freellmpool-tuiwere not published on npm as of 2026-08-29; use their local-file install paths.
Start the gateway once:
freellmpool proxy --port 8080
export OPENAI_BASE_URL=http://localhost:8080/v1
export OPENAI_API_KEY=anything # ignored by freellmpoolThen wire up your tool of choice.
Orchestrators can use /livez for liveness, /readyz for an
advisory local quota/cooldown snapshot, authenticated /v1/providers for
secret-free provider readiness, and /v1/models?ready=true for ready targets.
These endpoints do not probe upstream providers.
For structured setup, use profiles:
freellmpool profile list
freellmpool profile show opencode
freellmpool profile install opencode
freellmpool profile doctor opencode --dry-runfreellmpool code <agent> remains a compatibility shortcut that renders the
same profile quick-start. profile install <agent> is print-only and does not
edit third-party config files. The OpenCode plugin registers its provider and
six routing aliases through the runtime config hook without writing the user's
configuration.
OpenAI Python SDK / OpenAI Agents SDK
from openai import OpenAI
client = OpenAI() # reads OPENAI_BASE_URL + OPENAI_API_KEY
resp = client.chat.completions.create(
model="auto", # let freellmpool pick the least-used free provider
messages=[{"role": "user", "content": "Plan a 3-step refactor of foo.py"}],
)
print(resp.choices[0].message.content)See examples/agent_openai_sdk.py for a
runnable version.
Claude Code
Claude Code speaks the Anthropic Messages API, which freellmpool shims at
/v1/messages — so it can run on free models:
freellmpool proxy --port 8080
export ANTHROPIC_BASE_URL=http://localhost:8080
export ANTHROPIC_API_KEY=anything
claude # now on free modelsExperimental. Text and tool-use (the agentic file-editing loop) are translated; text-only requests stream incrementally, while tool requests remain buffered. Vision isn't yet supported. Free models are weaker than Claude — great for cheap iteration, not a full replacement.
freellmpool code claudeprints this.
OpenAI Codex CLI
Codex speaks the Responses API, which freellmpool shims at /v1/responses:
freellmpool proxy --port 8080
export OPENAI_BASE_URL=http://localhost:8080/v1
export OPENAI_API_KEY=anything
codex --config model_provider=openai # or set base URL in ~/.codex/config.tomlThe Responses shim sends text-only events incrementally in protocol order. Tool-calling and richer Responses requests remain on the buffered compatibility path, so they do not claim incremental delivery.
Hermes Agent (released in 0.12.0)
Hermes supports an OpenAI-compatible custom endpoint. The first-class profile
prints the supported config and never edits ~/.hermes/config.yaml:
freellmpool profile install hermes
freellmpool profile doctor hermes --dry-run
# Interactive equivalent: hermes model → Custom endpoint → http://localhost:8080/v1Use model alias quality in Hermes. For long OpenCode or other OpenAI-compatible
agent loops, start with freellmpool/agent: it stays in the strongest healthy
benchmark tier, then spreads quota and uses latency/health as tie-breakers.
Use freellmpool/spread when whole-pool breadth matters more than capability.
Metaswarm external-tools review
Metaswarm can use freellmpool as a review-only external tool. The integration
is in integrations/metaswarm: copy
freellmpool-review-adapter.sh into .metaswarm/adapters/freellmpool.sh, then
add it to .metaswarm/external-tools.yaml with roles review and
second_opinion.
The adapter is deliberately not an implementer. It reviews a worktree diff
against a spec/rubric, runs a configurable strong-model panel through
freellmpool, and emits a metaswarm-style JSON envelope. If no strong provider
key is configured (MISTRAL_API_KEY, NVIDIA_API_KEY, or OPENROUTER_API_KEY
by default), it returns error_type: "auth_missing" before any provider call.
The first-class profile is:
freellmpool profile show metaswarm
freellmpool profile doctor metaswarm --dry-runIt documents one free/cheap worker lane through the local proxy, one larger reviewer lane, Tailnet URL setup for remote agents, and Codex/Opus as explicit user-owned paid escalation/final-review tools. freellmpool does not select those paid lanes silently.
The copy-pastable setup path is:
freellmpool init --yes --agent metaswarm --tailnet
freellmpool profile install metaswarm
FREELLMPOOL_PROXY_KEY='<dedicated-tailnet-token>' freellmpool tailnet serve --port 8080
freellmpool profile doctor metaswarm --dry-runAgents and other noninteractive launchers must pass --api-key or set
FREELLMPOOL_PROXY_KEY; without an explicit key, tailnet serve exits 2 before
starting. Interactive terminals may omit the key to receive a session token
once on stderr. Dry runs print <session-token-printed-on-real-run>, never a
usable token.
Workflows that help agents
freellmpool rolesshows role presets (coder,critic,summarizer,grounded-reader,second-opinion, ...).freellmpool ask --role grounded-readerrequests faithful extraction, while explicit--task generalsuppresses automatic grounded-reading classification.freellmpool ask --role coder --second-opinioncan review an implementation plan before a long agent run.freellmpool battle "which prompt version is clearer?"compares model answers side by side.freellmpool recipe run metaswarm-worker-review --input worker.md --validation-output-file validation.txtreturns a structured review of a worker summary.freellmpool jobs add --recipe pr-review --input patch.diffqueues slow, quota-aware review work for foreground processing withfreellmpool jobs run. Completed recipe jobs create run records you can inspect withfreellmpool report list,freellmpool report last --markdown, andfreellmpool cost show <run-id>.
aider (AI pair programming in your terminal)
export OPENAI_API_BASE=http://localhost:8080/v1
export OPENAI_API_KEY=anything
aider --model openai/autoContinue / Cline / any "OpenAI-compatible" provider box
In the provider settings, set:
- Base URL:
http://localhost:8080/v1 - API key: anything
- Model:
auto, or pin one likegroq/openai/gpt-oss-120b
LangChain
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="http://localhost:8080/v1",
api_key="anything",
model="auto",
)
print(llm.invoke("Summarize the singleton pattern in one line.").content)Why this is nice for agents specifically
- Failover mid-run. A long agent loop that would otherwise die on a single
provider's
429transparently rolls to the next free pool. - More total throughput. Agents are token-hungry; pooling several free tiers multiplies your daily ceiling.
- One config. Point every tool at one base URL instead of juggling a different SDK and key per provider.
Heads up: free-tier models are smaller/faster than frontier models. They're great for triage, drafting, classification, and tool-routing steps; reach for a frontier model for the hardest reasoning.
freellmpoolis about making the cheap-and-plentiful path effortless, not replacing GPT-class models.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

