Skip to content

Commit b6e4b42

Browse files
committed
docs: add WinGet install commands
1 parent d46588f commit b6e4b42

3 files changed

Lines changed: 35 additions & 2 deletions

File tree

‎packages/console/app/src/routes/download/index.tsx‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ export default function Download() {
7777
</code>
7878
<CopyStatus />
7979
</button>
80+
<button data-component="cli-row" onClick={handleCopyClick("winget install --id Anomaly.OpenCode -e")}>
81+
<code>
82+
winget install --id <strong>Anomaly.OpenCode</strong> -e
83+
</code>
84+
<CopyStatus />
85+
</button>
8086
<button data-component="cli-row" onClick={handleCopyClick("paru -S opencode-beta")}>
8187
<code>
8288
paru -S <strong>opencode-beta</strong>
@@ -103,6 +109,15 @@ export default function Download() {
103109
</code>
104110
<CopyStatus />
105111
</button>
112+
<button
113+
data-component="cli-row"
114+
onClick={handleCopyClick("winget install --id Anomaly.OpenCode.Desktop -e")}
115+
>
116+
<code>
117+
winget install --id <strong>Anomaly.OpenCode.Desktop</strong> -e
118+
</code>
119+
<CopyStatus />
120+
</button>
106121
<div data-component="download-row">
107122
<div data-component="download-info">
108123
<span data-slot="icon">

‎packages/console/app/src/routes/index.tsx‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ export default function Home() {
8888
<Tabs.Trigger value="brew" data-slot="tab">
8989
brew
9090
</Tabs.Trigger>
91+
<Tabs.Trigger value="winget" data-slot="tab">
92+
winget
93+
</Tabs.Trigger>
9194
<Tabs.Trigger value="paru" data-slot="tab">
9295
paru
9396
</Tabs.Trigger>
@@ -135,6 +138,16 @@ export default function Home() {
135138
<CopyStatus />
136139
</button>
137140
</Tabs.Content>
141+
<Tabs.Content as="pre" data-slot="panel" value="winget">
142+
<button data-copy data-slot="command" onClick={handleCopyClick}>
143+
<span>
144+
<span data-slot="protocol">winget install --id </span>
145+
<span data-slot="highlight">Anomaly.OpenCode</span>
146+
<span> -e</span>
147+
</span>
148+
<CopyStatus />
149+
</button>
150+
</Tabs.Content>
138151
<Tabs.Content as="pre" data-slot="panel" value="paru">
139152
<button data-copy data-slot="command" onClick={handleCopyClick}>
140153
<span>

‎services/www/src/docs/content/index.mdx‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ OpenCode is an open source AI coding agent. It’s available as a terminal-based
1313
tabs={[
1414
{ label: "curl", code: "curl -fsSL https://opencode.ai/v2/install | bash" },
1515
{ label: "homebrew", code: "brew install anomalyco/tap/opencode-v2" },
16+
{ label: "winget", code: "winget install --id Anomaly.OpenCode -e" },
1617
{ label: "npm", code: "npm install -g @opencode/cli" },
1718
{ label: "bun", code: "bun install -g --trust @opencode/cli" },
1819
{ label: "pnpm", code: "pnpm add -g --allow-build=@opencode/cli @opencode/cli" },
@@ -25,8 +26,6 @@ OpenCode is an open source AI coding agent. It’s available as a terminal-based
2526
The npm package uses a postinstall script to select the native `opencode` binary for your platform. The Bun and pnpm commands
2627
explicitly allow the required script; Vite+ requires no additional flag.
2728

28-
Windows package managers are not supported.
29-
3029

3130
Download a standalone CLI binary for your platform.
3231

@@ -45,6 +44,12 @@ Download the latest OpenCode Desktop build for your platform.
4544
- **Linux (.rpm):** [x64](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-x86_64.rpm) · [ARM64](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-aarch64.rpm)
4645
- **Linux (AppImage):** [x64](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-x86_64.AppImage) · [ARM64](https://opencode.ai/update/api/latest/desktop/opencode/opencode-desktop-linux-arm64.AppImage)
4746

47+
On Windows, you can also install it with WinGet.
48+
49+
```powershell
50+
winget install --id Anomaly.OpenCode.Desktop -e
51+
```
52+
4853

4954
## Web
5055

0 commit comments

Comments
 (0)