freellmpool

v0.13.0
io.github.0xzr/freellmpool Checked 1 day ago Published 3 months ago

OpenAI-compatible MCP gateway cataloging 22 LLM providers, with routing, failover, and tools.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

free_llm_ask

Ask a free LLM (pooled across configured free providers, with automatic failover). Offload a self-contained subtask — drafting, summarizing, classifying, brainstorming, a quick lookup — to a free model. The reply tells you which provider/model actually served it.

ParameterTypeDescription
prompt *stringThe question or task.
max_tokensintegerMax output tokens (default 1024).
modelstringOptional model name or provider/model (e.g. groq/llama-3.3-70b-versatile). Default: auto.
providerstringOptional provider id to restrict to (e.g. groq, cerebras).
routingstringHow to pick the model: agent (strongest healthy tier with quota spreading), quality (capability matched to prompt), spread (whole-pool breadth), fast (lowest latency), fair (provider balance), or auto…
systemstringOptional system instruction.
taskstringOptional task hint for quality routing; auto classifies locally.

free_llm_panel

Ask the SAME prompt to several different free models at once and get every answer back side by side - the agent-facing second-opinion surface. Great for cross-checking a fact, comparing approaches, or reducing single-model bias. Optionally have a strong model synthesize the best combined answer.

ParameterTypeDescription
prompt *stringThe question or task to ask every model.
max_tokensintegerMax output tokens per model (default 512).
nintegerHow many distinct models to ask (2-5, default 3).
routingstringHow to rank candidate panel models (default: quality).
synthesizebooleanIf true, a quality-routed model synthesizes the panel into one best answer.
systemstringOptional system instruction.

free_llm_second_opinion

Run the shared small-panel second-opinion flow. Same behavior as `free_llm_panel` — exposed as its own agent-facing tool so callers can declare their intent (a *second opinion*) without reasoning about the panel primitive. The panel size is bounded (2-5) and the per-model token budget is clamped.

ParameterTypeDescription
prompt *stringThe question or task to ask every model.
max_tokensintegerMax output tokens per model (default 512).
nintegerHow many distinct models to ask (2-5, default 3).
routingstringHow to rank candidate panel models (default: quality).
synthesizebooleanIf true, a quality-routed model synthesizes the panel into one best answer.
systemstringOptional system instruction.

free_llm_battle

Compare a prompt across a small bounded panel of free models and render the result as a Markdown comparison table. Bounded to a few models (2-5) — for the broader eligible-target stress test use `tokenmax`. Per-model failures stay visible in the rendered output rather than failing the whole call.

ParameterTypeDescription
prompt *stringThe question or task to compare across models.
max_tokensintegerMax output tokens per model (default 512).
nintegerHow many distinct models to ask (2-5, default 3).
routingstringHow to rank candidate panel models (default: quality).
synthesizebooleanIf true, a quality-routed model synthesizes the panel into one best answer.

free_llm_recipe

Run a bundled recipe end-to-end (e.g. `pr-review`, `second-opinion`, `repo-summary`). Recipes are bounded, role-driven, and pre-shaped — supply `name` plus whatever inputs the recipe declares. Missing recipe input or template variables return a tool error, never a traceback.

ParameterTypeDescription
name *stringRecipe name (e.g. `pr-review`, `second-opinion`, `repo-summary`).
inputstringOptional alias for `prompt` (recipe `input` template variable).
max_tokensintegerMax output tokens (default 1024 for text recipes; panel recipes honor recipe defaults).
opinionsintegerPanel size for panel-output recipes (2-5, default 3).
pathstringOptional glob for path-input recipes (e.g. `repo-summary --path 'src/**/*.py'`).
promptstringOptional inline text input (used for text-input recipes).
synthesizebooleanIf true, a quality-routed model synthesizes the panel into one best answer.
validation_outputstringOptional validation/test output for recipes that template it (e.g. `metaswarm-worker-review`).

free_llm_roles

List bundled ask-role presets (e.g. `coder`, `critic`, `summarizer`, `second-opinion`) with their routing mode, max-tokens, temperature, and recommended use. Pass `name` to get the full details for one role.

ParameterTypeDescription
namestringOptional role name to fetch a single role's details.

free_llm_tailnet_info

Show safe Tailscale Tailnet connection instructions for serving `freellmpool proxy` on another machine. Includes the local Tailnet IPv4, status, and OpenAI / Anthropic client env-var hints. Output NEVER contains a real local bearer token — it uses a `<proxy-key>` placeholder — and never leaks provider API keys. Degrades cleanly when `tailscale` is absent.

ParameterTypeDescription
portintegerOptional proxy port to include in setup hints (default 8080).

free_llm_quota_wise

Show local quota-wise status and headroom advice built from your locally tracked counters. Active mode, recommended mode, and per-provider used / limit / remaining. Output NEVER recommends account rotation or rate-limit bypass — it only suggests waiting for reset, lowering fan-out or token budget, or making an explicit paid choice outside the default flow.

tokenmax

🌈 TOKENMAX 🌈 — gloriously excessive: fan the SAME prompt out to automatically eligible ranked targets across configured providers (hard cap 256; a max, routing policy, or CLI wise mode may narrow the swarm), then YOU (the calling model) synthesize the single best answer from the returned responses. Maximum cross-checking. Tongue-in-cheek, but genuinely useful for hard questions. Call this tool DIRECTLY (your client receives live `🌈 TOKENMAXXING ▸ N/total` progress as each model answers) — do NOT shell out to the CLI, which hides that from the user. To let the human watch the fla…

ParameterTypeDescription
prompt *stringThe prompt to send to the selected eligible targets.
max_modelsintegerOptional cap that narrows the eligible ranked set (hard max 256).
max_tokensintegerMax output tokens per model (default 400).
systemstringOptional system instruction.

free_llm_route

Explain where a prompt WOULD be routed without spending a single token: the estimated difficulty and the ranked list of candidate models (with capability scores) for the chosen routing mode. Use it to understand or debug routing.

ParameterTypeDescription
prompt *stringThe prompt to analyze.
routingstringRouting mode to explain (default: the server's mode).
taskstringOptional task hint to explain.

free_llm_models

List the available free provider/model ids freellmpool can route to.

free_llm_quota

Show today's free-tier usage (UTC): per-provider request counts and daily-limit headroom, plus session totals and estimated cost avoided.

free_llm_stats

Show freellmpool's LIFETIME totals (persisted across restarts): tokens served free, requests, and estimated cost avoided vs Claude Opus 4.8 — the number that keeps growing.