OpenCode Sidebar is a Visual Studio Code extension that adds a native chat panel connected to an OpenCode-compatible API endpoint (local or remote).
Prerequisites
- Docker installed and running
- OpenCode container available on port
8080 (or your configured endpoint)
Start OpenCode with:
docker run -d -p 8080:8080 --name opencode ghcr.io/anomalyco/opencode
Build and Package
Install dependencies:
npm install
Compile TypeScript checks:
npm run compile
Build bundle:
npm run build
Create a VSIX package:
npm run package
Usage
- Launch the extension host from VS Code/Visual Studio extension debugging.
- Open the OpenCode icon in the activity bar.
- Type a message in OpenCode Chat and send it.
- The extension posts your messages to
${opencode.apiEndpoint}/v1/chat/completions using opencode.model.
Settings
opencode.apiEndpoint (default: http://localhost:8080)
opencode.model (default: default)
Use command palette commands:
OpenCode: Open Settings
OpenCode: Clear Chat
| |