OpenCode Agent Plus is a VS Code extension that starts the open-source coding agent OpenCode so you can talk to it in an editor tab. You can split or move a conversation tab just as you would a file tab. The chat page is modeled on Anthropic's Claude Code extension for VS Code and shows tool calls, permission prompts and file changes. OpenCode's official opencode extension runs the conversation in a terminal.
The versions here are OpenCode Agent Plus 1.6.0 and Agent Plus 1.13.0, the extension that provides the Conversations list. Both are available on the VS Code Marketplace and Open VSX.

Install just OpenCode Agent Plus. VS Code installs Agent Plus, which is by the same author, alongside it. If OpenCode isn't on your machine, OpenCode Agent Plus offers to download it. OpenCode comes with a few models you can use without setting up an account.
How it differs from OpenCode's official VS Code extension
| Extension | Marketplace ID | Version | Where the conversation is |
|---|---|---|---|
| opencode (by OpenCode) | sst-dev.opencode |
1.0.0, released 2026-10-14 | in a terminal beside the editor |
| OpenCode Beta (by OpenCode) | sst-dev.opencode-v2 |
0.1.1, released 2025-12-04, not updated since | in a chat panel in the side bar |
| OpenCode Agent Plus | xnervwang.opencode-agent-plus |
1.6.0 | on a chat page in an editor tab |
With the official opencode extension, you chat, answer permission prompts and switch models in OpenCode's terminal interface, the full-screen text UI it draws when run from a shell.
The official extension has three VS Code shortcuts:
| Action | macOS | Windows and Linux |
|---|---|---|
| Open a terminal split beside the editor and start OpenCode in it. If an OpenCode terminal is already open, switch to it. | Cmd+Esc |
Ctrl+Esc |
| Open another OpenCode terminal. | Cmd+Shift+Esc |
Ctrl+Shift+Esc |
Insert a reference to the current file and selected lines into the OpenCode terminal in the form @File#L37-42. |
Cmd+Option+K |
Alt+Ctrl+K |
The opencode Marketplace page says the extension automatically shares the current selection or tab with OpenCode.
Installing
-
In the Extensions view, search for OpenCode Agent Plus and install it. It requires VS Code 1.96 or later and is available on the VS Code Marketplace and Open VSX. To install it from the command line instead, run:
1
code --install-extension xnervwang.opencode-agent-plus
-
Click the Conversations icon in the activity bar to open the list.
-
If the note above the list says "OpenCode was not found", click Download OpenCode. The notification at the bottom right has the same button.

-
In the New bar at the top of Conversations, click the agent logo on the left, choose OpenCode Agent Plus, then click New in tab.

-
Send your first message.
If you haven't set a default model, the extension asks you to pick one, for this conversation and the ones after it.
You can also open a conversation from the OpenCode Agent Plus icon in an editor's title bar or with the command OpenCode Agent Plus: New Conversation; either way it starts in the window's first workspace folder.
The Download OpenCode button fetches version 2.4.1 from the project's GitHub releases and installs it in ~/.opencode-agent-plus/opencode/2.4.1/. Downloads are available for macOS, Linux and Windows on x64 and arm64, and range from 110 to 126 MB depending on the platform. The command OpenCode Agent Plus: Download OpenCode 2.4.1 does the same. You can use OpenCode without reloading the window.
The extension uses a copy you install yourself first. To install the latest OpenCode 2, run:
1 | npm install -g @opencode/cli |
Features and the versions they need
You can chat with OpenCode 1. The features below need newer versions. The OpenCode 2.4.1 that the extension downloads is new enough for all of them.
| Feature | OpenCode | Also needs |
|---|---|---|
| Work plan, the model's record in Agent Plus of what is left to do in a conversation | 2 | Python 3.7 or later. On Windows, the extension offers to download it. |
| Renaming conversations | 2 | |
Rewinding the conversation to a message (Rewind to here) |
2 | |
Forking from a message (Fork from here) |
2 | |
| Seeing subagents' progress (helpers the model starts) | 2 | |
| Questions from the model as forms | 2.4.1 or later |
Connecting a model provider
The model list and the free models
You can start with one of OpenCode's free models without connecting a provider or signing in. These models run on opencode.ai. To choose one, click the model button under the message box.

The first two entries, Connect a provider… and Reload the model list, are always there. Below them, the list groups models by provider and sorts each group by model name. To narrow the list, type in Filter models. Each word must match part of the model's name, ID, provider or region. If the model lets you choose how much it reasons, an Effort drop-down appears beside the model button.
The opencodeAgentPlus.openCodeModels setting defaults to auto, which lists OpenCode's free models until you connect another provider. Set it to show to keep listing them or hide to leave them out. Either way, a free model you are already using in a conversation stays in its list.
Connecting your own provider
Click Connect a provider… in the model list, or choose OpenCode Agent Plus: Connect a Model Provider from the Command Palette. Both open OpenCode's sign-in wizard, opencode auth login, in a VS Code terminal. Choose a provider and enter its credentials.
When you close the terminal, OpenCode restarts and each chat page refreshes its model list. A notification then tells you what the sign-in changed.
Amazon Bedrock
Amazon Bedrock also has settings of its own: the AWS profile in opencodeAgentPlus.bedrock.profile and the Region in opencodeAgentPlus.bedrock.region. To use a Bedrock API key instead, choose OpenCode Agent Plus: Set Amazon Bedrock API Key. The command saves the key in VS Code's secret storage. You can use these settings instead of the sign-in wizard; other providers ignore them.
Bedrock gives the same model a different ID prefix in each region group, including Global, US, EU and APAC. The list combines those IDs into one model row and shows the available regions in grey on the right. Open the row to pick a region.
Use OpenCode Agent Plus: Test OpenCode Connection to check whether OpenCode is installed, how many models it lists and how many of those are on Bedrock. For example: "OpenCode 2.4.1 is connected: 120 models, 40 of them on Amazon Bedrock." If Bedrock rejects the credentials, the command shows Bedrock's error.
Where credentials live over Remote-SSH
In a Remote-SSH window, the extension and OpenCode both run on the remote machine. Connect a provider… opens a terminal there, and the sign-in wizard saves your credentials on that machine.
A key saved with OpenCode Agent Plus: Set Amazon Bedrock API Key stays in VS Code's secret storage on your own computer. The extension passes the key to OpenCode on the remote machine.
The chat page
Tool calls, permission prompts and questions
Replies stream in as the model works. Each tool call has a row with the tool name in bold followed by its arguments. Click the row to see its input (IN) and output (OUT). Failed calls open automatically. A file edit row shows counts such as +3 -1. Open it to see removed lines on red and added lines on green.
OpenCode Agent Plus also turns on todowrite, the to-do tool that OpenCode 2 leaves off by default. Its row shows one to-do per line.
By default, OpenCode asks before it edits files, runs commands, fetches web pages, or reads or writes paths outside the project. The prompt appears above the message box, with the question in bold on the first line. For a command, it shows the command as typed.

1Allow once approves only this request.2Allow in this project saves the pattern named in the request, such as a command or a file path. OpenCode allows matching requests without asking in every conversation in this project, even after it restarts.3Deny.
Click an option or press its number when the message box does not have focus. Esc stops the turn. For a file edit, click View diff to review the proposed change in VS Code's diff editor. Its title bar has the same three buttons.
With OpenCode 2.4.1 or later, questions from the model appear as forms. Some questions let you choose one or more options; others take a yes or no, a number or text. A question, a permission request and the end of a turn each have a distinct chime. Click the music-note button beside Send to mute them.
Modes
Use the mode button at the right end of the row under the message box to choose how OpenCode handles changes:
- Ask before edits: you approve each file change.
- Edit automatically lets OpenCode change files inside the project folder without asking. It still asks about commands, web requests and paths outside the folder.
- Plan lets OpenCode inspect the project and make a plan without changing project files.
Each conversation keeps its mode and effort (how much the model reasons) when you close and reopen its tab.
Replies and context
The last row of each reply starts with its arrival time. After that come the reply duration, the percentage of the model's context window (how much input it can use at once) in use, the conversation's total cost so far, the model and its effort. For example, 2m10s · ctx 33% · $0.42 · grok-4.7 (US) low.

After the approved edit, the model wrote tests/test_list.py and ran the tests twice, asking permission before each command. The final reply shows 1m02s · ctx 10% · $0.00 · big-pickle.
A ring under the message box shows how much of the context window is in use and gains an outline when 15% or less remains. When OpenCode compacts older turns, a divider appears in the conversation. Open Summary on the divider to see how OpenCode summed up the earlier turns. To compact them yourself, enter this in the message box:
1 | /compact |
If a reply mentions another conversation by session ID or title, click the link to open it. Images show inline when a reply gives an absolute path on the machine where OpenCode runs, a file:// URL or a data: URL.
Writing a message
Type / in the message box to list OpenCode's commands, or @ to search for a workspace file. Your message includes the lines selected in the editor, or, if nothing is selected, the file you last switched to.
A small pill under the box shows what will go with the message, for example extension.js:12-20. Click its × to leave it out of this message. To insert a reference to the current file or selection into the draft, press Alt+K in the editor.
Paste or drop up to 8 images per message, each up to 5 MB.
For an error or warning in the editor, choose Fix with OpenCode Agent Plus from its quick fixes. This adds the file, line and problem to your draft.
Token mode, set from Agent Plus's item in the VS Code status bar, controls what OpenCode Agent Plus adds when it sends a message to the model. The default, All features, includes the Work plan, a time-zone note, a note that the page can display images, and the conversation brief (a short summary of the conversation and its current status, kept by the model). Interface features adds none of these; the chat page's features still work. The change takes effect with your next message, without restarting OpenCode.
Long conversations, rewinding and forking
Use the buttons along the right edge to move between your messages or open a filterable list of them. As you scroll down a reply, the message that started it stays pinned at the top. Press Ctrl+Alt+F to toggle Focus view, which shows only your messages, the last reply of each turn and requests waiting for your answer.
With OpenCode 2, hover over one of your messages and choose Rewind to here to return the conversation to just before that message. In a Git repository, rewinding also restores files. The confirmation dialog lists the files that will change back. To start a separate conversation from the same point, choose Fork from here. It copies the conversation up to, but excluding, that message into a new tab.
Subagents and background commands
A pill with a green dot under the message box counts the conversation's running subagents (helper agents the model starts) and background commands. Click a count such as "1 subagent, 1 command running" to open the list. On Linux, the pill also shows separate counts for opencode run processes (OpenCode answering one prompt without its terminal interface) and for commands that keep running after leaving OpenCode, such as those started with nohup … &.
With OpenCode 2, the tool row that starts a subagent has a box showing the prompt sent to it and its result. The line below shows the subagent's title and status, plus its latest step while it runs. Open Its steps (n), where n is the total number of steps, to see the last 60.
OpenCode conversations in the Conversations list
For each workspace folder in this window, the list includes OpenCode conversations from both the folder and its linked Git worktrees (other checkouts of the same repository).
When two processes write to the same conversation, turns can be lost. A conversation's row shows · N processes when several processes have it open. A dimmed row with an outlined stripe at its start means the conversation is open somewhere else.
| Who has it | How to tell | What to do |
|---|---|---|
| Another VS Code window | The window's name, on hover. | Click the row to bring that window to the front. If it has lost its connection, for example after a Remote-SSH disconnect, open the conversation in this window and choose Take over here in the notification. The other window stops any running turn and closes the conversation. |
| A tab of OpenCode's terminal interface | The tooltip shows terminal … in <folder> and OpenCode's terminal interface, process <process ID>. |
Close that tab in the terminal interface, then open the conversation in VS Code. |
opencode run |
opencode run in <folder> and the process ID. |
Wait for the run to finish. |
A reply you read in VS Code counts as read in OpenCode's terminal interface, and a reply shown in the terminal interface counts as read in VS Code.
Hover over a row or right-click it to rename, fork or archive the conversation. Only you can delete a conversation; the model and a Supervisor cannot. To delete one, archive it, then right-click its row in the Archived section, choose Delete... and confirm.
Click the hourglass in the New bar to make the next conversation you create temporary. Its tab shows ⏳. When you close the tab, a notification offers Keep and Delete Now. By default, the conversation is deleted 10 minutes later.
Features shared with Agent Plus
Each of these has its own post:
- Conversations: Claude Code, Codex and OpenCode conversations share one list with groups, pins and filters.
- Work plan: The model tracks what's left to do in the conversation. The plan bar above the message box shows progress, and each item gets its own row in Agent Plus's Work plan view.
- Supervisor: In Claude Code Plus, a Claude Code conversation can act as a Supervisor. It can look after OpenCode Agent Plus conversations and send them messages for you.
- Background work and alerts: On a conversation's tab icon, a green dot means the agent is working, a red dot means it's waiting for you, and an envelope means you have an unread reply.
The OpenCode Agent Plus source is on GitHub under the BSD 3-Clause license.
In this series
- Claude Code Plus, Codex Plus and OpenCode Agent Plus: series overview
- Supervisor: one conversation that looks after the others
- Background work and alerts: see which conversation is running and which is waiting for you
- Conversations: one side bar list for Claude Code, Codex and OpenCode
- Work plan: keep long conversations on track and answer their questions in one place
- Claude Code Plus: times, cost and a message list in the Claude Code panel
- What Codex Plus 1.10.0 adds to Codex in VS Code
- OpenCode Agent Plus: talk to OpenCode in VS Code editor tabs
Article link: https://xnerv.wang/en/opencode-agent-plus/
