@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 中的任何其他提供商(provider)一样。订阅 OpenCode Go 后你将获得 API 密钥。它是 **完全可选** 的,并非使用 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. 最后,我们对模型和提供商的组合进行了基准测试(benchmark),得出了一份我们乐于推荐的列表。
|
|
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 密钥。
|
|
43
|
+
2. 在 TUI 中运行 `/connect` 命令,选择 `OpenCode Go`,然后粘贴你的 API 密钥。
|
|
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
|
+
- MiMo-V2.5 — 每次请求 830 个输入 token,71,500 个缓存 token,295 个输出 token
|
|
113
|
+
- MiMo-V2.5-Pro — 每次请求 790 个输入 token,86,000 个缓存 token,305 个输出 token
|
|
114
|
+
- MiniMax M3 — 每次请求 510 个输入 token,56,000 个缓存 token,190 个输出 token
|
|
115
|
+
- MiniMax M2.7 — 每次请求 300 个输入 token,55,000 个缓存 token,125 个输出 token
|
|
116
|
+
- Qwen3.7 Max — 每次请求 420 个输入 token,66,000 个缓存 token,200 个输出 token
|
|
117
|
+
- Qwen3.7 Plus — 每次请求 500 个输入 token,57,000 个缓存 token,190 个输出 token
|
|
118
|
+
- Qwen3.6 Plus — 每次请求 500 个输入 token,57,000 个缓存 token,190 个输出 token
|
|
119
|
+
- Hy3 — 每次请求 830 个输入 token,71,500 个缓存 token,295 个输出 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}>控制台</a>** 中跟踪你当前的使用情况。
|
|
146
|
+
|
|
147
|
+
:::tip
|
|
148
|
+
如果你达到了使用限制,你可以继续使用免费模型。
|
|
149
|
+
:::
|
|
150
|
+
|
|
151
|
+
使用限制可能会随着我们从早期使用和反馈中学习而发生变化。
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
### 超出限制的使用
|
|
156
|
+
|
|
157
|
+
如果你的 Zen 余额中还有积分,可以在控制台中启用 **使用余额(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
|
+
## API 端点
|
|
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 配置中的 [模型 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. 精选经过 **测试和基准评估**,适合编程 Agent 使用的模型。
|
|
224
|
+
4. **无锁定(no lock-in)**,允许你与 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)。
|