A plugin that embeds the OpenCode CLI directly into Obsidian. Browse conversation history and resume work without leaving your vault.
Work with vault notes and OpenCode side by side:

Use OpenCode 2's multi-session interface in a full Obsidian editor tab:

extracurricular/ACG/anime/, including names with spaces or Unicode and mixed selections. Nothing is submitted automatically.PATH for the isolated PTY helper.Empty external-editor prompts are not applied: In both OpenCode 1 and OpenCode V2, opening the prompt in an external editor, deleting all content, and saving leaves the previous prompt in place. This also reproduces when OpenCode runs outside Obsidian, so it must be fixed upstream.
OpenCode V2 can time out while pasting large images: This reproduces in both the embedded terminal and standalone OpenCode V2, so it is not caused by the plugin. A V2 preview build configured clipboard reads with a 1-second timeout and an 8 MiB read limit; a 54.5 MB, 2720 x 18447 PNG reports Clipboard read timed out. Its separate local-file attachment limit is 20 MiB, so attaching that same file by path is also unsupported. OpenCode 1.4.6 on Linux reads image data through wl-paste without those explicit clipboard limits, so the large image may work there, but that comparison has not yet been verified manually.
large session preview: 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.
not tested on all Linux distros: While the plugin should work on major distros, it's only tested on manjaro, ubuntu, and fedora.
Experimental Windows pty: It's usable but far from linux and macos experience.
shortcuts conflicts:: Default opencode shortcuts like Ctrl+P could conflict with obsidian shortcuts. A solution for now is to always use leader key for opencode shortcuts.
OpenCode CLI doesn't support LaTeX render natively. I made this opencode plugin for myself: opencode-latex
Personally, i use kepano's obsidian skills and some of my obsidian skills.
Any other general community project (MCP, skill, framework...) that connects coding agents with obsidian should work out of the box, as long as it doesn't specify the main interface.
I've always wanted a natural way to let opencode discover and use folder templates. Templater doesn't do that out of the box. So i made frontmatter-templater to let you define folder template in folder note. In that way opencode should naturally discover and use the template when exploring a folder.
main.js, manifest.json, and styles.css from the latest releaseopencode in your vault's .obsidian/plugins/ directoryCtrl/Cmd + P). OpenCode starts in your vault root.Ctrl/Cmd when OpenCode captures mouse input. See terminal link behavior and supported paths.Ctrl+Shift+W to close it.Notes: Ctrl+Z cannot suspend the embedded CLI unless it is remapped for another action (such as undo). On WSL2 with X410, clipboard integration supports text and images through the Windows bridge; see Platform Support above.
Development requires Node.js 22.12 or newer.
To develop the plugin, you can run the development script which automatically rebuilds the plugin when files change:
npm run dev
Unit tests run with npm test. To create a fresh isolated vault and test the built plugin inside a sandboxed Obsidian instance, run:
npm run test:obsidian
Use npm run test:obsidian:smoke for the smaller baseline suite. Windows contributors can also run npm run test:obsidian:windows-ui to exercise the installed OpenCode CLI and native terminal interactions.
See Testing in Obsidian for setup, coverage, evidence, and limitations.
pty.fork() and 4-pipe stdio for resize control (FD 3).MIT License