Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

OpenCode

krisspykrisspy6k downloads

Use OpenCode CLI without leaving your vault. (Linux only)

Add to Obsidian
OpenCode screenshot
  • Overview
  • Scorecard
  • Updates19

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.

✨ Features

  • Native OpenCode Execution: Runs the OpenCode CLI directly inside Obsidian using an integrated terminal, ensuring smooth performance for long coding sessions.
  • Vault-Centric Workflow: Automatically spawns the agent in your vault's root, ensuring it has immediate access to your notes and project files.
  • Drag and Drop Context: Drop files from Obsidian's file explorer directly into the terminal to insert them as @path/to/file.md#1 mentions for OpenCode.
  • Session Manager:
    • History Browser: View a list of all your past OpenCode sessions with timestamps and working directories.
    • Conversation Preview: Inspect message history, token usage, model details, and costs before deciding to resume.
    • One-Click Restore: Instantly resume a previous session in the embedded terminal.
    • Export to Markdown: Save entire conversation threads as formatted notes in your vault for documentation or review.

🖥️ Platform Support

  • Linux: stable on my daily driver, not tested on all distros.
  • Windows: Work in Progress.
  • macOS: Experimental.

🚀 Installation

From Obsidian Community Plugins (Recommended)

  1. Open Obsidian and go to Settings → Community plugins
  2. Click Browse and search for OpenCode
  3. Click Install, then Enable

Manual Installation

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Create a folder named opencode in your vault's .obsidian/plugins/ directory
  3. Copy the downloaded files into that folder
  4. Reload Obsidian and enable the OpenCode plugin in Community Plugins settings

Usage

  • Terminal: Use the command palette (Ctrl/Cmd + P) and select "OpenCode: Open Terminal" to launch the CLI.
  • Sessions View: Use the command palette to select "OpenCode: Open Sessions" to browse, restore, or export past conversations.
  • Settings: Configure your opencode binary path, default CLI arguments, and terminal styling preferences (font size/family) in the Obsidian settings under the "OpenCode" tab.

Development

To develop the plugin, you can run the development script which automatically rebuilds the plugin when files change:

npm run dev

⚠️ Known Issues

  • 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.

🙏 Acknowledgements

  • Terminal integration approach inspired by polyipseity/obsidian-terminal — the Python PTY proxy with pty.fork() and 4-pipe stdio for resize control (FD 3).

📄 License

MIT License

HealthExcellent
ReviewSatisfactory
About
Embed the OpenCode CLI in Obsidian and run native coding sessions in a WebGL-accelerated terminal with direct access to your vault files. Browse and restore past sessions with timestamps and working directories, preview conversation history, and export threads to Markdown. Currently Linux only.
AIDevelopersFiles
Details
Current version
1.3.12
Last updated
6 days ago
Created
2 months ago
Updates
19 releases
Downloads
6k
Compatible with
Obsidian 1.7.2+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
krisspykrisspykriss-spy
GitHubkriss-spy
  1. Community
  2. Plugins
  3. AI
  4. OpenCode

Related plugins

Claudian

Embeds Claude Code/Codex as an AI collaborator in your vault. Your vault becomes agent's working directory, giving it full agentic capabilities: file read/write, search, bash commands, and multi-step workflows.

Local REST API with MCP

Unlock your automation needs by interacting with your notes over a secure REST API.

Gemini Scribe

Allows you to interact with Gemini and use your notes as context.

ChatGPT MD

A seamless integration of ChatGPT, OpenRouter.ai and local LLMs via Ollama into your notes.

AI Agent

Lend your vault to an AI agent. It can read, write, and search your notes.

Claude Code IDE

Connect your vault to Claude Code and share editor context with the CLI.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Smart Connections

Find related notes and excerpts while writing. Your AI link building copilot displays relevant content in graph + list view. A local embedding model powers semantic search. Zero setup. No API key.

Recent Files

Display a list of recently opened files.

BRAT

Easily install a beta version of a plugin for testing.