AI Tools: Free AI Models for Coding Agents & OpenCode
Use the best-performing free model across multiple tools. Ready-to-paste configs, updated after every benchmark.
Recommended Models for Coding Agents
Live benchmark recommendation for primary coding agents and fast auxiliary tasks.
NVIDIA: Nemotron 3.5 Super VL (free)
High context (≥ 64k), coding & reasoning for code generation and refactoring.
openrouter/nvidia/nemotron-3.5-super-vl:free
Baidu: ERNIE-5.5-Flash-Preview (free)
Ultra-fast response from an auxiliary fast model (OpenRouter fast_rag / Flash-Lite) for chat titles and summaries without burning your main model's RPM.
openrouter/baidu/ernie-5.5-flash-preview:free
OpenCode v2 (TUI & Desktop)
Just experimenting ($0)? Follow Step 1 (base OpenRouter / AI Studio Lite). Daily agent coding? Having at least US$10 in purchased OpenRouter credits unlocks 1,000 req/day (Steps 1 & 2).
Interactive Terminal Connection (/connect)
Connect and start coding in 2 minutes without touching any config files:
Open the terminal inside your project folder, run opencode, type /connect, choose your main provider (recommended: OpenRouter with US$10 in purchased credits for 1,000 req/day; NVIDIA NIM offers up to 40 RPM free prototyping for non-production use, and Google Free caps standard Flash at ~20 req/day / 5 RPM), select Add account and paste your API key.
Type /models in OpenCode, check FreeLLM Radar filtered by your provider to find a top-ranked model, select it by name and confirm the Default variant.
Verify the active model in the bottom bar and send a quick test prompt (e.g. read AGENTS.md) to confirm response and tok/s speed.
Visual Walkthrough · OpenCode v2.3.0
View all 12 steps
Quota Shield with opencode.jsonc
Save this clean config to delegate light tasks to a fast auxiliary model and prevent infinite loops:
{
"$schema": "https://opencode.ai/config.json",
"model": "openrouter/nvidia/nemotron-3.5-super-vl:free",
"small_model": "openrouter/baidu/ernie-5.5-flash-preview:free",
"compaction": {
"auto": true
},
"agents": {
"build": {
"steps": 50
},
"title": {
"model": "openrouter/baidu/ernie-5.5-flash-preview:free"
}
}
}
Troubleshooting • Model Not Listed
Model missing in /model? Register custom NVIDIA, OpenRouter, or Google models in opencode.jsonc
Recently released models (especially on NVIDIA NIM) may not appear yet in OpenCode's built-in catalog. Declare them under provider.<provider>.models in ~/.config/opencode/opencode.jsonc (or in your project root) using the exact Model ID from FreeLLM Radar:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"nvidia": {
"models": {
"nvidia/nemotron-3-ultra-550b-a55b": {
"name": "NVIDIA Nemotron 3 Ultra 550B (NIM)"
},
"mistralai/mistral-large-4-1t-a52b": {
"name": "Mistral Large 4 1T (NIM)"
}
}
}
}
}
Tip: Use provider keys nvidia, openrouter, or google matching the model's provider, then verify availability with: opencode models
Let your Agent or Script query the Ranking automatically
Connect your coding agent or scripts directly to live benchmark data:
1. Self-Config Prompt
Paste into OpenCode, Claude Code, Cline, Roo Code, Cursor, or Aider. The agent fetches recommendations.json and updates your config for the providers you already have connected:
Fetch the live free LLM ranking at https://freellmradar.com/api/v1/recommendations.json.
If you cannot fetch the URL successfully, STOP and ask me to paste the JSON manually — never guess or invent model IDs from memory.
Rules to configure my tool:
1. NEVER ask for, read secret files, or print the value of my API keys.
2. Before editing any file, check or ask me:
a) which tool I am using (OpenCode, Cline, Roo Code, Cursor, Aider);
b) which providers I already have authenticated (OpenRouter, Google, NVIDIA).
3. Select models by matching my connected providers against 'agent_roles' ('agent_roles.primary_coding_agent' and 'agent_roles.fast_small_model'), 'leaders_by_provider', and 'top_eligible' (warn if relying on Google Gemini Free since standard Flash models can drop to ~20 req/day and 5 RPM, making OpenRouter with US$10 in purchased credits the most viable daily option):
- OpenCode v2+: use 'opencode_model_id', keep built-in providers authenticated via '/connect' (NO 'apiKey' blocks in opencode.jsonc), and set '$schema', 'model', 'small_model', 'compaction.auto: true', 'agents.title.model' (prefer a fast auxiliary model from 'agent_roles.fast_small_model' to avoid spending the main model's RPM), and 'steps: 50' on 'agents.build'.
- OpenAI-Compatible tools (Cline/Roo/Cursor/Aider): use 'base_url' and 'native_id' from 'providers_connection' and the chosen model.
4. Show the proposed configuration first and ask whether to apply it to the current project, the global config (e.g., ~/.config/opencode/opencode.jsonc), or display only. Remind me to verify model IDs with '/models' in OpenCode.
The prompt instructs agents to check environment variable names only, never reading or printing API key values.
2. Public JSON API
Static JSON endpoints updated after every cycle (no key required, CORS enabled):
Clean recommendations: global leader, leaders by provider/vocation, native_id and base_url.
Provider catalog: free quotas (RPD/RPM), privacy policies and OpenAI-compatible endpoints.
Complete benchmark dataset with all tested models, latency bands and metrics.
curl -s https://freellmradar.com/api/v1/recommendations.json | jq .global_leader
import httpx
rec = httpx.get("https://freellmradar.com/api/v1/recommendations.json").json()
leader = rec["global_leader"] # native_id, base_url, api_key_env
3. MCP Connector
Register FreeLLM Radar via Model Context Protocol (MCP) so your agent can call get_best_free_models, get_free_provider_quotas, and get_agent_config_snippet:
{
"mcpServers": {
"freellm-radar": {
"command": "uv",
"args": ["run", "https://freellmradar.com/mcp/freellm_radar_mcp.py"]
}
}
}
4. OpenAI-Compatible Direct Parameters
Ready-to-paste values for Cline, Roo Code, Aider, or any OpenAI-compatible script: