Skip to content

Commit a9616b3

Browse files
committed
docs: fix Windows default paths in config documentation
The xdg-basedir package constructs Unix-style paths on all platforms, so on Windows the actual paths are %USERPROFILE%\.local\share\opencode, not %LOCALAPPDATA%\opencode as previously documented. This matches the observed behavior reported by users who install with bun i -g opencode-ai on Windows. Ref anomalyco#8968
1 parent b6baeb7 commit a9616b3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎packages/web/src/content/docs/config.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ opencode run "Hello world"
194194
```
195195

196196
By default, OpenCode stores data in `~/.local/share/opencode` on Linux/macOS
197-
or `%LOCALAPPDATA%\opencode` on Windows.
197+
or `%USERPROFILE%\.local\share\opencode` on Windows.
198198

199199
---
200200

@@ -210,7 +210,7 @@ opencode run "Hello world"
210210
```
211211

212212
By default, OpenCode stores cache in `~/.cache/opencode` on Linux/macOS
213-
or `%LOCALAPPDATA%\opencode` on Windows.
213+
or `%USERPROFILE%\.cache\opencode` on Windows.
214214

215215
---
216216

@@ -241,7 +241,7 @@ opencode run "Hello world"
241241
```
242242

243243
By default, OpenCode stores state in `~/.local/state/opencode` on Linux/macOS
244-
or `%LOCALAPPDATA%\opencode` on Windows.
244+
or `%USERPROFILE%\.local\state\opencode` on Windows.
245245

246246
---
247247

0 commit comments

Comments
 (0)