@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.
- package/README.md +54 -0
- package/astro.config.mjs +324 -0
- package/config.mjs +14 -0
- package/package.json +44 -0
- package/public/apple-touch-icon-v3.png +1 -0
- package/public/apple-touch-icon.png +1 -0
- package/public/favicon-96x96-v3.png +1 -0
- package/public/favicon-96x96.png +1 -0
- package/public/favicon-v3.ico +1 -0
- package/public/favicon-v3.svg +1 -0
- package/public/favicon.ico +1 -0
- package/public/favicon.svg +1 -0
- package/public/robots.txt +6 -0
- package/public/site.webmanifest +1 -0
- package/public/social-share-zen.png +1 -0
- package/public/social-share.png +1 -0
- package/public/theme.json +183 -0
- package/public/web-app-manifest-192x192.png +1 -0
- package/public/web-app-manifest-512x512.png +1 -0
- package/src/assets/lander/check.svg +2 -0
- package/src/assets/lander/copy.svg +2 -0
- package/src/assets/lander/screenshot-github.png +0 -0
- package/src/assets/lander/screenshot-splash.png +0 -0
- package/src/assets/lander/screenshot-vscode.png +0 -0
- package/src/assets/lander/screenshot.png +0 -0
- package/src/assets/logo-dark.svg +18 -0
- package/src/assets/logo-light.svg +18 -0
- package/src/assets/logo-ornate-dark.svg +18 -0
- package/src/assets/logo-ornate-light.svg +18 -0
- package/src/assets/web/web-homepage-active-session.png +0 -0
- package/src/assets/web/web-homepage-new-session.png +0 -0
- package/src/assets/web/web-homepage-see-servers.png +0 -0
- package/src/components/Footer.astro +125 -0
- package/src/components/Head.astro +54 -0
- package/src/components/Header.astro +136 -0
- package/src/components/Hero.astro +11 -0
- package/src/components/Lander.astro +721 -0
- package/src/components/LanguageSelect.astro +29 -0
- package/src/components/Share.tsx +644 -0
- package/src/components/SiteTitle.astro +59 -0
- package/src/components/icons/custom.tsx +87 -0
- package/src/components/icons/index.tsx +4454 -0
- package/src/components/share/common.tsx +128 -0
- package/src/components/share/content-bash.module.css +85 -0
- package/src/components/share/content-bash.tsx +67 -0
- package/src/components/share/content-code.module.css +26 -0
- package/src/components/share/content-code.tsx +30 -0
- package/src/components/share/content-diff.module.css +153 -0
- package/src/components/share/content-diff.tsx +240 -0
- package/src/components/share/content-error.module.css +64 -0
- package/src/components/share/content-error.tsx +25 -0
- package/src/components/share/content-markdown.module.css +154 -0
- package/src/components/share/content-markdown.tsx +74 -0
- package/src/components/share/content-text.module.css +63 -0
- package/src/components/share/content-text.tsx +38 -0
- package/src/components/share/copy-button.module.css +30 -0
- package/src/components/share/copy-button.tsx +36 -0
- package/src/components/share/part.module.css +428 -0
- package/src/components/share/part.tsx +816 -0
- package/src/components/share.module.css +832 -0
- package/src/content/docs/acp.mdx +156 -0
- package/src/content/docs/agents.mdx +781 -0
- package/src/content/docs/ar/acp.mdx +156 -0
- package/src/content/docs/ar/agents.mdx +754 -0
- package/src/content/docs/ar/cli.mdx +616 -0
- package/src/content/docs/ar/commands.mdx +322 -0
- package/src/content/docs/ar/config.mdx +685 -0
- package/src/content/docs/ar/custom-tools.mdx +196 -0
- package/src/content/docs/ar/ecosystem.mdx +78 -0
- package/src/content/docs/ar/enterprise.mdx +165 -0
- package/src/content/docs/ar/formatters.mdx +131 -0
- package/src/content/docs/ar/github.mdx +321 -0
- package/src/content/docs/ar/gitlab.mdx +195 -0
- package/src/content/docs/ar/go.mdx +224 -0
- package/src/content/docs/ar/ide.mdx +48 -0
- package/src/content/docs/ar/index.mdx +344 -0
- package/src/content/docs/ar/keybinds.mdx +194 -0
- package/src/content/docs/ar/lsp.mdx +207 -0
- package/src/content/docs/ar/mcp-servers.mdx +511 -0
- package/src/content/docs/ar/models.mdx +222 -0
- package/src/content/docs/ar/network.mdx +57 -0
- package/src/content/docs/ar/permissions.mdx +235 -0
- package/src/content/docs/ar/plugins.mdx +385 -0
- package/src/content/docs/ar/providers.mdx +1983 -0
- package/src/content/docs/ar/rules.mdx +180 -0
- package/src/content/docs/ar/sdk.mdx +463 -0
- package/src/content/docs/ar/server.mdx +287 -0
- package/src/content/docs/ar/share.mdx +127 -0
- package/src/content/docs/ar/skills.mdx +222 -0
- package/src/content/docs/ar/themes.mdx +369 -0
- package/src/content/docs/ar/tools.mdx +341 -0
- package/src/content/docs/ar/troubleshooting.mdx +299 -0
- package/src/content/docs/ar/tui.mdx +426 -0
- package/src/content/docs/ar/web.mdx +142 -0
- package/src/content/docs/ar/windows-wsl.mdx +113 -0
- package/src/content/docs/ar/zen.mdx +332 -0
- package/src/content/docs/bs/acp.mdx +156 -0
- package/src/content/docs/bs/agents.mdx +754 -0
- package/src/content/docs/bs/cli.mdx +614 -0
- package/src/content/docs/bs/commands.mdx +316 -0
- package/src/content/docs/bs/config.mdx +685 -0
- package/src/content/docs/bs/custom-tools.mdx +195 -0
- package/src/content/docs/bs/ecosystem.mdx +78 -0
- package/src/content/docs/bs/enterprise.mdx +165 -0
- package/src/content/docs/bs/formatters.mdx +124 -0
- package/src/content/docs/bs/github.mdx +311 -0
- package/src/content/docs/bs/gitlab.mdx +188 -0
- package/src/content/docs/bs/go.mdx +238 -0
- package/src/content/docs/bs/ide.mdx +47 -0
- package/src/content/docs/bs/index.mdx +323 -0
- package/src/content/docs/bs/keybinds.mdx +194 -0
- package/src/content/docs/bs/lsp.mdx +204 -0
- package/src/content/docs/bs/mcp-servers.mdx +482 -0
- package/src/content/docs/bs/models.mdx +201 -0
- package/src/content/docs/bs/network.mdx +51 -0
- package/src/content/docs/bs/permissions.mdx +228 -0
- package/src/content/docs/bs/plugins.mdx +371 -0
- package/src/content/docs/bs/providers.mdx +1993 -0
- package/src/content/docs/bs/rules.mdx +180 -0
- package/src/content/docs/bs/sdk.mdx +463 -0
- package/src/content/docs/bs/server.mdx +284 -0
- package/src/content/docs/bs/share.mdx +127 -0
- package/src/content/docs/bs/skills.mdx +222 -0
- package/src/content/docs/bs/themes.mdx +369 -0
- package/src/content/docs/bs/tools.mdx +341 -0
- package/src/content/docs/bs/troubleshooting.mdx +300 -0
- package/src/content/docs/bs/tui.mdx +432 -0
- package/src/content/docs/bs/web.mdx +142 -0
- package/src/content/docs/bs/windows-wsl.mdx +113 -0
- package/src/content/docs/bs/zen.mdx +350 -0
- package/src/content/docs/cli.mdx +733 -0
- package/src/content/docs/commands.mdx +323 -0
- package/src/content/docs/config.mdx +941 -0
- package/src/content/docs/custom-tools.mdx +196 -0
- package/src/content/docs/da/acp.mdx +156 -0
- package/src/content/docs/da/agents.mdx +755 -0
- package/src/content/docs/da/cli.mdx +617 -0
- package/src/content/docs/da/commands.mdx +323 -0
- package/src/content/docs/da/config.mdx +688 -0
- package/src/content/docs/da/custom-tools.mdx +196 -0
- package/src/content/docs/da/ecosystem.mdx +78 -0
- package/src/content/docs/da/enterprise.mdx +170 -0
- package/src/content/docs/da/formatters.mdx +131 -0
- package/src/content/docs/da/github.mdx +321 -0
- package/src/content/docs/da/gitlab.mdx +195 -0
- package/src/content/docs/da/go.mdx +238 -0
- package/src/content/docs/da/ide.mdx +48 -0
- package/src/content/docs/da/index.mdx +360 -0
- package/src/content/docs/da/keybinds.mdx +194 -0
- package/src/content/docs/da/lsp.mdx +208 -0
- package/src/content/docs/da/mcp-servers.mdx +511 -0
- package/src/content/docs/da/models.mdx +223 -0
- package/src/content/docs/da/network.mdx +57 -0
- package/src/content/docs/da/permissions.mdx +235 -0
- package/src/content/docs/da/plugins.mdx +389 -0
- package/src/content/docs/da/providers.mdx +1981 -0
- package/src/content/docs/da/rules.mdx +180 -0
- package/src/content/docs/da/sdk.mdx +463 -0
- package/src/content/docs/da/server.mdx +287 -0
- package/src/content/docs/da/share.mdx +128 -0
- package/src/content/docs/da/skills.mdx +222 -0
- package/src/content/docs/da/themes.mdx +369 -0
- package/src/content/docs/da/tools.mdx +341 -0
- package/src/content/docs/da/troubleshooting.mdx +300 -0
- package/src/content/docs/da/tui.mdx +426 -0
- package/src/content/docs/da/web.mdx +142 -0
- package/src/content/docs/da/windows-wsl.mdx +113 -0
- package/src/content/docs/da/zen.mdx +345 -0
- package/src/content/docs/de/acp.mdx +156 -0
- package/src/content/docs/de/agents.mdx +741 -0
- package/src/content/docs/de/cli.mdx +616 -0
- package/src/content/docs/de/commands.mdx +323 -0
- package/src/content/docs/de/config.mdx +684 -0
- package/src/content/docs/de/custom-tools.mdx +170 -0
- package/src/content/docs/de/ecosystem.mdx +78 -0
- package/src/content/docs/de/enterprise.mdx +170 -0
- package/src/content/docs/de/formatters.mdx +131 -0
- package/src/content/docs/de/github.mdx +321 -0
- package/src/content/docs/de/gitlab.mdx +195 -0
- package/src/content/docs/de/go.mdx +226 -0
- package/src/content/docs/de/ide.mdx +48 -0
- package/src/content/docs/de/index.mdx +356 -0
- package/src/content/docs/de/keybinds.mdx +194 -0
- package/src/content/docs/de/lsp.mdx +207 -0
- package/src/content/docs/de/mcp-servers.mdx +511 -0
- package/src/content/docs/de/models.mdx +223 -0
- package/src/content/docs/de/network.mdx +57 -0
- package/src/content/docs/de/permissions.mdx +235 -0
- package/src/content/docs/de/plugins.mdx +384 -0
- package/src/content/docs/de/providers.mdx +1987 -0
- package/src/content/docs/de/rules.mdx +190 -0
- package/src/content/docs/de/sdk.mdx +465 -0
- package/src/content/docs/de/server.mdx +291 -0
- package/src/content/docs/de/share.mdx +130 -0
- package/src/content/docs/de/skills.mdx +222 -0
- package/src/content/docs/de/themes.mdx +372 -0
- package/src/content/docs/de/tools.mdx +352 -0
- package/src/content/docs/de/troubleshooting.mdx +300 -0
- package/src/content/docs/de/tui.mdx +429 -0
- package/src/content/docs/de/web.mdx +142 -0
- package/src/content/docs/de/windows-wsl.mdx +115 -0
- package/src/content/docs/de/zen.mdx +327 -0
- package/src/content/docs/ecosystem.mdx +83 -0
- package/src/content/docs/enterprise.mdx +169 -0
- package/src/content/docs/es/acp.mdx +156 -0
- package/src/content/docs/es/agents.mdx +755 -0
- package/src/content/docs/es/cli.mdx +616 -0
- package/src/content/docs/es/commands.mdx +323 -0
- package/src/content/docs/es/config.mdx +685 -0
- package/src/content/docs/es/custom-tools.mdx +196 -0
- package/src/content/docs/es/ecosystem.mdx +78 -0
- package/src/content/docs/es/enterprise.mdx +170 -0
- package/src/content/docs/es/formatters.mdx +131 -0
- package/src/content/docs/es/github.mdx +321 -0
- package/src/content/docs/es/gitlab.mdx +195 -0
- package/src/content/docs/es/go.mdx +238 -0
- package/src/content/docs/es/ide.mdx +48 -0
- package/src/content/docs/es/index.mdx +345 -0
- package/src/content/docs/es/keybinds.mdx +194 -0
- package/src/content/docs/es/lsp.mdx +208 -0
- package/src/content/docs/es/mcp-servers.mdx +511 -0
- package/src/content/docs/es/models.mdx +223 -0
- package/src/content/docs/es/network.mdx +57 -0
- package/src/content/docs/es/permissions.mdx +235 -0
- package/src/content/docs/es/plugins.mdx +389 -0
- package/src/content/docs/es/providers.mdx +1989 -0
- package/src/content/docs/es/rules.mdx +180 -0
- package/src/content/docs/es/sdk.mdx +463 -0
- package/src/content/docs/es/server.mdx +287 -0
- package/src/content/docs/es/share.mdx +128 -0
- package/src/content/docs/es/skills.mdx +222 -0
- package/src/content/docs/es/themes.mdx +369 -0
- package/src/content/docs/es/tools.mdx +341 -0
- package/src/content/docs/es/troubleshooting.mdx +300 -0
- package/src/content/docs/es/tui.mdx +429 -0
- package/src/content/docs/es/web.mdx +142 -0
- package/src/content/docs/es/windows-wsl.mdx +113 -0
- package/src/content/docs/es/zen.mdx +345 -0
- package/src/content/docs/formatters.mdx +143 -0
- package/src/content/docs/fr/acp.mdx +156 -0
- package/src/content/docs/fr/agents.mdx +755 -0
- package/src/content/docs/fr/cli.mdx +617 -0
- package/src/content/docs/fr/commands.mdx +322 -0
- package/src/content/docs/fr/config.mdx +686 -0
- package/src/content/docs/fr/custom-tools.mdx +170 -0
- package/src/content/docs/fr/ecosystem.mdx +78 -0
- package/src/content/docs/fr/enterprise.mdx +165 -0
- package/src/content/docs/fr/formatters.mdx +131 -0
- package/src/content/docs/fr/github.mdx +322 -0
- package/src/content/docs/fr/gitlab.mdx +195 -0
- package/src/content/docs/fr/go.mdx +224 -0
- package/src/content/docs/fr/ide.mdx +48 -0
- package/src/content/docs/fr/index.mdx +344 -0
- package/src/content/docs/fr/keybinds.mdx +194 -0
- package/src/content/docs/fr/lsp.mdx +208 -0
- package/src/content/docs/fr/mcp-servers.mdx +511 -0
- package/src/content/docs/fr/models.mdx +222 -0
- package/src/content/docs/fr/network.mdx +57 -0
- package/src/content/docs/fr/permissions.mdx +235 -0
- package/src/content/docs/fr/plugins.mdx +384 -0
- package/src/content/docs/fr/providers.mdx +1996 -0
- package/src/content/docs/fr/rules.mdx +180 -0
- package/src/content/docs/fr/sdk.mdx +463 -0
- package/src/content/docs/fr/server.mdx +287 -0
- package/src/content/docs/fr/share.mdx +128 -0
- package/src/content/docs/fr/skills.mdx +222 -0
- package/src/content/docs/fr/themes.mdx +369 -0
- package/src/content/docs/fr/tools.mdx +341 -0
- package/src/content/docs/fr/troubleshooting.mdx +300 -0
- package/src/content/docs/fr/tui.mdx +429 -0
- package/src/content/docs/fr/web.mdx +142 -0
- package/src/content/docs/fr/windows-wsl.mdx +113 -0
- package/src/content/docs/fr/zen.mdx +327 -0
- package/src/content/docs/github.mdx +321 -0
- package/src/content/docs/gitlab.mdx +195 -0
- package/src/content/docs/go.mdx +238 -0
- package/src/content/docs/ide.mdx +48 -0
- package/src/content/docs/index.mdx +360 -0
- package/src/content/docs/it/acp.mdx +155 -0
- package/src/content/docs/it/agents.mdx +753 -0
- package/src/content/docs/it/cli.mdx +617 -0
- package/src/content/docs/it/commands.mdx +322 -0
- package/src/content/docs/it/config.mdx +685 -0
- package/src/content/docs/it/custom-tools.mdx +196 -0
- package/src/content/docs/it/ecosystem.mdx +78 -0
- package/src/content/docs/it/enterprise.mdx +165 -0
- package/src/content/docs/it/formatters.mdx +132 -0
- package/src/content/docs/it/github.mdx +321 -0
- package/src/content/docs/it/gitlab.mdx +195 -0
- package/src/content/docs/it/go.mdx +236 -0
- package/src/content/docs/it/ide.mdx +48 -0
- package/src/content/docs/it/index.mdx +344 -0
- package/src/content/docs/it/keybinds.mdx +194 -0
- package/src/content/docs/it/lsp.mdx +208 -0
- package/src/content/docs/it/mcp-servers.mdx +511 -0
- package/src/content/docs/it/models.mdx +222 -0
- package/src/content/docs/it/network.mdx +57 -0
- package/src/content/docs/it/permissions.mdx +235 -0
- package/src/content/docs/it/plugins.mdx +388 -0
- package/src/content/docs/it/providers.mdx +1964 -0
- package/src/content/docs/it/rules.mdx +180 -0
- package/src/content/docs/it/sdk.mdx +463 -0
- package/src/content/docs/it/server.mdx +284 -0
- package/src/content/docs/it/share.mdx +127 -0
- package/src/content/docs/it/skills.mdx +222 -0
- package/src/content/docs/it/themes.mdx +369 -0
- package/src/content/docs/it/tools.mdx +341 -0
- package/src/content/docs/it/troubleshooting.mdx +299 -0
- package/src/content/docs/it/tui.mdx +426 -0
- package/src/content/docs/it/web.mdx +142 -0
- package/src/content/docs/it/windows-wsl.mdx +113 -0
- package/src/content/docs/it/zen.mdx +345 -0
- package/src/content/docs/ja/acp.mdx +155 -0
- package/src/content/docs/ja/agents.mdx +751 -0
- package/src/content/docs/ja/cli.mdx +616 -0
- package/src/content/docs/ja/commands.mdx +322 -0
- package/src/content/docs/ja/config.mdx +684 -0
- package/src/content/docs/ja/custom-tools.mdx +196 -0
- package/src/content/docs/ja/ecosystem.mdx +78 -0
- package/src/content/docs/ja/enterprise.mdx +166 -0
- package/src/content/docs/ja/formatters.mdx +132 -0
- package/src/content/docs/ja/github.mdx +322 -0
- package/src/content/docs/ja/gitlab.mdx +195 -0
- package/src/content/docs/ja/go.mdx +224 -0
- package/src/content/docs/ja/ide.mdx +48 -0
- package/src/content/docs/ja/index.mdx +350 -0
- package/src/content/docs/ja/keybinds.mdx +194 -0
- package/src/content/docs/ja/lsp.mdx +208 -0
- package/src/content/docs/ja/mcp-servers.mdx +511 -0
- package/src/content/docs/ja/models.mdx +221 -0
- package/src/content/docs/ja/network.mdx +55 -0
- package/src/content/docs/ja/permissions.mdx +282 -0
- package/src/content/docs/ja/plugins.mdx +461 -0
- package/src/content/docs/ja/providers.mdx +1998 -0
- package/src/content/docs/ja/rules.mdx +179 -0
- package/src/content/docs/ja/sdk.mdx +463 -0
- package/src/content/docs/ja/server.mdx +282 -0
- package/src/content/docs/ja/share.mdx +128 -0
- package/src/content/docs/ja/skills.mdx +222 -0
- package/src/content/docs/ja/themes.mdx +667 -0
- package/src/content/docs/ja/tools.mdx +341 -0
- package/src/content/docs/ja/troubleshooting.mdx +300 -0
- package/src/content/docs/ja/tui.mdx +423 -0
- package/src/content/docs/ja/web.mdx +143 -0
- package/src/content/docs/ja/windows-wsl.mdx +116 -0
- package/src/content/docs/ja/zen.mdx +327 -0
- package/src/content/docs/keybinds.mdx +299 -0
- package/src/content/docs/ko/acp.mdx +156 -0
- package/src/content/docs/ko/agents.mdx +754 -0
- package/src/content/docs/ko/cli.mdx +616 -0
- package/src/content/docs/ko/commands.mdx +323 -0
- package/src/content/docs/ko/config.mdx +685 -0
- package/src/content/docs/ko/custom-tools.mdx +196 -0
- package/src/content/docs/ko/ecosystem.mdx +78 -0
- package/src/content/docs/ko/enterprise.mdx +165 -0
- package/src/content/docs/ko/formatters.mdx +132 -0
- package/src/content/docs/ko/github.mdx +321 -0
- package/src/content/docs/ko/gitlab.mdx +195 -0
- package/src/content/docs/ko/go.mdx +224 -0
- package/src/content/docs/ko/ide.mdx +48 -0
- package/src/content/docs/ko/index.mdx +344 -0
- package/src/content/docs/ko/keybinds.mdx +194 -0
- package/src/content/docs/ko/lsp.mdx +208 -0
- package/src/content/docs/ko/mcp-servers.mdx +511 -0
- package/src/content/docs/ko/models.mdx +223 -0
- package/src/content/docs/ko/network.mdx +57 -0
- package/src/content/docs/ko/permissions.mdx +235 -0
- package/src/content/docs/ko/plugins.mdx +388 -0
- package/src/content/docs/ko/providers.mdx +1984 -0
- package/src/content/docs/ko/rules.mdx +179 -0
- package/src/content/docs/ko/sdk.mdx +463 -0
- package/src/content/docs/ko/server.mdx +287 -0
- package/src/content/docs/ko/share.mdx +128 -0
- package/src/content/docs/ko/skills.mdx +222 -0
- package/src/content/docs/ko/themes.mdx +369 -0
- package/src/content/docs/ko/tools.mdx +341 -0
- package/src/content/docs/ko/troubleshooting.mdx +303 -0
- package/src/content/docs/ko/tui.mdx +425 -0
- package/src/content/docs/ko/web.mdx +142 -0
- package/src/content/docs/ko/windows-wsl.mdx +119 -0
- package/src/content/docs/ko/zen.mdx +327 -0
- package/src/content/docs/lsp.mdx +214 -0
- package/src/content/docs/mcp-servers.mdx +512 -0
- package/src/content/docs/models.mdx +223 -0
- package/src/content/docs/nb/acp.mdx +156 -0
- package/src/content/docs/nb/agents.mdx +754 -0
- package/src/content/docs/nb/cli.mdx +617 -0
- package/src/content/docs/nb/commands.mdx +323 -0
- package/src/content/docs/nb/config.mdx +688 -0
- package/src/content/docs/nb/custom-tools.mdx +196 -0
- package/src/content/docs/nb/ecosystem.mdx +78 -0
- package/src/content/docs/nb/enterprise.mdx +170 -0
- package/src/content/docs/nb/formatters.mdx +131 -0
- package/src/content/docs/nb/github.mdx +325 -0
- package/src/content/docs/nb/gitlab.mdx +195 -0
- package/src/content/docs/nb/go.mdx +238 -0
- package/src/content/docs/nb/ide.mdx +48 -0
- package/src/content/docs/nb/index.mdx +359 -0
- package/src/content/docs/nb/keybinds.mdx +194 -0
- package/src/content/docs/nb/lsp.mdx +208 -0
- package/src/content/docs/nb/mcp-servers.mdx +624 -0
- package/src/content/docs/nb/models.mdx +223 -0
- package/src/content/docs/nb/network.mdx +57 -0
- package/src/content/docs/nb/permissions.mdx +235 -0
- package/src/content/docs/nb/plugins.mdx +389 -0
- package/src/content/docs/nb/providers.mdx +1956 -0
- package/src/content/docs/nb/rules.mdx +180 -0
- package/src/content/docs/nb/sdk.mdx +463 -0
- package/src/content/docs/nb/server.mdx +287 -0
- package/src/content/docs/nb/share.mdx +128 -0
- package/src/content/docs/nb/skills.mdx +222 -0
- package/src/content/docs/nb/themes.mdx +369 -0
- package/src/content/docs/nb/tools.mdx +341 -0
- package/src/content/docs/nb/troubleshooting.mdx +225 -0
- package/src/content/docs/nb/tui.mdx +429 -0
- package/src/content/docs/nb/web.mdx +105 -0
- package/src/content/docs/nb/windows-wsl.mdx +113 -0
- package/src/content/docs/nb/zen.mdx +345 -0
- package/src/content/docs/network.mdx +57 -0
- package/src/content/docs/permissions.mdx +256 -0
- package/src/content/docs/pl/acp.mdx +158 -0
- package/src/content/docs/pl/agents.mdx +754 -0
- package/src/content/docs/pl/cli.mdx +617 -0
- package/src/content/docs/pl/commands.mdx +323 -0
- package/src/content/docs/pl/config.mdx +680 -0
- package/src/content/docs/pl/custom-tools.mdx +196 -0
- package/src/content/docs/pl/ecosystem.mdx +78 -0
- package/src/content/docs/pl/enterprise.mdx +170 -0
- package/src/content/docs/pl/formatters.mdx +131 -0
- package/src/content/docs/pl/github.mdx +321 -0
- package/src/content/docs/pl/gitlab.mdx +195 -0
- package/src/content/docs/pl/go.mdx +230 -0
- package/src/content/docs/pl/ide.mdx +48 -0
- package/src/content/docs/pl/index.mdx +347 -0
- package/src/content/docs/pl/keybinds.mdx +194 -0
- package/src/content/docs/pl/lsp.mdx +208 -0
- package/src/content/docs/pl/mcp-servers.mdx +511 -0
- package/src/content/docs/pl/models.mdx +223 -0
- package/src/content/docs/pl/network.mdx +57 -0
- package/src/content/docs/pl/permissions.mdx +235 -0
- package/src/content/docs/pl/plugins.mdx +385 -0
- package/src/content/docs/pl/providers.mdx +1986 -0
- package/src/content/docs/pl/rules.mdx +180 -0
- package/src/content/docs/pl/sdk.mdx +463 -0
- package/src/content/docs/pl/server.mdx +287 -0
- package/src/content/docs/pl/share.mdx +128 -0
- package/src/content/docs/pl/skills.mdx +222 -0
- package/src/content/docs/pl/themes.mdx +369 -0
- package/src/content/docs/pl/tools.mdx +341 -0
- package/src/content/docs/pl/troubleshooting.mdx +300 -0
- package/src/content/docs/pl/tui.mdx +429 -0
- package/src/content/docs/pl/web.mdx +142 -0
- package/src/content/docs/pl/windows-wsl.mdx +113 -0
- package/src/content/docs/pl/zen.mdx +344 -0
- package/src/content/docs/plugins.mdx +389 -0
- package/src/content/docs/policies.mdx +137 -0
- package/src/content/docs/providers.mdx +2501 -0
- package/src/content/docs/pt-br/acp.mdx +156 -0
- package/src/content/docs/pt-br/agents.mdx +755 -0
- package/src/content/docs/pt-br/cli.mdx +616 -0
- package/src/content/docs/pt-br/commands.mdx +322 -0
- package/src/content/docs/pt-br/config.mdx +687 -0
- package/src/content/docs/pt-br/custom-tools.mdx +196 -0
- package/src/content/docs/pt-br/ecosystem.mdx +78 -0
- package/src/content/docs/pt-br/enterprise.mdx +166 -0
- package/src/content/docs/pt-br/formatters.mdx +131 -0
- package/src/content/docs/pt-br/github.mdx +321 -0
- package/src/content/docs/pt-br/gitlab.mdx +195 -0
- package/src/content/docs/pt-br/go.mdx +238 -0
- package/src/content/docs/pt-br/ide.mdx +48 -0
- package/src/content/docs/pt-br/index.mdx +344 -0
- package/src/content/docs/pt-br/keybinds.mdx +194 -0
- package/src/content/docs/pt-br/lsp.mdx +208 -0
- package/src/content/docs/pt-br/mcp-servers.mdx +511 -0
- package/src/content/docs/pt-br/models.mdx +222 -0
- package/src/content/docs/pt-br/network.mdx +57 -0
- package/src/content/docs/pt-br/permissions.mdx +235 -0
- package/src/content/docs/pt-br/plugins.mdx +388 -0
- package/src/content/docs/pt-br/providers.mdx +1989 -0
- package/src/content/docs/pt-br/rules.mdx +180 -0
- package/src/content/docs/pt-br/sdk.mdx +463 -0
- package/src/content/docs/pt-br/server.mdx +284 -0
- package/src/content/docs/pt-br/share.mdx +127 -0
- package/src/content/docs/pt-br/skills.mdx +222 -0
- package/src/content/docs/pt-br/themes.mdx +369 -0
- package/src/content/docs/pt-br/tools.mdx +341 -0
- package/src/content/docs/pt-br/troubleshooting.mdx +299 -0
- package/src/content/docs/pt-br/tui.mdx +426 -0
- package/src/content/docs/pt-br/web.mdx +142 -0
- package/src/content/docs/pt-br/windows-wsl.mdx +113 -0
- package/src/content/docs/pt-br/zen.mdx +327 -0
- package/src/content/docs/references.mdx +157 -0
- package/src/content/docs/ru/acp.mdx +156 -0
- package/src/content/docs/ru/agents.mdx +754 -0
- package/src/content/docs/ru/cli.mdx +617 -0
- package/src/content/docs/ru/commands.mdx +323 -0
- package/src/content/docs/ru/config.mdx +685 -0
- package/src/content/docs/ru/custom-tools.mdx +170 -0
- package/src/content/docs/ru/ecosystem.mdx +78 -0
- package/src/content/docs/ru/enterprise.mdx +168 -0
- package/src/content/docs/ru/formatters.mdx +119 -0
- package/src/content/docs/ru/github.mdx +321 -0
- package/src/content/docs/ru/gitlab.mdx +195 -0
- package/src/content/docs/ru/go.mdx +238 -0
- package/src/content/docs/ru/ide.mdx +48 -0
- package/src/content/docs/ru/index.mdx +356 -0
- package/src/content/docs/ru/keybinds.mdx +194 -0
- package/src/content/docs/ru/lsp.mdx +207 -0
- package/src/content/docs/ru/mcp-servers.mdx +511 -0
- package/src/content/docs/ru/models.mdx +223 -0
- package/src/content/docs/ru/network.mdx +57 -0
- package/src/content/docs/ru/permissions.mdx +235 -0
- package/src/content/docs/ru/plugins.mdx +385 -0
- package/src/content/docs/ru/providers.mdx +1987 -0
- package/src/content/docs/ru/rules.mdx +180 -0
- package/src/content/docs/ru/sdk.mdx +463 -0
- package/src/content/docs/ru/server.mdx +287 -0
- package/src/content/docs/ru/share.mdx +128 -0
- package/src/content/docs/ru/skills.mdx +222 -0
- package/src/content/docs/ru/themes.mdx +369 -0
- package/src/content/docs/ru/tools.mdx +341 -0
- package/src/content/docs/ru/troubleshooting.mdx +300 -0
- package/src/content/docs/ru/tui.mdx +429 -0
- package/src/content/docs/ru/web.mdx +142 -0
- package/src/content/docs/ru/windows-wsl.mdx +113 -0
- package/src/content/docs/ru/zen.mdx +345 -0
- package/src/content/docs/rules.mdx +188 -0
- package/src/content/docs/sdk.mdx +463 -0
- package/src/content/docs/server.mdx +287 -0
- package/src/content/docs/share.mdx +128 -0
- package/src/content/docs/skills.mdx +222 -0
- package/src/content/docs/th/acp.mdx +156 -0
- package/src/content/docs/th/agents.mdx +744 -0
- package/src/content/docs/th/cli.mdx +618 -0
- package/src/content/docs/th/commands.mdx +320 -0
- package/src/content/docs/th/config.mdx +690 -0
- package/src/content/docs/th/custom-tools.mdx +196 -0
- package/src/content/docs/th/ecosystem.mdx +78 -0
- package/src/content/docs/th/enterprise.mdx +170 -0
- package/src/content/docs/th/formatters.mdx +131 -0
- package/src/content/docs/th/github.mdx +321 -0
- package/src/content/docs/th/gitlab.mdx +195 -0
- package/src/content/docs/th/go.mdx +224 -0
- package/src/content/docs/th/ide.mdx +48 -0
- package/src/content/docs/th/index.mdx +360 -0
- package/src/content/docs/th/keybinds.mdx +194 -0
- package/src/content/docs/th/lsp.mdx +208 -0
- package/src/content/docs/th/mcp-servers.mdx +511 -0
- package/src/content/docs/th/models.mdx +223 -0
- package/src/content/docs/th/network.mdx +57 -0
- package/src/content/docs/th/permissions.mdx +235 -0
- package/src/content/docs/th/plugins.mdx +389 -0
- package/src/content/docs/th/providers.mdx +2532 -0
- package/src/content/docs/th/rules.mdx +180 -0
- package/src/content/docs/th/sdk.mdx +463 -0
- package/src/content/docs/th/server.mdx +287 -0
- package/src/content/docs/th/share.mdx +128 -0
- package/src/content/docs/th/skills.mdx +222 -0
- package/src/content/docs/th/themes.mdx +369 -0
- package/src/content/docs/th/tools.mdx +341 -0
- package/src/content/docs/th/troubleshooting.mdx +300 -0
- package/src/content/docs/th/tui.mdx +429 -0
- package/src/content/docs/th/web.mdx +142 -0
- package/src/content/docs/th/windows-wsl.mdx +113 -0
- package/src/content/docs/th/zen.mdx +329 -0
- package/src/content/docs/themes.mdx +369 -0
- package/src/content/docs/tools.mdx +345 -0
- package/src/content/docs/tr/acp.mdx +156 -0
- package/src/content/docs/tr/agents.mdx +754 -0
- package/src/content/docs/tr/cli.mdx +617 -0
- package/src/content/docs/tr/commands.mdx +323 -0
- package/src/content/docs/tr/config.mdx +687 -0
- package/src/content/docs/tr/custom-tools.mdx +196 -0
- package/src/content/docs/tr/ecosystem.mdx +78 -0
- package/src/content/docs/tr/enterprise.mdx +170 -0
- package/src/content/docs/tr/formatters.mdx +131 -0
- package/src/content/docs/tr/github.mdx +321 -0
- package/src/content/docs/tr/gitlab.mdx +195 -0
- package/src/content/docs/tr/go.mdx +224 -0
- package/src/content/docs/tr/ide.mdx +48 -0
- package/src/content/docs/tr/index.mdx +347 -0
- package/src/content/docs/tr/keybinds.mdx +194 -0
- package/src/content/docs/tr/lsp.mdx +208 -0
- package/src/content/docs/tr/mcp-servers.mdx +511 -0
- package/src/content/docs/tr/models.mdx +223 -0
- package/src/content/docs/tr/network.mdx +57 -0
- package/src/content/docs/tr/permissions.mdx +235 -0
- package/src/content/docs/tr/plugins.mdx +388 -0
- package/src/content/docs/tr/providers.mdx +1988 -0
- package/src/content/docs/tr/rules.mdx +180 -0
- package/src/content/docs/tr/sdk.mdx +463 -0
- package/src/content/docs/tr/server.mdx +285 -0
- package/src/content/docs/tr/share.mdx +127 -0
- package/src/content/docs/tr/skills.mdx +222 -0
- package/src/content/docs/tr/themes.mdx +369 -0
- package/src/content/docs/tr/tools.mdx +341 -0
- package/src/content/docs/tr/troubleshooting.mdx +299 -0
- package/src/content/docs/tr/tui.mdx +427 -0
- package/src/content/docs/tr/web.mdx +142 -0
- package/src/content/docs/tr/windows-wsl.mdx +113 -0
- package/src/content/docs/tr/zen.mdx +327 -0
- package/src/content/docs/troubleshooting.mdx +314 -0
- package/src/content/docs/tui.mdx +427 -0
- package/src/content/docs/web.mdx +142 -0
- package/src/content/docs/windows-wsl.mdx +112 -0
- package/src/content/docs/zen.mdx +345 -0
- package/src/content/docs/zh-cn/acp.mdx +156 -0
- package/src/content/docs/zh-cn/agents.mdx +754 -0
- package/src/content/docs/zh-cn/cli.mdx +617 -0
- package/src/content/docs/zh-cn/commands.mdx +322 -0
- package/src/content/docs/zh-cn/config.mdx +683 -0
- package/src/content/docs/zh-cn/custom-tools.mdx +196 -0
- package/src/content/docs/zh-cn/ecosystem.mdx +78 -0
- package/src/content/docs/zh-cn/enterprise.mdx +165 -0
- package/src/content/docs/zh-cn/formatters.mdx +132 -0
- package/src/content/docs/zh-cn/github.mdx +321 -0
- package/src/content/docs/zh-cn/gitlab.mdx +194 -0
- package/src/content/docs/zh-cn/go.mdx +224 -0
- package/src/content/docs/zh-cn/ide.mdx +48 -0
- package/src/content/docs/zh-cn/index.mdx +343 -0
- package/src/content/docs/zh-cn/keybinds.mdx +194 -0
- package/src/content/docs/zh-cn/lsp.mdx +208 -0
- package/src/content/docs/zh-cn/mcp-servers.mdx +511 -0
- package/src/content/docs/zh-cn/models.mdx +222 -0
- package/src/content/docs/zh-cn/network.mdx +57 -0
- package/src/content/docs/zh-cn/permissions.mdx +235 -0
- package/src/content/docs/zh-cn/plugins.mdx +388 -0
- package/src/content/docs/zh-cn/providers.mdx +1949 -0
- package/src/content/docs/zh-cn/rules.mdx +180 -0
- package/src/content/docs/zh-cn/sdk.mdx +463 -0
- package/src/content/docs/zh-cn/server.mdx +284 -0
- package/src/content/docs/zh-cn/share.mdx +127 -0
- package/src/content/docs/zh-cn/skills.mdx +222 -0
- package/src/content/docs/zh-cn/themes.mdx +369 -0
- package/src/content/docs/zh-cn/tools.mdx +341 -0
- package/src/content/docs/zh-cn/troubleshooting.mdx +299 -0
- package/src/content/docs/zh-cn/tui.mdx +426 -0
- package/src/content/docs/zh-cn/web.mdx +142 -0
- package/src/content/docs/zh-cn/windows-wsl.mdx +112 -0
- package/src/content/docs/zh-cn/zen.mdx +327 -0
- package/src/content/docs/zh-tw/acp.mdx +156 -0
- package/src/content/docs/zh-tw/agents.mdx +754 -0
- package/src/content/docs/zh-tw/cli.mdx +617 -0
- package/src/content/docs/zh-tw/commands.mdx +322 -0
- package/src/content/docs/zh-tw/config.mdx +687 -0
- package/src/content/docs/zh-tw/custom-tools.mdx +196 -0
- package/src/content/docs/zh-tw/ecosystem.mdx +78 -0
- package/src/content/docs/zh-tw/enterprise.mdx +165 -0
- package/src/content/docs/zh-tw/formatters.mdx +132 -0
- package/src/content/docs/zh-tw/github.mdx +321 -0
- package/src/content/docs/zh-tw/gitlab.mdx +194 -0
- package/src/content/docs/zh-tw/go.mdx +224 -0
- package/src/content/docs/zh-tw/ide.mdx +48 -0
- package/src/content/docs/zh-tw/index.mdx +343 -0
- package/src/content/docs/zh-tw/keybinds.mdx +194 -0
- package/src/content/docs/zh-tw/lsp.mdx +208 -0
- package/src/content/docs/zh-tw/mcp-servers.mdx +511 -0
- package/src/content/docs/zh-tw/models.mdx +222 -0
- package/src/content/docs/zh-tw/network.mdx +57 -0
- package/src/content/docs/zh-tw/permissions.mdx +235 -0
- package/src/content/docs/zh-tw/plugins.mdx +388 -0
- package/src/content/docs/zh-tw/providers.mdx +1970 -0
- package/src/content/docs/zh-tw/rules.mdx +180 -0
- package/src/content/docs/zh-tw/sdk.mdx +463 -0
- package/src/content/docs/zh-tw/server.mdx +284 -0
- package/src/content/docs/zh-tw/share.mdx +127 -0
- package/src/content/docs/zh-tw/skills.mdx +222 -0
- package/src/content/docs/zh-tw/themes.mdx +369 -0
- package/src/content/docs/zh-tw/tools.mdx +341 -0
- package/src/content/docs/zh-tw/troubleshooting.mdx +299 -0
- package/src/content/docs/zh-tw/tui.mdx +426 -0
- package/src/content/docs/zh-tw/web.mdx +142 -0
- package/src/content/docs/zh-tw/windows-wsl.mdx +112 -0
- package/src/content/docs/zh-tw/zen.mdx +333 -0
- package/src/content/i18n/ar.json +75 -0
- package/src/content/i18n/bs.json +75 -0
- package/src/content/i18n/da.json +75 -0
- package/src/content/i18n/de.json +75 -0
- package/src/content/i18n/en.json +75 -0
- package/src/content/i18n/es.json +75 -0
- package/src/content/i18n/fr.json +75 -0
- package/src/content/i18n/it.json +75 -0
- package/src/content/i18n/ja.json +75 -0
- package/src/content/i18n/ko.json +75 -0
- package/src/content/i18n/nb.json +75 -0
- package/src/content/i18n/pl.json +75 -0
- package/src/content/i18n/pt-BR.json +75 -0
- package/src/content/i18n/ru.json +75 -0
- package/src/content/i18n/th.json +75 -0
- package/src/content/i18n/tr.json +75 -0
- package/src/content/i18n/zh-CN.json +75 -0
- package/src/content/i18n/zh-TW.json +75 -0
- package/src/content.config.ts +16 -0
- package/src/i18n/locales.ts +117 -0
- package/src/middleware.ts +94 -0
- package/src/pages/[...slug].md.ts +34 -0
- package/src/pages/s/[id].astro +164 -0
- package/src/styles/custom.css +405 -0
- package/src/types/lang-map.d.ts +27 -0
- package/src/types/starlight-virtual.d.ts +14 -0
- package/sst-env.d.ts +10 -0
- package/tsconfig.json +9 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Go
|
|
3
|
+
description: 專為開源寫程式模型提供的低成本訂閱服務。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import config from "../../../../config.mjs"
|
|
7
|
+
export const console = config.console
|
|
8
|
+
export const email = `mailto:${config.email}`
|
|
9
|
+
|
|
10
|
+
OpenCode Go 是一項低成本的訂閱服務——**首月 $5 美元**,之後**每月 $10 美元**——讓您能穩定使用受歡迎的開源寫程式模型。
|
|
11
|
+
|
|
12
|
+
Go 的運作方式與 OpenCode 中的任何其他供應商相同。您訂閱 OpenCode Go 並取得您的 API key。這是**完全可選的**,您不需要使用它也能使用 OpenCode。
|
|
13
|
+
|
|
14
|
+
它主要為國際使用者設計,模型託管於美國、歐盟和新加坡,以提供全球穩定的存取。
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## 背景
|
|
19
|
+
|
|
20
|
+
開源模型已經變得非常強大。它們在寫程式任務上的表現,現在已經接近專有模型。而且因為有許多供應商競爭提供服務,它們通常便宜得多。
|
|
21
|
+
|
|
22
|
+
然而,要獲得穩定、低延遲的存取可能很困難。各家供應商的品質和可用性不一。
|
|
23
|
+
|
|
24
|
+
:::tip
|
|
25
|
+
我們測試了一組精選的模型和供應商,它們與 OpenCode 搭配運作良好。
|
|
26
|
+
:::
|
|
27
|
+
|
|
28
|
+
為了解決這個問題,我們做了幾件事:
|
|
29
|
+
|
|
30
|
+
1. 我們測試了一組精選的開源模型,並與它們的團隊討論如何最佳化運行。
|
|
31
|
+
2. 接著我們與幾家供應商合作,確保這些模型被正確地提供服務。
|
|
32
|
+
3. 最後,我們對模型與供應商的組合進行了基準測試,並整理出一份我們樂於推薦的清單。
|
|
33
|
+
|
|
34
|
+
OpenCode Go 讓您可以存取這些模型,**首月只需 $5 美元**,之後**每月 $10 美元**。
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## 運作方式
|
|
39
|
+
|
|
40
|
+
OpenCode Go 的運作方式與 OpenCode 中的任何其他供應商相同。
|
|
41
|
+
|
|
42
|
+
1. 您登入 **<a href={console}>OpenCode Zen</a>**,訂閱 Go,然後複製您的 API key。
|
|
43
|
+
2. 您在 TUI 中執行 `/connect` 命令,選擇 `OpenCode Go`,然後貼上您的 API key。
|
|
44
|
+
3. 在 TUI 中執行 `/models` 即可查看透過 Go 可用的模型清單。
|
|
45
|
+
|
|
46
|
+
:::note
|
|
47
|
+
每個工作區只能有一位成員訂閱 OpenCode Go。
|
|
48
|
+
:::
|
|
49
|
+
|
|
50
|
+
目前的模型清單包括:
|
|
51
|
+
|
|
52
|
+
- **Grok 4.5**
|
|
53
|
+
- **GLM-5.2**
|
|
54
|
+
- **GLM-5.1**
|
|
55
|
+
- **Kimi K3**
|
|
56
|
+
- **Kimi K2.7 Code**
|
|
57
|
+
- **Kimi K2.6**
|
|
58
|
+
- **MiMo-V2.5**
|
|
59
|
+
- **MiMo-V2.5-Pro**
|
|
60
|
+
- **MiniMax M3**
|
|
61
|
+
- **MiniMax M2.7**
|
|
62
|
+
- **Qwen3.7 Max**
|
|
63
|
+
- **Qwen3.7 Plus**
|
|
64
|
+
- **Qwen3.6 Plus**
|
|
65
|
+
- **DeepSeek V4 Pro**
|
|
66
|
+
- **DeepSeek V4 Flash**
|
|
67
|
+
- **Hy3**
|
|
68
|
+
|
|
69
|
+
隨著我們測試並加入新模型,模型清單可能會有所變動。
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## 使用限制
|
|
74
|
+
|
|
75
|
+
OpenCode Go 包含以下限制:
|
|
76
|
+
|
|
77
|
+
- **5 小時限制** — $12 美元的使用量
|
|
78
|
+
- **每週限制** — $30 美元的使用量
|
|
79
|
+
- **每月限制** — $60 美元的使用量
|
|
80
|
+
|
|
81
|
+
限制是以美元價值來定義。這意味著您的實際請求次數取決於您使用的模型。像 DeepSeek V4 Flash 這樣較便宜的模型允許更多的請求次數,而像 GLM-5.2 這樣成本較高的模型則允許較少次數。
|
|
82
|
+
|
|
83
|
+
下表提供了基於典型 Go 使用模式的預估請求次數:
|
|
84
|
+
|
|
85
|
+
| Model | 每 5 小時請求數 | 每週請求數 | 每月請求數 |
|
|
86
|
+
| ----------------- | --------------- | ---------- | ---------- |
|
|
87
|
+
| Grok 4.5 | 120 | 300 | 600 |
|
|
88
|
+
| GLM-5.2 | 880 | 2,150 | 4,300 |
|
|
89
|
+
| GLM-5.1 | 880 | 2,150 | 4,300 |
|
|
90
|
+
| Kimi K3 | 110 | 250 | 490 |
|
|
91
|
+
| Kimi K2.7 Code | 1,350 | 3,380 | 6,750 |
|
|
92
|
+
| Kimi K2.6 | 1,150 | 2,880 | 5,750 |
|
|
93
|
+
| MiMo-V2.5 | 30,100 | 75,200 | 150,400 |
|
|
94
|
+
| MiMo-V2.5-Pro | 3,250 | 8,150 | 16,300 |
|
|
95
|
+
| MiniMax M3 | 3,200 | 8,000 | 16,000 |
|
|
96
|
+
| MiniMax M2.7 | 3,400 | 8,500 | 17,000 |
|
|
97
|
+
| Qwen3.7 Max | 950 | 2,390 | 4,770 |
|
|
98
|
+
| Qwen3.7 Plus | 4,300 | 10,800 | 21,600 |
|
|
99
|
+
| Qwen3.6 Plus | 3,300 | 8,200 | 16,300 |
|
|
100
|
+
| DeepSeek V4 Pro | 3,450 | 8,550 | 17,150 |
|
|
101
|
+
| DeepSeek V4 Flash | 31,650 | 79,050 | 158,150 |
|
|
102
|
+
| Hy3 | 4,300 | 10,750 | 21,500 |
|
|
103
|
+
|
|
104
|
+
這些預估值是基於觀察到的請求模式:
|
|
105
|
+
|
|
106
|
+
- Grok 4.5 — 每次請求 1,100 個輸入 token、71,500 個快取 token、220 個輸出 token
|
|
107
|
+
- GLM-5.2/5.1 — 每次請求 700 個輸入 token、52,000 個快取 token、150 個輸出 token
|
|
108
|
+
- Kimi K3 — 每次請求 1,050 個輸入 token、76,500 個快取 token、300 個輸出 token
|
|
109
|
+
- Kimi K2.7/K2.6 — 每次請求 870 個輸入 token、55,000 個快取 token、200 個輸出 token
|
|
110
|
+
- DeepSeek V4 Pro — 每次請求 750 個輸入 token、82,000 個快取 token、290 個輸出 token
|
|
111
|
+
- DeepSeek V4 Flash — 每次請求 790 個輸入 token、68,000 個快取 token、280 個輸出 token
|
|
112
|
+
- MiniMax M3 — 每次請求 510 個輸入 token、56,000 個快取 token、190 個輸出 token
|
|
113
|
+
- MiniMax M2.7 — 每次請求 300 個輸入 token、55,000 個快取 token、125 個輸出 token
|
|
114
|
+
- Qwen3.7 Max — 每次請求 420 個輸入 token、66,000 個快取 token、200 個輸出 token
|
|
115
|
+
- Qwen3.7 Plus — 每次請求 500 個輸入 token、57,000 個快取 token、190 個輸出 token
|
|
116
|
+
- Qwen3.6 Plus — 每次請求 500 個輸入 token、57,000 個快取 token、190 個輸出 token
|
|
117
|
+
- Hy3 — 每次請求 830 個輸入 token、71,500 個快取 token、295 個輸出 token
|
|
118
|
+
- MiMo-V2.5 — 每次請求 830 個輸入 token、71,500 個快取 token、295 個輸出 token
|
|
119
|
+
- MiMo-V2.5-Pro — 每次請求 790 個輸入 token、86,000 個快取 token、305 個輸出 token
|
|
120
|
+
|
|
121
|
+
這些預估值也基於以下每 1M tokens 的價格,以及每個模型所包含的每月使用量:
|
|
122
|
+
|
|
123
|
+
| 模型 | 輸入 | 輸出 | 快取讀取 | 快取寫入 | 使用量 |
|
|
124
|
+
| ---------------------------- | ------ | ------ | --------- | -------- | ------ |
|
|
125
|
+
| Grok 4.5 | $2.00 | $6.00 | $0.30 | - | $15 |
|
|
126
|
+
| GLM-5.2 | $1.40 | $4.40 | $0.26 | - | $60 |
|
|
127
|
+
| GLM-5.1 | $1.40 | $4.40 | $0.26 | - | $60 |
|
|
128
|
+
| Kimi K3 | $3.00 | $15.00 | $0.30 | - | $15 |
|
|
129
|
+
| Kimi K2.7 Code | $0.95 | $4.00 | $0.19 | - | $60 |
|
|
130
|
+
| Kimi K2.6 | $0.95 | $4.00 | $0.16 | - | $60 |
|
|
131
|
+
| MiMo V2.5 | $0.14 | $0.28 | $0.0028 | - | $60 |
|
|
132
|
+
| MiMo V2.5 Pro | $0.435 | $0.87 | $0.003625 | - | $15 |
|
|
133
|
+
| MiniMax M3 | $0.30 | $1.20 | $0.06 | - | $60 |
|
|
134
|
+
| MiniMax M2.7 | $0.30 | $1.20 | $0.06 | $0.375 | $60 |
|
|
135
|
+
| MiniMax M2.5 | $0.30 | $1.20 | $0.06 | $0.375 | $60 |
|
|
136
|
+
| Qwen3.7 Max | $2.50 | $7.50 | $0.50 | $3.125 | $60 |
|
|
137
|
+
| Qwen3.7 Plus (≤ 256K tokens) | $0.40 | $1.60 | $0.04 | $0.50 | $60 |
|
|
138
|
+
| Qwen3.7 Plus (> 256K tokens) | $1.20 | $4.80 | $0.12 | $1.50 | $60 |
|
|
139
|
+
| Qwen3.6 Plus (≤ 256K tokens) | $0.50 | $3.00 | $0.05 | $0.625 | $60 |
|
|
140
|
+
| Qwen3.6 Plus (> 256K tokens) | $2.00 | $6.00 | $0.20 | $2.50 | $60 |
|
|
141
|
+
| DeepSeek V4 Pro | $0.435 | $0.87 | $0.003625 | - | $15 |
|
|
142
|
+
| DeepSeek V4 Flash | $0.14 | $0.28 | $0.0028 | - | $60 |
|
|
143
|
+
| Hy3 | $0.14 | $0.58 | $0.035 | - | $60 |
|
|
144
|
+
|
|
145
|
+
您可以在 **<a href={console}>console</a>** 中追蹤您目前的使用量。
|
|
146
|
+
|
|
147
|
+
:::tip
|
|
148
|
+
如果您達到了使用限制,您可以繼續使用免費模型。
|
|
149
|
+
:::
|
|
150
|
+
|
|
151
|
+
使用限制可能會隨著我們從早期使用情況和回饋中學習而有所調整。
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### 超出限制的使用量
|
|
156
|
+
|
|
157
|
+
如果您在您的 Zen 餘額中也有額度,您可以在 console 中啟用 **Use balance** 選項。啟用後,當您達到使用限制時,Go 將會改用您的 Zen 餘額,而不是阻擋請求。
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### 為什麼部分模型的使用量較低
|
|
162
|
+
|
|
163
|
+
使用 Go 時,您每月支付 $10,而我們的目標是提供相當於 6 倍費用的使用量。
|
|
164
|
+
|
|
165
|
+
對大多數模型而言,我們透過大量採購折扣和預留 GPU 容量來達成此目標,再以 6 倍乘數將節省的成本回饋給您。
|
|
166
|
+
|
|
167
|
+
對於部分模型,我們尚未有機會議定折扣或以較低成本託管,原因可能是模型剛推出,或其公開價格已經過折扣。
|
|
168
|
+
|
|
169
|
+
對於這些模型,您獲得的使用量仍會比直接向模型供應商付費多一些;這就是上表中其使用量乘數較低的原因。
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 端點
|
|
174
|
+
|
|
175
|
+
您也可以透過以下 API 端點存取 Go 模型。
|
|
176
|
+
|
|
177
|
+
| 模型 | 模型 ID | 端點 | AI SDK 套件 |
|
|
178
|
+
| ----------------- | ----------------- | ------------------------------------------------ | --------------------------- |
|
|
179
|
+
| Grok 4.5 | grok-4.5 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
180
|
+
| GLM-5.2 | glm-5.2 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
181
|
+
| GLM-5.1 | glm-5.1 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
182
|
+
| Kimi K3 | kimi-k3 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
183
|
+
| Kimi K2.7 Code | kimi-k2.7-code | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
184
|
+
| Kimi K2.6 | kimi-k2.6 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
185
|
+
| DeepSeek V4 Pro | deepseek-v4-pro | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
186
|
+
| DeepSeek V4 Flash | deepseek-v4-flash | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
187
|
+
| MiMo-V2.5 | mimo-v2.5 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
188
|
+
| MiMo-V2.5-Pro | mimo-v2.5-pro | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
189
|
+
| MiniMax M3 | minimax-m3 | `https://opencode.ai/zen/go/v1/messages` | `@ai-sdk/anthropic` |
|
|
190
|
+
| MiniMax M2.7 | minimax-m2.7 | `https://opencode.ai/zen/go/v1/messages` | `@ai-sdk/anthropic` |
|
|
191
|
+
| MiniMax M2.5 | minimax-m2.5 | `https://opencode.ai/zen/go/v1/messages` | `@ai-sdk/anthropic` |
|
|
192
|
+
| Qwen3.7 Max | qwen3.7-max | `https://opencode.ai/zen/go/v1/messages` | `@ai-sdk/anthropic` |
|
|
193
|
+
| Qwen3.7 Plus | qwen3.7-plus | `https://opencode.ai/zen/go/v1/messages` | `@ai-sdk/anthropic` |
|
|
194
|
+
| Qwen3.6 Plus | qwen3.6-plus | `https://opencode.ai/zen/go/v1/messages` | `@ai-sdk/anthropic` |
|
|
195
|
+
| Hy3 | hy3 | `https://opencode.ai/zen/go/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
|
196
|
+
|
|
197
|
+
您的 OpenCode 設定中的 [model id](/docs/config/#models) 使用 `opencode-go/<model-id>` 格式。例如,Kimi K3 在設定中應使用 `opencode-go/kimi-k3`。
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### 模型
|
|
202
|
+
|
|
203
|
+
你可以從以下位置取得所有可用模型及其中繼資料的完整清單:
|
|
204
|
+
|
|
205
|
+
```
|
|
206
|
+
https://opencode.ai/zen/go/v1/models
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## 隱私權
|
|
212
|
+
|
|
213
|
+
此方案主要為國際使用者設計,模型部署於 US、EU 與 Singapore,以提供穩定的全球存取體驗。我們的供應商遵循零保留政策,不會將你的資料用於模型訓練。
|
|
214
|
+
|
|
215
|
+
---
|
|
216
|
+
|
|
217
|
+
## 目標
|
|
218
|
+
|
|
219
|
+
我們建立 OpenCode Go 的目的是:
|
|
220
|
+
|
|
221
|
+
1. 透過低成本的訂閱服務,讓更多人能**輕鬆獲得** AI 寫程式的協助。
|
|
222
|
+
2. 提供**穩定可靠**的途徑來存取最好的開源寫程式模型。
|
|
223
|
+
3. 精選經過**測試與效能評估**、適合寫程式代理使用的模型。
|
|
224
|
+
4. 允許您在 OpenCode 中同時使用任何其他供應商,確保**不被單一廠商綁定**。
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: IDE
|
|
3
|
+
description: 適用於 VS Code、Cursor 及其他 IDE 的 OpenCode 擴充功能
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
OpenCode 可與 VS Code、Cursor 或任何支援終端機的 IDE 整合。只需在終端機中執行 `opencode` 即可開始使用。
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## 用法
|
|
11
|
+
|
|
12
|
+
- **快速啟動**:使用 `Cmd+Esc`(Mac)或 `Ctrl+Esc`(Windows/Linux)在分割終端機視圖中開啟 OpenCode,如果已有終端機工作階段正在執行,則會自動聚焦到該工作階段。
|
|
13
|
+
- **新建工作階段**:使用 `Cmd+Shift+Esc`(Mac)或 `Ctrl+Shift+Esc`(Windows/Linux)啟動新的 OpenCode 終端機工作階段,即使已有工作階段在執行也會新建。您也可以點選介面中的 OpenCode 按鈕。
|
|
14
|
+
- **上下文感知**:自動將當前選取內容或分頁共享給 OpenCode。
|
|
15
|
+
- **檔案參照快捷鍵**:使用 `Cmd+Option+K`(Mac)或 `Alt+Ctrl+K`(Linux/Windows)插入檔案參照。例如 `@File#L37-42`。
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 安裝
|
|
20
|
+
|
|
21
|
+
在 VS Code 及其常見分支(如 Cursor、Windsurf、VSCodium)上安裝 OpenCode:
|
|
22
|
+
|
|
23
|
+
1. 開啟 VS Code
|
|
24
|
+
2. 開啟整合終端機
|
|
25
|
+
3. 執行 `opencode`——擴充功能將自動安裝
|
|
26
|
+
|
|
27
|
+
如果您希望在 TUI 中執行 `/editor` 或 `/export` 時使用自己的 IDE,需要設定 `export EDITOR="code --wait"`。[了解更多](/docs/tui/#editor-setup)。
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
### 手動安裝
|
|
32
|
+
|
|
33
|
+
在擴充功能商店中搜尋 **OpenCode**,然後點選 **Install**。
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
### 疑難排解
|
|
38
|
+
|
|
39
|
+
如果擴充功能未能自動安裝:
|
|
40
|
+
|
|
41
|
+
- 確保您是在整合終端機中執行的 `opencode`。
|
|
42
|
+
- 確認您的 IDE 對應的 CLI 指令已安裝:
|
|
43
|
+
- VS Code:`code` 指令
|
|
44
|
+
- Cursor:`cursor` 指令
|
|
45
|
+
- Windsurf:`windsurf` 指令
|
|
46
|
+
- VSCodium:`codium` 指令
|
|
47
|
+
- 如果未安裝,請按 `Cmd+Shift+P`(Mac)或 `Ctrl+Shift+P`(Windows/Linux),搜尋「Shell Command: Install 'code' command in PATH」(或您的 IDE 對應的指令)
|
|
48
|
+
- 確保 VS Code 有權限安裝擴充功能
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 簡介
|
|
3
|
+
description: 開始使用 OpenCode。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Tabs, TabItem } from "@astrojs/starlight/components"
|
|
7
|
+
import config from "../../../../config.mjs"
|
|
8
|
+
export const console = config.console
|
|
9
|
+
|
|
10
|
+
[**OpenCode**](/) 是一個開源的 AI 編碼代理。它提供終端機介面、桌面應用程式和 IDE 擴充功能等多種使用方式。
|
|
11
|
+
|
|
12
|
+

|
|
13
|
+
|
|
14
|
+
讓我們開始吧。
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
#### 前提條件
|
|
19
|
+
|
|
20
|
+
要在終端機中使用 OpenCode,您需要:
|
|
21
|
+
|
|
22
|
+
1. 一款現代終端機模擬器,例如:
|
|
23
|
+
- [WezTerm](https://wezterm.org),跨平台
|
|
24
|
+
- [Alacritty](https://alacritty.org),跨平台
|
|
25
|
+
- [Ghostty](https://ghostty.org),Linux 和 macOS
|
|
26
|
+
- [Kitty](https://sw.kovidgoyal.net/kitty/),Linux 和 macOS
|
|
27
|
+
|
|
28
|
+
2. 您想使用的 LLM 供應商的 API 金鑰。
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
## 安裝
|
|
33
|
+
|
|
34
|
+
安裝 OpenCode 最簡單的方法是透過安裝指令碼。
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
curl -fsSL https://opencode.ai/install | bash
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
您也可以使用以下方式安裝:
|
|
41
|
+
|
|
42
|
+
- **使用 Node.js**
|
|
43
|
+
|
|
44
|
+
<Tabs>
|
|
45
|
+
|
|
46
|
+
<TabItem label="npm">
|
|
47
|
+
```bash
|
|
48
|
+
npm install -g opencode-ai
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
</TabItem>
|
|
52
|
+
|
|
53
|
+
<TabItem label="Bun">
|
|
54
|
+
```bash
|
|
55
|
+
bun install -g opencode-ai
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
</TabItem>
|
|
59
|
+
|
|
60
|
+
<TabItem label="pnpm">
|
|
61
|
+
```bash
|
|
62
|
+
pnpm install -g opencode-ai
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
</TabItem>
|
|
66
|
+
|
|
67
|
+
<TabItem label="Yarn">
|
|
68
|
+
```bash
|
|
69
|
+
yarn global add opencode-ai
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
</TabItem>
|
|
73
|
+
|
|
74
|
+
</Tabs>
|
|
75
|
+
|
|
76
|
+
- **在 macOS 和 Linux 上使用 Homebrew**
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
brew install anomalyco/tap/opencode
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
> 我們推薦使用 OpenCode tap 以取得最新版本。官方的 `brew install opencode` formula 由 Homebrew 團隊維護,更新頻率較低。
|
|
83
|
+
|
|
84
|
+
- **在 Arch Linux 上安裝**
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
sudo pacman -S opencode # Arch Linux (Stable)
|
|
88
|
+
paru -S opencode-bin # Arch Linux (Latest from AUR)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
#### Windows
|
|
92
|
+
|
|
93
|
+
:::tip[推薦:使用 WSL]
|
|
94
|
+
為了在 Windows 上獲得最佳體驗,我們推薦使用 [Windows Subsystem for Linux (WSL)](/docs/windows-wsl)。它提供更好的效能,並完全相容 OpenCode 的所有功能。
|
|
95
|
+
:::
|
|
96
|
+
|
|
97
|
+
- **使用 Chocolatey**
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
choco install opencode
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
- **使用 Scoop**
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
scoop install opencode
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
- **使用 NPM**
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
npm install -g opencode-ai
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
- **使用 Mise**
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
mise use -g github:anomalyco/opencode
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
- **使用 Docker**
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
docker run -it --rm ghcr.io/anomalyco/opencode
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
在 Windows 上透過 Bun 安裝 OpenCode 的支援目前正在開發中。
|
|
128
|
+
|
|
129
|
+
您也可以從 [Releases](https://github.com/anomalyco/opencode/releases) 頁面直接下載二進位檔案。
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 設定
|
|
134
|
+
|
|
135
|
+
透過 OpenCode,您可以設定 API 金鑰來使用任意 LLM 供應商。
|
|
136
|
+
|
|
137
|
+
如果您剛開始接觸 LLM 供應商,我們推薦使用 [OpenCode Zen](/docs/zen)。這是一組經過 OpenCode 團隊測試和驗證的精選模型。
|
|
138
|
+
|
|
139
|
+
1. 在 TUI 中執行 `/connect` 指令,選擇 opencode,然後前往 [opencode.ai/auth](https://opencode.ai/auth)。
|
|
140
|
+
|
|
141
|
+
```txt
|
|
142
|
+
/connect
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
2. 登入並新增帳單資訊,然後複製您的 API 金鑰。
|
|
146
|
+
|
|
147
|
+
3. 貼上您的 API 金鑰。
|
|
148
|
+
|
|
149
|
+
```txt
|
|
150
|
+
┌ API key
|
|
151
|
+
│
|
|
152
|
+
│
|
|
153
|
+
└ enter
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
您也可以選擇其他供應商。[了解更多](/docs/providers#directory)。
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 初始化
|
|
161
|
+
|
|
162
|
+
設定好供應商後,導覽到您想要處理的專案目錄。
|
|
163
|
+
|
|
164
|
+
```bash
|
|
165
|
+
cd /path/to/project
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
然後執行 OpenCode。
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
opencode
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
接下來,執行以下指令為專案初始化 OpenCode。
|
|
175
|
+
|
|
176
|
+
```bash frame="none"
|
|
177
|
+
/init
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
OpenCode 會分析您的專案並在專案根目錄建立一個 `AGENTS.md` 檔案。
|
|
181
|
+
|
|
182
|
+
:::tip
|
|
183
|
+
您應該將專案的 `AGENTS.md` 檔案提交到 Git。
|
|
184
|
+
:::
|
|
185
|
+
|
|
186
|
+
這有助於 OpenCode 理解專案結構和編碼規範。
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 使用
|
|
191
|
+
|
|
192
|
+
現在您已經準備好使用 OpenCode 來處理專案了,儘管提問吧!
|
|
193
|
+
|
|
194
|
+
如果您是第一次使用 AI 編碼代理,以下範例可能會對您有所幫助。
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
### 提問
|
|
199
|
+
|
|
200
|
+
您可以讓 OpenCode 為您講解程式碼庫。
|
|
201
|
+
|
|
202
|
+
:::tip
|
|
203
|
+
使用 `@` 鍵可以模糊搜尋專案中的檔案。
|
|
204
|
+
:::
|
|
205
|
+
|
|
206
|
+
```txt frame="none" "@packages/functions/src/api/index.ts"
|
|
207
|
+
How is authentication handled in @packages/functions/src/api/index.ts
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
當您遇到不熟悉的程式碼時,這個功能非常有用。
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
### 新增功能
|
|
215
|
+
|
|
216
|
+
您可以讓 OpenCode 為專案新增新功能。不過我們建議先讓它制定一個計畫。
|
|
217
|
+
|
|
218
|
+
1. **制定計畫**
|
|
219
|
+
|
|
220
|
+
OpenCode 有一個*計畫模式*,該模式下它不會進行任何修改,而是建議*如何*實作該功能。
|
|
221
|
+
|
|
222
|
+
使用 **Tab** 鍵切換到計畫模式。您會在右下角看到模式指示器。
|
|
223
|
+
|
|
224
|
+
```bash frame="none" title="Switch to Plan mode"
|
|
225
|
+
<TAB>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
接下來描述您希望它做什麼。
|
|
229
|
+
|
|
230
|
+
```txt frame="none"
|
|
231
|
+
When a user deletes a note, we'd like to flag it as deleted in the database.
|
|
232
|
+
Then create a screen that shows all the recently deleted notes.
|
|
233
|
+
From this screen, the user can undelete a note or permanently delete it.
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
您需要提供足夠的細節,讓 OpenCode 理解您的需求。可以把它當作團隊中的一名初級開發者來溝通。
|
|
237
|
+
|
|
238
|
+
:::tip
|
|
239
|
+
為 OpenCode 提供充足的上下文和範例,幫助它理解您的需求。
|
|
240
|
+
:::
|
|
241
|
+
|
|
242
|
+
2. **迭代計畫**
|
|
243
|
+
|
|
244
|
+
當它給出計畫後,您可以提供回饋或補充更多細節。
|
|
245
|
+
|
|
246
|
+
```txt frame="none"
|
|
247
|
+
We'd like to design this new screen using a design I've used before.
|
|
248
|
+
[Image #1] Take a look at this image and use it as a reference.
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
:::tip
|
|
252
|
+
將圖片拖放到終端機中即可將其新增到提示詞中。
|
|
253
|
+
:::
|
|
254
|
+
|
|
255
|
+
OpenCode 可以掃描您提供的圖片並將其新增到提示詞中。只需將圖片拖放到終端機視窗即可。
|
|
256
|
+
|
|
257
|
+
3. **建置功能**
|
|
258
|
+
|
|
259
|
+
當您對計畫滿意後,再次按 **Tab** 鍵切換回*建置模式*。
|
|
260
|
+
|
|
261
|
+
```bash frame="none"
|
|
262
|
+
<TAB>
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
然後讓它開始實施。
|
|
266
|
+
|
|
267
|
+
```bash frame="none"
|
|
268
|
+
Sounds good! Go ahead and make the changes.
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
### 直接修改
|
|
274
|
+
|
|
275
|
+
對於比較簡單的修改,您可以直接讓 OpenCode 實施,無需先審查計畫。
|
|
276
|
+
|
|
277
|
+
```txt frame="none" "@packages/functions/src/settings.ts" "@packages/functions/src/notes.ts"
|
|
278
|
+
We need to add authentication to the /settings route. Take a look at how this is
|
|
279
|
+
handled in the /notes route in @packages/functions/src/notes.ts and implement
|
|
280
|
+
the same logic in @packages/functions/src/settings.ts
|
|
281
|
+
```
|
|
282
|
+
|
|
283
|
+
請確保提供足夠的細節,以便 OpenCode 做出正確的修改。
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
|
+
### 復原修改
|
|
288
|
+
|
|
289
|
+
假設您讓 OpenCode 做了一些修改。
|
|
290
|
+
|
|
291
|
+
```txt frame="none" "@packages/functions/src/api/index.ts"
|
|
292
|
+
Can you refactor the function in @packages/functions/src/api/index.ts?
|
|
293
|
+
```
|
|
294
|
+
|
|
295
|
+
但您發現結果不是您想要的。您**可以使用** `/undo` 指令來復原修改。
|
|
296
|
+
|
|
297
|
+
```bash frame="none"
|
|
298
|
+
/undo
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
OpenCode 會還原所做的修改,並重新顯示您之前的訊息。
|
|
302
|
+
|
|
303
|
+
```txt frame="none" "@packages/functions/src/api/index.ts"
|
|
304
|
+
Can you refactor the function in @packages/functions/src/api/index.ts?
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
您可以調整提示詞,讓 OpenCode 重新嘗試。
|
|
308
|
+
|
|
309
|
+
:::tip
|
|
310
|
+
您可以多次執行 `/undo` 來復原多次修改。
|
|
311
|
+
:::
|
|
312
|
+
|
|
313
|
+
您也**可以使用** `/redo` 指令來重做修改。
|
|
314
|
+
|
|
315
|
+
```bash frame="none"
|
|
316
|
+
/redo
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
---
|
|
320
|
+
|
|
321
|
+
## 分享
|
|
322
|
+
|
|
323
|
+
您與 OpenCode 的對話可以[與團隊分享](/docs/share)。
|
|
324
|
+
|
|
325
|
+
```bash frame="none"
|
|
326
|
+
/share
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
這會生成當前對話的連結並複製到剪貼簿。
|
|
330
|
+
|
|
331
|
+
:::note
|
|
332
|
+
對話預設不會被分享。
|
|
333
|
+
:::
|
|
334
|
+
|
|
335
|
+
這是一個與 OpenCode 的[範例對話](https://opencode.ai/s/4XP1fce5)。
|
|
336
|
+
|
|
337
|
+
---
|
|
338
|
+
|
|
339
|
+
## 個人化
|
|
340
|
+
|
|
341
|
+
以上就是全部內容!您現在已經是 OpenCode 的使用高手了。
|
|
342
|
+
|
|
343
|
+
要讓它更符合您的習慣,我們推薦[選擇一個主題](/docs/themes)、[自訂快捷鍵](/docs/keybinds)、[設定程式碼格式化器](/docs/formatters)、[建立自訂指令](/docs/commands),或者探索 [OpenCode 設定](/docs/config)。
|