OpenCode Model Prices
Lists every OpenCode model with its prices per 1M tokens, for deciding what to use in Osaurus.
How it works
You provide
Osaurus asks for these each time it runs.
- Only models matching (optional)
Leave empty for every OpenCode model. Otherwise show only models whose id, name, or family contains this text, e.g. claude.
- Sort byA choiceOptional
How to order the list.
What happens
- Step 1: Build OpenCode price tableRuns code
Fetches the models.dev catalog, keeps the OpenCode provider, and builds a priced Markdown table.
You get
What it hands back when it's done.
- Models listedNumber
- OpenCode models and prices
Markdown table of the OpenCode models with their prices per 1M tokens, followed by a short notes line.
- Summary
One line: how many OpenCode models are listed and the price range.
What it can access
- Internet
- Connects to models.dev (worth a look)
- Code and commands
- Runs JavaScript in a sandbox
Generated by the Store from the shared file. Review access again in Osaurus before adding. How listings are checked
See access in detailSteps
Every step in the order it runs. Select one in the graph for a quick look; the full details, including any code, follow below it.
Fetches the models.dev catalog, keeps the OpenCode provider, and builds a priced Markdown table.
Network:
models.dev· Times out after 60sShow code · 222 linesHide code
function decode(s) { return String(s) .replace(/&/g, "&") .replace(/</g, "<") .replace(/>/g, ">") .replace(/"/g, '"') .replace(/�?39;/g, "'") .replace(/ /g, " "); } function textOf(html) { return decode(String(html).replace(/<[^>]*>/g, " ")).replace(/\s+/g, " ").trim(); } function attr(attrs, name) { const m = String(attrs).match(new RegExp(name + "=\"([^\"]*)\"", "i")); return m ? decode(m[1]) : null; } function numValue(raw) { if (raw === null || raw === undefined) return null; const t = String(raw).trim(); if (!t || t === "-" || t === "—" || t === "–") return null; const lower = t.toLowerCase().replace(/[$,\s]/g, ""); if (lower.indexOf("free") !== -1) return 0; const m = lower.match(/^([0-9]*\.?[0-9]+)([km])?$/); if (!m) return null; let n = Number(m[1]); if (!isFinite(n)) return null; if (m[2] === "k") n = n * 1000; else if (m[2] === "m") n = n * 1000000; return n; } function pricePair(raw) { const t = String(raw === null || raw === undefined ? "" : raw).trim(); if (!t || t === "-" || t === "—") return [null, null]; if (/free/i.test(t)) return [0, 0]; const parts = t.split(/[\/|·]|–|—|\s+/).map((s) => s.trim()).filter((s) => s.length); if (!parts.length) return [null, null]; if (parts.length === 1) { const n = numValue(parts[0]); return [n, n]; } return [numValue(parts[0]), numValue(parts[1])]; } function cellsOf(chunk) { const out = []; const re = /<t([hd])\b([^>]*)>([\s\S]*?)<\/t\1>/gi; let m; while ((m = re.exec(chunk)) !== null) { out.push({ tag: m[1].toLowerCase(), attrs: m[2], raw: m[3], sort: attr(m[2], "data-sort"), text: textOf(m[3]) }); } return out; } async function run(input, ctx) { const url = "https://models.dev/providers/opencode"; const res = await ctx.fetch(url, { headers: { accept: "text/html" } }); if (!res.ok) throw new Error("models.dev provider page returned HTTP " + res.status); const html = await res.text(); const tableStart = html.indexOf("<table"); const tableEnd = tableStart === -1 ? -1 : html.indexOf("</table>", tableStart); if (tableStart === -1 || tableEnd === -1) throw new Error("models.dev provider page has no model table"); const table = html.slice(tableStart, tableEnd); const chunks = table.split(/<tr\b/i).slice(1); let header = null; const rowsRaw = []; for (let i = 0; i < chunks.length; i++) { const chunk = chunks[i].split(/<\/tr>/i)[0]; const cells = cellsOf(chunk); if (!cells.length) continue; const joined = cells.map((c) => c.text.toLowerCase()).join(" | "); if (!header && /context|price|\$/.test(joined)) { header = cells; continue; } rowsRaw.push(cells); } if (!header) throw new Error("models.dev model table has no header row"); const cols = { id: -1, ctx: -1, maxOut: -1, inP: -1, outP: -1, price: -1 }; const flagCols = []; for (let i = 0; i < header.length; i++) { const h = header[i].text.toLowerCase(); const isPrice = h.indexOf("$") !== -1 || h.indexOf("price") !== -1 || h.indexOf("cost") !== -1; if (h.indexOf("context") !== -1) cols.ctx = i; else if (isPrice && h.indexOf("in") !== -1) cols.inP = i; else if (isPrice && h.indexOf("out") !== -1) cols.outP = i; else if (isPrice) cols.price = i; else if (h.indexOf("cache") !== -1) continue; else if (h.indexOf("out") !== -1) cols.maxOut = i; else if (h === "id" || h.indexOf("model id") !== -1 || h.indexOf("slug") !== -1) cols.id = i; else if (h.indexOf("reason") !== -1) flagCols.push({ at: i, label: "reasoning" }); else if (h.indexOf("tool") !== -1) flagCols.push({ at: i, label: "tools" }); else if (h.indexOf("vis") !== -1 || h.indexOf("image") !== -1) flagCols.push({ at: i, label: "sees images" }); else if (h.indexOf("attach") !== -1) flagCols.push({ at: i, label: "attachments" }); } const rawFilter = input.filter === null || input.filter === undefined ? "" : String(input.filter); const needle = rawFilter.trim().toLowerCase(); const all = []; const hays = []; for (let i = 0; i < rowsRaw.length; i++) { const cells = rowsRaw[i]; const first = cells[0] || { raw: "", text: "", sort: null }; const link = first.raw.match(/<a[^>]*>([\s\S]*?)<\/a>/i); const canonical = first.raw.match(/<span[^>]*class="[^"]*subtle[^"]*"[^>]*>([\s\S]*?)<\/span>/i); const name = link ? textOf(link[1]) : (first.sort || first.text); let id = cols.id >= 0 && cells[cols.id] ? (cells[cols.id].sort || cells[cols.id].text) : ""; const canon = canonical ? textOf(canonical[1]) : ""; if (!id && canon) id = canon; if (canon.indexOf("/") !== -1 && (!id || id.indexOf("/") !== -1)) id = canon.split("/").pop(); id = String(id || "").trim(); if (!id || !name) continue; const val = (idx) => (idx >= 0 && cells[idx] ? (cells[idx].sort !== null && cells[idx].sort !== "" ? cells[idx].sort : cells[idx].text) : null); const flags = []; for (let f = 0; f < flagCols.length; f++) { const v = String(val(flagCols[f].at) || "").toLowerCase(); if (v === "yes" || v === "true" || v === "1" || v.indexOf("✓") !== -1) flags.push(flagCols[f].label); } let inP = numValue(val(cols.inP)); let outP = numValue(val(cols.outP)); if (cols.price >= 0 && cells[cols.price]) { const cell = cells[cols.price]; const label = String(cell.text || ""); if (/[\/|·]|in\b/i.test(label)) { const pair = pricePair(label); if (inP === null) inP = pair[0]; if (outP === null) outP = pair[1]; } else { const single = numValue(cell.sort !== null && cell.sort !== "" ? cell.sort : label); if (inP === null) inP = single; if (outP === null) outP = single; } } if (inP === 0 && outP === 0) flags.push("free"); all.push({ id: id, name: name, ctx: numValue(val(cols.ctx)), maxOut: numValue(val(cols.maxOut)), inP: inP, outP: outP, flags: flags.join(", ") }); hays.push((name + " " + id + " " + canon).toLowerCase()); } if (!all.length) throw new Error("could not read any model row (" + rowsRaw.length + " rows on the page)"); ctx.log("read " + all.length + " OpenCode models from one models.dev page"); const rows = needle ? all.filter((r, i) => hays[i].indexOf(needle) !== -1) : all.slice(); const sortBy = (input.sort === null || input.sort === undefined || input.sort === "") ? "name" : String(input.sort); const byNum = (field, dir) => (a, b) => { const x = a[field]; const y = b[field]; if (x === null && y === null) return a.name.localeCompare(b.name); if (x === null) return 1; if (y === null) return -1; return dir * (x - y) || a.name.localeCompare(b.name); }; if (sortBy === "input price") rows.sort(byNum("inP", 1)); else if (sortBy === "output price") rows.sort(byNum("outP", 1)); else if (sortBy === "context window") rows.sort(byNum("ctx", -1)); else rows.sort((a, b) => a.name.localeCompare(b.name)); const money = (v) => { if (v === null || v === undefined) return "—"; const n = Number(v); if (!isFinite(n)) return "—"; if (n === 0) return "free"; const s = n >= 1 ? n.toFixed(2) : n.toFixed(3); return "$" + s.replace(/0+$/, "").replace(/\.$/, ""); }; const kfmt = (v) => { if (v === null || v === undefined) return "—"; const n = Number(v); if (!isFinite(n)) return "—"; return n >= 1000 ? Math.round(n / 1000) + "k" : String(n); }; const lines = ["| Model | ID | Context | Max out | In $/1M | Out $/1M | Flags |", "| --- | --- | --- | --- | --- | --- | --- |"]; for (let i = 0; i < rows.length; i++) { const r = rows[i]; lines.push("| " + [r.name, "`" + r.id + "`", kfmt(r.ctx), kfmt(r.maxOut), money(r.inP), money(r.outP), r.flags || "—"].join(" | ") + " |"); } const pricedIn = rows.filter((r) => r.inP !== null && isFinite(r.inP)); const pricedOut = rows.filter((r) => r.outP !== null && isFinite(r.outP)); const free = rows.filter((r) => r.inP === 0 && r.outP === 0).length; const spread = (arr, field) => { if (!arr.length) return null; let lo = arr[0][field]; let hi = arr[0][field]; for (let i = 0; i < arr.length; i++) { if (arr[i][field] < lo) lo = arr[i][field]; if (arr[i][field] > hi) hi = arr[i][field]; } return [lo, hi]; }; const inR = spread(pricedIn, "inP"); const outR = spread(pricedOut, "outP"); const notes = []; if (rows.length === 0) { notes.push("No OpenCode model matches \"" + rawFilter.trim() + "\"; " + all.length + " models are listed."); } else { notes.push(rows.length + " of " + all.length + " OpenCode models shown" + (needle ? " (matching \"" + rawFilter.trim() + "\")" : "") + (free ? ", " + free + " free" : "") + "."); } if (inR && outR) { notes.push("Input " + money(inR[0]) + "–" + money(inR[1]) + " and output " + money(outR[0]) + "–" + money(outR[1]) + " per 1M tokens."); } notes.push("Source: models.dev, OpenCode provider (USD per 1M tokens)."); const report = (rows.length ? lines.join("\n") + "\n\n" : "") + notes.join(" "); const summary = rows.length ? rows.length + " OpenCode models" + (inR && outR ? ", input " + money(inR[0]) + "–" + money(inR[1]) + " and output " + money(outR[0]) + "–" + money(outR[1]) + " per 1M tokens" : "") + "." : "No OpenCode models matched."; return { report: report, count: rows.length, summary: summary }; }Show data passed inHide data passed in
{ "sort": "{{input.sort}}", "filter": "{{input.filter}}" }
Inputs and outputs
Leave empty for every OpenCode model. Otherwise show only models whose id, name, or family contains this text, e.g. claude.
How to order the list.
One of: name, input price, output price, context window
Default: name
Returns
count
Markdown table of the OpenCode models with their prices per 1M tokens, followed by a short notes line.
One line: how many OpenCode models are listed and the price range.
Sample inputs
Included in the file by the author.
Narrow to Claude
{
"sort": "name",
"filter": "claude"
}Cheapest input first
{
"sort": "input price",
"filter": ""
}No match
{
"sort": "name",
"filter": "zzz-not-a-model"
}Access in detail
Read from the steps, not only from what the author declared.
Author
Signed by author. The signature matches the publisher's key. It does not guarantee that the listing is safe. Only the same key can publish new versions of this workflow.
- Author
- 0x18db…380F
- Key
0x18db6DA36c14918623F99465d08b1D8f6B82380F- First published
- Nov 18, 2026
File
The exact file Osaurus imports. Its hash and signature were checked on upload.
- Version
- 2
- Hash
sha256:54fde095021f152482de294e3cc94a68e00da627ce28c002e3d390d2ab5bac47- Size
- 14.1 KB
- Signature
- Matches the author's key
Show the JSONHide the JSON
{
"id": "17633CD3-F5FD-4496-8FCE-04F755716187",
"kind": "workflow",
"name": "OpenCode Model Prices",
"author": {
"address": "0x18db6DA36c14918623F99465d08b1D8f6B82380F",
"signature": "59e5e92d13192c845057fba40d6f67344d46df915aef8da7c9a4642899eb304043e8b541c7fc3831bb0efc0b0762bb82b21a36951a202e3ac6707fb5eb6c986e1b"
},
"format": "osaurus.template",
"summary": "Lists every OpenCode model with its prices per 1M tokens, for deciding what to use in Osaurus.",
"version": 2,
"workflow": {
"edges": [],
"nodes": [
{
"id": "list_models",
"code": {
"source": "function decode(s) {\n return String(s)\n .replace(/&/g, \"&\")\n .replace(/</g, \"<\")\n .replace(/>/g, \">\")\n .replace(/"/g, '\"')\n .replace(/�?39;/g, \"'\")\n .replace(/ /g, \" \");\n}\n\nfunction textOf(html) {\n return decode(String(html).replace(/<[^>]*>/g, \" \")).replace(/\\s+/g, \" \").trim();\n}\n\nfunction attr(attrs, name) {\n const m = String(attrs).match(new RegExp(name + \"=\\\"([^\\\"]*)\\\"\", \"i\"));\n return m ? decode(m[1]) : null;\n}\n\nfunction numValue(raw) {\n if (raw === null || raw === undefined) return null;\n const t = String(raw).trim();\n if (!t || t === \"-\" || t === \"—\" || t === \"–\") return null;\n const lower = t.toLowerCase().replace(/[$,\\s]/g, \"\");\n if (lower.indexOf(\"free\") !== -1) return 0;\n const m = lower.match(/^([0-9]*\\.?[0-9]+)([km])?$/);\n if (!m) return null;\n let n = Number(m[1]);\n if (!isFinite(n)) return null;\n if (m[2] === \"k\") n = n * 1000;\n else if (m[2] === \"m\") n = n * 1000000;\n return n;\n}\n\nfunction pricePair(raw) {\n const t = String(raw === null || raw === undefined ? \"\" : raw).trim();\n if (!t || t === \"-\" || t === \"—\") return [null, null];\n if (/free/i.test(t)) return [0, 0];\n const parts = t.split(/[\\/|·]|–|—|\\s+/).map((s) => s.trim()).filter((s) => s.length);\n if (!parts.length) return [null, null];\n if (parts.length === 1) {\n const n = numValue(parts[0]);\n return [n, n];\n }\n return [numValue(parts[0]), numValue(parts[1])];\n}\n\nfunction cellsOf(chunk) {\n const out = [];\n const re = /<t([hd])\\b([^>]*)>([\\s\\S]*?)<\\/t\\1>/gi;\n let m;\n while ((m = re.exec(chunk)) !== null) {\n out.push({ tag: m[1].toLowerCase(), attrs: m[2], raw: m[3], sort: attr(m[2], \"data-sort\"), text: textOf(m[3]) });\n }\n return out;\n}\n\nasync function run(input, ctx) {\n const url = \"https://models.dev/providers/opencode\";\n const res = await ctx.fetch(url, { headers: { accept: \"text/html\" } });\n if (!res.ok) throw new Error(\"models.dev provider page returned HTTP \" + res.status);\n const html = await res.text();\n\n const tableStart = html.indexOf(\"<table\");\n const tableEnd = tableStart === -1 ? -1 : html.indexOf(\"</table>\", tableStart);\n if (tableStart === -1 || tableEnd === -1) throw new Error(\"models.dev provider page has no model table\");\n const table = html.slice(tableStart, tableEnd);\n\n const chunks = table.split(/<tr\\b/i).slice(1);\n let header = null;\n const rowsRaw = [];\n for (let i = 0; i < chunks.length; i++) {\n const chunk = chunks[i].split(/<\\/tr>/i)[0];\n const cells = cellsOf(chunk);\n if (!cells.length) continue;\n const joined = cells.map((c) => c.text.toLowerCase()).join(\" | \");\n if (!header && /context|price|\\$/.test(joined)) { header = cells; continue; }\n rowsRaw.push(cells);\n }\n if (!header) throw new Error(\"models.dev model table has no header row\");\n\n const cols = { id: -1, ctx: -1, maxOut: -1, inP: -1, outP: -1, price: -1 };\n const flagCols = [];\n for (let i = 0; i < header.length; i++) {\n const h = header[i].text.toLowerCase();\n const isPrice = h.indexOf(\"$\") !== -1 || h.indexOf(\"price\") !== -1 || h.indexOf(\"cost\") !== -1;\n if (h.indexOf(\"context\") !== -1) cols.ctx = i;\n else if (isPrice && h.indexOf(\"in\") !== -1) cols.inP = i;\n else if (isPrice && h.indexOf(\"out\") !== -1) cols.outP = i;\n else if (isPrice) cols.price = i;\n else if (h.indexOf(\"cache\") !== -1) continue;\n else if (h.indexOf(\"out\") !== -1) cols.maxOut = i;\n else if (h === \"id\" || h.indexOf(\"model id\") !== -1 || h.indexOf(\"slug\") !== -1) cols.id = i;\n else if (h.indexOf(\"reason\") !== -1) flagCols.push({ at: i, label: \"reasoning\" });\n else if (h.indexOf(\"tool\") !== -1) flagCols.push({ at: i, label: \"tools\" });\n else if (h.indexOf(\"vis\") !== -1 || h.indexOf(\"image\") !== -1) flagCols.push({ at: i, label: \"sees images\" });\n else if (h.indexOf(\"attach\") !== -1) flagCols.push({ at: i, label: \"attachments\" });\n }\n\n const rawFilter = input.filter === null || input.filter === undefined ? \"\" : String(input.filter);\n const needle = rawFilter.trim().toLowerCase();\n const all = [];\n const hays = [];\n for (let i = 0; i < rowsRaw.length; i++) {\n const cells = rowsRaw[i];\n const first = cells[0] || { raw: \"\", text: \"\", sort: null };\n const link = first.raw.match(/<a[^>]*>([\\s\\S]*?)<\\/a>/i);\n const canonical = first.raw.match(/<span[^>]*class=\"[^\"]*subtle[^\"]*\"[^>]*>([\\s\\S]*?)<\\/span>/i);\n const name = link ? textOf(link[1]) : (first.sort || first.text);\n let id = cols.id >= 0 && cells[cols.id] ? (cells[cols.id].sort || cells[cols.id].text) : \"\";\n const canon = canonical ? textOf(canonical[1]) : \"\";\n if (!id && canon) id = canon;\n if (canon.indexOf(\"/\") !== -1 && (!id || id.indexOf(\"/\") !== -1)) id = canon.split(\"/\").pop();\n id = String(id || \"\").trim();\n if (!id || !name) continue;\n const val = (idx) => (idx >= 0 && cells[idx] ? (cells[idx].sort !== null && cells[idx].sort !== \"\" ? cells[idx].sort : cells[idx].text) : null);\n const flags = [];\n for (let f = 0; f < flagCols.length; f++) {\n const v = String(val(flagCols[f].at) || \"\").toLowerCase();\n if (v === \"yes\" || v === \"true\" || v === \"1\" || v.indexOf(\"✓\") !== -1) flags.push(flagCols[f].label);\n }\n let inP = numValue(val(cols.inP));\n let outP = numValue(val(cols.outP));\n if (cols.price >= 0 && cells[cols.price]) {\n const cell = cells[cols.price];\n const label = String(cell.text || \"\");\n if (/[\\/|·]|in\\b/i.test(label)) {\n const pair = pricePair(label);\n if (inP === null) inP = pair[0];\n if (outP === null) outP = pair[1];\n } else {\n const single = numValue(cell.sort !== null && cell.sort !== \"\" ? cell.sort : label);\n if (inP === null) inP = single;\n if (outP === null) outP = single;\n }\n }\n if (inP === 0 && outP === 0) flags.push(\"free\");\n all.push({\n id: id,\n name: name,\n ctx: numValue(val(cols.ctx)),\n maxOut: numValue(val(cols.maxOut)),\n inP: inP,\n outP: outP,\n flags: flags.join(\", \")\n });\n hays.push((name + \" \" + id + \" \" + canon).toLowerCase());\n }\n if (!all.length) throw new Error(\"could not read any model row (\" + rowsRaw.length + \" rows on the page)\");\n ctx.log(\"read \" + all.length + \" OpenCode models from one models.dev page\");\n\n const rows = needle ? all.filter((r, i) => hays[i].indexOf(needle) !== -1) : all.slice();\n\n const sortBy = (input.sort === null || input.sort === undefined || input.sort === \"\") ? \"name\" : String(input.sort);\n const byNum = (field, dir) => (a, b) => {\n const x = a[field];\n const y = b[field];\n if (x === null && y === null) return a.name.localeCompare(b.name);\n if (x === null) return 1;\n if (y === null) return -1;\n return dir * (x - y) || a.name.localeCompare(b.name);\n };\n if (sortBy === \"input price\") rows.sort(byNum(\"inP\", 1));\n else if (sortBy === \"output price\") rows.sort(byNum(\"outP\", 1));\n else if (sortBy === \"context window\") rows.sort(byNum(\"ctx\", -1));\n else rows.sort((a, b) => a.name.localeCompare(b.name));\n\n const money = (v) => {\n if (v === null || v === undefined) return \"—\";\n const n = Number(v);\n if (!isFinite(n)) return \"—\";\n if (n === 0) return \"free\";\n const s = n >= 1 ? n.toFixed(2) : n.toFixed(3);\n return \"$\" + s.replace(/0+$/, \"\").replace(/\\.$/, \"\");\n };\n const kfmt = (v) => {\n if (v === null || v === undefined) return \"—\";\n const n = Number(v);\n if (!isFinite(n)) return \"—\";\n return n >= 1000 ? Math.round(n / 1000) + \"k\" : String(n);\n };\n\n const lines = [\"| Model | ID | Context | Max out | In $/1M | Out $/1M | Flags |\", \"| --- | --- | --- | --- | --- | --- | --- |\"];\n for (let i = 0; i < rows.length; i++) {\n const r = rows[i];\n lines.push(\"| \" + [r.name, \"`\" + r.id + \"`\", kfmt(r.ctx), kfmt(r.maxOut), money(r.inP), money(r.outP), r.flags || \"—\"].join(\" | \") + \" |\");\n }\n\n const pricedIn = rows.filter((r) => r.inP !== null && isFinite(r.inP));\n const pricedOut = rows.filter((r) => r.outP !== null && isFinite(r.outP));\n const free = rows.filter((r) => r.inP === 0 && r.outP === 0).length;\n const spread = (arr, field) => {\n if (!arr.length) return null;\n let lo = arr[0][field];\n let hi = arr[0][field];\n for (let i = 0; i < arr.length; i++) {\n if (arr[i][field] < lo) lo = arr[i][field];\n if (arr[i][field] > hi) hi = arr[i][field];\n }\n return [lo, hi];\n };\n const inR = spread(pricedIn, \"inP\");\n const outR = spread(pricedOut, \"outP\");\n\n const notes = [];\n if (rows.length === 0) {\n notes.push(\"No OpenCode model matches \\\"\" + rawFilter.trim() + \"\\\"; \" + all.length + \" models are listed.\");\n } else {\n notes.push(rows.length + \" of \" + all.length + \" OpenCode models shown\" + (needle ? \" (matching \\\"\" + rawFilter.trim() + \"\\\")\" : \"\") + (free ? \", \" + free + \" free\" : \"\") + \".\");\n }\n if (inR && outR) {\n notes.push(\"Input \" + money(inR[0]) + \"–\" + money(inR[1]) + \" and output \" + money(outR[0]) + \"–\" + money(outR[1]) + \" per 1M tokens.\");\n }\n notes.push(\"Source: models.dev, OpenCode provider (USD per 1M tokens).\");\n\n const report = (rows.length ? lines.join(\"\\n\") + \"\\n\\n\" : \"\") + notes.join(\" \");\n const summary = rows.length\n ? rows.length + \" OpenCode models\" + (inR && outR ? \", input \" + money(inR[0]) + \"–\" + money(inR[1]) + \" and output \" + money(outR[0]) + \"–\" + money(outR[1]) + \" per 1M tokens\" : \"\") + \".\"\n : \"No OpenCode models matched.\";\n\n return { report: report, count: rows.length, summary: summary };\n}",
"network": [
"models.dev"
],
"secrets": [],
"timeout": 60
},
"kind": "code",
"name": "Build OpenCode price table",
"input": {
"sort": "{{input.sort}}",
"filter": "{{input.filter}}"
},
"retry": {
"max_attempts": 2,
"backoff_seconds": 2
},
"intent": "Fetches the models.dev catalog, keeps the OpenCode provider, and builds a priced Markdown table.",
"timeout": 60,
"output_schema": {
"type": "object",
"required": [
"report",
"count",
"summary"
],
"properties": {
"count": {
"type": "integer"
},
"report": {
"type": "string"
},
"summary": {
"type": "string"
}
},
"additionalProperties": false
}
}
],
"output": {
"count": "{{nodes.list_models.output.count}}",
"report": "{{nodes.list_models.output.report}}",
"summary": "{{nodes.list_models.output.summary}}"
},
"secrets": [],
"examples": [
{
"name": "Narrow to Claude",
"input": {
"sort": "name",
"filter": "claude"
}
},
{
"name": "Cheapest input first",
"input": {
"sort": "input price",
"filter": ""
}
},
{
"name": "No match",
"input": {
"sort": "name",
"filter": "zzz-not-a-model"
}
}
],
"model_slots": [],
"input_schema": {
"type": "object",
"x-order": [
"filter",
"sort"
],
"required": [],
"properties": {
"sort": {
"enum": [
"name",
"input price",
"output price",
"context window"
],
"type": "string",
"title": "Sort by",
"default": "name",
"description": "How to order the list."
},
"filter": {
"type": "string",
"title": "Only models matching (optional)",
"description": "Leave empty for every OpenCode model. Otherwise show only models whose id, name, or family contains this text, e.g. claude."
}
},
"additionalProperties": false
},
"output_schema": {
"type": "object",
"required": [
"report",
"summary",
"count"
],
"properties": {
"count": {
"type": "integer",
"title": "Models listed"
},
"report": {
"type": "string",
"title": "OpenCode models and prices",
"description": "Markdown table of the OpenCode models with their prices per 1M tokens, followed by a short notes line."
},
"summary": {
"type": "string",
"title": "Summary",
"description": "One line: how many OpenCode models are listed and the price range."
}
},
"additionalProperties": false
},
"requirement_notes": {}
},
"changelog": "Reads the whole OpenCode catalog from models.dev in one request (~0.7 s), with context window, max output, prices and capabilities filled in.",
"created_at": "2026-11-18T21:02:00Z",
"content_hash": "sha256:54fde095021f152482de294e3cc94a68e00da627ce28c002e3d390d2ab5bac47",
"requirements": {
"notes": {},
"models": [],
"network": [
"models.dev"
],
"plugins": [],
"secrets": [],
"knowledge": [],
"mcp_servers": [],
"permissions": []
},
"format_version": 1,
"available_to_orchestrator": true
}Versions
- Version 2LatestReads the whole OpenCode catalog from models.dev in one request (~0.7 s), with context window, max output, prices and capabilities filled in.Nov 18, 2026
1 version, newest first.