Get live rankings, pricing, and compatibility data for the top 20 agentic coding models — cross-referenced from BenchLM benchmark API and OpenRouter models API.
| Field | Value |
|---|---|
| ---------- | ----------------------------------------------- |
| Identifier | top-coding-models |
| Version | 1.0.0 |
| Author | Wai Yan |
| Category | tooling |
| Installs | 0 |
| Rating | 0 / 5 (0 ratings) |
| License | MIT |
This skill fetches live data on the top 20 coding models from two authoritative sources:
It outputs a structured markdown table with model rankings, costs, capabilities, and IDE compatibility info for agentic coding tools like Claude Code, Cursor, Windsurf, Cline, OpenCode, and more.
ANTHROPIC_BASE_URL=https://openrouter.ai/api/v1openrouter in config--openai-api-base flag| Source | API Endpoint | Update Frequency |
|---|---|---|
| -------- | -------------- | ------------------ |
| BenchLM | https://benchlm.ai/api/data/leaderboard?category=coding | Daily |
| OpenRouter | https://openrouter.ai/api/v1/models | Real-time |
| Benchmark | Weight | Description |
|---|---|---|
| ----------- | -------- | ------------- |
| SWE-bench Pro | 50% | Real-world GitHub issue resolution |
| LiveCodeBench | 50% | Contamination-free competitive programming |
The skill is located at:
~/.config/opencode/skills/top-coding-models/scripts/fetch_models.py
python3 ~/.config/opencode/skills/top-coding-models/scripts/fetch_models.py
python3 ~/.config/opencode/skills/top-coding-models/scripts/fetch_models.py --json
python3 ~/.config/opencode/skills/top-coding-models/scripts/fetch_models.py --top=10
Choose Claude models when:
Choose OpenAI GPT-5.x models when:
Choose Google Gemini models when:
Choose xAI Grok models when:
Choose open-weight models (Qwen, GLM, DeepSeek) when:
https://benchlm.ai/api/data/leaderboard?category=codinghttps://openrouter.ai/api/v1/modelsThe script fetches from two APIs every run to ensure fresh data.
import urllib.request
BENCHMARKS_URL = "https://benchlm.ai/api/data/leaderboard?category=coding"
OPENROUTER_URL = "https://openrouter.ai/api/v1/models"
def fetch_json(url):
req = urllib.request.Request(url, headers={"User-Agent": "OpenCode-TopCodingModels/1.0"})
with urllib.request.urlopen(req) as resp:
return json.loads(resp.read())
Rules:
The script uses a fuzzy matching algorithm to link BenchLM model names to OpenRouter IDs.
OR_ID_HINTS = {
"claude opus 4.6": "anthropic/claude-opus-4.6",
"gpt-5.3 codex": "openai/gpt-5.3-codex",
"gemini 2.5 pro": "google/gemini-2.5-pro",
# ... 50+ mappings
}
Rules:
Prices are normalized to "per 1 million tokens" for easy comparison.
inp_1m = float(pricing.get('prompt', 0)) * 1_000_000
out_1m = float(pricing.get('completion', 0)) * 1_000_000
Rules:
Best for: Most agentic IDEs (Claude Code, Cursor, Windsurf)
Base URL: https://openrouter.ai/api/v1
Auth: Bearer <OPENROUTER_API_KEY>
Model ID: <from table above>
Best for: When you have direct API keys (Anthropic, OpenAI, Google)
Use provider's native SDK with model-specific endpoints
Best for: Enterprise setups with custom routing
Route through proxy that selects provider based on model ID
For selecting coding models, default to:
:free suffix on OpenRouter (qwen3-coder:free, minimax-m2.5:free)Recommended abstractions:
fetch_benchlm_rankings() — Get benchmark scoresfetch_openrouter_pricing() — Get live pricescross_reference_models() — Match and enrich dataformat_markdown_table() — Generate output| Example | Description |
|---|---|
| --------- | ------------- |
| Default run | python3 fetch_models.py — Top 20 with full table |
| JSON output | python3 fetch_models.py --json — Machine-readable |
| Top 10 | python3 fetch_models.py --top=10 — Focused list |
When applying this skill, produce:
Do not:
The task is done when:
Copyright (c) 2026 Wai Yan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
共 1 个版本