OpenCode¶
Uses your configured OpenCode provider and model for inference.
Setup¶
- Install OpenCode and ensure it's running (
opencodein a terminal) - Ensure
sqlite3is installed and available onPATHif you want Sidekick to monitor OpenCode sessions - Sidekick connects to the local server on port 4096
- Set
sidekick.inferenceProvidertoopencodein settings
How It Works¶
- Uses
@opencode-ai/sdkto connect to the local OpenCode server - Model selection is handled by your OpenCode configuration
- Tier values (fast/balanced/powerful) are passed as hints, but OpenCode's settings take precedence
Session Monitoring¶
OpenCode sessions are monitored from OpenCode's platform-specific data directory:
- Linux:
~/.local/share/opencode/ - macOS:
~/Library/Application Support/opencode/ - Windows:
%APPDATA%\\opencode\\
Set sidekick.sessionProvider to opencode or leave as auto.
Sidekick reads opencode.db for DB-backed session discovery and monitoring. If opencode.db exists but sqlite3 is missing or cannot be executed in the current environment, Sidekick now shows an actionable OpenCode-specific notice instead of silently failing session detection.
Troubleshooting¶
Connection issues¶
- Ensure OpenCode is running (
opencodein a terminal) - Sidekick connects to
http://127.0.0.1:4096by default
Session monitoring issues¶
- Ensure
sqlite3is installed and available onPATH - If VS Code or your shell uses a different runtime environment, verify
sqlite3is available there too - If Sidekick reports an OpenCode runtime notice, confirm
sqlite3can readopencode.dbdirectly and then retry