Skip to content

Commit 9c7fa35

Browse files
authored
docs: more troubleshooting examples (sst#2004)
1 parent 0b45187 commit 9c7fa35

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

packages/web/src/content/docs/docs/troubleshooting.mdx

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,44 @@ Here are some common issues and how to resolve them.
8888

8989
---
9090

91+
### ProviderInitError
92+
93+
If you encounter a ProviderInitError, you likely have an invalid or corrupted configuration.
94+
95+
To resolve this:
96+
97+
1. First, verify your provider is set up correctly by following the [providers guide](/docs/providers)
98+
2. If the issue persists, try clearing your stored configuration:
99+
100+
```bash
101+
rm -rf ~/.local/share/opencode
102+
```
103+
104+
3. Re-authenticate with your provider:
105+
```bash
106+
opencode auth login <provider>
107+
```
108+
109+
---
110+
111+
### AI_APICallError and provider package issues
112+
113+
If you encounter API call errors, this may be due to outdated provider packages. opencode dynamically installs provider packages (OpenAI, Anthropic, Google, etc.) as needed and caches them locally.
114+
115+
To resolve provider package issues:
116+
117+
1. Clear the provider package cache:
118+
119+
```bash
120+
rm -rf ~/.cache/opencode
121+
```
122+
123+
2. Restart opencode to reinstall the latest provider packages
124+
125+
This will force opencode to download the most recent versions of provider packages, which often resolves compatibility issues with model parameters and API changes.
126+
127+
---
128+
91129
### Copy/paste not working on Linux
92130

93131
Linux users need to have one of the following clipboard utilities installed for copy/paste functionality to work:
@@ -116,4 +154,3 @@ export DISPLAY=:99.0
116154
```
117155

118156
opencode will detect if you're using Wayland and prefer `wl-clipboard`, otherwise it will try to find clipboard tools in order of: `xclip` and `xsel`.
119-

0 commit comments

Comments
 (0)