Diagnostic Steps
Before diving into specific issues, gather diagnostic information:Check logs
- macOS/Linux
- Windows
Increase log verbosity
Check version
Verify storage health
Common Issues
OpenCode Won’t Start
Symptom: Command not found
Symptom: Command not found
PATH or installation incomplete.Solutions:Verify installation
Reinstall if missing
Add to PATH manually
Restart terminal
Symptom: Crashes immediately
Symptom: Crashes immediately
Port conflict
Port conflict
Corrupted config
Corrupted config
Permission errors
Permission errors
Symptom: Blank screen or frozen UI
Symptom: Blank screen or frozen UI
-
Force redraw:
- Press
Ctrl+Lto redraw screen
- Press
-
Check terminal compatibility:
If not, set it:
-
Try different terminal:
- macOS: iTerm2, Alacritty, or native Terminal.app
- Linux: gnome-terminal, konsole, alacritty
- Windows: Windows Terminal, not Command Prompt
Authentication Issues
Cannot connect to provider
Cannot connect to provider
Verify API key
Re-authenticate
Check network connectivity
API key works elsewhere but not in OpenCode
API key works elsewhere but not in OpenCode
Model Errors
ProviderModelNotFoundError
ProviderModelNotFoundError
<providerID>/<modelID>:openai/gpt-4.1openai/gpt-4.1-minianthropic/claude-4.5-sonnetopenrouter/google/gemini-2.5-flash
Model not available
Model not available
- Model requires paid subscription
- Account doesn’t have access
- Model deprecated/renamed
Provider Package Issues
AI_APICallError: Outdated provider packages
AI_APICallError: Outdated provider packages
- API errors mentioning unknown parameters
- “Unexpected field” errors
- Sudden failures after provider API updates
Clear provider cache
- macOS/Linux
- Windows
Restart OpenCode
Verify fix
~/.cache/opencode to speed up startup. Clear this if you encounter API compatibility issues.Configuration Issues
ProviderInitError
ProviderInitError
Validate config syntax
Reset config
Clear cached data
Re-authenticate
Config changes not taking effect
Config changes not taking effect
-
Restart OpenCode:
-
Verify config location:
Config priority:
.opencode/opencode.json(project-specific)~/.config/opencode/opencode.json(user-specific)
-
Validate syntax:
Desktop App Issues
App won't launch
App won't launch
- Fully quit and relaunch:
- macOS: Cmd+Q, then reopen
- Windows: Right-click tray icon → Exit, then reopen
- Check for error dialog:
- Click “Restart” button if shown
- Copy error details for debugging
- macOS only - Reload webview:
- Menu: OpenCode → Reload Webview
- Helps if UI is blank/frozen
Connection failed
Connection failed
- Custom server URL is unreachable
- Port conflict preventing local server start
- Firewall blocking connection
Clear custom server URL
- Click server name (with status dot)
- Click “Clear” in Default server section
- Restart app
Remove server config
~/.config/opencode/opencode.json, remove:Check environment variables
Plugin causing crashes
Plugin causing crashes
Edit global config
- macOS/Linux:
~/.config/opencode/opencode.jsonc - Windows:
%USERPROFILE%\.config\opencode\opencode.jsonc
Move plugin files
Restart and re-enable one by one
Clear app cache
Clear app cache
- macOS
- Linux
- Windows
Notifications not showing
Notifications not showing
- Notifications enabled in OS settings for OpenCode
- App window not focused (notifications only show when backgrounded)
- macOS
- Windows
- Linux
Linux-Specific Issues
Copy/paste not working
Copy/paste not working
- X11 (most common)
- Wayland
- Headless (SSH/Docker)
Wayland compositor issues
Wayland compositor issues
- Log out
- At login screen, select “Ubuntu on Xorg” or “GNOME on Xorg”
- Log in and launch OpenCode
Windows-Specific Issues
WebView2 missing
WebView2 missing
Download WebView2 Runtime
Install the downloaded MSI
Restart OpenCode Desktop
Performance issues
Performance issues
- 10-20x faster file I/O
- Better terminal support
- Native Linux tool compatibility
Advanced Debugging
Enable Debug Logging
Inspect Database
OpenCode uses SQLite for storage:Network Debugging
Profile Performance
Reset Everything (Last Resort)
- macOS/Linux
- Windows
Getting Help
GitHub Issues
Discord Community
Documentation
Enterprise Support
When Reporting Issues
Include this information:System Information
System Information
Error Logs
Error Logs
Configuration
Configuration
Reproduction Steps
Reproduction Steps
- Step-by-step instructions to reproduce
- Expected behavior
- Actual behavior
- Screenshots/screencasts if applicable