A plugin that embeds the OpenCode CLI directly into Obsidian. Manage your AI coding sessions, browse conversation history, and resume work without leaving your vault.
@path/to/file.md#1 mentions for OpenCode.main.js, manifest.json, and styles.css from the latest releaseopencode in your vault's .obsidian/plugins/ directoryCtrl/Cmd + P) and select "OpenCode: Open Terminal" to launch the CLI.opencode binary path, default CLI arguments, and terminal styling preferences (font size/family) in the Obsidian settings under the "OpenCode" tab.To develop the plugin, you can run the development script which automatically rebuilds the plugin when files change:
npm run dev
Session Previews / Loading: While the buffer size for exporting sessions has been increased (up to 100MB), exceptionally large or deeply complex OpenCode sessions with massive token counts may still occasionally fail to preview or load properly.
Limited Linux support: While the plugin should work on major distros, it's only tested on manjaro, ubuntu, and fedora.
pty.fork() and 4-pipe stdio for resize control (FD 3).MIT License