diff --git a/packages/web/src/content/docs/index.mdx b/packages/web/src/content/docs/index.mdx index 90e7eafb2f..20385fd66e 100644 --- a/packages/web/src/content/docs/index.mdx +++ b/packages/web/src/content/docs/index.mdx @@ -7,6 +7,11 @@ import { Tabs, TabItem } from "@astrojs/starlight/components" import config from "../../../config.mjs" export const console = config.console +:::note +OpenCode 1 installs and runs as `opencode`. OpenCode 2 installs separately as `opencode2`, so you can keep both versions +installed and run them side by side. See the [OpenCode 2 docs](https://opencode.ai/v2/docs/) to install V2. +::: + [**OpenCode**](/) is an open source AI coding agent. It's available as a terminal-based interface, desktop app, or IDE extension. ![OpenCode TUI with the opencode theme](../../assets/lander/screenshot.png) @@ -31,7 +36,8 @@ To use OpenCode in your terminal, you'll need: ## Install -The easiest way to install OpenCode is through the install script. +The easiest way to install OpenCode 1 is through the install script. These installation methods provide the `opencode` +binary and do not replace an `opencode2` installation. ```bash curl -fsSL https://opencode.ai/install | bash diff --git a/packages/www/content/docs/index.mdx b/packages/www/content/docs/index.mdx index 330b1df41b..4a39161ac7 100644 --- a/packages/www/content/docs/index.mdx +++ b/packages/www/content/docs/index.mdx @@ -8,6 +8,11 @@ description: "Get started with OpenCode." wipe your data, things may break, and APIs, configuration, and plugin APIs may change. + + OpenCode 2 installs and runs as `opencode2`. It does not replace OpenCode 1's `opencode` binary, so you can keep both + versions installed and run them side by side. + + ## Install The curl install script is not available in beta. @@ -37,10 +42,8 @@ You can also install it with the following package managers. -The package uses a trusted postinstall script to select the native binary for your platform. The Bun and pnpm commands -above explicitly allow that script to run. - -During beta, the binary is called `opencode2`. +The package uses a trusted postinstall script to select the native `opencode2` binary for your platform. The Bun and pnpm +commands above explicitly allow that script to run. ### Homebrew diff --git a/packages/www/content/docs/migrate-v1.mdx b/packages/www/content/docs/migrate-v1.mdx index 63eff7b17a..ff46727f62 100644 --- a/packages/www/content/docs/migrate-v1.mdx +++ b/packages/www/content/docs/migrate-v1.mdx @@ -3,6 +3,11 @@ title: "Migrate from V1" description: "Move from OpenCode V1 to the OpenCode 2.0 beta." --- + + OpenCode 1 and OpenCode 2 can be installed side by side. V1 runs as `opencode`, while V2 installs and runs separately as + `opencode2`. + + ## Breaking changes V2 has three intentional breaking changes: @@ -27,9 +32,6 @@ an expected migration requirement. continue to change. -During the beta, OpenCode V1 and V2 use different executable names. You can keep using `opencode` for V1 while trying V2 -with `opencode2`. - ## Install the beta Install the beta from the `next` distribution tag: