Agents · OpenCode
opencode with multi-agent sessions on any os
TL;DR
OpenCode is the most-starred open source coding agent, a terminal UI that works with many model providers and uses language servers to understand your code. Pane runs several OpenCode sessions in parallel, each on its own branch in its own worktree, without tmux or manual git commands. It installs natively on Windows through Scoop or Chocolatey as well as on macOS and Linux. A single session is enough when you're working on one thing.
OpenCode is a full-screen terminal app, so it needs a real terminal to look right. Pane gives it one per task, each on its own branch.
What is OpenCode?
OpenCode is an open source coding agent for the terminal, MIT-licensed and, with about 212,000 GitHub stars, the most-starred project in the category. It works with many model providers and uses language servers for code intelligence. There's also a desktop app.
Quickstart
Install OpenCode, create a pane, open a terminal, type opencode.
1Install OpenCode
macOS, Linux or WSL
curl -fsSL https://opencode.ai/install | bashWindows
scoop install opencodeAny OS with Node.js
npm i -g opencode-ai@latest2Create a pane
Press Ctrl+N (⌘N on a Mac), pick the repo and branch, and create it. Pane makes a worktree for the pane.3Start OpenCode
Open a terminal in the pane with Ctrl+Alt+1 (⌘⌥1 on a Mac), or pick Terminal from the Ctrl+T menu, and typeopencode. To launch it with one keystroke next time, save it as a custom command; your first four custom commands get shortcuts.
What works with OpenCode in Pane
Everything Pane does around the terminal works. Agent-specific extras are for its three built-in agents.
Parallel sessions, one branch each
A pane per task replaces tmux and manual worktrees.
Running several OpenCode sessions usually means tmux panes and git worktree commands by hand. In Pane, each task is a pane with its own worktree, branch, terminal and diff view, and the sidebar shows which one is active.
OpenCode next to other agents
Different agents, different models, separate branches.
Use OpenCode with one provider in one pane and Claude Code or Codex in another, or several OpenCode sessions on different models. Each pane has its own worktree, so they never edit the same files.
When one OpenCode session is enough
If you're working on one thing in one terminal, OpenCode on its own is fine. Pane helps once you want several sessions at once, each isolated and reviewable.
Related
Sources
- What we ran
- → Pane 2.4.155 on Windows 11 and WSL2; OpenCode details checked against its own repo and docs in October 2026
- Corrections
- If anything here is wrong or out of date, tell us and we'll fix it and update the date at the top. Open an issue on GitHub
- Sources
frequently asked questions
By Parsa Khazaeepoul, co-founder of Pane. .