A JetBrains IDE plugin that integrates OpenCode — the open-source AI coding agent — directly into your development workflow.
| Feature | Description | Shortcut (Mac) | Shortcut (Win/Linux) |
|---|---|---|---|
| Quick Launch | Connect to existing OpenCode server or create new terminal | Cmd + Esc |
Ctrl + \ |
| Add to Terminal | Send current file/selection or selected files to OpenCode | Opt + Cmd + K |
Ctrl + Alt + K |
| Diff Review | View diffs and accept/reject changes in IDE | — | — |
| Notifications | System alert when task completes | — | — |
| Auto-Resume | Restore last session on launch | — | — |
| Smart Links | Clickable file paths in terminal | — | — |
| Auth Support | Optional password for OpenCode server | — | — |
| Local Change Alert | Warn when local edits differ from AI output | — | — |
| Feature | Claude Code | OpenCode |
|---|---|---|
| Quick Launch | ✅ | ✅ |
| Diff Viewing | ✅ | ✅ |
| File Reference Shortcuts | ✅ | ✅ |
| Diagnostic Sharing | ✅ | ❌ (uses built-in LSP) |
Click the OpenCode icon in the right sidebar to instantly focus or create an OpenCode terminal session.
- Editor: Right-click in editor → OpenCode: Add Context
- Project View: Right-click on files/folders → OpenCode: Add File(s)
- JetBrains IDE: IntelliJ IDEA, WebStorm, PyCharm, etc. (2025.2+)
- OpenCode CLI: Install via
npm install -g opencodeor see opencode.ai/download
Plugin URL: https://plugins.jetbrains.com/plugin/29744-opencode-ui
Open Settings → Plugins → Marketplace → Search "OpenCode" → Install
Press Cmd+Esc (Mac) or Ctrl+\ (Win/Linux) to open the connection dialog. You can:
- Connect to existing server: Enter
host:port(e.g.,127.0.0.1:58052) and optional password to connect to OpenCode Desktop or any running OpenCode server. Authentication is detected automatically if available. - Create new terminal: Use default
127.0.0.1:4096to create a local OpenCode terminal session. The terminal tab will be namedOpenCode(4096).
Your last connection settings (address, mode, password) are remembered automatically.
In the editor or Project View, press Opt+Cmd+K (Mac) or Ctrl+Alt+K (Win/Linux).
- If the OpenCode terminal is not open yet, the plugin creates/focuses it automatically.
- In the editor, it shares the current file even if nothing is selected.
The plugin will send:
- Editor selection:
@path/to/file.kt#L10-25 - Editor (no selection):
@path/to/file.kt - Project View selection:
@path/to/file.ktfor each selected file
This allows OpenCode to understand the context of your question or request.
Click the OpenCode icon in the right sidebar to quickly focus or create the OpenCode terminal.
When OpenCode edits files, the plugin opens a native IDE diff viewer.
- Chronological View: Changes are shown in the order they were made, starting from the first modified file.
- Navigation: Use ← → arrows to switch files and ↑ ↓ arrows to jump between changes.
- Trigger: The diff viewer opens automatically when OpenCode finishes a response (session idle).
- Progress: The title shows your review progress (e.g.,
1 of 5) for multi-file changes. - Accept: Writes the AI's changes to disk and stages the file (git add). Automatically opens the next file.
- Reject: Restores the file to its state before the AI started editing. Automatically opens the next file.
- Local Modified: The diff title shows
(Local Modified)when your file differs from AI output.
The plugin sends a system notification when OpenCode finishes a task (transitions from Busy to Idle). This allows you to switch to other work while the AI is generating code, and be notified immediately when it's done.
Tip: To receive desktop notifications, please ensure your operating system allows notifications for the JetBrains IDE (e.g., on macOS: System Settings > Notifications > IntelliJ IDEA).
File paths in the terminal output (e.g., @src/main/kotlin/Main.kt#L10-20) are clickable. Clicking them opens the file in the editor and highlights the referenced lines.
All shortcuts are customizable via Settings → Keymap → search for "OpenCode".
| Action | Mac | Windows/Linux |
|---|---|---|
| Open/Focus OpenCode | Cmd + Esc |
Ctrl + \ |
| Add to OpenCode Terminal | Opt + Cmd + K |
Ctrl + Alt + K |
The plugin uses a single terminal tab per project named "OpenCode({port})".
- Only one OpenCode terminal session per project
- The terminal persists across plugin actions
- Closing the terminal tab will create a new one on next launch
Install the OpenCode CLI:
npm install -g opencode-aiOr download from opencode.ai/download
Try closing the "OpenCode({port})" terminal tab and pressing Cmd+Esc or Ctrl+\ again to create a fresh session.
- Check for conflicts in Settings → Keymap
- Search for your shortcut to see if it's assigned to another action
- Reassign or remove conflicting shortcuts
MIT License. See LICENSE for details.





