config.json 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. {
  2. "$schema": "https://opencode.ai/config.json",
  3. "provider": {
  4. "qwen-local": {
  5. "npm": "@ai-sdk/openai-compatible",
  6. "name": "Qwen Local (192.168.1.38)",
  7. "options": {
  8. "baseURL": "http://192.168.1.38:8284/v1"
  9. },
  10. "models": {
  11. "qwen3.8": {
  12. "name": "Qwen 3.8",
  13. "limit": {
  14. "context": 128000,
  15. "output": 8192
  16. },
  17. "cost": {
  18. "input": 2,
  19. "output": 6,
  20. "cache_read": 0.25,
  21. "cache_write": 0.25
  22. }
  23. }
  24. }
  25. },
  26. "qwen-flash-next-strata": {
  27. "npm": "@ai-sdk/openai-compatible",
  28. "name": "Qwen Strata (192.168.1.38:8088)",
  29. "options": {
  30. "baseURL": "http://192.168.1.38:8088/v1"
  31. },
  32. "models": {
  33. "qwen3.8-flash-next-Q2_0": {
  34. "name": "Qwen3.8-fn-Q2_0",
  35. "limit": {
  36. "context": 128000,
  37. "output": 32000
  38. },
  39. "cost": {
  40. "input": 0,
  41. "output": 0,
  42. "cache_read": 0,
  43. "cache_write": 0
  44. }
  45. },
  46. "qwen3.8-flash-next-IQ2_XS": {
  47. "name": "Qwen3.8-fn-IQ2_XS",
  48. "limit": {
  49. "context": 128000,
  50. "output": 32000
  51. },
  52. "cost": {
  53. "input": 0,
  54. "output": 0,
  55. "cache_read": 0,
  56. "cache_write": 0
  57. }
  58. },
  59. "qwen3.8-flash-next-IQ3_XXS": {
  60. "name": "Qwen3.8-fn-IQ3_XXS",
  61. "limit": {
  62. "context": 131072,
  63. "output": 22000
  64. },
  65. "cost": {
  66. "input": 0,
  67. "output": 0,
  68. "cache_read": 0,
  69. "cache_write": 0
  70. }
  71. }
  72. }
  73. },
  74. "deepseek": {
  75. "npm": "@ai-sdk/openai-compatible",
  76. "name": "DeepSeek",
  77. "options": {
  78. "baseURL": "https://api.deepseek.com",
  79. "apiKey": "{env:DEEPSEEK_API_KEY}"
  80. },
  81. "models": {
  82. "deepseek-flash": {
  83. "name": "DeepSeek Flash",
  84. "limit": {
  85. "context": 128000,
  86. "output": 8192
  87. },
  88. "cost": {
  89. "input": 0.14,
  90. "output": 0.28,
  91. "cache_read": 0.014,
  92. "cache_write": 0.14
  93. },
  94. "options": {
  95. "thinking": { "type": "enabled" },
  96. "reasoning_effort": "high"
  97. }
  98. },
  99. "deepseek-v4-pro": {
  100. "name": "DeepSeek V4 Pro",
  101. "limit": {
  102. "context": 128000,
  103. "output": 8192
  104. },
  105. "cost": {
  106. "input": 0.55,
  107. "output": 2.19,
  108. "cache_read": 0.055,
  109. "cache_write": 0.55
  110. },
  111. "options": {
  112. "thinking": { "type": "enabled" },
  113. "reasoning_effort": "high"
  114. }
  115. }
  116. }
  117. },
  118. "deepseek-local-qwen3.5": {
  119. "npm": "@ai-sdk/openai-compatible",
  120. "name": "DeepSeek V4 Pro Qwen3.5 Local (192.168.1.38)",
  121. "options": {
  122. "baseURL": "http://192.168.1.38:8284/v1"
  123. },
  124. "models": {
  125. "deepseek-v4-pro-qwen3.5-9b-mtp-q8_0": {
  126. "name": "DeepSeek V4 Pro Qwen3.5 9B MTP Q8_0",
  127. "limit": {
  128. "context": 128000,
  129. "output": 8192
  130. },
  131. "cost": {
  132. "input": 0,
  133. "output": 0,
  134. "cache_read": 0,
  135. "cache_write": 0
  136. }
  137. }
  138. }
  139. },
  140. "magpie-gateway": {
  141. "npm": "@ai-sdk/openai-compatible",
  142. "name": "Magpie Gateway (192.168.1.38)",
  143. "options": {
  144. "baseURL": "http://192.168.1.38:3430/v1",
  145. "apiKey": "{env:MAGPIE_API_KEY}",
  146. "defaultApiKey": "904dde2a3884936998463494f906a2c5"
  147. },
  148. "models": {
  149. "deepseek-v4-pro-qwen35//models/DeepSeek-V4-Pro-Qwen3.5-9B-MTP-Q8_0.gguf": {
  150. "name": "DeepSeek V4 Pro Qwen3.5 9B MTP Q8_0 via Magpie",
  151. "limit": {
  152. "context": 128000,
  153. "output": 8192
  154. },
  155. "cost": {
  156. "input": 0,
  157. "output": 0,
  158. "cache_read": 0,
  159. "cache_write": 0
  160. }
  161. },
  162. "deepseek/deepseek-flash": {
  163. "name": "DeepSeek V4.1 Flash via Magpie",
  164. "limit": {
  165. "context": 1000000,
  166. "output": 393216
  167. },
  168. "cost": {
  169. "input": 0.15,
  170. "output": 0.6,
  171. "cache_read": 0.003,
  172. "cache_write": 0
  173. }
  174. },
  175. "deepseek/deepseek-v4-pro": {
  176. "name": "DeepSeek V4 Pro via Magpie",
  177. "limit": {
  178. "context": 1000000,
  179. "output": 393216
  180. },
  181. "cost": {
  182. "input": 0.66,
  183. "output": 1.98,
  184. "cache_read": 0.022,
  185. "cache_write": 0
  186. }
  187. },
  188. "strata/qwen3.8-flash-next-iq3_xxs": {
  189. "name": "Strata Qwen3.8-flash-next IQ3_XXS via Magpie",
  190. "limit": {
  191. "context": 131072,
  192. "output": 22000
  193. },
  194. "cost": {
  195. "input": 0.15,
  196. "output": 0.47,
  197. "cache_read": 0.016,
  198. "cache_write": 0.15
  199. }
  200. },
  201. "moonshot-cn/kimi-k3.1-pro": {
  202. "name": "Kimi K3.1 Pro via Magpie",
  203. "limit": {
  204. "context": 1048576,
  205. "output": 1048576
  206. },
  207. "cost": {
  208. "input": 2,
  209. "output": 10,
  210. "cache_read": 0.2,
  211. "cache_write": 2
  212. }
  213. },
  214. "moonshot-cn/kimi-k3.1-pro-highspeed": {
  215. "name": "Kimi K3.1 Pro Highspeed via Magpie",
  216. "limit": {
  217. "context": 1048576,
  218. "output": 1048576
  219. },
  220. "cost": {
  221. "input": 4,
  222. "output": 20,
  223. "cache_read": 0.2,
  224. "cache_write": 4
  225. }
  226. },
  227. "moonshot-cn/kimi-k3": {
  228. "name": "Kimi K3 via Magpie",
  229. "limit": {
  230. "context": 1048576,
  231. "output": 1048576
  232. },
  233. "cost": {
  234. "input": 3,
  235. "output": 15,
  236. "cache_read": 0.3,
  237. "cache_write": 3
  238. }
  239. },
  240. "moonshot-cn/kimi-k2.7-code": {
  241. "name": "Kimi K2.7 Code via Magpie",
  242. "limit": {
  243. "context": 262144,
  244. "output": 262144
  245. },
  246. "cost": {
  247. "input": 0.95,
  248. "output": 4,
  249. "cache_read": 0.19,
  250. "cache_write": 0
  251. }
  252. },
  253. "moonshot-cn/kimi-k2.7-code-highspeed": {
  254. "name": "Kimi K2.7 Code Highspeed via Magpie",
  255. "limit": {
  256. "context": 262144,
  257. "output": 262144
  258. },
  259. "cost": {
  260. "input": 1.9,
  261. "output": 8,
  262. "cache_read": 0.38,
  263. "cache_write": 0
  264. }
  265. },
  266. "moonshot-cn/kimi-k2.6": {
  267. "name": "Kimi K2.6 via Magpie",
  268. "limit": {
  269. "context": 262144,
  270. "output": 262144
  271. },
  272. "cost": {
  273. "input": 0.95,
  274. "output": 4,
  275. "cache_read": 0.16,
  276. "cache_write": 0
  277. }
  278. }
  279. }
  280. },
  281. "magpie-gateway-remote": {
  282. "npm": "@ai-sdk/openai-compatible",
  283. "name": "Magpie Gateway (ai.algometic.com)",
  284. "options": {
  285. "baseURL": "https://ai.algometic.com/v1",
  286. "apiKey": "{env:MAGPIE_API_KEY}",
  287. "defaultApiKey": "904dde2a3884936998463494f906a2c5"
  288. },
  289. "models": {
  290. "deepseek-v4-pro-qwen35//models/DeepSeek-V4-Pro-Qwen3.5-9B-MTP-Q8_0.gguf": {
  291. "name": "DeepSeek V4 Pro Qwen3.5 9B MTP Q8_0 via Magpie Remote",
  292. "limit": {
  293. "context": 128000,
  294. "output": 8192
  295. },
  296. "cost": {
  297. "input": 0,
  298. "output": 0,
  299. "cache_read": 0,
  300. "cache_write": 0
  301. }
  302. },
  303. "deepseek/deepseek-flash": {
  304. "name": "DeepSeek V4.1 Flash via Magpie Remote",
  305. "limit": {
  306. "context": 1000000,
  307. "output": 393216
  308. },
  309. "cost": {
  310. "input": 0.15,
  311. "output": 0.6,
  312. "cache_read": 0.003,
  313. "cache_write": 0
  314. }
  315. },
  316. "deepseek/deepseek-v4-pro": {
  317. "name": "DeepSeek V4 Pro via Magpie Remote",
  318. "limit": {
  319. "context": 1000000,
  320. "output": 393216
  321. },
  322. "cost": {
  323. "input": 0.66,
  324. "output": 1.98,
  325. "cache_read": 0.022,
  326. "cache_write": 0
  327. }
  328. },
  329. "strata/qwen3.8-flash-next-iq3_xxs": {
  330. "name": "Strata Qwen3.8-flash-next IQ3_XXS via Magpie Remote",
  331. "limit": {
  332. "context": 131072,
  333. "output": 22000
  334. },
  335. "cost": {
  336. "input": 0.15,
  337. "output": 0.47,
  338. "cache_read": 0.016,
  339. "cache_write": 0.15
  340. }
  341. },
  342. "moonshot-cn/kimi-k3.1-pro": {
  343. "name": "Kimi K3.1 Pro via Magpie Remote",
  344. "limit": {
  345. "context": 1048576,
  346. "output": 1048576
  347. },
  348. "cost": {
  349. "input": 2,
  350. "output": 10,
  351. "cache_read": 0.2,
  352. "cache_write": 2
  353. }
  354. },
  355. "moonshot-cn/kimi-k3.1-pro-highspeed": {
  356. "name": "Kimi K3.1 Pro Highspeed via Magpie Remote",
  357. "limit": {
  358. "context": 1048576,
  359. "output": 1048576
  360. },
  361. "cost": {
  362. "input": 4,
  363. "output": 20,
  364. "cache_read": 0.2,
  365. "cache_write": 4
  366. }
  367. },
  368. "moonshot-cn/kimi-k3": {
  369. "name": "Kimi K3 via Magpie Remote",
  370. "limit": {
  371. "context": 1048576,
  372. "output": 1048576
  373. },
  374. "cost": {
  375. "input": 3,
  376. "output": 15,
  377. "cache_read": 0.3,
  378. "cache_write": 3
  379. }
  380. },
  381. "moonshot-cn/kimi-k2.7-code": {
  382. "name": "Kimi K2.7 Code via Magpie Remote",
  383. "limit": {
  384. "context": 262144,
  385. "output": 262144
  386. },
  387. "cost": {
  388. "input": 0.95,
  389. "output": 4,
  390. "cache_read": 0.19,
  391. "cache_write": 0
  392. }
  393. },
  394. "moonshot-cn/kimi-k2.7-code-highspeed": {
  395. "name": "Kimi K2.7 Code Highspeed via Magpie Remote",
  396. "limit": {
  397. "context": 262144,
  398. "output": 262144
  399. },
  400. "cost": {
  401. "input": 1.9,
  402. "output": 8,
  403. "cache_read": 0.38,
  404. "cache_write": 0
  405. }
  406. },
  407. "moonshot-cn/kimi-k2.6": {
  408. "name": "Kimi K2.6 via Magpie Remote",
  409. "limit": {
  410. "context": 262144,
  411. "output": 262144
  412. },
  413. "cost": {
  414. "input": 0.95,
  415. "output": 4,
  416. "cache_read": 0.16,
  417. "cache_write": 0
  418. }
  419. }
  420. }
  421. }
  422. },
  423. "model": "magpie-gateway/moonshot-cn/kimi-k3.1-pro",
  424. "mcp": {
  425. "magpie": {
  426. "type": "remote",
  427. "url": "http://192.168.1.38:3430/mcp/magpie/hub/opencode",
  428. "headers": {
  429. "Authorization": "Bearer 904dde2a3884936998463494f906a2c5"
  430. },
  431. "enabled": true
  432. }
  433. }
  434. }