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 WSL

emmet24emmet24276 downloads

Embed OpenCode web UI in the Obsidian sidebar via WSL bridge.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates5

Embed OpenCode web UI in the Obsidian sidebar via WSL.

Architecture

Obsidian (Windows)                    WSL (Linux)
┌─────────────────────┐              ┌──────────────────────┐
│  <iframe>           │ ← HTTP/SSE →│  opencode serve      │
│  OpenCode Web UI    │  127.0.0.1  │  (REST API + Web UI) │
└─────────────────────┘              └──────────────────────┘

Requirements

  • Windows 10/11 with WSL2 installed
  • OpenCode CLI installed inside WSL (curl -fsSL https://opencode.ai/install.sh | bash)
  • Obsidian v1.4.0+

Installation

Via BRAT

  1. Install BRAT
  2. Run BRAT: Add a beta plugin for testing
  3. Enter https://github.com/emmet24/obsidian-opencode-wsl

Manual

  1. Download the latest release from GitHub releases
  2. Extract to <vault>/.obsidian/plugins/opencode-wsl/
  3. Enable the plugin in Settings → Community plugins

Usage

  1. Click the terminal icon in the left ribbon, or run Toggle OpenCode panel from the command palette
  2. The OpenCode server starts automatically inside WSL
  3. The OpenCode web UI appears in the right sidebar
  4. Select your vault project in the web UI to start

Auto-start

When enabled (default), the server starts automatically when you open the sidebar panel. When disabled, click "Start OpenCode" in the panel to launch the server manually.

Settings

Setting Default Description
Auto-start server ON Start server automatically when panel opens
Server port 14096 Port for the OpenCode server
WSL distribution (default) Leave empty to use the default WSL distro
OpenCode path (WSL) opencode Path to the opencode executable inside WSL
Working directory (WSL path) auto-detected Working directory passed via wsl.exe --cd
Server password (empty) OPENCODE_SERVER_PASSWORD for auth

Development

git clone https://github.com/emmet24/obsidian-opencode-wsl.git
cd obsidian-opencode-wsl
npm install
npm run build

Files

opencode-wsl/
├── src/
│   ├── main.ts           # Plugin entry, settings tab, view registration
│   ├── settings.ts       # Settings interface and defaults
│   ├── serverManager.ts  # WSL opencode serve process lifecycle
│   └── views/
│       └── opencodeView.ts  # iframe-based sidebar view
├── esbuild.config.mjs    # Build configuration
├── manifest.json         # Plugin metadata
├── styles.css            # iframe and status styles
└── package.json          # Dependencies

Branches

Branch Version Approach
main 2.0.0 ✅ iframe embedding of OpenCode web UI (current)
(git history) 1.0.3 PTY bridge + xterm.js TUI (archived)

Related

  • OpenCode — The AI platform
  • opencode-obsidian — Similar plugin by mtymek

License

MIT

HealthExcellent
ReviewSatisfactory
About
Embed OpenCode web UI in the Obsidian sidebar via WSL. Instead of a PTY bridge (xterm.js + node-pty), this plugin starts 'opencode serve' inside WSL and embeds the web UI in an iframe — no extra dependencies, just a clean HTTP bridge between Windows and WSL. Features: Web UI embedded in sidebar, auto-start server (configurable), lifecycle management (starts with panel, stops with Obsidian, no lingering processes), WSL-native PATH resolution, automatic vault directory, health check, taskkill cleanup. Requirements: Windows 10/11 + WSL2, OpenCode CLI in WSL, Obsidian v1.7.2+. Privacy: Local only (127.0.0.1), no telemetry, no external connections.
IntegrationsSidebar
Details
Current version
2.0.0
Last updated
4 weeks ago
Created
Last month
Updates
5 releases
Downloads
276
Compatible with
Obsidian 1.7.2+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Sponsor
Support
Author
emmet24emmet24emmet24
GitHubemmet24
  1. Community
  2. Plugins
  3. Integrations
  4. OpenCode WSL

Related plugins

Claude Sidebar

Run Claude Code in your sidebar.

Dictionary

A multilingual dictionary that shows word definitions in the sidebar and popover synonyms.

Notebook Navigator

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

BRAT

Easily install a beta version of a plugin for testing.

Local REST API with MCP

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

Fast Note Sync

Real-time sync of your vaults across server, mobile, and web; shareable with anyone; supports REST and MCP integrations to build your personal AI knowledge base.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Vertical Tabs

Offer an alternative view that displays open tabs vertically, allowing users to group and organize tabs for a better navigation experience.

TagFolder

Show tags as folder.

Recent Files

Display a list of recently opened files.