@neurocode-ai/web 1.18.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (702) hide show
  1. package/README.md +54 -0
  2. package/astro.config.mjs +324 -0
  3. package/config.mjs +14 -0
  4. package/package.json +44 -0
  5. package/public/apple-touch-icon-v3.png +1 -0
  6. package/public/apple-touch-icon.png +1 -0
  7. package/public/favicon-96x96-v3.png +1 -0
  8. package/public/favicon-96x96.png +1 -0
  9. package/public/favicon-v3.ico +1 -0
  10. package/public/favicon-v3.svg +1 -0
  11. package/public/favicon.ico +1 -0
  12. package/public/favicon.svg +1 -0
  13. package/public/robots.txt +6 -0
  14. package/public/site.webmanifest +1 -0
  15. package/public/social-share-zen.png +1 -0
  16. package/public/social-share.png +1 -0
  17. package/public/theme.json +183 -0
  18. package/public/web-app-manifest-192x192.png +1 -0
  19. package/public/web-app-manifest-512x512.png +1 -0
  20. package/src/assets/lander/check.svg +2 -0
  21. package/src/assets/lander/copy.svg +2 -0
  22. package/src/assets/lander/screenshot-github.png +0 -0
  23. package/src/assets/lander/screenshot-splash.png +0 -0
  24. package/src/assets/lander/screenshot-vscode.png +0 -0
  25. package/src/assets/lander/screenshot.png +0 -0
  26. package/src/assets/logo-dark.svg +18 -0
  27. package/src/assets/logo-light.svg +18 -0
  28. package/src/assets/logo-ornate-dark.svg +18 -0
  29. package/src/assets/logo-ornate-light.svg +18 -0
  30. package/src/assets/web/web-homepage-active-session.png +0 -0
  31. package/src/assets/web/web-homepage-new-session.png +0 -0
  32. package/src/assets/web/web-homepage-see-servers.png +0 -0
  33. package/src/components/Footer.astro +125 -0
  34. package/src/components/Head.astro +54 -0
  35. package/src/components/Header.astro +136 -0
  36. package/src/components/Hero.astro +11 -0
  37. package/src/components/Lander.astro +721 -0
  38. package/src/components/LanguageSelect.astro +29 -0
  39. package/src/components/Share.tsx +644 -0
  40. package/src/components/SiteTitle.astro +59 -0
  41. package/src/components/icons/custom.tsx +87 -0
  42. package/src/components/icons/index.tsx +4454 -0
  43. package/src/components/share/common.tsx +128 -0
  44. package/src/components/share/content-bash.module.css +85 -0
  45. package/src/components/share/content-bash.tsx +67 -0
  46. package/src/components/share/content-code.module.css +26 -0
  47. package/src/components/share/content-code.tsx +30 -0
  48. package/src/components/share/content-diff.module.css +153 -0
  49. package/src/components/share/content-diff.tsx +240 -0
  50. package/src/components/share/content-error.module.css +64 -0
  51. package/src/components/share/content-error.tsx +25 -0
  52. package/src/components/share/content-markdown.module.css +154 -0
  53. package/src/components/share/content-markdown.tsx +74 -0
  54. package/src/components/share/content-text.module.css +63 -0
  55. package/src/components/share/content-text.tsx +38 -0
  56. package/src/components/share/copy-button.module.css +30 -0
  57. package/src/components/share/copy-button.tsx +36 -0
  58. package/src/components/share/part.module.css +428 -0
  59. package/src/components/share/part.tsx +816 -0
  60. package/src/components/share.module.css +832 -0
  61. package/src/content/docs/acp.mdx +156 -0
  62. package/src/content/docs/agents.mdx +781 -0
  63. package/src/content/docs/ar/acp.mdx +156 -0
  64. package/src/content/docs/ar/agents.mdx +754 -0
  65. package/src/content/docs/ar/cli.mdx +616 -0
  66. package/src/content/docs/ar/commands.mdx +322 -0
  67. package/src/content/docs/ar/config.mdx +685 -0
  68. package/src/content/docs/ar/custom-tools.mdx +196 -0
  69. package/src/content/docs/ar/ecosystem.mdx +78 -0
  70. package/src/content/docs/ar/enterprise.mdx +165 -0
  71. package/src/content/docs/ar/formatters.mdx +131 -0
  72. package/src/content/docs/ar/github.mdx +321 -0
  73. package/src/content/docs/ar/gitlab.mdx +195 -0
  74. package/src/content/docs/ar/go.mdx +224 -0
  75. package/src/content/docs/ar/ide.mdx +48 -0
  76. package/src/content/docs/ar/index.mdx +344 -0
  77. package/src/content/docs/ar/keybinds.mdx +194 -0
  78. package/src/content/docs/ar/lsp.mdx +207 -0
  79. package/src/content/docs/ar/mcp-servers.mdx +511 -0
  80. package/src/content/docs/ar/models.mdx +222 -0
  81. package/src/content/docs/ar/network.mdx +57 -0
  82. package/src/content/docs/ar/permissions.mdx +235 -0
  83. package/src/content/docs/ar/plugins.mdx +385 -0
  84. package/src/content/docs/ar/providers.mdx +1983 -0
  85. package/src/content/docs/ar/rules.mdx +180 -0
  86. package/src/content/docs/ar/sdk.mdx +463 -0
  87. package/src/content/docs/ar/server.mdx +287 -0
  88. package/src/content/docs/ar/share.mdx +127 -0
  89. package/src/content/docs/ar/skills.mdx +222 -0
  90. package/src/content/docs/ar/themes.mdx +369 -0
  91. package/src/content/docs/ar/tools.mdx +341 -0
  92. package/src/content/docs/ar/troubleshooting.mdx +299 -0
  93. package/src/content/docs/ar/tui.mdx +426 -0
  94. package/src/content/docs/ar/web.mdx +142 -0
  95. package/src/content/docs/ar/windows-wsl.mdx +113 -0
  96. package/src/content/docs/ar/zen.mdx +332 -0
  97. package/src/content/docs/bs/acp.mdx +156 -0
  98. package/src/content/docs/bs/agents.mdx +754 -0
  99. package/src/content/docs/bs/cli.mdx +614 -0
  100. package/src/content/docs/bs/commands.mdx +316 -0
  101. package/src/content/docs/bs/config.mdx +685 -0
  102. package/src/content/docs/bs/custom-tools.mdx +195 -0
  103. package/src/content/docs/bs/ecosystem.mdx +78 -0
  104. package/src/content/docs/bs/enterprise.mdx +165 -0
  105. package/src/content/docs/bs/formatters.mdx +124 -0
  106. package/src/content/docs/bs/github.mdx +311 -0
  107. package/src/content/docs/bs/gitlab.mdx +188 -0
  108. package/src/content/docs/bs/go.mdx +238 -0
  109. package/src/content/docs/bs/ide.mdx +47 -0
  110. package/src/content/docs/bs/index.mdx +323 -0
  111. package/src/content/docs/bs/keybinds.mdx +194 -0
  112. package/src/content/docs/bs/lsp.mdx +204 -0
  113. package/src/content/docs/bs/mcp-servers.mdx +482 -0
  114. package/src/content/docs/bs/models.mdx +201 -0
  115. package/src/content/docs/bs/network.mdx +51 -0
  116. package/src/content/docs/bs/permissions.mdx +228 -0
  117. package/src/content/docs/bs/plugins.mdx +371 -0
  118. package/src/content/docs/bs/providers.mdx +1993 -0
  119. package/src/content/docs/bs/rules.mdx +180 -0
  120. package/src/content/docs/bs/sdk.mdx +463 -0
  121. package/src/content/docs/bs/server.mdx +284 -0
  122. package/src/content/docs/bs/share.mdx +127 -0
  123. package/src/content/docs/bs/skills.mdx +222 -0
  124. package/src/content/docs/bs/themes.mdx +369 -0
  125. package/src/content/docs/bs/tools.mdx +341 -0
  126. package/src/content/docs/bs/troubleshooting.mdx +300 -0
  127. package/src/content/docs/bs/tui.mdx +432 -0
  128. package/src/content/docs/bs/web.mdx +142 -0
  129. package/src/content/docs/bs/windows-wsl.mdx +113 -0
  130. package/src/content/docs/bs/zen.mdx +350 -0
  131. package/src/content/docs/cli.mdx +733 -0
  132. package/src/content/docs/commands.mdx +323 -0
  133. package/src/content/docs/config.mdx +941 -0
  134. package/src/content/docs/custom-tools.mdx +196 -0
  135. package/src/content/docs/da/acp.mdx +156 -0
  136. package/src/content/docs/da/agents.mdx +755 -0
  137. package/src/content/docs/da/cli.mdx +617 -0
  138. package/src/content/docs/da/commands.mdx +323 -0
  139. package/src/content/docs/da/config.mdx +688 -0
  140. package/src/content/docs/da/custom-tools.mdx +196 -0
  141. package/src/content/docs/da/ecosystem.mdx +78 -0
  142. package/src/content/docs/da/enterprise.mdx +170 -0
  143. package/src/content/docs/da/formatters.mdx +131 -0
  144. package/src/content/docs/da/github.mdx +321 -0
  145. package/src/content/docs/da/gitlab.mdx +195 -0
  146. package/src/content/docs/da/go.mdx +238 -0
  147. package/src/content/docs/da/ide.mdx +48 -0
  148. package/src/content/docs/da/index.mdx +360 -0
  149. package/src/content/docs/da/keybinds.mdx +194 -0
  150. package/src/content/docs/da/lsp.mdx +208 -0
  151. package/src/content/docs/da/mcp-servers.mdx +511 -0
  152. package/src/content/docs/da/models.mdx +223 -0
  153. package/src/content/docs/da/network.mdx +57 -0
  154. package/src/content/docs/da/permissions.mdx +235 -0
  155. package/src/content/docs/da/plugins.mdx +389 -0
  156. package/src/content/docs/da/providers.mdx +1981 -0
  157. package/src/content/docs/da/rules.mdx +180 -0
  158. package/src/content/docs/da/sdk.mdx +463 -0
  159. package/src/content/docs/da/server.mdx +287 -0
  160. package/src/content/docs/da/share.mdx +128 -0
  161. package/src/content/docs/da/skills.mdx +222 -0
  162. package/src/content/docs/da/themes.mdx +369 -0
  163. package/src/content/docs/da/tools.mdx +341 -0
  164. package/src/content/docs/da/troubleshooting.mdx +300 -0
  165. package/src/content/docs/da/tui.mdx +426 -0
  166. package/src/content/docs/da/web.mdx +142 -0
  167. package/src/content/docs/da/windows-wsl.mdx +113 -0
  168. package/src/content/docs/da/zen.mdx +345 -0
  169. package/src/content/docs/de/acp.mdx +156 -0
  170. package/src/content/docs/de/agents.mdx +741 -0
  171. package/src/content/docs/de/cli.mdx +616 -0
  172. package/src/content/docs/de/commands.mdx +323 -0
  173. package/src/content/docs/de/config.mdx +684 -0
  174. package/src/content/docs/de/custom-tools.mdx +170 -0
  175. package/src/content/docs/de/ecosystem.mdx +78 -0
  176. package/src/content/docs/de/enterprise.mdx +170 -0
  177. package/src/content/docs/de/formatters.mdx +131 -0
  178. package/src/content/docs/de/github.mdx +321 -0
  179. package/src/content/docs/de/gitlab.mdx +195 -0
  180. package/src/content/docs/de/go.mdx +226 -0
  181. package/src/content/docs/de/ide.mdx +48 -0
  182. package/src/content/docs/de/index.mdx +356 -0
  183. package/src/content/docs/de/keybinds.mdx +194 -0
  184. package/src/content/docs/de/lsp.mdx +207 -0
  185. package/src/content/docs/de/mcp-servers.mdx +511 -0
  186. package/src/content/docs/de/models.mdx +223 -0
  187. package/src/content/docs/de/network.mdx +57 -0
  188. package/src/content/docs/de/permissions.mdx +235 -0
  189. package/src/content/docs/de/plugins.mdx +384 -0
  190. package/src/content/docs/de/providers.mdx +1987 -0
  191. package/src/content/docs/de/rules.mdx +190 -0
  192. package/src/content/docs/de/sdk.mdx +465 -0
  193. package/src/content/docs/de/server.mdx +291 -0
  194. package/src/content/docs/de/share.mdx +130 -0
  195. package/src/content/docs/de/skills.mdx +222 -0
  196. package/src/content/docs/de/themes.mdx +372 -0
  197. package/src/content/docs/de/tools.mdx +352 -0
  198. package/src/content/docs/de/troubleshooting.mdx +300 -0
  199. package/src/content/docs/de/tui.mdx +429 -0
  200. package/src/content/docs/de/web.mdx +142 -0
  201. package/src/content/docs/de/windows-wsl.mdx +115 -0
  202. package/src/content/docs/de/zen.mdx +327 -0
  203. package/src/content/docs/ecosystem.mdx +83 -0
  204. package/src/content/docs/enterprise.mdx +169 -0
  205. package/src/content/docs/es/acp.mdx +156 -0
  206. package/src/content/docs/es/agents.mdx +755 -0
  207. package/src/content/docs/es/cli.mdx +616 -0
  208. package/src/content/docs/es/commands.mdx +323 -0
  209. package/src/content/docs/es/config.mdx +685 -0
  210. package/src/content/docs/es/custom-tools.mdx +196 -0
  211. package/src/content/docs/es/ecosystem.mdx +78 -0
  212. package/src/content/docs/es/enterprise.mdx +170 -0
  213. package/src/content/docs/es/formatters.mdx +131 -0
  214. package/src/content/docs/es/github.mdx +321 -0
  215. package/src/content/docs/es/gitlab.mdx +195 -0
  216. package/src/content/docs/es/go.mdx +238 -0
  217. package/src/content/docs/es/ide.mdx +48 -0
  218. package/src/content/docs/es/index.mdx +345 -0
  219. package/src/content/docs/es/keybinds.mdx +194 -0
  220. package/src/content/docs/es/lsp.mdx +208 -0
  221. package/src/content/docs/es/mcp-servers.mdx +511 -0
  222. package/src/content/docs/es/models.mdx +223 -0
  223. package/src/content/docs/es/network.mdx +57 -0
  224. package/src/content/docs/es/permissions.mdx +235 -0
  225. package/src/content/docs/es/plugins.mdx +389 -0
  226. package/src/content/docs/es/providers.mdx +1989 -0
  227. package/src/content/docs/es/rules.mdx +180 -0
  228. package/src/content/docs/es/sdk.mdx +463 -0
  229. package/src/content/docs/es/server.mdx +287 -0
  230. package/src/content/docs/es/share.mdx +128 -0
  231. package/src/content/docs/es/skills.mdx +222 -0
  232. package/src/content/docs/es/themes.mdx +369 -0
  233. package/src/content/docs/es/tools.mdx +341 -0
  234. package/src/content/docs/es/troubleshooting.mdx +300 -0
  235. package/src/content/docs/es/tui.mdx +429 -0
  236. package/src/content/docs/es/web.mdx +142 -0
  237. package/src/content/docs/es/windows-wsl.mdx +113 -0
  238. package/src/content/docs/es/zen.mdx +345 -0
  239. package/src/content/docs/formatters.mdx +143 -0
  240. package/src/content/docs/fr/acp.mdx +156 -0
  241. package/src/content/docs/fr/agents.mdx +755 -0
  242. package/src/content/docs/fr/cli.mdx +617 -0
  243. package/src/content/docs/fr/commands.mdx +322 -0
  244. package/src/content/docs/fr/config.mdx +686 -0
  245. package/src/content/docs/fr/custom-tools.mdx +170 -0
  246. package/src/content/docs/fr/ecosystem.mdx +78 -0
  247. package/src/content/docs/fr/enterprise.mdx +165 -0
  248. package/src/content/docs/fr/formatters.mdx +131 -0
  249. package/src/content/docs/fr/github.mdx +322 -0
  250. package/src/content/docs/fr/gitlab.mdx +195 -0
  251. package/src/content/docs/fr/go.mdx +224 -0
  252. package/src/content/docs/fr/ide.mdx +48 -0
  253. package/src/content/docs/fr/index.mdx +344 -0
  254. package/src/content/docs/fr/keybinds.mdx +194 -0
  255. package/src/content/docs/fr/lsp.mdx +208 -0
  256. package/src/content/docs/fr/mcp-servers.mdx +511 -0
  257. package/src/content/docs/fr/models.mdx +222 -0
  258. package/src/content/docs/fr/network.mdx +57 -0
  259. package/src/content/docs/fr/permissions.mdx +235 -0
  260. package/src/content/docs/fr/plugins.mdx +384 -0
  261. package/src/content/docs/fr/providers.mdx +1996 -0
  262. package/src/content/docs/fr/rules.mdx +180 -0
  263. package/src/content/docs/fr/sdk.mdx +463 -0
  264. package/src/content/docs/fr/server.mdx +287 -0
  265. package/src/content/docs/fr/share.mdx +128 -0
  266. package/src/content/docs/fr/skills.mdx +222 -0
  267. package/src/content/docs/fr/themes.mdx +369 -0
  268. package/src/content/docs/fr/tools.mdx +341 -0
  269. package/src/content/docs/fr/troubleshooting.mdx +300 -0
  270. package/src/content/docs/fr/tui.mdx +429 -0
  271. package/src/content/docs/fr/web.mdx +142 -0
  272. package/src/content/docs/fr/windows-wsl.mdx +113 -0
  273. package/src/content/docs/fr/zen.mdx +327 -0
  274. package/src/content/docs/github.mdx +321 -0
  275. package/src/content/docs/gitlab.mdx +195 -0
  276. package/src/content/docs/go.mdx +238 -0
  277. package/src/content/docs/ide.mdx +48 -0
  278. package/src/content/docs/index.mdx +360 -0
  279. package/src/content/docs/it/acp.mdx +155 -0
  280. package/src/content/docs/it/agents.mdx +753 -0
  281. package/src/content/docs/it/cli.mdx +617 -0
  282. package/src/content/docs/it/commands.mdx +322 -0
  283. package/src/content/docs/it/config.mdx +685 -0
  284. package/src/content/docs/it/custom-tools.mdx +196 -0
  285. package/src/content/docs/it/ecosystem.mdx +78 -0
  286. package/src/content/docs/it/enterprise.mdx +165 -0
  287. package/src/content/docs/it/formatters.mdx +132 -0
  288. package/src/content/docs/it/github.mdx +321 -0
  289. package/src/content/docs/it/gitlab.mdx +195 -0
  290. package/src/content/docs/it/go.mdx +236 -0
  291. package/src/content/docs/it/ide.mdx +48 -0
  292. package/src/content/docs/it/index.mdx +344 -0
  293. package/src/content/docs/it/keybinds.mdx +194 -0
  294. package/src/content/docs/it/lsp.mdx +208 -0
  295. package/src/content/docs/it/mcp-servers.mdx +511 -0
  296. package/src/content/docs/it/models.mdx +222 -0
  297. package/src/content/docs/it/network.mdx +57 -0
  298. package/src/content/docs/it/permissions.mdx +235 -0
  299. package/src/content/docs/it/plugins.mdx +388 -0
  300. package/src/content/docs/it/providers.mdx +1964 -0
  301. package/src/content/docs/it/rules.mdx +180 -0
  302. package/src/content/docs/it/sdk.mdx +463 -0
  303. package/src/content/docs/it/server.mdx +284 -0
  304. package/src/content/docs/it/share.mdx +127 -0
  305. package/src/content/docs/it/skills.mdx +222 -0
  306. package/src/content/docs/it/themes.mdx +369 -0
  307. package/src/content/docs/it/tools.mdx +341 -0
  308. package/src/content/docs/it/troubleshooting.mdx +299 -0
  309. package/src/content/docs/it/tui.mdx +426 -0
  310. package/src/content/docs/it/web.mdx +142 -0
  311. package/src/content/docs/it/windows-wsl.mdx +113 -0
  312. package/src/content/docs/it/zen.mdx +345 -0
  313. package/src/content/docs/ja/acp.mdx +155 -0
  314. package/src/content/docs/ja/agents.mdx +751 -0
  315. package/src/content/docs/ja/cli.mdx +616 -0
  316. package/src/content/docs/ja/commands.mdx +322 -0
  317. package/src/content/docs/ja/config.mdx +684 -0
  318. package/src/content/docs/ja/custom-tools.mdx +196 -0
  319. package/src/content/docs/ja/ecosystem.mdx +78 -0
  320. package/src/content/docs/ja/enterprise.mdx +166 -0
  321. package/src/content/docs/ja/formatters.mdx +132 -0
  322. package/src/content/docs/ja/github.mdx +322 -0
  323. package/src/content/docs/ja/gitlab.mdx +195 -0
  324. package/src/content/docs/ja/go.mdx +224 -0
  325. package/src/content/docs/ja/ide.mdx +48 -0
  326. package/src/content/docs/ja/index.mdx +350 -0
  327. package/src/content/docs/ja/keybinds.mdx +194 -0
  328. package/src/content/docs/ja/lsp.mdx +208 -0
  329. package/src/content/docs/ja/mcp-servers.mdx +511 -0
  330. package/src/content/docs/ja/models.mdx +221 -0
  331. package/src/content/docs/ja/network.mdx +55 -0
  332. package/src/content/docs/ja/permissions.mdx +282 -0
  333. package/src/content/docs/ja/plugins.mdx +461 -0
  334. package/src/content/docs/ja/providers.mdx +1998 -0
  335. package/src/content/docs/ja/rules.mdx +179 -0
  336. package/src/content/docs/ja/sdk.mdx +463 -0
  337. package/src/content/docs/ja/server.mdx +282 -0
  338. package/src/content/docs/ja/share.mdx +128 -0
  339. package/src/content/docs/ja/skills.mdx +222 -0
  340. package/src/content/docs/ja/themes.mdx +667 -0
  341. package/src/content/docs/ja/tools.mdx +341 -0
  342. package/src/content/docs/ja/troubleshooting.mdx +300 -0
  343. package/src/content/docs/ja/tui.mdx +423 -0
  344. package/src/content/docs/ja/web.mdx +143 -0
  345. package/src/content/docs/ja/windows-wsl.mdx +116 -0
  346. package/src/content/docs/ja/zen.mdx +327 -0
  347. package/src/content/docs/keybinds.mdx +299 -0
  348. package/src/content/docs/ko/acp.mdx +156 -0
  349. package/src/content/docs/ko/agents.mdx +754 -0
  350. package/src/content/docs/ko/cli.mdx +616 -0
  351. package/src/content/docs/ko/commands.mdx +323 -0
  352. package/src/content/docs/ko/config.mdx +685 -0
  353. package/src/content/docs/ko/custom-tools.mdx +196 -0
  354. package/src/content/docs/ko/ecosystem.mdx +78 -0
  355. package/src/content/docs/ko/enterprise.mdx +165 -0
  356. package/src/content/docs/ko/formatters.mdx +132 -0
  357. package/src/content/docs/ko/github.mdx +321 -0
  358. package/src/content/docs/ko/gitlab.mdx +195 -0
  359. package/src/content/docs/ko/go.mdx +224 -0
  360. package/src/content/docs/ko/ide.mdx +48 -0
  361. package/src/content/docs/ko/index.mdx +344 -0
  362. package/src/content/docs/ko/keybinds.mdx +194 -0
  363. package/src/content/docs/ko/lsp.mdx +208 -0
  364. package/src/content/docs/ko/mcp-servers.mdx +511 -0
  365. package/src/content/docs/ko/models.mdx +223 -0
  366. package/src/content/docs/ko/network.mdx +57 -0
  367. package/src/content/docs/ko/permissions.mdx +235 -0
  368. package/src/content/docs/ko/plugins.mdx +388 -0
  369. package/src/content/docs/ko/providers.mdx +1984 -0
  370. package/src/content/docs/ko/rules.mdx +179 -0
  371. package/src/content/docs/ko/sdk.mdx +463 -0
  372. package/src/content/docs/ko/server.mdx +287 -0
  373. package/src/content/docs/ko/share.mdx +128 -0
  374. package/src/content/docs/ko/skills.mdx +222 -0
  375. package/src/content/docs/ko/themes.mdx +369 -0
  376. package/src/content/docs/ko/tools.mdx +341 -0
  377. package/src/content/docs/ko/troubleshooting.mdx +303 -0
  378. package/src/content/docs/ko/tui.mdx +425 -0
  379. package/src/content/docs/ko/web.mdx +142 -0
  380. package/src/content/docs/ko/windows-wsl.mdx +119 -0
  381. package/src/content/docs/ko/zen.mdx +327 -0
  382. package/src/content/docs/lsp.mdx +214 -0
  383. package/src/content/docs/mcp-servers.mdx +512 -0
  384. package/src/content/docs/models.mdx +223 -0
  385. package/src/content/docs/nb/acp.mdx +156 -0
  386. package/src/content/docs/nb/agents.mdx +754 -0
  387. package/src/content/docs/nb/cli.mdx +617 -0
  388. package/src/content/docs/nb/commands.mdx +323 -0
  389. package/src/content/docs/nb/config.mdx +688 -0
  390. package/src/content/docs/nb/custom-tools.mdx +196 -0
  391. package/src/content/docs/nb/ecosystem.mdx +78 -0
  392. package/src/content/docs/nb/enterprise.mdx +170 -0
  393. package/src/content/docs/nb/formatters.mdx +131 -0
  394. package/src/content/docs/nb/github.mdx +325 -0
  395. package/src/content/docs/nb/gitlab.mdx +195 -0
  396. package/src/content/docs/nb/go.mdx +238 -0
  397. package/src/content/docs/nb/ide.mdx +48 -0
  398. package/src/content/docs/nb/index.mdx +359 -0
  399. package/src/content/docs/nb/keybinds.mdx +194 -0
  400. package/src/content/docs/nb/lsp.mdx +208 -0
  401. package/src/content/docs/nb/mcp-servers.mdx +624 -0
  402. package/src/content/docs/nb/models.mdx +223 -0
  403. package/src/content/docs/nb/network.mdx +57 -0
  404. package/src/content/docs/nb/permissions.mdx +235 -0
  405. package/src/content/docs/nb/plugins.mdx +389 -0
  406. package/src/content/docs/nb/providers.mdx +1956 -0
  407. package/src/content/docs/nb/rules.mdx +180 -0
  408. package/src/content/docs/nb/sdk.mdx +463 -0
  409. package/src/content/docs/nb/server.mdx +287 -0
  410. package/src/content/docs/nb/share.mdx +128 -0
  411. package/src/content/docs/nb/skills.mdx +222 -0
  412. package/src/content/docs/nb/themes.mdx +369 -0
  413. package/src/content/docs/nb/tools.mdx +341 -0
  414. package/src/content/docs/nb/troubleshooting.mdx +225 -0
  415. package/src/content/docs/nb/tui.mdx +429 -0
  416. package/src/content/docs/nb/web.mdx +105 -0
  417. package/src/content/docs/nb/windows-wsl.mdx +113 -0
  418. package/src/content/docs/nb/zen.mdx +345 -0
  419. package/src/content/docs/network.mdx +57 -0
  420. package/src/content/docs/permissions.mdx +256 -0
  421. package/src/content/docs/pl/acp.mdx +158 -0
  422. package/src/content/docs/pl/agents.mdx +754 -0
  423. package/src/content/docs/pl/cli.mdx +617 -0
  424. package/src/content/docs/pl/commands.mdx +323 -0
  425. package/src/content/docs/pl/config.mdx +680 -0
  426. package/src/content/docs/pl/custom-tools.mdx +196 -0
  427. package/src/content/docs/pl/ecosystem.mdx +78 -0
  428. package/src/content/docs/pl/enterprise.mdx +170 -0
  429. package/src/content/docs/pl/formatters.mdx +131 -0
  430. package/src/content/docs/pl/github.mdx +321 -0
  431. package/src/content/docs/pl/gitlab.mdx +195 -0
  432. package/src/content/docs/pl/go.mdx +230 -0
  433. package/src/content/docs/pl/ide.mdx +48 -0
  434. package/src/content/docs/pl/index.mdx +347 -0
  435. package/src/content/docs/pl/keybinds.mdx +194 -0
  436. package/src/content/docs/pl/lsp.mdx +208 -0
  437. package/src/content/docs/pl/mcp-servers.mdx +511 -0
  438. package/src/content/docs/pl/models.mdx +223 -0
  439. package/src/content/docs/pl/network.mdx +57 -0
  440. package/src/content/docs/pl/permissions.mdx +235 -0
  441. package/src/content/docs/pl/plugins.mdx +385 -0
  442. package/src/content/docs/pl/providers.mdx +1986 -0
  443. package/src/content/docs/pl/rules.mdx +180 -0
  444. package/src/content/docs/pl/sdk.mdx +463 -0
  445. package/src/content/docs/pl/server.mdx +287 -0
  446. package/src/content/docs/pl/share.mdx +128 -0
  447. package/src/content/docs/pl/skills.mdx +222 -0
  448. package/src/content/docs/pl/themes.mdx +369 -0
  449. package/src/content/docs/pl/tools.mdx +341 -0
  450. package/src/content/docs/pl/troubleshooting.mdx +300 -0
  451. package/src/content/docs/pl/tui.mdx +429 -0
  452. package/src/content/docs/pl/web.mdx +142 -0
  453. package/src/content/docs/pl/windows-wsl.mdx +113 -0
  454. package/src/content/docs/pl/zen.mdx +344 -0
  455. package/src/content/docs/plugins.mdx +389 -0
  456. package/src/content/docs/policies.mdx +137 -0
  457. package/src/content/docs/providers.mdx +2501 -0
  458. package/src/content/docs/pt-br/acp.mdx +156 -0
  459. package/src/content/docs/pt-br/agents.mdx +755 -0
  460. package/src/content/docs/pt-br/cli.mdx +616 -0
  461. package/src/content/docs/pt-br/commands.mdx +322 -0
  462. package/src/content/docs/pt-br/config.mdx +687 -0
  463. package/src/content/docs/pt-br/custom-tools.mdx +196 -0
  464. package/src/content/docs/pt-br/ecosystem.mdx +78 -0
  465. package/src/content/docs/pt-br/enterprise.mdx +166 -0
  466. package/src/content/docs/pt-br/formatters.mdx +131 -0
  467. package/src/content/docs/pt-br/github.mdx +321 -0
  468. package/src/content/docs/pt-br/gitlab.mdx +195 -0
  469. package/src/content/docs/pt-br/go.mdx +238 -0
  470. package/src/content/docs/pt-br/ide.mdx +48 -0
  471. package/src/content/docs/pt-br/index.mdx +344 -0
  472. package/src/content/docs/pt-br/keybinds.mdx +194 -0
  473. package/src/content/docs/pt-br/lsp.mdx +208 -0
  474. package/src/content/docs/pt-br/mcp-servers.mdx +511 -0
  475. package/src/content/docs/pt-br/models.mdx +222 -0
  476. package/src/content/docs/pt-br/network.mdx +57 -0
  477. package/src/content/docs/pt-br/permissions.mdx +235 -0
  478. package/src/content/docs/pt-br/plugins.mdx +388 -0
  479. package/src/content/docs/pt-br/providers.mdx +1989 -0
  480. package/src/content/docs/pt-br/rules.mdx +180 -0
  481. package/src/content/docs/pt-br/sdk.mdx +463 -0
  482. package/src/content/docs/pt-br/server.mdx +284 -0
  483. package/src/content/docs/pt-br/share.mdx +127 -0
  484. package/src/content/docs/pt-br/skills.mdx +222 -0
  485. package/src/content/docs/pt-br/themes.mdx +369 -0
  486. package/src/content/docs/pt-br/tools.mdx +341 -0
  487. package/src/content/docs/pt-br/troubleshooting.mdx +299 -0
  488. package/src/content/docs/pt-br/tui.mdx +426 -0
  489. package/src/content/docs/pt-br/web.mdx +142 -0
  490. package/src/content/docs/pt-br/windows-wsl.mdx +113 -0
  491. package/src/content/docs/pt-br/zen.mdx +327 -0
  492. package/src/content/docs/references.mdx +157 -0
  493. package/src/content/docs/ru/acp.mdx +156 -0
  494. package/src/content/docs/ru/agents.mdx +754 -0
  495. package/src/content/docs/ru/cli.mdx +617 -0
  496. package/src/content/docs/ru/commands.mdx +323 -0
  497. package/src/content/docs/ru/config.mdx +685 -0
  498. package/src/content/docs/ru/custom-tools.mdx +170 -0
  499. package/src/content/docs/ru/ecosystem.mdx +78 -0
  500. package/src/content/docs/ru/enterprise.mdx +168 -0
  501. package/src/content/docs/ru/formatters.mdx +119 -0
  502. package/src/content/docs/ru/github.mdx +321 -0
  503. package/src/content/docs/ru/gitlab.mdx +195 -0
  504. package/src/content/docs/ru/go.mdx +238 -0
  505. package/src/content/docs/ru/ide.mdx +48 -0
  506. package/src/content/docs/ru/index.mdx +356 -0
  507. package/src/content/docs/ru/keybinds.mdx +194 -0
  508. package/src/content/docs/ru/lsp.mdx +207 -0
  509. package/src/content/docs/ru/mcp-servers.mdx +511 -0
  510. package/src/content/docs/ru/models.mdx +223 -0
  511. package/src/content/docs/ru/network.mdx +57 -0
  512. package/src/content/docs/ru/permissions.mdx +235 -0
  513. package/src/content/docs/ru/plugins.mdx +385 -0
  514. package/src/content/docs/ru/providers.mdx +1987 -0
  515. package/src/content/docs/ru/rules.mdx +180 -0
  516. package/src/content/docs/ru/sdk.mdx +463 -0
  517. package/src/content/docs/ru/server.mdx +287 -0
  518. package/src/content/docs/ru/share.mdx +128 -0
  519. package/src/content/docs/ru/skills.mdx +222 -0
  520. package/src/content/docs/ru/themes.mdx +369 -0
  521. package/src/content/docs/ru/tools.mdx +341 -0
  522. package/src/content/docs/ru/troubleshooting.mdx +300 -0
  523. package/src/content/docs/ru/tui.mdx +429 -0
  524. package/src/content/docs/ru/web.mdx +142 -0
  525. package/src/content/docs/ru/windows-wsl.mdx +113 -0
  526. package/src/content/docs/ru/zen.mdx +345 -0
  527. package/src/content/docs/rules.mdx +188 -0
  528. package/src/content/docs/sdk.mdx +463 -0
  529. package/src/content/docs/server.mdx +287 -0
  530. package/src/content/docs/share.mdx +128 -0
  531. package/src/content/docs/skills.mdx +222 -0
  532. package/src/content/docs/th/acp.mdx +156 -0
  533. package/src/content/docs/th/agents.mdx +744 -0
  534. package/src/content/docs/th/cli.mdx +618 -0
  535. package/src/content/docs/th/commands.mdx +320 -0
  536. package/src/content/docs/th/config.mdx +690 -0
  537. package/src/content/docs/th/custom-tools.mdx +196 -0
  538. package/src/content/docs/th/ecosystem.mdx +78 -0
  539. package/src/content/docs/th/enterprise.mdx +170 -0
  540. package/src/content/docs/th/formatters.mdx +131 -0
  541. package/src/content/docs/th/github.mdx +321 -0
  542. package/src/content/docs/th/gitlab.mdx +195 -0
  543. package/src/content/docs/th/go.mdx +224 -0
  544. package/src/content/docs/th/ide.mdx +48 -0
  545. package/src/content/docs/th/index.mdx +360 -0
  546. package/src/content/docs/th/keybinds.mdx +194 -0
  547. package/src/content/docs/th/lsp.mdx +208 -0
  548. package/src/content/docs/th/mcp-servers.mdx +511 -0
  549. package/src/content/docs/th/models.mdx +223 -0
  550. package/src/content/docs/th/network.mdx +57 -0
  551. package/src/content/docs/th/permissions.mdx +235 -0
  552. package/src/content/docs/th/plugins.mdx +389 -0
  553. package/src/content/docs/th/providers.mdx +2532 -0
  554. package/src/content/docs/th/rules.mdx +180 -0
  555. package/src/content/docs/th/sdk.mdx +463 -0
  556. package/src/content/docs/th/server.mdx +287 -0
  557. package/src/content/docs/th/share.mdx +128 -0
  558. package/src/content/docs/th/skills.mdx +222 -0
  559. package/src/content/docs/th/themes.mdx +369 -0
  560. package/src/content/docs/th/tools.mdx +341 -0
  561. package/src/content/docs/th/troubleshooting.mdx +300 -0
  562. package/src/content/docs/th/tui.mdx +429 -0
  563. package/src/content/docs/th/web.mdx +142 -0
  564. package/src/content/docs/th/windows-wsl.mdx +113 -0
  565. package/src/content/docs/th/zen.mdx +329 -0
  566. package/src/content/docs/themes.mdx +369 -0
  567. package/src/content/docs/tools.mdx +345 -0
  568. package/src/content/docs/tr/acp.mdx +156 -0
  569. package/src/content/docs/tr/agents.mdx +754 -0
  570. package/src/content/docs/tr/cli.mdx +617 -0
  571. package/src/content/docs/tr/commands.mdx +323 -0
  572. package/src/content/docs/tr/config.mdx +687 -0
  573. package/src/content/docs/tr/custom-tools.mdx +196 -0
  574. package/src/content/docs/tr/ecosystem.mdx +78 -0
  575. package/src/content/docs/tr/enterprise.mdx +170 -0
  576. package/src/content/docs/tr/formatters.mdx +131 -0
  577. package/src/content/docs/tr/github.mdx +321 -0
  578. package/src/content/docs/tr/gitlab.mdx +195 -0
  579. package/src/content/docs/tr/go.mdx +224 -0
  580. package/src/content/docs/tr/ide.mdx +48 -0
  581. package/src/content/docs/tr/index.mdx +347 -0
  582. package/src/content/docs/tr/keybinds.mdx +194 -0
  583. package/src/content/docs/tr/lsp.mdx +208 -0
  584. package/src/content/docs/tr/mcp-servers.mdx +511 -0
  585. package/src/content/docs/tr/models.mdx +223 -0
  586. package/src/content/docs/tr/network.mdx +57 -0
  587. package/src/content/docs/tr/permissions.mdx +235 -0
  588. package/src/content/docs/tr/plugins.mdx +388 -0
  589. package/src/content/docs/tr/providers.mdx +1988 -0
  590. package/src/content/docs/tr/rules.mdx +180 -0
  591. package/src/content/docs/tr/sdk.mdx +463 -0
  592. package/src/content/docs/tr/server.mdx +285 -0
  593. package/src/content/docs/tr/share.mdx +127 -0
  594. package/src/content/docs/tr/skills.mdx +222 -0
  595. package/src/content/docs/tr/themes.mdx +369 -0
  596. package/src/content/docs/tr/tools.mdx +341 -0
  597. package/src/content/docs/tr/troubleshooting.mdx +299 -0
  598. package/src/content/docs/tr/tui.mdx +427 -0
  599. package/src/content/docs/tr/web.mdx +142 -0
  600. package/src/content/docs/tr/windows-wsl.mdx +113 -0
  601. package/src/content/docs/tr/zen.mdx +327 -0
  602. package/src/content/docs/troubleshooting.mdx +314 -0
  603. package/src/content/docs/tui.mdx +427 -0
  604. package/src/content/docs/web.mdx +142 -0
  605. package/src/content/docs/windows-wsl.mdx +112 -0
  606. package/src/content/docs/zen.mdx +345 -0
  607. package/src/content/docs/zh-cn/acp.mdx +156 -0
  608. package/src/content/docs/zh-cn/agents.mdx +754 -0
  609. package/src/content/docs/zh-cn/cli.mdx +617 -0
  610. package/src/content/docs/zh-cn/commands.mdx +322 -0
  611. package/src/content/docs/zh-cn/config.mdx +683 -0
  612. package/src/content/docs/zh-cn/custom-tools.mdx +196 -0
  613. package/src/content/docs/zh-cn/ecosystem.mdx +78 -0
  614. package/src/content/docs/zh-cn/enterprise.mdx +165 -0
  615. package/src/content/docs/zh-cn/formatters.mdx +132 -0
  616. package/src/content/docs/zh-cn/github.mdx +321 -0
  617. package/src/content/docs/zh-cn/gitlab.mdx +194 -0
  618. package/src/content/docs/zh-cn/go.mdx +224 -0
  619. package/src/content/docs/zh-cn/ide.mdx +48 -0
  620. package/src/content/docs/zh-cn/index.mdx +343 -0
  621. package/src/content/docs/zh-cn/keybinds.mdx +194 -0
  622. package/src/content/docs/zh-cn/lsp.mdx +208 -0
  623. package/src/content/docs/zh-cn/mcp-servers.mdx +511 -0
  624. package/src/content/docs/zh-cn/models.mdx +222 -0
  625. package/src/content/docs/zh-cn/network.mdx +57 -0
  626. package/src/content/docs/zh-cn/permissions.mdx +235 -0
  627. package/src/content/docs/zh-cn/plugins.mdx +388 -0
  628. package/src/content/docs/zh-cn/providers.mdx +1949 -0
  629. package/src/content/docs/zh-cn/rules.mdx +180 -0
  630. package/src/content/docs/zh-cn/sdk.mdx +463 -0
  631. package/src/content/docs/zh-cn/server.mdx +284 -0
  632. package/src/content/docs/zh-cn/share.mdx +127 -0
  633. package/src/content/docs/zh-cn/skills.mdx +222 -0
  634. package/src/content/docs/zh-cn/themes.mdx +369 -0
  635. package/src/content/docs/zh-cn/tools.mdx +341 -0
  636. package/src/content/docs/zh-cn/troubleshooting.mdx +299 -0
  637. package/src/content/docs/zh-cn/tui.mdx +426 -0
  638. package/src/content/docs/zh-cn/web.mdx +142 -0
  639. package/src/content/docs/zh-cn/windows-wsl.mdx +112 -0
  640. package/src/content/docs/zh-cn/zen.mdx +327 -0
  641. package/src/content/docs/zh-tw/acp.mdx +156 -0
  642. package/src/content/docs/zh-tw/agents.mdx +754 -0
  643. package/src/content/docs/zh-tw/cli.mdx +617 -0
  644. package/src/content/docs/zh-tw/commands.mdx +322 -0
  645. package/src/content/docs/zh-tw/config.mdx +687 -0
  646. package/src/content/docs/zh-tw/custom-tools.mdx +196 -0
  647. package/src/content/docs/zh-tw/ecosystem.mdx +78 -0
  648. package/src/content/docs/zh-tw/enterprise.mdx +165 -0
  649. package/src/content/docs/zh-tw/formatters.mdx +132 -0
  650. package/src/content/docs/zh-tw/github.mdx +321 -0
  651. package/src/content/docs/zh-tw/gitlab.mdx +194 -0
  652. package/src/content/docs/zh-tw/go.mdx +224 -0
  653. package/src/content/docs/zh-tw/ide.mdx +48 -0
  654. package/src/content/docs/zh-tw/index.mdx +343 -0
  655. package/src/content/docs/zh-tw/keybinds.mdx +194 -0
  656. package/src/content/docs/zh-tw/lsp.mdx +208 -0
  657. package/src/content/docs/zh-tw/mcp-servers.mdx +511 -0
  658. package/src/content/docs/zh-tw/models.mdx +222 -0
  659. package/src/content/docs/zh-tw/network.mdx +57 -0
  660. package/src/content/docs/zh-tw/permissions.mdx +235 -0
  661. package/src/content/docs/zh-tw/plugins.mdx +388 -0
  662. package/src/content/docs/zh-tw/providers.mdx +1970 -0
  663. package/src/content/docs/zh-tw/rules.mdx +180 -0
  664. package/src/content/docs/zh-tw/sdk.mdx +463 -0
  665. package/src/content/docs/zh-tw/server.mdx +284 -0
  666. package/src/content/docs/zh-tw/share.mdx +127 -0
  667. package/src/content/docs/zh-tw/skills.mdx +222 -0
  668. package/src/content/docs/zh-tw/themes.mdx +369 -0
  669. package/src/content/docs/zh-tw/tools.mdx +341 -0
  670. package/src/content/docs/zh-tw/troubleshooting.mdx +299 -0
  671. package/src/content/docs/zh-tw/tui.mdx +426 -0
  672. package/src/content/docs/zh-tw/web.mdx +142 -0
  673. package/src/content/docs/zh-tw/windows-wsl.mdx +112 -0
  674. package/src/content/docs/zh-tw/zen.mdx +333 -0
  675. package/src/content/i18n/ar.json +75 -0
  676. package/src/content/i18n/bs.json +75 -0
  677. package/src/content/i18n/da.json +75 -0
  678. package/src/content/i18n/de.json +75 -0
  679. package/src/content/i18n/en.json +75 -0
  680. package/src/content/i18n/es.json +75 -0
  681. package/src/content/i18n/fr.json +75 -0
  682. package/src/content/i18n/it.json +75 -0
  683. package/src/content/i18n/ja.json +75 -0
  684. package/src/content/i18n/ko.json +75 -0
  685. package/src/content/i18n/nb.json +75 -0
  686. package/src/content/i18n/pl.json +75 -0
  687. package/src/content/i18n/pt-BR.json +75 -0
  688. package/src/content/i18n/ru.json +75 -0
  689. package/src/content/i18n/th.json +75 -0
  690. package/src/content/i18n/tr.json +75 -0
  691. package/src/content/i18n/zh-CN.json +75 -0
  692. package/src/content/i18n/zh-TW.json +75 -0
  693. package/src/content.config.ts +16 -0
  694. package/src/i18n/locales.ts +117 -0
  695. package/src/middleware.ts +94 -0
  696. package/src/pages/[...slug].md.ts +34 -0
  697. package/src/pages/s/[id].astro +164 -0
  698. package/src/styles/custom.css +405 -0
  699. package/src/types/lang-map.d.ts +27 -0
  700. package/src/types/starlight-virtual.d.ts +14 -0
  701. package/sst-env.d.ts +10 -0
  702. package/tsconfig.json +9 -0
@@ -0,0 +1,1998 @@
1
+ ---
2
+ title: プロバイダー
3
+ description: OpenCode で LLM プロバイダーを使用する。
4
+ ---
5
+
6
+ import config from "../../../../config.mjs"
7
+ export const console = config.console
8
+
9
+ OpenCode は [AI SDK](https://ai-sdk.dev/) および [Models.dev](https://models.dev) を使用して **75 以上の LLM プロバイダー** をサポートし、ローカルモデルの実行をサポートします。
10
+
11
+ プロバイダーを追加するには、次のことを行う必要があります。
12
+
13
+ 1. `/connect` コマンドを使用して、プロバイダーの API キーを追加します。
14
+ 2. OpenCode 設定でプロバイダーを構成します。
15
+
16
+ ---
17
+
18
+ ### 認証情報
19
+
20
+ `/connect` コマンドを使用してプロバイダーの API キーを追加すると、それらは保存されます
21
+ `~/.local/share/opencode/auth.json`で。
22
+
23
+ ---
24
+
25
+ ### 設定
26
+
27
+ OpenCode の `provider` セクションを通じてプロバイダーをカスタマイズできます。
28
+ config.
29
+
30
+ ---
31
+
32
+ #### Base URL
33
+
34
+ `baseURL` オプションを設定することで、任意のプロバイダーのベース URL をカスタマイズできます。これは、プロキシサービスまたはカスタムエンドポイントを使用する場合に便利です。
35
+
36
+ ```json title="opencode.json" {6}
37
+ {
38
+ "$schema": "https://opencode.ai/config.json",
39
+ "provider": {
40
+ "anthropic": {
41
+ "options": {
42
+ "baseURL": "https://api.anthropic.com/v1"
43
+ }
44
+ }
45
+ }
46
+ }
47
+ ```
48
+
49
+ ---
50
+
51
+ ## OpenCode Zen
52
+
53
+ OpenCode Zen は、OpenCode チームが提供するモデルのリストです。
54
+ OpenCode で適切に動作することがテストおよび検証されています。 [詳細はこちら](/docs/zen)。
55
+
56
+ :::tip
57
+ 初めての方は、OpenCode Zen から始めることをお勧めします。
58
+ :::
59
+
60
+ 1. TUI で `/connect` コマンドを実行し、`OpenCode Zen` を選択して、[opencode.ai/zen](https://opencode.ai/zen) にアクセスします。
61
+
62
+ ```txt
63
+ /connect
64
+ ```
65
+
66
+ 2. サインインし、お支払いの詳細を追加し、API キーをコピーします。
67
+
68
+ 3. API キーを貼り付けます。
69
+
70
+ ```txt
71
+ ┌ API key
72
+
73
+
74
+ └ enter
75
+ ```
76
+
77
+ 4. TUI で `/models` を実行すると、推奨されるモデルのリストが表示されます。
78
+
79
+ ```txt
80
+ /models
81
+ ```
82
+
83
+ これは OpenCode の他のプロバイダーと同様に機能し、使用は完全にオプションです。
84
+
85
+ ---
86
+
87
+ ## OpenCode Go
88
+
89
+ OpenCode Go は、OpenCode チームによって提供される、人気のあるオープンコーディングモデルへの信頼性の高いアクセスを提供する低コストのサブスクリプションプランです。これらは OpenCode でうまく機能することがテストおよび検証されています。
90
+
91
+ 1. TUI で `/connect` コマンドを実行し、`OpenCode Go` を選択して、[opencode.ai/zen](https://opencode.ai/zen) にアクセスします。
92
+
93
+ ```txt
94
+ /connect
95
+ ```
96
+
97
+ 2. サインインし、お支払いの詳細を追加し、API キーをコピーします。
98
+
99
+ 3. API キーを貼り付けます。
100
+
101
+ ```txt
102
+ ┌ API key
103
+
104
+
105
+ └ enter
106
+ ```
107
+
108
+ 4. TUI で `/models` を実行すると、推奨されるモデルのリストが表示されます。
109
+
110
+ ```txt
111
+ /models
112
+ ```
113
+
114
+ これは OpenCode の他のプロバイダーと同様に機能し、使用は完全にオプションです。
115
+
116
+ ---
117
+
118
+ ## ディレクトリ
119
+
120
+ いくつかのプロバイダーを詳しく見てみましょう。プロバイダーを追加したい場合は、
121
+ リストにある場合は、お気軽に PR を開いてください。
122
+
123
+ :::note
124
+ ここにプロバイダーが表示されない場合は、 PRを送信してください。
125
+ :::
126
+
127
+ ---
128
+
129
+ ### 302.AI
130
+
131
+ 1. [302.AI console](https://302.ai/) に移動し、アカウントを作成し、API キーを生成します。
132
+
133
+ 2. `/connect` コマンドを実行し、**302.AI** を検索します。
134
+
135
+ ```txt
136
+ /connect
137
+ ```
138
+
139
+ 3. 302.AI API キーを入力します。
140
+
141
+ ```txt
142
+ ┌ API key
143
+
144
+
145
+ └ enter
146
+ ```
147
+
148
+ 4. `/models` コマンドを実行してモデルを選択します。
149
+
150
+ ```txt
151
+ /models
152
+ ```
153
+
154
+ ---
155
+
156
+ ### Amazon Bedrock
157
+
158
+ OpenCode で Amazon Bedrock を使用するには:
159
+
160
+ 1. Amazon Bedrock コンソールの **モデルカタログ** に移動し、必要なモデルへのアクセスをリクエストします。
161
+
162
+ :::tip
163
+ Amazon Bedrock で必要なモデルにアクセスできる必要があります。
164
+ :::
165
+
166
+ 2. **次のいずれかの方法を使用して認証を構成します**:
167
+
168
+ ***
169
+
170
+ #### 環境変数 (クイックスタート)
171
+
172
+ opencode の実行中に次の環境変数のいずれかを設定します。
173
+
174
+ ```bash
175
+ # オプション 1: AWS アクセスキーの使用
176
+ AWS_ACCESS_KEY_ID=XXX AWS_SECRET_ACCESS_KEY=YYY opencode
177
+
178
+ # オプション 2: 名前付き AWS プロファイルの使用
179
+ AWS_PROFILE=my-profile opencode
180
+
181
+ # オプション 3: Bedrock ベアラートークンの使用
182
+ AWS_BEARER_TOKEN_BEDROCK=XXX opencode
183
+ ```
184
+
185
+ または、それらを bash プロファイルに追加します。
186
+
187
+ ```bash title="~/.bash_profile"
188
+ export AWS_PROFILE=my-dev-profile
189
+ export AWS_REGION=us-east-1
190
+ ```
191
+
192
+ ***
193
+
194
+ #### 設定ファイル (推奨)
195
+
196
+ プロジェクト固有の設定または永続的な設定の場合は、`opencode.json` を使用します。
197
+
198
+ ```json title="opencode.json"
199
+ {
200
+ "$schema": "https://opencode.ai/config.json",
201
+ "provider": {
202
+ "amazon-bedrock": {
203
+ "options": {
204
+ "region": "us-east-1",
205
+ "profile": "my-aws-profile"
206
+ }
207
+ }
208
+ }
209
+ }
210
+ ```
211
+
212
+ **利用可能なオプション:**
213
+ - `region` - AWS リージョン (例: `us-east-1`、`eu-west-1`)
214
+ - `profile` - `~/.aws/credentials` からの AWS 名前付きプロファイル
215
+ - `endpoint` - VPC エンドポイントのカスタムエンドポイント URL (汎用 `baseURL` オプションのエイリアス)
216
+
217
+ :::tip
218
+ 設定ファイルのオプションは環境変数より優先されます。
219
+ :::
220
+
221
+ ***
222
+
223
+ #### 上級: VPC エンドポイント
224
+
225
+ Bedrock の VPC エンドポイントを使用している場合:
226
+
227
+ ```json title="opencode.json"
228
+ {
229
+ "$schema": "https://opencode.ai/config.json",
230
+ "provider": {
231
+ "amazon-bedrock": {
232
+ "options": {
233
+ "region": "us-east-1",
234
+ "profile": "production",
235
+ "endpoint": "https://bedrock-runtime.us-east-1.vpce-xxxxx.amazonaws.com"
236
+ }
237
+ }
238
+ }
239
+ }
240
+ ```
241
+
242
+ :::note
243
+ `endpoint` オプションは、AWS 固有の用語を使用した汎用の `baseURL` オプションのエイリアスです。 `endpoint` と `baseURL` の両方が指定された場合は、`endpoint` が優先されます。
244
+ :::
245
+
246
+ ***
247
+
248
+ #### 認証方法
249
+ - **`AWS_ACCESS_KEY_ID` / `AWS_SECRET_ACCESS_KEY`**: IAM ユーザーを作成し、AWS コンソールでアクセスキーを生成します
250
+ - **`AWS_PROFILE`**: `~/.aws/credentials` の名前付きプロファイルを使用します。最初に `aws configure --profile my-profile` または `aws sso login` を設定します
251
+ - **`AWS_BEARER_TOKEN_BEDROCK`**: Amazon Bedrock コンソールから長期 API キーを生成します
252
+ - **`AWS_WEB_IDENTITY_TOKEN_FILE` / `AWS_ROLE_ARN`**: EKS IRSA (サービスアカウントの IAM ロール) または OIDC フェデレーションを備えた他の Kubernetes 環境の場合。これらの環境変数は、サービスアカウントアノテーションを使用するときに Kubernetes によって自動的に挿入されます。
253
+
254
+ ***
255
+
256
+ #### 認証の優先順位
257
+
258
+ Amazon Bedrock は次の認証優先度を使用します。
259
+ 1. **ベアラー トークン** - `AWS_BEARER_TOKEN_BEDROCK` 環境変数または `/connect` コマンドからのトークン
260
+ 2. **AWS 認証情報チェーン** - プロファイル、アクセスキー、共有認証情報、IAM ロール、Web ID トークン (EKS IRSA)、インスタンスメタデータ
261
+
262
+ :::note
263
+ ベアラー トークンが (`/connect` または `AWS_BEARER_TOKEN_BEDROCK` 経由で) 設定されると、設定されたプロファイルを含むすべての AWS 認証情報方法よりも優先されます。
264
+ :::
265
+
266
+ 3. `/models` コマンドを実行して、必要なモデルを選択します。
267
+
268
+ ```txt
269
+ /models
270
+ ```
271
+
272
+ :::note
273
+ カスタム推論プロファイルの場合、キーでモデルとプロバイダー名を使用し、`id` プロパティを arn に設定します。これにより、正しいキャッシュが保証されます。
274
+ :::
275
+
276
+ ```json title="opencode.json"
277
+ {
278
+ "$schema": "https://opencode.ai/config.json",
279
+ "provider": {
280
+ "amazon-bedrock": {
281
+ // ...
282
+ "models": {
283
+ "anthropic-claude-sonnet-4.5": {
284
+ "id": "arn:aws:bedrock:us-east-1:xxx:application-inference-profile/yyy"
285
+ }
286
+ }
287
+ }
288
+ }
289
+ }
290
+ ```
291
+
292
+ ---
293
+
294
+ ### Anthropic
295
+
296
+ 1. サインアップしたら、`/connect` コマンドを実行し、[Anthropic] を選択します。
297
+
298
+ ```txt
299
+ /connect
300
+ ```
301
+
302
+ 2. ここで **Claude Pro/Max** オプションを選択すると、ブラウザが開きます
303
+ そして認証を求められます。
304
+
305
+ ```txt
306
+ ┌ Select auth method
307
+
308
+ │ Claude Pro/Max
309
+ │ Create an API Key
310
+ │ Manually enter API Key
311
+
312
+ ```
313
+
314
+ 3. これで、`/models` コマンドを使用すると、すべての Anthropic モデルが利用できるようになります。
315
+
316
+ ```txt
317
+ /models
318
+ ```
319
+
320
+ :::info
321
+ OpenCode での Claude Pro/Max サブスクリプションの使用は、[Anthropic](https://anthropic.com) によって正式に許可されていませんが、一般的に機能します。
322
+ :::
323
+
324
+ ##### APIキーの使用
325
+
326
+ Pro/Max サブスクリプションをお持ちでない場合は、[**API キーの作成**] を選択することもできます。また、ブラウザが開き、Anthropic にログインするよう求められ、ターミナルに貼り付けるコードが表示されます。
327
+
328
+ または、すでに API キーをお持ちの場合は、[**API キーを手動で入力**] を選択してターミナルに貼り付けることができます。
329
+
330
+ ---
331
+
332
+ ### Atomic Chat
333
+
334
+ opencode は、OpenAI 互換の API サーバーの背後でローカル LLM を実行するデスクトップアプリケーション [Atomic Chat](https://atomic.chat) 経由でローカルモデルを使うように設定できます(デフォルトのエンドポイントは `http://127.0.0.1:1337/v1`)。
335
+
336
+ ```json title="opencode.json" "atomic-chat" {5, 6, 8, 10-14}
337
+ {
338
+ "$schema": "https://opencode.ai/config.json",
339
+ "provider": {
340
+ "atomic-chat": {
341
+ "npm": "@ai-sdk/openai-compatible",
342
+ "name": "Atomic Chat (local)",
343
+ "options": {
344
+ "baseURL": "http://127.0.0.1:1337/v1"
345
+ },
346
+ "models": {
347
+ "<your-model-id>": {
348
+ "name": "<your-model-name>"
349
+ }
350
+ }
351
+ }
352
+ }
353
+ }
354
+ ```
355
+
356
+ この例では:
357
+
358
+ - `atomic-chat` はカスタムプロバイダー ID です。任意の文字列を指定できます。
359
+ - `npm` はこのプロバイダーに使用するパッケージを指定します。ここでは、任意の OpenAI 互換 API に対して `@ai-sdk/openai-compatible` を使用しています。
360
+ - `name` は UI に表示されるプロバイダー名です。
361
+ - `options.baseURL` はローカルサーバーのエンドポイントです。Atomic Chat のセットアップに合わせてホストとポートを変更してください。
362
+ - `models` はモデル ID と表示名のマップです。各 ID は `GET /v1/models` が返す `id` と一致する必要があります。Atomic Chat に現在ロードされている ID の一覧は `curl http://127.0.0.1:1337/v1/models` を実行して確認できます。
363
+
364
+ :::tip
365
+ ツール呼び出しがうまく動作しない場合は、ツール呼び出しに強いロード済みモデル(例えば Qwen-Coder や DeepSeek-Coder のバリアント)を選択してください。
366
+ :::
367
+
368
+ ---
369
+
370
+ ### Azure OpenAI
371
+
372
+ :::note
373
+ 「申し訳ありませんが、そのリクエストには対応できません」エラーが発生した場合は、Azure リソースのコンテンツフィルターを **DefaultV2** から **Default** に変更してみてください。
374
+ :::
375
+
376
+ 1. [Azure portal](https://portal.azure.com/) に移動し、**Azure OpenAI** リソースを作成します。必要なものは次のとおりです。
377
+ - **リソース名**: これは API エンドポイント (`https://RESOURCE_NAME.openai.azure.com/`) の一部になります。
378
+ - **API キー**: リソースの `KEY 1` または `KEY 2` のいずれか
379
+
380
+ 2. [Azure AI Foundry](https://ai.azure.com/) に移動し、モデルをデプロイします。
381
+
382
+ :::note
383
+ OpenCode が正しく動作するには、デプロイメント名がモデル名と一致する必要があります。
384
+ :::
385
+
386
+ 3. `/connect` コマンドを実行し、**Azure** を検索します。
387
+
388
+ ```txt
389
+ /connect
390
+ ```
391
+
392
+ 4. API キーを入力します。
393
+
394
+ ```txt
395
+ ┌ API key
396
+
397
+
398
+ └ enter
399
+ ```
400
+
401
+ 5. リソース名を環境変数として設定します。
402
+
403
+ ```bash
404
+ AZURE_RESOURCE_NAME=XXX opencode
405
+ ```
406
+
407
+ または、bash プロファイルに追加します。
408
+
409
+ ```bash title="~/.bash_profile"
410
+ export AZURE_RESOURCE_NAME=XXX
411
+ ```
412
+
413
+ 6. `/models` コマンドを実行して、デプロイされたモデルを選択します。
414
+
415
+ ```txt
416
+ /models
417
+ ```
418
+
419
+ ---
420
+
421
+ ### Azure Cognitive Services
422
+
423
+ 1. [Azure portal](https://portal.azure.com/) に移動し、**Azure OpenAI** リソースを作成します。必要なものは次のとおりです。
424
+ - **リソース名**: これは API エンドポイント (`https://AZURE_COGNITIVE_SERVICES_RESOURCE_NAME.cognitiveservices.azure.com/`) の一部になります。
425
+ - **API キー**: リソースの `KEY 1` または `KEY 2` のいずれか
426
+
427
+ 2. [Azure AI Foundry](https://ai.azure.com/) に移動し、モデルをデプロイします。
428
+
429
+ :::note
430
+ OpenCode が正しく動作するには、デプロイメント名がモデル名と一致する必要があります。
431
+ :::
432
+
433
+ 3. `/connect` コマンドを実行し、**Azure Cognitive Services** を検索します。
434
+
435
+ ```txt
436
+ /connect
437
+ ```
438
+
439
+ 4. API キーを入力します。
440
+
441
+ ```txt
442
+ ┌ API key
443
+
444
+
445
+ └ enter
446
+ ```
447
+
448
+ 5. リソース名を環境変数として設定します。
449
+
450
+ ```bash
451
+ AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX opencode
452
+ ```
453
+
454
+ または、bash プロファイルに追加します。
455
+
456
+ ```bash title="~/.bash_profile"
457
+ export AZURE_COGNITIVE_SERVICES_RESOURCE_NAME=XXX
458
+ ```
459
+
460
+ 6. `/models` コマンドを実行して、デプロイされたモデルを選択します。
461
+
462
+ ```txt
463
+ /models
464
+ ```
465
+
466
+ ---
467
+
468
+ ### Baseten
469
+
470
+ 1. [Baseten](https://app.baseten.co/) に移動し、アカウントを作成し、API キーを生成します。
471
+
472
+ 2. `/connect` コマンドを実行し、**Baseten** を検索します。
473
+
474
+ ```txt
475
+ /connect
476
+ ```
477
+
478
+ 3. Baseten API キーを入力します。
479
+
480
+ ```txt
481
+ ┌ API key
482
+
483
+
484
+ └ enter
485
+ ```
486
+
487
+ 4. `/models` コマンドを実行してモデルを選択します。
488
+
489
+ ```txt
490
+ /models
491
+ ```
492
+
493
+ ---
494
+
495
+ ### Cerebras
496
+
497
+ 1. [Cerebras console](https://inference.cerebras.ai/) に移動し、アカウントを作成し、API キーを生成します。
498
+
499
+ 2. `/connect` コマンドを実行し、**Cerebras** を検索します。
500
+
501
+ ```txt
502
+ /connect
503
+ ```
504
+
505
+ 3. Cerebras API キーを入力します。
506
+
507
+ ```txt
508
+ ┌ API key
509
+
510
+
511
+ └ enter
512
+ ```
513
+
514
+ 4. `/models` コマンドを実行して、_Qwen 3 Coder 480B_ のようなモデルを選択します。
515
+
516
+ ```txt
517
+ /models
518
+ ```
519
+
520
+ ---
521
+
522
+ ### Cloudflare AI Gateway
523
+
524
+ Cloudflare AI Gatewayを使用すると、統合エンドポイントを通じてOpenAI、Anthropic、Workers AIなどのモデルにアクセスできます。 [Unified Billing](https://developers.cloudflare.com/ai-gateway/features/unified-billing/) を使用すると、プロバイダーごとに個別の API キーは必要ありません。
525
+
526
+ 1. [Cloudflare ダッシュボード ](https://dash.cloudflare.com/) に移動し、**AI** > **AI ゲートウェイ** に移動し、新しいゲートウェイを作成します。
527
+
528
+ 2. アカウント ID とゲートウェイ ID を環境変数として設定します。
529
+
530
+ ```bash title="~/.bash_profile"
531
+ export CLOUDFLARE_ACCOUNT_ID=your-32-character-account-id
532
+ export CLOUDFLARE_GATEWAY_ID=your-gateway-id
533
+ ```
534
+
535
+ 3. `/connect` コマンドを実行し、**Cloudflare AI Gateway** を検索します。
536
+
537
+ ```txt
538
+ /connect
539
+ ```
540
+
541
+ 4. Cloudflare API トークンを入力します。
542
+
543
+ ```txt
544
+ ┌ API key
545
+
546
+
547
+ └ enter
548
+ ```
549
+
550
+ または環境変数として設定します。
551
+
552
+ ```bash title="~/.bash_profile"
553
+ export CLOUDFLARE_API_TOKEN=your-api-token
554
+ ```
555
+
556
+ 5. `/models` コマンドを実行してモデルを選択します。
557
+
558
+ ```txt
559
+ /models
560
+ ```
561
+
562
+ OpenCode 設定を通じてモデルを追加することもできます。
563
+
564
+ ```json title="opencode.json"
565
+ {
566
+ "$schema": "https://opencode.ai/config.json",
567
+ "provider": {
568
+ "cloudflare-ai-gateway": {
569
+ "models": {
570
+ "openai/gpt-4o": {},
571
+ "anthropic/claude-sonnet-4": {}
572
+ }
573
+ }
574
+ }
575
+ }
576
+ ```
577
+
578
+ ---
579
+
580
+ ### Cortecs
581
+
582
+ 1. [Cortecs console](https://cortecs.ai/) に移動し、アカウントを作成し、API キーを生成します。
583
+
584
+ 2. `/connect` コマンドを実行し、**Cortecs** を検索します。
585
+
586
+ ```txt
587
+ /connect
588
+ ```
589
+
590
+ 3. Cortecs API キーを入力します。
591
+
592
+ ```txt
593
+ ┌ API key
594
+
595
+
596
+ └ enter
597
+ ```
598
+
599
+ 4. `/models` コマンドを実行して、_Kimi K2 Instruct_ のようなモデルを選択します。
600
+
601
+ ```txt
602
+ /models
603
+ ```
604
+
605
+ ---
606
+
607
+ ### DeepSeek
608
+
609
+ 1. [DeepSeek コンソール ](https://platform.deepseek.com/) に移動し、アカウントを作成し、**新しい API キーの作成** をクリックします。
610
+
611
+ 2. `/connect` コマンドを実行し、**DeepSeek** を検索します。
612
+
613
+ ```txt
614
+ /connect
615
+ ```
616
+
617
+ 3. DeepSeek API キーを入力します。
618
+
619
+ ```txt
620
+ ┌ API key
621
+
622
+
623
+ └ enter
624
+ ```
625
+
626
+ 4. `/models` コマンドを実行して、_DeepSeek V4 Pro_ のような DeepSeek モデルを選択します。
627
+
628
+ ```txt
629
+ /models
630
+ ```
631
+
632
+ ---
633
+
634
+ ### Deep Infra
635
+
636
+ 1. [Deep Infra ダッシュボード](https://deepinfra.com/dash) に移動し、アカウントを作成し、API キーを生成します。
637
+
638
+ 2. `/connect` コマンドを実行し、**Deep Infra** を検索します。
639
+
640
+ ```txt
641
+ /connect
642
+ ```
643
+
644
+ 3. Deep Infra API キーを入力します。
645
+
646
+ ```txt
647
+ ┌ API key
648
+
649
+
650
+ └ enter
651
+ ```
652
+
653
+ 4. `/models` コマンドを実行してモデルを選択します。
654
+
655
+ ```txt
656
+ /models
657
+ ```
658
+
659
+ ---
660
+
661
+ ### FrogBot
662
+
663
+ 1. [ファームウェアダッシュボード](https://app.frogbot.ai/signup) に移動し、アカウントを作成し、API キーを生成します。
664
+
665
+ 2. `/connect` コマンドを実行し、**ファームウェア**を検索します。
666
+
667
+ ```txt
668
+ /connect
669
+ ```
670
+
671
+ 3. ファームウェア API キーを入力します。
672
+
673
+ ```txt
674
+ ┌ API key
675
+
676
+
677
+ └ enter
678
+ ```
679
+
680
+ 4. `/models` コマンドを実行してモデルを選択します。
681
+
682
+ ```txt
683
+ /models
684
+ ```
685
+
686
+ ---
687
+
688
+ ### Fireworks AI
689
+
690
+ 1. [Fireworks AI コンソール ](https://app.fireworks.ai/) に移動し、アカウントを作成し、**API キーの作成** をクリックします。
691
+
692
+ 2. `/connect` コマンドを実行し、**Fireworks AI** を検索します。
693
+
694
+ ```txt
695
+ /connect
696
+ ```
697
+
698
+ 3. Fireworks AI API キーを入力します。
699
+
700
+ ```txt
701
+ ┌ API key
702
+
703
+
704
+ └ enter
705
+ ```
706
+
707
+ 4. `/models` コマンドを実行して、_Kimi K2 Instruct_ のようなモデルを選択します。
708
+
709
+ ```txt
710
+ /models
711
+ ```
712
+
713
+ ---
714
+
715
+ ### GitLab Duo
716
+
717
+ GitLab Duo は、GitLab の Anthropic プロキシを介したネイティブツール呼び出し機能を備えた AI を活用したエージェントチャットを提供します。
718
+
719
+ 1. `/connect` コマンドを実行し、GitLab を選択します。
720
+
721
+ ```txt
722
+ /connect
723
+ ```
724
+
725
+ 2. 認証方法を選択してください:
726
+
727
+ ```txt
728
+ ┌ Select auth method
729
+
730
+ │ OAuth (Recommended)
731
+ │ Personal Access Token
732
+
733
+ ```
734
+
735
+ #### OAuthの使用(推奨)
736
+
737
+ **OAuth** を選択すると、認証のためにブラウザが開きます。
738
+
739
+ #### パーソナルアクセストークンの使用
740
+
741
+ 1. [GitLab ユーザー設定 > アクセス Tokens](https://gitlab.com/-/user_settings/personal_access_tokens) に移動します。
742
+ 2. **新しいトークンを追加** をクリックします
743
+ 3. 名前: `OpenCode`、スコープ: `api`
744
+ 4. トークンをコピーします(`glpat-`で始まる)
745
+ 5. ターミナルに入力してください
746
+
747
+ 6. `/models` コマンドを実行して、利用可能なモデルを確認します。
748
+
749
+ ```txt
750
+ /models
751
+ ```
752
+
753
+ ---
754
+
755
+ ### STACKIT
756
+
757
+ STACKIT AI Model Serving は、Llama、Mistral、Qwen などの LLM に焦点を当て、ヨーロッパのインフラストラクチャでの最大限のデータ主権を備えた、AI モデル用の完全に管理された主権ホスティング環境を提供します。
758
+
759
+ 1. [STACKIT Portal](https://portal.stackit.cloud) に移動し、**AI Model Serving** に移動して、プロジェクトの認証トークンを作成します。
760
+
761
+ :::tip
762
+ 認証トークンを作成する前に、STACKIT 顧客アカウント、ユーザーアカウント、およびプロジェクトが必要です。
763
+ :::
764
+
765
+ 2. `/connect` コマンドを実行し、**STACKIT** を検索します。
766
+
767
+ ```txt
768
+ /connect
769
+ ```
770
+
771
+ 3. STACKIT AI Model Serving 認証トークンを入力します。
772
+
773
+ ```txt
774
+ ┌ API key
775
+
776
+
777
+ └ enter
778
+ ```
779
+
780
+ 4. `/models` コマンドを実行して、_Qwen3-VL 235B_ や _Llama 3.3 70B_ などの利用可能なモデルから選択します。
781
+
782
+ ```txt
783
+ /models
784
+ ```
785
+
786
+ 3 つの Claude ベースのモデルが利用可能です。
787
+
788
+ - **duo-chat-haiku-4-5** (デフォルト) - 素早いタスクに対する素早い応答
789
+ - **duo-chat-sonnet-4-5** - ほとんどのワークフローでバランスの取れたパフォーマンス
790
+ - **duo-chat-opus-4-5** - 複雑な分析に最も適した能力
791
+
792
+ :::note
793
+ 必要がない場合は、「GITLAB_TOKEN」環境変数を指定することもできます。
794
+ トークンを OpenCode 認証ストレージに保存します。
795
+ :::
796
+
797
+ ##### 自己ホスト型 GitLab
798
+
799
+ :::note[コンプライアンスメモ]
800
+ OpenCode は、セッションタイトルの生成などの一部の AI タスクに小規模なモデルを使用します。
801
+ デフォルトでは、Zen によってホストされる gpt-5-nano を使用するように構成されています。 OpenCode をロックするには
802
+ 自分の GitLab でホストされているインスタンスのみを使用するには、次の行を
803
+ `opencode.json` ファイル。セッション共有を無効にすることもお勧めします。
804
+
805
+ ```json
806
+ {
807
+ "small_model": "gitlab/duo-chat-haiku-4-5",
808
+ "share": "disabled"
809
+ }
810
+ ```
811
+
812
+ :::
813
+
814
+ セルフホスト型 GitLab インスタンスの場合:
815
+
816
+ ```bash
817
+ export GITLAB_INSTANCE_URL=https://gitlab.company.com
818
+ export GITLAB_TOKEN=glpat-...
819
+ ```
820
+
821
+ インスタンスがカスタム AI ゲートウェイを実行している場合:
822
+
823
+ ```bash
824
+ GITLAB_AI_GATEWAY_URL=https://ai-gateway.company.com
825
+ ```
826
+
827
+ または、bash プロファイルに追加します。
828
+
829
+ ```bash title="~/.bash_profile"
830
+ export GITLAB_INSTANCE_URL=https://gitlab.company.com
831
+ export GITLAB_AI_GATEWAY_URL=https://ai-gateway.company.com
832
+ export GITLAB_TOKEN=glpat-...
833
+ ```
834
+
835
+ :::note
836
+ GitLab 管理者は以下を有効にする必要があります。
837
+
838
+ 1. [Duo Agent Platform](https://docs.gitlab.com/user/duo_agent_platform/turn_on_off/) (ユーザー、グループ、またはインスタンス用)
839
+ 2. 機能フラグ (Rails コンソール経由):
840
+ - `agent_platform_claude_code`
841
+ - `third_party_agents_enabled`
842
+ :::
843
+
844
+ ##### セルフホスト型インスタンスの OAuth
845
+
846
+ 自己ホスト型インスタンスで Oauth を機能させるには、以下を作成する必要があります。
847
+ 新しいアプリケーション ([設定] → [アプリケーション]) で、
848
+ コールバック URL `http://127.0.0.1:8080/callback` と次のスコープ:
849
+
850
+ - api (あなたの代わりに API にアクセスします)
851
+ - read_user (個人情報の読み取り)
852
+ - read_repository (リポジトリへの読み取り専用アクセスを許可します)
853
+
854
+ 次に、アプリケーション ID を環境変数として公開します。
855
+
856
+ ```bash
857
+ export GITLAB_OAUTH_CLIENT_ID=your_application_id_here
858
+ ```
859
+
860
+ 詳細については、[opencode-gitlab-auth](https://www.npmjs.com/package/opencode-gitlab-auth) ホームページ。
861
+
862
+ ##### 設定
863
+
864
+ `opencode.json` を通じてカスタマイズします。
865
+
866
+ ```json title="opencode.json"
867
+ {
868
+ "$schema": "https://opencode.ai/config.json",
869
+ "provider": {
870
+ "gitlab": {
871
+ "options": {
872
+ "instanceUrl": "https://gitlab.com"
873
+ }
874
+ }
875
+ }
876
+ }
877
+ ```
878
+
879
+ ##### GitLab API ツール (オプションですが強く推奨)
880
+
881
+ GitLab ツール (マージリクエスト、問題、パイプライン、CI/CD など) にアクセスするには:
882
+
883
+ ```json title="opencode.json"
884
+ {
885
+ "$schema": "https://opencode.ai/config.json",
886
+ "plugin": ["opencode-gitlab-plugin"]
887
+ }
888
+ ```
889
+
890
+ このプラグインは、MR レビュー、問題追跡、パイプライン監視などを含む、包括的な GitLab リポジトリ管理機能を提供します。
891
+
892
+ ---
893
+
894
+ ### GitHub Copilot
895
+
896
+ GitHub Copilot サブスクリプションを OpenCode で使用するには:
897
+
898
+ :::note
899
+ 一部のモデルでは [Pro+] が必要になる場合があります。
900
+ subscription](https://github.com/features/copilot/plans) を使用します。
901
+
902
+ 一部のモデルは、[GitHub Copilot settings](https://docs.github.com/en/copilot/how-tos/use-ai-models/configure-access-to-ai-models#setup-for-individual-use) で構成する必要があります。
903
+ :::
904
+
905
+ 1. `/connect` コマンドを実行し、GitHub Copilot を検索します。
906
+
907
+ ```txt
908
+ /connect
909
+ ```
910
+
911
+ 2. [github.com/login/device](https://github.com/login/device) に移動し、コードを入力します。
912
+
913
+ ```txt
914
+ ┌ Login with GitHub Copilot
915
+
916
+ │ https://github.com/login/device
917
+
918
+ │ Enter code: 8F43-6FCF
919
+
920
+
921
+ └ Waiting for authorization...
922
+ ```
923
+
924
+ 3. 次に、`/models` コマンドを実行して、必要なモデルを選択します。
925
+
926
+ ```txt
927
+ /models
928
+ ```
929
+
930
+ ---
931
+
932
+ ### Google Vertex AI
933
+
934
+ OpenCode で Google Vertex AI を使用するには:
935
+
936
+ 1. Google Cloud Console の **Model Garden** に移動し、
937
+ お住まいの地域で利用可能なモデル。
938
+
939
+ :::note
940
+ Vertex AI API が有効になっている Google Cloud プロジェクトが必要です。
941
+ :::
942
+
943
+ 2. 必要な環境変数を設定します。
944
+ - `GOOGLE_CLOUD_PROJECT`: Google Cloud プロジェクト ID
945
+ - `VERTEX_LOCATION` (オプション): Vertex AI の領域 (デフォルトは `global`)
946
+ - 認証 (1 つ選択):
947
+ - `GOOGLE_APPLICATION_CREDENTIALS`: サービスアカウントの JSON キーファイルへのパス
948
+ - gcloud CLI を使用して認証する: `gcloud auth application-default login`
949
+
950
+ opencode の実行中に設定します。
951
+
952
+ ```bash
953
+ GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json GOOGLE_CLOUD_PROJECT=your-project-id opencode
954
+ ```
955
+
956
+ または、それらを bash プロファイルに追加します。
957
+
958
+ ```bash title="~/.bash_profile"
959
+ export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account.json
960
+ export GOOGLE_CLOUD_PROJECT=your-project-id
961
+ export VERTEX_LOCATION=global
962
+ ```
963
+
964
+ :::tip
965
+ `global` 領域は、追加コストなしで可用性を向上させ、エラーを削減します。データ常駐要件には、リージョンエンドポイント (`us-central1` など) を使用します。 [詳細はこちら](https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/use-partner-models#regional_and_global_endpoints)
966
+ :::
967
+
968
+ 3. `/models` コマンドを実行して、必要なモデルを選択します。
969
+
970
+ ```txt
971
+ /models
972
+ ```
973
+
974
+ ---
975
+
976
+ ### Groq
977
+
978
+ 1. [Groq console](https://console.groq.com/) に移動し、[**API キーの作成**] をクリックして、キーをコピーします。
979
+
980
+ 2. `/connect` コマンドを実行し、Groq を検索します。
981
+
982
+ ```txt
983
+ /connect
984
+ ```
985
+
986
+ 3. プロバイダーの API キーを入力します。
987
+
988
+ ```txt
989
+ ┌ API key
990
+
991
+
992
+ └ enter
993
+ ```
994
+
995
+ 4. `/models` コマンドを実行して、必要なものを選択します。
996
+
997
+ ```txt
998
+ /models
999
+ ```
1000
+
1001
+ ---
1002
+
1003
+ ### Hugging Face
1004
+
1005
+ [Hugging Face Inference Provider](https://huggingface.co/docs/inference-providers) は、17 を超えるプロバイダーがサポートするオープンモデルへのアクセスを提供します。
1006
+
1007
+ 1. [Hugging Face settings](https://huggingface.co/settings/tokens/new?ownUserPermissions=inference.serverless.write&tokenType=fineGrained) に移動して、推論プロバイダーを呼び出す権限を持つトークンを作成します。
1008
+
1009
+ 2. `/connect` コマンドを実行し、**Hugging Face** を検索します。
1010
+
1011
+ ```txt
1012
+ /connect
1013
+ ```
1014
+
1015
+ 3. Hugging Face トークンを入力してください。
1016
+
1017
+ ```txt
1018
+ ┌ API key
1019
+
1020
+
1021
+ └ enter
1022
+ ```
1023
+
1024
+ 4. `/models` コマンドを実行して、_Kimi-K2-Instruct_ や _GLM-4.6_ などのモデルを選択します。
1025
+
1026
+ ```txt
1027
+ /models
1028
+ ```
1029
+
1030
+ ---
1031
+
1032
+ ### Helicone
1033
+
1034
+ [Helicone](https://helicone.ai) は、AI アプリケーションのロギング、監視、分析を提供する LLM 可観測性プラットフォームです。 Helicone AI ゲートウェイは、モデルに基づいてリクエストを適切なプロバイダーに自動的にルーティングします。
1035
+
1036
+ 1. [Helicone](https://helicone.ai) に移動し、アカウントを作成し、ダッシュボードから API キーを生成します。
1037
+
1038
+ 2. `/connect` コマンドを実行し、**Helicone** を検索します。
1039
+
1040
+ ```txt
1041
+ /connect
1042
+ ```
1043
+
1044
+ 3. Helicone API キーを入力します。
1045
+
1046
+ ```txt
1047
+ ┌ API key
1048
+
1049
+
1050
+ └ enter
1051
+ ```
1052
+
1053
+ 4. `/models` コマンドを実行してモデルを選択します。
1054
+
1055
+ ```txt
1056
+ /models
1057
+ ```
1058
+
1059
+ その他のプロバイダーや、キャッシュやレート制限などの高度な機能については、[Helicone ドキュメント](https://docs.helicone.ai).
1060
+
1061
+ #### オプションの設定
1062
+
1063
+ OpenCode を通じて自動的に構成されていない Helicone の機能またはモデルを見つけた場合は、いつでも自分で構成できます。
1064
+
1065
+ これは [Helicone のモデルディレクトリ](https://helicone.ai/models) です。追加するモデルの ID を取得するためにこれが必要になります。
1066
+
1067
+ ```jsonc title="~/.config/opencode/opencode.jsonc"
1068
+ {
1069
+ "$schema": "https://opencode.ai/config.json",
1070
+ "provider": {
1071
+ "helicone": {
1072
+ "npm": "@ai-sdk/openai-compatible",
1073
+ "name": "Helicone",
1074
+ "options": {
1075
+ "baseURL": "https://ai-gateway.helicone.ai",
1076
+ },
1077
+ "models": {
1078
+ "gpt-4o": {
1079
+ // Model ID (from Helicone's model directory page)
1080
+ "name": "GPT-4o", // Your own custom name for the model
1081
+ },
1082
+ "claude-sonnet-4-20250929": {
1083
+ "name": "Claude Sonnet 4",
1084
+ },
1085
+ },
1086
+ },
1087
+ },
1088
+ }
1089
+ ```
1090
+
1091
+ #### カスタムヘッダー
1092
+
1093
+ Helicone は、キャッシュ、ユーザー追跡、セッション管理などの機能のカスタムヘッダーをサポートしています。 `options.headers` を使用してプロバイダー設定に追加します。
1094
+
1095
+ ```jsonc title="~/.config/opencode/opencode.jsonc"
1096
+ {
1097
+ "$schema": "https://opencode.ai/config.json",
1098
+ "provider": {
1099
+ "helicone": {
1100
+ "npm": "@ai-sdk/openai-compatible",
1101
+ "name": "Helicone",
1102
+ "options": {
1103
+ "baseURL": "https://ai-gateway.helicone.ai",
1104
+ "headers": {
1105
+ "Helicone-Cache-Enabled": "true",
1106
+ "Helicone-User-Id": "opencode",
1107
+ },
1108
+ },
1109
+ },
1110
+ },
1111
+ }
1112
+ ```
1113
+
1114
+ ##### セッション追跡
1115
+
1116
+ Helicone の [Sessions](https://docs.helicone.ai/features/sessions) 機能を使用すると、関連する LLM リクエストをグループ化できます。 [opencode-helicone-session](https://github.com/H2Shami/opencode-helicone-session) プラグインを使用して、各 OpenCode 会話を Helicone のセッションとして自動的に記録します。
1117
+
1118
+ ```bash
1119
+ npm install -g opencode-helicone-session
1120
+ ```
1121
+
1122
+ それを設定に追加します。
1123
+
1124
+ ```json title="opencode.json"
1125
+ {
1126
+ "plugin": ["opencode-helicone-session"]
1127
+ }
1128
+ ```
1129
+
1130
+ プラグインは、リクエストに `Helicone-Session-Id` ヘッダーと `Helicone-Session-Name` ヘッダーを挿入します。 Helicone のセッションページでは、OpenCode の各会話が個別のセッションとしてリストされています。
1131
+
1132
+ ##### 一般的なヘリコーンヘッダー
1133
+
1134
+ | ヘッダー | 説明 |
1135
+ | -------------------------- | ---------------------------------------------------------------------- |
1136
+ | `Helicone-Cache-Enabled` | 応答キャッシュを有効にする (`true`/`false`) |
1137
+ | `Helicone-User-Id` | ユーザーごとにメトリクスを追跡する |
1138
+ | `Helicone-Property-[Name]` | カスタムプロパティを追加します (例: `Helicone-Property-Environment`)。 |
1139
+ | `Helicone-Prompt-Id` | リクエストをプロンプトバージョンに関連付ける |
1140
+
1141
+ 利用可能なすべてのヘッダーについては、[Helicone Header Directory](https://docs.helicone.ai/helicone-headers/header-directory) を参照してください。
1142
+
1143
+ ---
1144
+
1145
+ ### llama.cpp
1146
+
1147
+ [llama.cpp の s](https://github.com/ggml-org/llama.cpp) llama-server ユーティリティ] を通じて、ローカルモデルを使用するように opencode を構成できます。
1148
+
1149
+ ```json title="opencode.json" "llama.cpp" {5, 6, 8, 10-15}
1150
+ {
1151
+ "$schema": "https://opencode.ai/config.json",
1152
+ "provider": {
1153
+ "llama.cpp": {
1154
+ "npm": "@ai-sdk/openai-compatible",
1155
+ "name": "llama-server (local)",
1156
+ "options": {
1157
+ "baseURL": "http://127.0.0.1:8080/v1"
1158
+ },
1159
+ "models": {
1160
+ "qwen3-coder:a3b": {
1161
+ "name": "Qwen3-Coder: a3b-30b (local)",
1162
+ "limit": {
1163
+ "context": 128000,
1164
+ "output": 65536
1165
+ }
1166
+ }
1167
+ }
1168
+ }
1169
+ }
1170
+ }
1171
+ ```
1172
+
1173
+ この例では:
1174
+
1175
+ - `llama.cpp` はカスタムプロバイダー ID です。これには任意の文字列を指定できます。
1176
+ - `npm` は、このプロバイダーに使用するパッケージを指定します。ここで、`@ai-sdk/openai-compatible` は OpenAI 互換 API に使用されます。
1177
+ - `name` は、UI でのプロバイダーの表示名です。
1178
+ - `options.baseURL` はローカルサーバーのエンドポイントです。
1179
+ - `models` は、モデル ID とその設定のマップです。機種選択リストに機種名が表示されます。
1180
+
1181
+ ---
1182
+
1183
+ ### IO.NET
1184
+
1185
+ IO.NET は、さまざまなユースケースに最適化された 17 のモデルを提供します。
1186
+
1187
+ 1. [IO.NET console](https://ai.io.net/) に移動し、アカウントを作成し、API キーを生成します。
1188
+
1189
+ 2. `/connect` コマンドを実行し、**IO.NET** を検索します。
1190
+
1191
+ ```txt
1192
+ /connect
1193
+ ```
1194
+
1195
+ 3. IO.NET API キーを入力します。
1196
+
1197
+ ```txt
1198
+ ┌ API key
1199
+
1200
+
1201
+ └ enter
1202
+ ```
1203
+
1204
+ 4. `/models` コマンドを実行してモデルを選択します。
1205
+
1206
+ ```txt
1207
+ /models
1208
+ ```
1209
+
1210
+ ---
1211
+
1212
+ ### LM Studio
1213
+
1214
+ LM Studio を通じてローカルモデルを使用するように opencode を構成できます。
1215
+
1216
+ ```json title="opencode.json" "lmstudio" {5, 6, 8, 10-14}
1217
+ {
1218
+ "$schema": "https://opencode.ai/config.json",
1219
+ "provider": {
1220
+ "lmstudio": {
1221
+ "npm": "@ai-sdk/openai-compatible",
1222
+ "name": "LM Studio (local)",
1223
+ "options": {
1224
+ "baseURL": "http://127.0.0.1:1234/v1"
1225
+ },
1226
+ "models": {
1227
+ "google/gemma-3n-e4b": {
1228
+ "name": "Gemma 3n-e4b (local)"
1229
+ }
1230
+ }
1231
+ }
1232
+ }
1233
+ }
1234
+ ```
1235
+
1236
+ この例では:
1237
+
1238
+ - `lmstudio` はカスタムプロバイダー ID です。これには任意の文字列を指定できます。
1239
+ - `npm` は、このプロバイダーに使用するパッケージを指定します。ここで、`@ai-sdk/openai-compatible` は OpenAI 互換 API に使用されます。
1240
+ - `name` は、UI でのプロバイダーの表示名です。
1241
+ - `options.baseURL` はローカルサーバーのエンドポイントです。
1242
+ - `models` は、モデル ID とその設定のマップです。機種選択リストに機種名が表示されます。
1243
+
1244
+ ---
1245
+
1246
+ ### Moonshot AI
1247
+
1248
+ Moonshot AI の Kim K2 を使用するには:
1249
+
1250
+ 1. [Moonshot AI console](https://platform.moonshot.ai/console) に移動し、アカウントを作成し、[**API キーの作成**] をクリックします。
1251
+
1252
+ 2. `/connect` コマンドを実行し、**Moonshot AI** を検索します。
1253
+
1254
+ ```txt
1255
+ /connect
1256
+ ```
1257
+
1258
+ 3. Moonshot API キーを入力します。
1259
+
1260
+ ```txt
1261
+ ┌ API key
1262
+
1263
+
1264
+ └ enter
1265
+ ```
1266
+
1267
+ 4. `/models` コマンドを実行して、_Kimi K2_ を選択します。
1268
+
1269
+ ```txt
1270
+ /models
1271
+ ```
1272
+
1273
+ ---
1274
+
1275
+ ### MiniMax
1276
+
1277
+ 1. [MiniMax API Console](https://platform.minimax.io/login) に移動し、アカウントを作成し、API キーを生成します。
1278
+
1279
+ 2. `/connect` コマンドを実行し、**MiniMax** を検索します。
1280
+
1281
+ ```txt
1282
+ /connect
1283
+ ```
1284
+
1285
+ 3. MiniMax API キーを入力します。
1286
+
1287
+ ```txt
1288
+ ┌ API key
1289
+
1290
+
1291
+ └ enter
1292
+ ```
1293
+
1294
+ 4. `/models` コマンドを実行して、_M2.1_ のようなモデルを選択します。
1295
+
1296
+ ```txt
1297
+ /models
1298
+ ```
1299
+
1300
+ ---
1301
+
1302
+ ### Nebius Token Factory
1303
+
1304
+ 1. [Nebius Token Factory console](https://tokenfactory.nebius.com/) に移動し、アカウントを作成し、[**キーの追加**] をクリックします。
1305
+
1306
+ 2. `/connect` コマンドを実行し、**Nebius Token Factory** を検索します。
1307
+
1308
+ ```txt
1309
+ /connect
1310
+ ```
1311
+
1312
+ 3. Nebius Token Factory API キーを入力します。
1313
+
1314
+ ```txt
1315
+ ┌ API key
1316
+
1317
+
1318
+ └ enter
1319
+ ```
1320
+
1321
+ 4. `/models` コマンドを実行して、_Kimi K2 Instruct_ のようなモデルを選択します。
1322
+
1323
+ ```txt
1324
+ /models
1325
+ ```
1326
+
1327
+ ---
1328
+
1329
+ ### Ollama
1330
+
1331
+ Ollama を通じてローカルモデルを使用するように opencode を構成できます。
1332
+
1333
+ :::tip
1334
+ Ollama は OpenCode 用に自動的に構成できます。詳細については、[Ollama 統合 docs](https://docs.ollama.com/integrations/opencode)」を参照してください。
1335
+ :::
1336
+
1337
+ ```json title="opencode.json" "ollama" {5, 6, 8, 10-14}
1338
+ {
1339
+ "$schema": "https://opencode.ai/config.json",
1340
+ "provider": {
1341
+ "ollama": {
1342
+ "npm": "@ai-sdk/openai-compatible",
1343
+ "name": "Ollama (local)",
1344
+ "options": {
1345
+ "baseURL": "http://localhost:11434/v1"
1346
+ },
1347
+ "models": {
1348
+ "llama2": {
1349
+ "name": "Llama 2"
1350
+ }
1351
+ }
1352
+ }
1353
+ }
1354
+ }
1355
+ ```
1356
+
1357
+ この例では:
1358
+
1359
+ - `ollama` はカスタムプロバイダー ID です。これには任意の文字列を指定できます。
1360
+ - `npm` は、このプロバイダーに使用するパッケージを指定します。ここで、`@ai-sdk/openai-compatible` は OpenAI 互換 API に使用されます。
1361
+ - `name` は、UI でのプロバイダーの表示名です。
1362
+ - `options.baseURL` はローカルサーバーのエンドポイントです。
1363
+ - `models` は、モデル ID とその設定のマップです。機種選択リストに機種名が表示されます。
1364
+
1365
+ :::tip
1366
+ ツール呼び出しが機能しない場合は、Ollama の `num_ctx` を増やしてみてください。 16k〜32kあたりから始めてください。
1367
+ :::
1368
+
1369
+ ---
1370
+
1371
+ ### Ollama Cloud
1372
+
1373
+ OpenCode で Ollama Cloud を使用するには:
1374
+
1375
+ 1. [https://ollama.com/](https://ollama.com/) にアクセスしてサインインするか、アカウントを作成します。
1376
+
1377
+ 2. [**設定**] > [キー**] に移動し、[**API キーの追加**] をクリックして新しい API キーを生成します。
1378
+
1379
+ 3. OpenCode で使用するために API キーをコピーします。
1380
+
1381
+ 4. `/connect` コマンドを実行し、**Ollama Cloud** を検索します。
1382
+
1383
+ ```txt
1384
+ /connect
1385
+ ```
1386
+
1387
+ 5. Ollama Cloud API キーを入力します。
1388
+
1389
+ ```txt
1390
+ ┌ API key
1391
+
1392
+
1393
+ └ enter
1394
+ ```
1395
+
1396
+ 6. **重要**: OpenCode でクラウドモデルを使用する前に、モデル情報をローカルに取得する必要があります。
1397
+
1398
+ ```bash
1399
+ ollama pull gpt-oss:20b-cloud
1400
+ ```
1401
+
1402
+ 7. `/models` コマンドを実行して、Ollama Cloud モデルを選択します。
1403
+
1404
+ ```txt
1405
+ /models
1406
+ ```
1407
+
1408
+ ---
1409
+
1410
+ ### OpenAI
1411
+
1412
+ [ChatGPT Plus または Pro](https://chatgpt.com/pricing) にサインアップすることをお勧めします。
1413
+
1414
+ 1. サインアップしたら、`/connect` コマンドを実行し、OpenAI を選択します。
1415
+
1416
+ ```txt
1417
+ /connect
1418
+ ```
1419
+
1420
+ 2. ここで **ChatGPT Plus/Pro** オプションを選択すると、ブラウザが開きます。
1421
+ そして認証を求められます。
1422
+
1423
+ ```txt
1424
+ ┌ Select auth method
1425
+
1426
+ │ ChatGPT Plus/Pro
1427
+ │ Manually enter API Key
1428
+
1429
+ ```
1430
+
1431
+ 3. これで、`/models` コマンドを使用すると、すべての OpenAI モデルが利用できるようになります。
1432
+
1433
+ ```txt
1434
+ /models
1435
+ ```
1436
+
1437
+ ##### APIキーの使用
1438
+
1439
+ すでに API キーをお持ちの場合は、**API キーを手動で入力** を選択し、ターミナルに貼り付けることができます。
1440
+
1441
+ ---
1442
+
1443
+ ### OpenCode Zen
1444
+
1445
+ OpenCode Zen は、OpenCode チームによって提供される、テストおよび検証されたモデルのリストです。 [詳細はこちら](/docs/zen)。
1446
+
1447
+ 1. **<a href={console}>OpenCode Zen</a>** にサインインし、**API キーの作成** をクリックします。
1448
+
1449
+ 2. `/connect` コマンドを実行し、**OpenCode Zen** を検索します。
1450
+
1451
+ ```txt
1452
+ /connect
1453
+ ```
1454
+
1455
+ 3. OpenCode API キーを入力します。
1456
+
1457
+ ```txt
1458
+ ┌ API key
1459
+
1460
+
1461
+ └ enter
1462
+ ```
1463
+
1464
+ 4. `/models` コマンドを実行して、_Qwen 3 Coder 480B_ のようなモデルを選択します。
1465
+
1466
+ ```txt
1467
+ /models
1468
+ ```
1469
+
1470
+ ---
1471
+
1472
+ ### OpenRouter
1473
+
1474
+ 1. [OpenRouter ダッシュボード](https://openrouter.ai/settings/keys) に移動し、[**API キーの作成**] をクリックして、キーをコピーします。
1475
+
1476
+ 2. `/connect` コマンドを実行し、OpenRouter を検索します。
1477
+
1478
+ ```txt
1479
+ /connect
1480
+ ```
1481
+
1482
+ 3. プロバイダーの API キーを入力します。
1483
+
1484
+ ```txt
1485
+ ┌ API key
1486
+
1487
+
1488
+ └ enter
1489
+ ```
1490
+
1491
+ 4. 多くの OpenRouter モデルはデフォルトでプリロードされており、`/models` コマンドを実行して必要なモデルを選択します。
1492
+
1493
+ ```txt
1494
+ /models
1495
+ ```
1496
+
1497
+ OpenCode 設定を通じて追加のモデルを追加することもできます。
1498
+
1499
+ ```json title="opencode.json" {6}
1500
+ {
1501
+ "$schema": "https://opencode.ai/config.json",
1502
+ "provider": {
1503
+ "openrouter": {
1504
+ "models": {
1505
+ "somecoolnewmodel": {}
1506
+ }
1507
+ }
1508
+ }
1509
+ }
1510
+ ```
1511
+
1512
+ 5. OpenCode 設定を通じてカスタマイズすることもできます。プロバイダーを指定する例を次に示します。
1513
+
1514
+ ```json title="opencode.json"
1515
+ {
1516
+ "$schema": "https://opencode.ai/config.json",
1517
+ "provider": {
1518
+ "openrouter": {
1519
+ "models": {
1520
+ "moonshotai/kimi-k2": {
1521
+ "options": {
1522
+ "provider": {
1523
+ "order": ["baseten"],
1524
+ "allow_fallbacks": false
1525
+ }
1526
+ }
1527
+ }
1528
+ }
1529
+ }
1530
+ }
1531
+ }
1532
+ ```
1533
+
1534
+ ---
1535
+
1536
+ ### SAP AI Core
1537
+
1538
+ SAP AI コアは、統合プラットフォームを通じて、OpenAI、Anthropic、Google、Amazon、Meta、Mistral、AI21 の 40 以上のモデルへのアクセスを提供します。
1539
+
1540
+ 1. [SAP BTP Cockpit](https://account.hana.ondemand.com/) に移動し、SAP AI コアサービスインスタンスに移動して、サービスキーを作成します。
1541
+
1542
+ :::tip
1543
+ サービスキーは、`clientid`、`clientsecret`、`url`、および `serviceurls.AI_API_URL` を含む JSON オブジェクトです。 AI コアインスタンスは、BTP コックピットの **サービス** > **インスタンスとサブスクリプション** で見つかります。
1544
+ :::
1545
+
1546
+ 2. `/connect` コマンドを実行し、**SAP AI Core** を検索します。
1547
+
1548
+ ```txt
1549
+ /connect
1550
+ ```
1551
+
1552
+ 3. サービスキーの JSON を入力します。
1553
+
1554
+ ```txt
1555
+ ┌ Service key
1556
+
1557
+
1558
+ └ enter
1559
+ ```
1560
+
1561
+ または、`AICORE_SERVICE_KEY` 環境変数を設定します。
1562
+
1563
+ ```bash
1564
+ AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}' opencode
1565
+ ```
1566
+
1567
+ または、bash プロファイルに追加します。
1568
+
1569
+ ```bash title="~/.bash_profile"
1570
+ export AICORE_SERVICE_KEY='{"clientid":"...","clientsecret":"...","url":"...","serviceurls":{"AI_API_URL":"..."}}'
1571
+ ```
1572
+
1573
+ 4. 必要に応じて、デプロイメント ID とリソースグループを設定します。
1574
+
1575
+ ```bash
1576
+ AICORE_DEPLOYMENT_ID=your-deployment-id AICORE_RESOURCE_GROUP=your-resource-group opencode
1577
+ ```
1578
+
1579
+ :::note
1580
+ これらの設定はオプションであり、SAP AI コアのセットアップに従って構成する必要があります。
1581
+ :::
1582
+
1583
+ 5. `/models` コマンドを実行して、40 以上の利用可能なモデルから選択します。
1584
+
1585
+ ```txt
1586
+ /models
1587
+ ```
1588
+
1589
+ ---
1590
+
1591
+ ### OVHcloud AI Endpoints
1592
+
1593
+ 1. [OVHcloud パネル](https://ovh.com/manager) に移動します。 `Public Cloud` セクション、`AI & Machine Learning` > `AI Endpoints` に移動し、`API Keys` タブで **新しい API キーの作成** をクリックします。
1594
+
1595
+ 2. `/connect` コマンドを実行し、**OVHcloud AI エンドポイント**を検索します。
1596
+
1597
+ ```txt
1598
+ /connect
1599
+ ```
1600
+
1601
+ 3. OVHcloud AI エンドポイント API キーを入力します。
1602
+
1603
+ ```txt
1604
+ ┌ API key
1605
+
1606
+
1607
+ └ enter
1608
+ ```
1609
+
1610
+ 4. `/models` コマンドを実行して、_gpt-oss-120b_ のようなモデルを選択します。
1611
+
1612
+ ```txt
1613
+ /models
1614
+ ```
1615
+
1616
+ ---
1617
+
1618
+ ### Scaleway
1619
+
1620
+ [Scaleway Generative APIs](https://www.scaleway.com/en/docs/generative-apis/) を Opencode で使用するには:
1621
+
1622
+ 1. [Scaleway Console IAM settings](https://console.scaleway.com/iam/api-keys) に移動して、新しい API キーを生成します。
1623
+
1624
+ 2. `/connect` コマンドを実行し、**Scaleway** を検索します。
1625
+
1626
+ ```txt
1627
+ /connect
1628
+ ```
1629
+
1630
+ 3. Scaleway API キーを入力します。
1631
+
1632
+ ```txt
1633
+ ┌ API key
1634
+
1635
+
1636
+ └ enter
1637
+ ```
1638
+
1639
+ 4. `/models` コマンドを実行して、_devstral-2-123b-instruct-2512_ や _gpt-oss-120b_ などのモデルを選択します。
1640
+
1641
+ ```txt
1642
+ /models
1643
+ ```
1644
+
1645
+ ---
1646
+
1647
+ ### Together AI
1648
+
1649
+ 1. [Together AI console](https://api.together.ai) に移動し、アカウントを作成し、[**キーの追加**] をクリックします。
1650
+
1651
+ 2. `/connect` コマンドを実行し、**Together AI** を検索します。
1652
+
1653
+ ```txt
1654
+ /connect
1655
+ ```
1656
+
1657
+ 3. Together AI API キーを入力します。
1658
+
1659
+ ```txt
1660
+ ┌ API key
1661
+
1662
+
1663
+ └ enter
1664
+ ```
1665
+
1666
+ 4. `/models` コマンドを実行して、_Kimi K2 Instruct_ のようなモデルを選択します。
1667
+
1668
+ ```txt
1669
+ /models
1670
+ ```
1671
+
1672
+ ---
1673
+
1674
+ ### Venice AI
1675
+
1676
+ 1. [Venice AI console](https://venice.ai) に移動し、アカウントを作成し、API キーを生成します。
1677
+
1678
+ 2. `/connect` コマンドを実行し、**Venice AI** を検索します。
1679
+
1680
+ ```txt
1681
+ /connect
1682
+ ```
1683
+
1684
+ 3. Venice AI API キーを入力します。
1685
+
1686
+ ```txt
1687
+ ┌ API key
1688
+
1689
+
1690
+ └ enter
1691
+ ```
1692
+
1693
+ 4. `/models` コマンドを実行して、_Llama 3.3 70B_ のようなモデルを選択します。
1694
+
1695
+ ```txt
1696
+ /models
1697
+ ```
1698
+
1699
+ ---
1700
+
1701
+ ### Vercel AI Gateway
1702
+
1703
+ Vercel AI Gateway を使用すると、統合エンドポイントを通じて OpenAI、Anthropic、Google、xAI などのモデルにアクセスできます。モデルは値上げなしの定価で提供されます。
1704
+
1705
+ 1. [Vercel ダッシュボード ](https://vercel.com/) に移動し、**AI ゲートウェイ** タブに移動し、**API キー** をクリックして新しい API キーを作成します。
1706
+
1707
+ 2. `/connect` コマンドを実行し、**Vercel AI Gateway** を検索します。
1708
+
1709
+ ```txt
1710
+ /connect
1711
+ ```
1712
+
1713
+ 3. Vercel AI Gateway API キーを入力します。
1714
+
1715
+ ```txt
1716
+ ┌ API key
1717
+
1718
+
1719
+ └ enter
1720
+ ```
1721
+
1722
+ 4. `/models` コマンドを実行してモデルを選択します。
1723
+
1724
+ ```txt
1725
+ /models
1726
+ ```
1727
+
1728
+ OpenCode 設定を通じてモデルをカスタマイズすることもできます。プロバイダーのルーティング順序を指定する例を次に示します。
1729
+
1730
+ ```json title="opencode.json"
1731
+ {
1732
+ "$schema": "https://opencode.ai/config.json",
1733
+ "provider": {
1734
+ "vercel": {
1735
+ "models": {
1736
+ "anthropic/claude-sonnet-4": {
1737
+ "options": {
1738
+ "order": ["anthropic", "vertex"]
1739
+ }
1740
+ }
1741
+ }
1742
+ }
1743
+ }
1744
+ }
1745
+ ```
1746
+
1747
+ いくつかの便利なルーティングオプション:
1748
+
1749
+ | オプション | 説明 |
1750
+ | ------------------- | ---------------------------------------------------- |
1751
+ | `order` | 試行するプロバイダーシーケンス |
1752
+ | `only` | 特定のプロバイダーに制限する |
1753
+ | `zeroDataRetention` | データ保持ポリシーがゼロのプロバイダーのみを使用する |
1754
+
1755
+ ---
1756
+
1757
+ ### xAI
1758
+
1759
+ 1. [xAI console](https://console.x.ai/) に移動し、アカウントを作成し、API キーを生成します。
1760
+
1761
+ 2. `/connect` コマンドを実行し、**xAI** を検索します。
1762
+
1763
+ ```txt
1764
+ /connect
1765
+ ```
1766
+
1767
+ 3. xAI API キーを入力します。
1768
+
1769
+ ```txt
1770
+ ┌ API key
1771
+
1772
+
1773
+ └ enter
1774
+ ```
1775
+
1776
+ 4. `/models` コマンドを実行して、_Grok Beta_ のようなモデルを選択します。
1777
+
1778
+ ```txt
1779
+ /models
1780
+ ```
1781
+
1782
+ ---
1783
+
1784
+ ### Z.AI
1785
+
1786
+ 1. [Z.AI API コンソール ](https://z.ai/manage-apikey/apikey-list) に移動し、アカウントを作成し、**新しい API キーの作成** をクリックします。
1787
+
1788
+ 2. `/connect` コマンドを実行し、**Z.AI** を検索します。
1789
+
1790
+ ```txt
1791
+ /connect
1792
+ ```
1793
+
1794
+ **GLM コーディングプラン**に加入している場合は、**Z.AI コーディングプラン**を選択します。
1795
+
1796
+ 3. Z.AI API キーを入力します。
1797
+
1798
+ ```txt
1799
+ ┌ API key
1800
+
1801
+
1802
+ └ enter
1803
+ ```
1804
+
1805
+ 4. `/models` コマンドを実行して、_GLM-4.7_ のようなモデルを選択します。
1806
+
1807
+ ```txt
1808
+ /models
1809
+ ```
1810
+
1811
+ ---
1812
+
1813
+ ### ZenMux
1814
+
1815
+ 1. [ZenMux ダッシュボード](https://zenmux.ai/settings/keys) に移動し、[**API キーの作成**] をクリックして、キーをコピーします。
1816
+
1817
+ 2. `/connect` コマンドを実行し、ZenMux を検索します。
1818
+
1819
+ ```txt
1820
+ /connect
1821
+ ```
1822
+
1823
+ 3. プロバイダーの API キーを入力します。
1824
+
1825
+ ```txt
1826
+ ┌ API key
1827
+
1828
+
1829
+ └ enter
1830
+ ```
1831
+
1832
+ 4. 多くの ZenMux モデルはデフォルトでプリロードされており、`/models` コマンドを実行して必要なモデルを選択します。
1833
+
1834
+ ```txt
1835
+ /models
1836
+ ```
1837
+
1838
+ OpenCode 設定を通じて追加のモデルを追加することもできます。
1839
+
1840
+ ```json title="opencode.json" {6}
1841
+ {
1842
+ "$schema": "https://opencode.ai/config.json",
1843
+ "provider": {
1844
+ "zenmux": {
1845
+ "models": {
1846
+ "somecoolnewmodel": {}
1847
+ }
1848
+ }
1849
+ }
1850
+ }
1851
+ ```
1852
+
1853
+ ---
1854
+
1855
+ ## カスタムプロバイダー
1856
+
1857
+ `/connect` コマンドにリストされていない **OpenAI 互換**プロバイダーを追加するには:
1858
+
1859
+ :::tip
1860
+ OpenAI と互換性のある任意のプロバイダーを OpenCode で使用できます。最新の AI プロバイダーのほとんどは、OpenAI 互換の API を提供しています。
1861
+ :::
1862
+
1863
+ 1. `/connect` コマンドを実行し、**その他**まで下にスクロールします。
1864
+
1865
+ ```bash
1866
+ $ /connect
1867
+
1868
+ ┌ Add credential
1869
+
1870
+ ◆ Select provider
1871
+ │ ...
1872
+ │ ● Other
1873
+
1874
+ ```
1875
+
1876
+ 2. プロバイダーの一意の ID を入力します。
1877
+
1878
+ ```bash
1879
+ $ /connect
1880
+
1881
+ ┌ Add credential
1882
+
1883
+ ◇ Enter provider id
1884
+ │ myprovider
1885
+
1886
+ ```
1887
+
1888
+ :::note
1889
+ 覚えやすい ID を選択してください。これを設定ファイルで使用します。
1890
+ :::
1891
+
1892
+ 3. プロバイダーの API キーを入力します。
1893
+
1894
+ ```bash
1895
+ $ /connect
1896
+
1897
+ ┌ Add credential
1898
+
1899
+ ▲ This only stores a credential for myprovider - you will need to configure it in opencode.json, check the docs for examples.
1900
+
1901
+ ◇ Enter your API key
1902
+ │ sk-...
1903
+
1904
+ ```
1905
+
1906
+ 4. プロジェクトディレクトリで `opencode.json` ファイルを作成または更新します。
1907
+
1908
+ ```json title="opencode.json" ""myprovider"" {5-15}
1909
+ {
1910
+ "$schema": "https://opencode.ai/config.json",
1911
+ "provider": {
1912
+ "myprovider": {
1913
+ "npm": "@ai-sdk/openai-compatible",
1914
+ "name": "My AI ProviderDisplay Name",
1915
+ "options": {
1916
+ "baseURL": "https://api.myprovider.com/v1"
1917
+ },
1918
+ "models": {
1919
+ "my-model-name": {
1920
+ "name": "My Model Display Name"
1921
+ }
1922
+ }
1923
+ }
1924
+ }
1925
+ }
1926
+ ```
1927
+
1928
+ 構成オプションは次のとおりです。
1929
+
1930
+ - **npm**: 使用する AI SDK パッケージ、OpenAI 互換プロバイダーの場合は `@ai-sdk/openai-compatible`
1931
+ - **name**: UI での表示名。
1932
+ - **models**: 利用可能なモデル。
1933
+ - **options.baseURL**: API エンドポイント URL。
1934
+ - **options.apiKey**: 認証を使用しない場合は、オプションで API キーを設定します。
1935
+ - **options.headers**: 必要に応じてカスタムヘッダーを設定します。
1936
+
1937
+ 詳細オプションの詳細については、以下の例を参照してください。
1938
+
1939
+ 5. `/models` コマンドを実行すると、カスタムプロバイダーとモデルが選択リストに表示されます。
1940
+
1941
+ ---
1942
+
1943
+ ##### 例
1944
+
1945
+ 次に、`apiKey`、`headers`、およびモデル `limit` オプションを設定する例を示します。
1946
+
1947
+ ```json title="opencode.json" {9,11,17-20}
1948
+ {
1949
+ "$schema": "https://opencode.ai/config.json",
1950
+ "provider": {
1951
+ "myprovider": {
1952
+ "npm": "@ai-sdk/openai-compatible",
1953
+ "name": "My AI ProviderDisplay Name",
1954
+ "options": {
1955
+ "baseURL": "https://api.myprovider.com/v1",
1956
+ "apiKey": "{env:ANTHROPIC_API_KEY}",
1957
+ "headers": {
1958
+ "Authorization": "Bearer custom-token"
1959
+ }
1960
+ },
1961
+ "models": {
1962
+ "my-model-name": {
1963
+ "name": "My Model Display Name",
1964
+ "limit": {
1965
+ "context": 200000,
1966
+ "output": 65536
1967
+ }
1968
+ }
1969
+ }
1970
+ }
1971
+ }
1972
+ }
1973
+ ```
1974
+
1975
+ 設定の詳細:
1976
+
1977
+ - **apiKey**: `env` 変数構文を使用して設定します。[詳細については ](/docs/config#env-vars).
1978
+ - **headers**: 各リクエストとともに送信されるカスタムヘッダー。
1979
+ - **limit.context**: モデルが受け入れる最大入力トークン。
1980
+ - **limit.output**: モデルが生成できる最大出力トークン。
1981
+
1982
+ `limit` フィールドを使用すると、OpenCode はコンテキストがどのくらい残っているかを理解できます。標準プロバイダーは、これらを models.dev から自動的に取得します。
1983
+
1984
+ ---
1985
+
1986
+ ## トラブルシューティング
1987
+
1988
+ プロバイダーの設定で問題が発生した場合は、次の点を確認してください。
1989
+
1990
+ 1. **認証設定を確認します**: `opencode auth list` を実行して、資格情報が正しいかどうかを確認します。
1991
+ プロバイダー用のものが設定に追加されます。
1992
+
1993
+ これは、認証に環境変数に依存する Amazon Bedrock のようなプロバイダーには当てはまりません。
1994
+
1995
+ 2. カスタムプロバイダーの場合は、OpenCode 設定を確認し、次のことを行います。
1996
+ - `/connect` コマンドで使用されるプロバイダー ID が、OpenCode 設定内の ID と一致することを確認してください。
1997
+ - プロバイダーには適切な npm パッケージが使用されます。たとえば、Cerebras には `@ai-sdk/cerebras` を使用します。他のすべての OpenAI 互換プロバイダーの場合は、`@ai-sdk/openai-compatible` を使用します。
1998
+ - `options.baseURL` フィールドで正しい API エンドポイントが使用されていることを確認してください。