1diff --git i/packages/opencode/src/provider/models-macro.ts w/packages/opencode/src/provider/models-macro.ts
2index 91a0348..4f60069 100644
3--- i/packages/opencode/src/provider/models-macro.ts
4+++ w/packages/opencode/src/provider/models-macro.ts
5@@ -1,4 +1,15 @@
6 export async function data() {
7+ const localApiJsonPath = process.env.MODELS_DEV_API_JSON
8+
9+ // Try to read from local file if path is provided
10+ if (localApiJsonPath) {
11+ const localFile = Bun.file(localApiJsonPath)
12+ if (await localFile.exists()) {
13+ return await localFile.text()
14+ }
15+ }
16+
17+ // Fallback to fetching from remote URL
18 const json = await fetch("https://models.dev/api.json").then((x) => x.text())
19 return json
20 }