@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,617 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: CLI
|
|
3
|
+
description: OpenCode CLI 選項和指令。
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
import { Tabs, TabItem } from "@astrojs/starlight/components"
|
|
7
|
+
|
|
8
|
+
OpenCode CLI 在不帶任何參數執行時,預設啟動 [TUI](/docs/tui)。
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
opencode
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
但它也接受本頁面中記錄的指令,使您可以透過程式方式與 OpenCode 進行互動。
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
opencode run "Explain how closures work in JavaScript"
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
### tui
|
|
23
|
+
|
|
24
|
+
啟動 OpenCode 終端機使用者介面。
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
opencode [project]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
#### 旗標
|
|
31
|
+
|
|
32
|
+
| 旗標 | 簡寫 | 說明 |
|
|
33
|
+
| ---------------------------------------- | ---- | ------------------------------------------------------------- |
|
|
34
|
+
| <nobr><code>{"--continue"}</code></nobr> | `-c` | 繼續上一個工作階段 |
|
|
35
|
+
| <nobr><code>{"--session"}</code></nobr> | `-s` | 要繼續的工作階段 ID |
|
|
36
|
+
| <nobr><code>{"--fork"}</code></nobr> | | 繼續時分岔工作階段(與 `--continue` 或 `--session` 搭配使用) |
|
|
37
|
+
| <nobr><code>{"--prompt"}</code></nobr> | | 要使用的提示詞 |
|
|
38
|
+
| <nobr><code>{"--model"}</code></nobr> | `-m` | 要使用的模型,格式為 provider/model |
|
|
39
|
+
| <nobr><code>{"--agent"}</code></nobr> | | 要使用的代理 |
|
|
40
|
+
| <nobr><code>{"--port"}</code></nobr> | | 監聽連接埠 |
|
|
41
|
+
| <nobr><code>{"--hostname"}</code></nobr> | | 監聽主機名稱 |
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## 指令
|
|
46
|
+
|
|
47
|
+
OpenCode CLI 還提供以下指令。
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### agent
|
|
52
|
+
|
|
53
|
+
管理 OpenCode 的代理。
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
opencode agent [command]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
### attach
|
|
62
|
+
|
|
63
|
+
將終端機連接到已透過 `serve` 或 `web` 指令啟動的 OpenCode 後端伺服器。
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
opencode attach [url]
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
這允許將 TUI 與遠端 OpenCode 後端搭配使用。例如:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Start the backend server for web/mobile access
|
|
73
|
+
opencode web --port 4096 --hostname 0.0.0.0
|
|
74
|
+
|
|
75
|
+
# In another terminal, attach the TUI to the running backend
|
|
76
|
+
opencode attach http://10.20.30.40:4096
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
#### 旗標
|
|
80
|
+
|
|
81
|
+
| 旗標 | 簡寫 | 說明 |
|
|
82
|
+
| ---------------------------------------- | ---- | ----------------------------------------------------------------------- |
|
|
83
|
+
| <nobr><code>{"--dir"}</code></nobr> | | 啟動 TUI 的工作目錄 |
|
|
84
|
+
| <nobr><code>{"--continue"}</code></nobr> | `-c` | 繼續上一個工作階段 |
|
|
85
|
+
| <nobr><code>{"--session"}</code></nobr> | `-s` | 要繼續的工作階段 ID |
|
|
86
|
+
| <nobr><code>{"--fork"}</code></nobr> | | 繼續時分支工作階段(與 `--continue` 或 `--session` 一起使用) |
|
|
87
|
+
| <nobr><code>{"--password"}</code></nobr> | `-p` | 基本驗證密碼(預設使用 `OPENCODE_SERVER_PASSWORD`) |
|
|
88
|
+
| <nobr><code>{"--username"}</code></nobr> | `-u` | 基本驗證使用者名稱(預設使用 `OPENCODE_SERVER_USERNAME` 或 `opencode`) |
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
#### create
|
|
93
|
+
|
|
94
|
+
使用自訂設定建立新的代理。
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
opencode agent create
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
此指令將引導您使用自訂系統提示詞和工具設定來建立新的代理。
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
#### list
|
|
105
|
+
|
|
106
|
+
列出所有可用的代理。
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
opencode agent list
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
### auth
|
|
115
|
+
|
|
116
|
+
管理供應商的憑證和登入資訊的指令。
|
|
117
|
+
|
|
118
|
+
```bash
|
|
119
|
+
opencode auth [command]
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
#### login
|
|
125
|
+
|
|
126
|
+
OpenCode 基於 [Models.dev](https://models.dev) 的供應商列表運作,因此您可以使用 `opencode auth login` 為任何想要使用的供應商設定 API 金鑰。金鑰儲存在 `~/.local/share/opencode/auth.json` 中。
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
opencode auth login
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
OpenCode 啟動時會從憑證檔案載入供應商資訊,同時也會載入環境變數或專案中 `.env` 檔案中定義的金鑰。
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
#### list
|
|
137
|
+
|
|
138
|
+
列出憑證檔案中儲存的所有已認證供應商。
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
opencode auth list
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
或使用簡寫版本。
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
opencode auth ls
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
#### logout
|
|
153
|
+
|
|
154
|
+
從憑證檔案中清除供應商資訊以完成登出。
|
|
155
|
+
|
|
156
|
+
```bash
|
|
157
|
+
opencode auth logout
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### github
|
|
163
|
+
|
|
164
|
+
管理用於儲存庫自動化的 GitHub 代理。
|
|
165
|
+
|
|
166
|
+
```bash
|
|
167
|
+
opencode github [command]
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
#### install
|
|
173
|
+
|
|
174
|
+
在您的儲存庫中安裝 GitHub 代理。
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
opencode github install
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
此指令會設定必要的 GitHub Actions 工作流程並引導您完成設定過程。[了解更多](/docs/github)。
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
#### run
|
|
185
|
+
|
|
186
|
+
執行 GitHub 代理。通常在 GitHub Actions 中使用。
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
opencode github run
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
##### 旗標
|
|
193
|
+
|
|
194
|
+
| 旗標 | 說明 |
|
|
195
|
+
| ------------------------------------- | ------------------------------ |
|
|
196
|
+
| <nobr><code>{"--event"}</code></nobr> | 用於執行代理的 GitHub 模擬事件 |
|
|
197
|
+
| <nobr><code>{"--token"}</code></nobr> | GitHub 個人存取權杖 |
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
### mcp
|
|
202
|
+
|
|
203
|
+
管理 Model Context Protocol 伺服器。
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
opencode mcp [command]
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
#### add
|
|
212
|
+
|
|
213
|
+
將 MCP 伺服器新增到您的設定中。
|
|
214
|
+
|
|
215
|
+
```bash
|
|
216
|
+
opencode mcp add
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
此指令將引導您新增本地或遠端 MCP 伺服器。
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
#### list
|
|
224
|
+
|
|
225
|
+
列出所有已設定的 MCP 伺服器及其連線狀態。
|
|
226
|
+
|
|
227
|
+
```bash
|
|
228
|
+
opencode mcp list
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
或使用簡寫版本。
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
opencode mcp ls
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
#### auth
|
|
240
|
+
|
|
241
|
+
對支援 OAuth 的 MCP 伺服器進行認證。
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
opencode mcp auth [name]
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
如果您不提供伺服器名稱,系統將提示您從可用的支援 OAuth 的伺服器中進行選擇。
|
|
248
|
+
|
|
249
|
+
您還可以列出支援 OAuth 的伺服器及其認證狀態。
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
opencode mcp auth list
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
或使用簡寫版本。
|
|
256
|
+
|
|
257
|
+
```bash
|
|
258
|
+
opencode mcp auth ls
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
---
|
|
262
|
+
|
|
263
|
+
#### logout
|
|
264
|
+
|
|
265
|
+
移除 MCP 伺服器的 OAuth 憑證。
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
opencode mcp logout [name]
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
---
|
|
272
|
+
|
|
273
|
+
#### debug
|
|
274
|
+
|
|
275
|
+
偵錯 MCP 伺服器的 OAuth 連線問題。
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
opencode mcp debug <name>
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
---
|
|
282
|
+
|
|
283
|
+
### models
|
|
284
|
+
|
|
285
|
+
列出已設定供應商的所有可用模型。
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
opencode models [provider]
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
此指令以 `provider/model` 的格式顯示所有已設定供應商中可用的模型。
|
|
292
|
+
|
|
293
|
+
這對於確定在[設定檔](/docs/config/)中使用的確切模型名稱非常有用。
|
|
294
|
+
|
|
295
|
+
您可以選擇傳入供應商 ID 來按供應商篩選模型。
|
|
296
|
+
|
|
297
|
+
```bash
|
|
298
|
+
opencode models anthropic
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
#### 旗標
|
|
302
|
+
|
|
303
|
+
| 旗標 | 說明 |
|
|
304
|
+
| --------------------------------------- | ------------------------------------------ |
|
|
305
|
+
| <nobr><code>{"--refresh"}</code></nobr> | 從 models.dev 重新整理模型快取 |
|
|
306
|
+
| <nobr><code>{"--verbose"}</code></nobr> | 使用更詳細的模型輸出(包含費用等中繼資料) |
|
|
307
|
+
|
|
308
|
+
使用 `--refresh` 旗標可以更新快取的模型列表。當供應商新增了模型並且您希望在 OpenCode 中看到它們時,此功能非常有用。
|
|
309
|
+
|
|
310
|
+
```bash
|
|
311
|
+
opencode models --refresh
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
### run
|
|
317
|
+
|
|
318
|
+
以非互動模式執行 OpenCode,直接傳入提示詞。
|
|
319
|
+
|
|
320
|
+
```bash
|
|
321
|
+
opencode run [message..]
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
這對於指令碼編寫、自動化或無需啟動完整 TUI 即可快速取得答案的情境非常有用。例如:
|
|
325
|
+
|
|
326
|
+
```bash "opencode run"
|
|
327
|
+
opencode run Explain the use of context in Go
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
您還可以連接到正在執行的 `opencode serve` 實例,以避免每次執行時 MCP 伺服器的冷啟動時間:
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
# Start a headless server in one terminal
|
|
334
|
+
opencode serve
|
|
335
|
+
|
|
336
|
+
# In another terminal, run commands that attach to it
|
|
337
|
+
opencode run --attach http://localhost:4096 "Explain async/await in JavaScript"
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
#### 旗標
|
|
341
|
+
|
|
342
|
+
| 旗標 | 簡寫 | 說明 |
|
|
343
|
+
| ---------------------------------------- | ---- | ----------------------------------------------------------------------- |
|
|
344
|
+
| <nobr><code>{"--command"}</code></nobr> | | 要執行的指令,使用 message 作為參數 |
|
|
345
|
+
| <nobr><code>{"--continue"}</code></nobr> | `-c` | 繼續上一個工作階段 |
|
|
346
|
+
| <nobr><code>{"--session"}</code></nobr> | `-s` | 要繼續的工作階段 ID |
|
|
347
|
+
| <nobr><code>{"--fork"}</code></nobr> | | 繼續時分岔工作階段(與 `--continue` 或 `--session` 搭配使用) |
|
|
348
|
+
| <nobr><code>{"--share"}</code></nobr> | | 分享工作階段 |
|
|
349
|
+
| <nobr><code>{"--model"}</code></nobr> | `-m` | 要使用的模型,格式為 provider/model |
|
|
350
|
+
| <nobr><code>{"--agent"}</code></nobr> | | 要使用的代理 |
|
|
351
|
+
| <nobr><code>{"--file"}</code></nobr> | `-f` | 附加到訊息的檔案 |
|
|
352
|
+
| <nobr><code>{"--format"}</code></nobr> | | 格式:default(格式化輸出)或 json(原始 JSON 事件) |
|
|
353
|
+
| <nobr><code>{"--title"}</code></nobr> | | 工作階段標題(未提供值時使用截斷的提示詞) |
|
|
354
|
+
| <nobr><code>{"--attach"}</code></nobr> | | 連接到正在執行的 opencode 伺服器(例如 http://localhost:4096) |
|
|
355
|
+
| <nobr><code>{"--password"}</code></nobr> | `-p` | 基本驗證密碼(預設使用 `OPENCODE_SERVER_PASSWORD`) |
|
|
356
|
+
| <nobr><code>{"--username"}</code></nobr> | `-u` | 基本驗證使用者名稱(預設使用 `OPENCODE_SERVER_USERNAME` 或 `opencode`) |
|
|
357
|
+
| <nobr><code>{"--dir"}</code></nobr> | | 執行目錄,或附加時遠端伺服器上的路徑 |
|
|
358
|
+
| <nobr><code>{"--variant"}</code></nobr> | | 模型變體(特定於提供者的推理級別) |
|
|
359
|
+
| <nobr><code>{"--thinking"}</code></nobr> | | 顯示思考區塊 |
|
|
360
|
+
| <nobr><code>{"--port"}</code></nobr> | | 本地伺服器連接埠(預設為隨機連接埠) |
|
|
361
|
+
|
|
362
|
+
---
|
|
363
|
+
|
|
364
|
+
### serve
|
|
365
|
+
|
|
366
|
+
啟動無介面的 OpenCode 伺服器以提供 API 存取。查看[伺服器文件](/docs/server)了解完整的 HTTP 介面。
|
|
367
|
+
|
|
368
|
+
```bash
|
|
369
|
+
opencode serve
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
此指令啟動一個 HTTP 伺服器,提供對 OpenCode 功能的 API 存取,無需 TUI 介面。設定 `OPENCODE_SERVER_PASSWORD` 可啟用 HTTP 基本認證(使用者名稱預設為 `opencode`)。
|
|
373
|
+
|
|
374
|
+
#### 旗標
|
|
375
|
+
|
|
376
|
+
| 旗標 | 說明 |
|
|
377
|
+
| ---------------------------------------- | -------------------------- |
|
|
378
|
+
| <nobr><code>{"--port"}</code></nobr> | 監聽連接埠 |
|
|
379
|
+
| <nobr><code>{"--hostname"}</code></nobr> | 監聽主機名稱 |
|
|
380
|
+
| <nobr><code>{"--mdns"}</code></nobr> | 啟用 mDNS 探索 |
|
|
381
|
+
| <nobr><code>{"--cors"}</code></nobr> | 允許 CORS 的額外瀏覽器來源 |
|
|
382
|
+
|
|
383
|
+
---
|
|
384
|
+
|
|
385
|
+
### session
|
|
386
|
+
|
|
387
|
+
管理 OpenCode 工作階段。
|
|
388
|
+
|
|
389
|
+
```bash
|
|
390
|
+
opencode session [command]
|
|
391
|
+
```
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
#### list
|
|
396
|
+
|
|
397
|
+
列出所有 OpenCode 工作階段。
|
|
398
|
+
|
|
399
|
+
```bash
|
|
400
|
+
opencode session list
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
##### 旗標
|
|
404
|
+
|
|
405
|
+
| 旗標 | 簡寫 | 說明 |
|
|
406
|
+
| ----------------------------------------- | ---- | ------------------------------------- |
|
|
407
|
+
| <nobr><code>{"--max-count"}</code></nobr> | `-n` | 限制為最近 N 個工作階段 |
|
|
408
|
+
| <nobr><code>{"--format"}</code></nobr> | | 輸出格式:table 或 json(預設 table) |
|
|
409
|
+
|
|
410
|
+
---
|
|
411
|
+
|
|
412
|
+
### stats
|
|
413
|
+
|
|
414
|
+
顯示 OpenCode 工作階段的 Token 用量和費用統計資訊。
|
|
415
|
+
|
|
416
|
+
```bash
|
|
417
|
+
opencode stats
|
|
418
|
+
```
|
|
419
|
+
|
|
420
|
+
#### 旗標
|
|
421
|
+
|
|
422
|
+
| 旗標 | 說明 |
|
|
423
|
+
| --------------------------------------- | ---------------------------------------------------- |
|
|
424
|
+
| <nobr><code>{"--days"}</code></nobr> | 顯示最近 N 天的統計資訊(預設為所有時間) |
|
|
425
|
+
| <nobr><code>{"--tools"}</code></nobr> | 顯示的工具數量(預設為全部) |
|
|
426
|
+
| <nobr><code>{"--models"}</code></nobr> | 顯示模型用量明細(預設隱藏)。傳入數字可顯示前 N 個 |
|
|
427
|
+
| <nobr><code>{"--project"}</code></nobr> | 按專案篩選(預設為所有專案,傳入空字串表示當前專案) |
|
|
428
|
+
|
|
429
|
+
---
|
|
430
|
+
|
|
431
|
+
### export
|
|
432
|
+
|
|
433
|
+
將工作階段資料匯出為 JSON。
|
|
434
|
+
|
|
435
|
+
```bash
|
|
436
|
+
opencode export [sessionID]
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
如果您不提供工作階段 ID,系統將提示您從可用的工作階段中進行選擇。
|
|
440
|
+
|
|
441
|
+
---
|
|
442
|
+
|
|
443
|
+
### import
|
|
444
|
+
|
|
445
|
+
從 JSON 檔案或 OpenCode 分享連結匯入工作階段資料。
|
|
446
|
+
|
|
447
|
+
```bash
|
|
448
|
+
opencode import <file>
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
您可以從本地檔案或 OpenCode 分享連結匯入。
|
|
452
|
+
|
|
453
|
+
```bash
|
|
454
|
+
opencode import session.json
|
|
455
|
+
opencode import https://opncd.ai/s/abc123
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
### web
|
|
461
|
+
|
|
462
|
+
啟動帶有 Web 介面的無介面 OpenCode 伺服器。
|
|
463
|
+
|
|
464
|
+
```bash
|
|
465
|
+
opencode web
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
此指令啟動一個 HTTP 伺服器並開啟瀏覽器,透過 Web 介面存取 OpenCode。設定 `OPENCODE_SERVER_PASSWORD` 可啟用 HTTP 基本認證(使用者名稱預設為 `opencode`)。
|
|
469
|
+
|
|
470
|
+
#### 旗標
|
|
471
|
+
|
|
472
|
+
| 旗標 | 說明 |
|
|
473
|
+
| ---------------------------------------- | -------------------------- |
|
|
474
|
+
| <nobr><code>{"--port"}</code></nobr> | 監聽連接埠 |
|
|
475
|
+
| <nobr><code>{"--hostname"}</code></nobr> | 監聽主機名稱 |
|
|
476
|
+
| <nobr><code>{"--mdns"}</code></nobr> | 啟用 mDNS 探索 |
|
|
477
|
+
| <nobr><code>{"--cors"}</code></nobr> | 允許 CORS 的額外瀏覽器來源 |
|
|
478
|
+
|
|
479
|
+
---
|
|
480
|
+
|
|
481
|
+
### acp
|
|
482
|
+
|
|
483
|
+
啟動 ACP(Agent Client Protocol)伺服器。
|
|
484
|
+
|
|
485
|
+
```bash
|
|
486
|
+
opencode acp
|
|
487
|
+
```
|
|
488
|
+
|
|
489
|
+
此指令啟動一個透過 stdin/stdout 使用 nd-JSON 進行通訊的 ACP 伺服器。
|
|
490
|
+
|
|
491
|
+
#### 旗標
|
|
492
|
+
|
|
493
|
+
| 旗標 | 說明 |
|
|
494
|
+
| ---------------------------------------- | ------------ |
|
|
495
|
+
| <nobr><code>{"--cwd"}</code></nobr> | 工作目錄 |
|
|
496
|
+
| <nobr><code>{"--port"}</code></nobr> | 監聽連接埠 |
|
|
497
|
+
| <nobr><code>{"--hostname"}</code></nobr> | 監聽主機名稱 |
|
|
498
|
+
|
|
499
|
+
---
|
|
500
|
+
|
|
501
|
+
### uninstall
|
|
502
|
+
|
|
503
|
+
解除安裝 OpenCode 並刪除所有相關檔案。
|
|
504
|
+
|
|
505
|
+
```bash
|
|
506
|
+
opencode uninstall
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
#### 旗標
|
|
510
|
+
|
|
511
|
+
| 旗標 | 簡寫 | 說明 |
|
|
512
|
+
| ------------------------------------------- | ---- | ------------------------------ |
|
|
513
|
+
| <nobr><code>{"--keep-config"}</code></nobr> | `-c` | 保留設定檔 |
|
|
514
|
+
| <nobr><code>{"--keep-data"}</code></nobr> | `-d` | 保留工作階段資料和快照 |
|
|
515
|
+
| <nobr><code>{"--dry-run"}</code></nobr> | | 顯示將被刪除的內容但不實際刪除 |
|
|
516
|
+
| <nobr><code>{"--force"}</code></nobr> | `-f` | 跳過確認提示 |
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
|
|
520
|
+
### upgrade
|
|
521
|
+
|
|
522
|
+
將 OpenCode 更新到最新版本或指定版本。
|
|
523
|
+
|
|
524
|
+
```bash
|
|
525
|
+
opencode upgrade [target]
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
更新到最新版本。
|
|
529
|
+
|
|
530
|
+
```bash
|
|
531
|
+
opencode upgrade
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
更新到指定版本。
|
|
535
|
+
|
|
536
|
+
```bash
|
|
537
|
+
opencode upgrade v0.1.48
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
#### 旗標
|
|
541
|
+
|
|
542
|
+
| 旗標 | 簡寫 | 說明 |
|
|
543
|
+
| -------------------------------------- | ---- | ------------------------------------------ |
|
|
544
|
+
| <nobr><code>{"--method"}</code></nobr> | `-m` | 使用的安裝方式:curl、npm、pnpm、bun、brew |
|
|
545
|
+
|
|
546
|
+
---
|
|
547
|
+
|
|
548
|
+
## 全域旗標
|
|
549
|
+
|
|
550
|
+
OpenCode CLI 接受以下全域旗標。
|
|
551
|
+
|
|
552
|
+
| 旗標 | 簡寫 | 說明 |
|
|
553
|
+
| ------------------------------------------ | ---- | ------------------------------------ |
|
|
554
|
+
| <nobr><code>{"--help"}</code></nobr> | `-h` | 顯示說明資訊 |
|
|
555
|
+
| <nobr><code>{"--version"}</code></nobr> | `-v` | 印出版本號 |
|
|
556
|
+
| <nobr><code>{"--print-logs"}</code></nobr> | | 將日誌輸出到 stderr |
|
|
557
|
+
| <nobr><code>{"--log-level"}</code></nobr> | | 日誌等級(DEBUG、INFO、WARN、ERROR) |
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
## 環境變數
|
|
562
|
+
|
|
563
|
+
OpenCode 可以透過環境變數進行設定。
|
|
564
|
+
|
|
565
|
+
| 變數 | 類型 | 說明 |
|
|
566
|
+
| ------------------------------------- | ------- | ------------------------------------------- |
|
|
567
|
+
| `OPENCODE_AUTO_SHARE` | boolean | 自動分享工作階段 |
|
|
568
|
+
| `OPENCODE_GIT_BASH_PATH` | string | Windows 上 Git Bash 可執行檔的路徑 |
|
|
569
|
+
| `OPENCODE_CONFIG` | string | 設定檔路徑 |
|
|
570
|
+
| `OPENCODE_TUI_CONFIG` | string | TUI 設定檔路徑 |
|
|
571
|
+
| `OPENCODE_CONFIG_DIR` | string | 設定目錄路徑 |
|
|
572
|
+
| `OPENCODE_CONFIG_CONTENT` | string | 內嵌 JSON 設定內容 |
|
|
573
|
+
| `OPENCODE_DISABLE_AUTOUPDATE` | boolean | 停用自動更新檢查 |
|
|
574
|
+
| `OPENCODE_DISABLE_PRUNE` | boolean | 停用舊資料清理 |
|
|
575
|
+
| `OPENCODE_DISABLE_TERMINAL_TITLE` | boolean | 停用自動終端機標題更新 |
|
|
576
|
+
| `OPENCODE_PERMISSION` | string | 內嵌 JSON 權限設定 |
|
|
577
|
+
| `OPENCODE_DISABLE_DEFAULT_PLUGINS` | boolean | 停用預設外掛程式 |
|
|
578
|
+
| `OPENCODE_DISABLE_LSP_DOWNLOAD` | boolean | 停用 LSP 伺服器自動下載 |
|
|
579
|
+
| `OPENCODE_ENABLE_EXPERIMENTAL_MODELS` | boolean | 啟用實驗性模型 |
|
|
580
|
+
| `OPENCODE_DISABLE_AUTOCOMPACT` | boolean | 停用自動上下文壓縮 |
|
|
581
|
+
| `OPENCODE_DISABLE_CLAUDE_CODE` | boolean | 停用讀取 `.claude`(提示詞 + 技能) |
|
|
582
|
+
| `OPENCODE_DISABLE_CLAUDE_CODE_PROMPT` | boolean | 停用讀取 `~/.claude/CLAUDE.md` |
|
|
583
|
+
| `OPENCODE_DISABLE_CLAUDE_CODE_SKILLS` | boolean | 停用載入 `.claude/skills` |
|
|
584
|
+
| `OPENCODE_DISABLE_MODELS_FETCH` | boolean | 停用從遠端來源擷取模型 |
|
|
585
|
+
| `OPENCODE_FAKE_VCS` | string | 用於測試目的的模擬 VCS 供應商 |
|
|
586
|
+
| `OPENCODE_CLIENT` | string | 用戶端識別碼(預設為 `cli`) |
|
|
587
|
+
| `OPENCODE_ENABLE_EXA` | boolean | 啟用 Exa 網路搜尋工具 |
|
|
588
|
+
| `OPENCODE_SERVER_PASSWORD` | string | 為 `serve`/`web` 啟用基本認證 |
|
|
589
|
+
| `OPENCODE_SERVER_USERNAME` | string | 覆寫基本認證使用者名稱(預設為 `opencode`) |
|
|
590
|
+
| `OPENCODE_MODELS_URL` | string | 自訂模型設定擷取 URL |
|
|
591
|
+
|
|
592
|
+
---
|
|
593
|
+
|
|
594
|
+
### 實驗性功能
|
|
595
|
+
|
|
596
|
+
這些環境變數用於啟用可能會變更或移除的實驗性功能。
|
|
597
|
+
|
|
598
|
+
| 變數 | 類型 | 說明 |
|
|
599
|
+
| ----------------------------------------------- | ------- | ------------------------------- |
|
|
600
|
+
| `OPENCODE_EXPERIMENTAL` | boolean | 啟用受總開關控制的實驗性功能 |
|
|
601
|
+
| `OPENCODE_EXPERIMENTAL_ICON_DISCOVERY` | boolean | 啟用圖示探索 |
|
|
602
|
+
| `OPENCODE_EXPERIMENTAL_DISABLE_COPY_ON_SELECT` | boolean | 停用 TUI 中的選取即複製 |
|
|
603
|
+
| `OPENCODE_EXPERIMENTAL_BASH_DEFAULT_TIMEOUT_MS` | number | bash 指令的預設逾時時間(毫秒) |
|
|
604
|
+
| `OPENCODE_EXPERIMENTAL_OUTPUT_TOKEN_MAX` | number | LLM 回應的最大輸出 Token 數 |
|
|
605
|
+
| `OPENCODE_EXPERIMENTAL_FILEWATCHER` | boolean | 啟用整個目錄的檔案監看器 |
|
|
606
|
+
| `OPENCODE_EXPERIMENTAL_OXFMT` | boolean | 啟用 oxfmt 格式化器 |
|
|
607
|
+
| `OPENCODE_EXPERIMENTAL_LSP_TOOL` | boolean | 啟用實驗性 LSP 工具 |
|
|
608
|
+
| `OPENCODE_EXPERIMENTAL_DISABLE_FILEWATCHER` | boolean | 停用檔案監看器 |
|
|
609
|
+
| `OPENCODE_EXPERIMENTAL_EXA` | boolean | 啟用實驗性 Exa 功能 |
|
|
610
|
+
| `OPENCODE_EXPERIMENTAL_LSP_TY` | boolean | 為 python 檔案啟用 TY LSP |
|
|
611
|
+
| `OPENCODE_EXPERIMENTAL_PLAN_MODE` | boolean | 啟用計畫模式 |
|
|
612
|
+
| `OPENCODE_EXPERIMENTAL_BACKGROUND_SUBAGENTS` | boolean | 啟用背景子代理任務 |
|
|
613
|
+
| `OPENCODE_EXPERIMENTAL_EVENT_SYSTEM` | boolean | 啟用實驗性事件系統 |
|
|
614
|
+
| `OPENCODE_EXPERIMENTAL_NATIVE_LLM` | boolean | 啟用原生 LLM 請求路徑 |
|
|
615
|
+
| `OPENCODE_EXPERIMENTAL_PARALLEL` | boolean | 啟用平行 Web 搜尋執行 |
|
|
616
|
+
| `OPENCODE_EXPERIMENTAL_SCOUT` | boolean | 啟用 Scout 子代理 |
|
|
617
|
+
| `OPENCODE_EXPERIMENTAL_WORKSPACES` | boolean | 啟用工作區支援 |
|