9ef9d2602150707150dd66b68e5e395e01524a51
Obsidian OpenCode
Embed OpenCode AI assistant directly in Obsidian's sidebar.
Requirements
- Desktop only (uses Node.js child processes)
- OpenCode CLI installed and in your PATH
Installation
- Clone to
.obsidian/plugins/obsidian-opencode bun install && bun run build- Enable in Obsidian Settings > Community plugins
Usage
- Click the terminal icon in the ribbon, or
Cmd/Ctrl+Shift+Oto toggle the panel- Server starts automatically when you open the panel
Commands
| Command | Description |
|---|---|
| Toggle OpenCode panel | Show/hide sidebar |
| Start OpenCode server | Manual start |
| Stop OpenCode server | Manual stop |
Settings
| Setting | Default | Description |
|---|---|---|
| Port | 14096 | Server port |
| Hostname | 127.0.0.1 | Bind address |
| OpenCode path | opencode | Path to executable |
| Auto-start | off | Start server on Obsidian launch |
Development
bun run dev # Watch mode
bun run build # Production build
License
MIT
Languages
TypeScript
94.5%
CSS
4.3%
JavaScript
1.2%