OpenCode for VS Code

A full OpenCode coding-agent workspace, right inside VS Code.

About OpenCode for VS Code

OpenCode Workbench brings the OpenCode coding agent directly into VS Code, giving you an AI-assisted development workflow without leaving the editor.


Chat with your codebase, create implementation plans, track subagents, review file changes, fork conversations, undo or restore changes, manage sessions, and monitor provider usage from one interface.


OpenCode Workbench requires the OpenCode CLI to be installed locally.


KEY FEATURES


AI CHAT


• Stream responses in real time

• View Markdown and syntax-highlighted code

• Expand or collapse reasoning sections

• Preview attached images

• Copy responses and stop active requests

• Track prompt, response, reasoning, and cache token usage


CODE CONTEXT AND ATTACHMENTS


• Attach selected code from the editor

• Add file references to prompts

• Paste or drag images into chat

• Include screenshots, snippets, and project files as context

• Use keyboard shortcuts for faster context insertion


IMPLEMENTATION PLANNING


• Generate implementation plans before changing code

• Review plans in a dedicated viewer

• Add comments and annotations

• Track checklist progress

• Request revisions

• Move from Plan mode to Build mode


FORK CONVERSATIONS


• Fork from any completed assistant response

• Start a new conversation branch from an earlier point

• Explore alternative approaches without losing the original session

• Keep conversation history up to the selected response


REVIEW, UNDO, AND RESTORE CHANGES


• Review files modified by the agent

• Inspect code differences

• Undo unwanted changes

• Restore previously modified files

• Recover from incorrect implementations without restarting the session


INTERACTIVE QUESTIONS


• Answer clarification questions directly in chat

• Choose suggested responses or provide custom answers

• Preserve question context when reopening sessions


SUBAGENT AND TASK TRACKING


• View active subagents

• Follow their status, progress, reasoning events, and tool calls

• Inspect detailed subagent activity

• Track agent-generated tasks and todos

• See what the coding agent is currently working on


SESSION MANAGEMENT


• Keep session history across VS Code restarts

• Rename or delete sessions

• Fork completed responses into new sessions

• Automatically compact sessions when context usage becomes high

• Organize long-running development tasks


QUOTA MONITORING


Monitor usage and limits for supported providers, including OpenAI, GitHub Copilot, Z.ai, Google Gemini, Zhipu, and other providers available through OpenCode.


The quota panel displays provider usage, limits, and budget information directly inside VS Code.


OPENCODE INTEGRATIONS


Access OpenCode tools and services from one interface:


• MCP server status and available MCP tools

• LSP server status

• Slash-command skills

• Available agents, descriptions, and modes

• Active tasks and provider quota status


Plugin-provided agents, skills, and capabilities can also appear inside the extension, including workflows from community plugins such as Oh My OpenCode.


GETTING STARTED


1. Install the OpenCode CLI.

2. Install OpenCode Workbench.

3. Open the OpenCode panel from the VS Code Activity Bar.

4. Create a session, select an agent, and send your first prompt.


Screenshots

4

Comments

0

No comments yet. Start the discussion with something useful.

Reviews

0
0.0

Based on 0 reviews

0 reviews
0 reviews
0 reviews
0 reviews
0 reviews

Review OpenCode for VS Code?

Leave a review