Model Radar

v0.15.1
io.github.srclight/model-radar Checked 7 hours ago Published 13 days ago

Live model catalogs across 23 API providers and 4 subscription CLIs, ranked by latency.

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

list_providers

List all providers with status (configured/unconfigured, kind, model count). Call this first to see which providers you have API keys for, and which subscription CLIs (claude, grok, gemini, codex) are installed on PATH. No network requests — instant response.

list_models

List models in the catalog without pinging. Use when the user asks what models are available or to browse by tier/provider/free. Response includes model_id (the code name to use when inserting/configuring, e.g. run(prompt, model_id=...) or Cursor settings) and label (display only). Args: tier: Filter to exact tier (S+, S, A+, A, A-, B+, B, C) provider: Filter to provider key (nvidia, groq, cerebras, etc.) min_tier: Show this tier and above (e.g. "A" = A, A+, S, S+) free_only: If true, only list models marked as free (from API or :free/-free in id)

ParameterTypeDescription
free_onlyboolean
min_tier
provider
tier

scan

Ping models in parallel and return ranked results by latency. Use when you need live speed data or a ranked list. Pings all matching models, returns sorted fastest-first. Takes 2-10 seconds depending on filters. When verify=True, sends a real prompt to each "up" model and checks for non-empty content. Models that return empty/garbage are marked as BROKEN (distinct from ERROR or OVERLOADED). This catches models that ping as UP but are functionally dead. Verification results are cached across scans within the session. Args: tier: Filter to exact tier (S+, S, A+…

ParameterTypeDescription
configured_onlyboolean
free_onlyboolean
limitinteger
min_tier
provider
tier
verifyboolean
verify_prompt

get_fastest

Get the N fastest available models right now. Use when the user wants recommendations or "best/fastest/free" models. Pings configured providers and returns top N by latency. Use model_id from results as the code name when inserting or configuring (e.g. run(prompt, model_id=..., provider=...)). Example: get_fastest(free_only=True, min_tier="A", count=5) for "5 free A-or-better models". When verified=True, also sends a real prompt to each model to confirm it produces non-empty output. Models that ping as UP but return empty content are excluded. Args: min_tier: Minimum…

ParameterTypeDescription
countinteger
free_onlyboolean
include_paidboolean
min_tier
provider
verifiedboolean

provider_status

Check health of all configured providers by pinging one model from each. Returns per-provider latency and status. Useful for diagnosing which providers are currently responsive vs overloaded.

configure_key

Add or update a named API key. Does not delete other keys on this provider. Args: provider: Provider key (nvidia, groq, cerebras, minimax, …) api_key: The API key value key_id: Name for this key (e.g. coding-plan, paygo, work). Default 'default'. make_active: If true, this key is the one radar uses. If omitted, the first key stays active.

ParameterTypeDescription
api_key *string
provider *string
key_idstring
make_active

profile

Show spend lanes and local funded/spend_ok flags. No secrets. Lane A = never invoices. B = subscription CLI. C = can charge. Default picks use Lane A only. Lane C needs funded=true and (spend_ok or include_paid).

set_profile

Set local spend_ok / funded / login for a provider. Saved to the config file. spend_ok: allow unprompted paid picks (default false). funded: a paid call would work (card or credits). Not permission. login: how you signed up, e.g. github:youruser or google:you@example.com.

ParameterTypeDescription
provider *string
funded
login
spend_ok

still_free

Lane A sweep: identify which default-pool hosts still answer. Use this before a long batch or judging run. Pings up to 3 chat models per host in parallel so you get a small live set. speed=quality ranks by tier; speed=fast prefers small / flash / lite ids (Cloudflare 20B before a 120B that needs >10s). OpenRouter only pings :free ids. Cooled hosts are listed, not pinged. Returns completion_calls so you can see the quota cost. Args: ping: If false, list candidates only (zero completions). speed: Probe class — quality (default) or fast.

ParameterTypeDescription
pingboolean
speedstring

credits

Read leftover credits or quota where a public API exists. OpenRouter and Vercel AI Gateway: prepaid USD remaining. SiliconFlow: prepaid balance. Groq: remaining daily/minute rate limits (not dollars). Most other hosts have no credit API — those are omitted, not guessed.

ParameterTypeDescription
provider

evaluate

Ask a typed evaluation model (TypeSafe Jev) questions about some state. Jev never writes text. It returns P(yes) for boolean questions, a chosen option plus probabilities for choice questions, and a position on ordered levels for score questions. Several questions run in one request. Billed through Vercel AI Gateway (input tokens only); needs the vercel key. Question shapes (criteria describe options or levels): {"refunded": {"type": "boolean", "instructions": "Was a refund issued?"}} {"tone": {"type": "choice", "instructions": "Tone?", "criteria": {"calm": ".…

ParameterTypeDescription
questions *object
state *
model_idstring

refresh_models

Fetch latest model lists and replace each provider's catalog (add new ids, purge retired ones). Catalog GETs are free. A successful fetch discards that provider's previous list. An empty/failed fetch keeps the last snapshot. Use this to get the current catalog, then call scan() or get_fastest(). list_models() also refreshes any catalog older than an hour. Args: provider: Optional provider to refresh only (minimax, cerebras, ollama, …) run_ping: If true, run a ping test on up to ping_limit models after refreshing ping_limit: Max models to ping whe…

ParameterTypeDescription
ping_limitinteger
provider
run_pingboolean

run

Run a prompt on the fastest available model and return the response. Use when the user wants to execute a prompt. Picks the fastest responding model automatically (with optional fallback). Set free_only=True when the user asks for a free model only. Args: prompt: The user message to send system_prompt: Optional system prompt (e.g. "You are a Python expert") model_id: Specific model to use (skips scanning). Use list_models() to browse. provider: Limit to a specific provider (nvidia, groq, etc.) min_tier: Minimum quality tier when auto-se…

ParameterTypeDescription
prompt *string
free_onlyboolean
max_tokensinteger
min_tierstring
model_id
provider
system_prompt
temperaturenumber

benchmark

Quality-test models with 5 coding challenges and return pass/fail scores. Runs arithmetic, instruction following, code generation, code reasoning, and JSON output challenges. Catches models that are fast but hallucinate, ignore instructions, or produce garbled output. Without model_id, scans for the fastest models and benchmarks the top N. Args: model_id: Specific model to benchmark (optional) provider: Limit to a specific provider (nvidia, groq, etc.) min_tier: Minimum quality tier when auto-selecting (default "A") count: How many models…

ParameterTypeDescription
countinteger
min_tierstring
model_id
provider

ask

Run the same prompt on multiple models in parallel and return all responses. Use this for verification, consensus, and writing reviews. Pin subscription CLIs (claude, grok, gemini, codex) with model_ids or providers — they are never auto-picked, so a monthly plan is not spent by accident. Args: prompt: The question or task to send to all models system_prompt: Optional system prompt applied to all models count: How many models to query in parallel (default 3) min_tier: Minimum quality tier for model selection (default "A") provider: Li…

ParameterTypeDescription
prompt *string
countinteger
max_tokensinteger
min_tierstring
model_ids
provider
providers
system_prompt
temperaturenumber

recommend

Recommend a short diverse lineup for a job (no ping). Jobs: translate (EN/ZH and review), rewrite (scholarly prose), review (code implementations), code (general coding). Returns chat models only, at most one per provider. Subscription CLIs are omitted unless include_subscriptions=True (they spend a monthly plan). Args: job: translate | rewrite | review | code | dict count: How many models (default 6, max 12) include_subscriptions: Include claude/grok/agy/codex (default false) free_only: Only Lane A (never invoices) include_paid: I…

ParameterTypeDescription
countinteger
free_onlyboolean
include_paidboolean
include_subscriptionsboolean
jobstring

quality_probe

Time and score a few models on a fixed probe for a job. translate — EN→ZH one sentence (CJK present, no prompt echo) rewrite — one scholarly sentence (keep the sense of δικαιόω, 'declare righteous') review — spot a bare `return` in first_even() dict — five dictionary headwords (geography + covid, no echo) Omit model_ids to use recommend() for this job. Args: job: translate | rewrite | review | dict model_ids: Explicit models (provider/id or id) providers: One best model per named provider count: How many to p…

ParameterTypeDescription
countinteger
include_subscriptionsboolean
jobstring
model_ids
providers

batch_run

Run multiple prompts in parallel with bounded concurrency and auto-retry. For batch workloads: translation pipelines, data extraction, classification, content generation. Picks the fastest model and runs all prompts through it. Failed items are automatically retried on alternate models. Each prompt dict should have a "prompt" key and optional "system_prompt" (overrides the top-level system_prompt) and "metadata" keys for tracking. When results_file is set, each completed item is appended as a JSON line immediately. If interrupted, the file contains all completed…

ParameterTypeDescription
prompts *array
concurrencyinteger
free_onlyboolean
max_tokensinteger
min_tierstring
model_id
provider
results_file
retry_on_failboolean
system_prompt
temperaturenumber

judge

Rate a single item using N diverse judge models and return aggregate scores. Auto-selects judges spread across different providers for independence. Enforces structured output (CSV or JSON scores), retries on malformed responses, and computes inter-rater agreement metrics. Use this for evaluation tasks: rating translations, code quality, content accuracy, or any rubric-based assessment. Args: prompt: The evaluation prompt (describe what to rate and provide the content) rubric: List of scoring dimensions (e.g. ["accuracy", "naturalness", "completeness"…

ParameterTypeDescription
prompt *string
rubric *array
countinteger
exclude_model_ids
exclude_providers
free_onlyboolean
max_tokensinteger
min_tierstring
output_formatstring
scalestring
temperaturenumber

compare

Blind A/B comparison of two items judged by N models. When blind=True (default), randomizes which item is shown as A vs B to each judge independently, then de-randomizes scores. This prevents position bias where judges consistently favor the first item shown. Use for comparing translations, code solutions, summaries, or any pair of outputs where you want an objective preference. Args: item_a: First item to compare item_b: Second item to compare context: Optional context for the comparison (e.g. the original task) dimensions: Scoring di…

ParameterTypeDescription
item_a *string
item_b *string
blindboolean
context
dimensions
exclude_model_ids
exclude_providers
free_onlyboolean
judge_countinteger
max_tokensinteger
min_tierstring
scalestring
temperaturenumber

batch_judge

Run judge evaluations at scale on a list of items. Processes items with bounded concurrency using a shared pool of diverse judges. Returns per-item scores, summary statistics (mean, stdev, min, max per dimension), and error counts. Each item in the list should have a "prompt" key with the evaluation prompt, and an optional "metadata" key for tracking (e.g. language, entry ID). When results_file is set, each scored item is appended as a JSON line immediately after scoring. On interruption, the file contains all completed items. On resume (same results_file…

ParameterTypeDescription
items *array
rubric *array
concurrencyinteger
exclude_model_ids
exclude_providers
free_onlyboolean
judge_countinteger
max_tokensinteger
min_tierstring
output_formatstring
results_file
scalestring
temperaturenumber

get_workers

Get N verified-alive models across N distinct providers, ranked by tier then latency. The single most common pattern for translation pipelines and batch evaluation: "give me N working models from N different providers". Returns model_ids ready to use with run(model_id=...) or batch_run(model_id=...). Provider diversity is enforced: at most 1 model per provider. Models are verified alive by default (sends a real prompt to confirm non-empty output). Args: count: Number of workers to return (default 5) min_tier: Minimum quality tier (default "A")…

ParameterTypeDescription
countinteger
free_onlyboolean
min_tierstring
verifiedboolean

backtranslate_eval

Evaluate a translation via back-translation and gloss overlap. Translates the output back to the source language using a different model, then computes word-level gloss overlap with the original text. This is the most powerful non-circular quality metric for translation: original → translate → back-translate → overlap. Returns the back-translation, overlap score (0.0-1.0), matching/missing/extra glosses, and the model used for back-translation. Args: text: Original source-language text (e.g. "father, head of household") translation: The tran…

ParameterTypeDescription
source_lang *string
target_lang *string
text *string
translation *string
back_model_id
exclude_model_ids
exclude_providers
free_onlyboolean
max_tokensinteger
min_tierstring

setup_guide

Get setup instructions for adding free model providers. Without arguments, returns a prioritized list of all unconfigured providers with signup URLs, free tier details, and setup steps. With a provider argument, returns detailed instructions for that specific provider. Use this to help your user expand their model coverage. More providers means better fallback options and more models to choose from. Args: provider: Specific provider key to get instructions for (optional). Omit to see all unconfigured providers.

ParameterTypeDescription
provider

setup_workflow

Deterministic setup workflow: guide the host to get API keys installed. Run steps in order. Step 1: check/install Playwright (optional). Step 2: get list of remaining (unconfigured) providers — then prompt the user to choose which to set up. Step 3: pass that selection as provider_selection to get login instructions and where to save each key. Step 4: summary of where keys are stored (config path, configure_key tool, env vars). Many providers support GitHub SSO; the response marks them so the host can tell the user they may only need to click "Sign in with GitHu…

ParameterTypeDescription
step *integer
provider_selection

host_swap_instructions

Tell the host agent where to search the machine to swap in a model-radar model. Returns: (1) Where model-radar stores API keys. (2) OpenAI-compatible base_url and model_id for the given model (or a recommended min_tier model). (3) Per-app search locations for Cursor, Claude Code, Open Interpreter, OpenClaw — with paths for Linux, Mac, Windows, and WSL (e.g. ~/.cursor, /mnt/c/Users/<user>/.cursor). The host can search these paths and set base_url + model_id + API key so the app uses a free model from model-radar. Args: model_id: Specific model_id (e.g. ll…

ParameterTypeDescription
min_tier
model_id
provider

restart_server

Request the server to exit so a process manager can restart it (SSE only). When running model-radar with SSE, a process manager or wrapper can restart the server on exit. This tool exits the process with code 0 so the manager starts a fresh process (and loads any updated code/tools). The client must reconnect after the restart. Restart is allowed by default; set MODEL_RADAR_ALLOW_RESTART=0 to disable.

server_stats

Return when this server process started and how long it has been running. Use to answer questions like 'how fast did model-radar come up' or 'how long has the server been running'. started_at is set when the server process began (create_server was called); uptime_seconds is seconds since then.