Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenCode ConsoleNew to Visual Studio Code? Get it now.
OpenCode Console

OpenCode Console

Mr.Test

|
13 installs
| (3) | Free
Chat with OpenCode and Claude Code inside VS Code. Ask about your code, inspect file changes, and switch models from one Sidebar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenCode Console

A VS Code extension for chatting with local coding agents from the Sidebar. It supports OpenCode and Claude Code, renders Markdown responses, streams output, shows tool activity and file diffs, supports model selection and conversation history, and provides an English interface.

Current version: 0.0.31

Features

  • Chat with OpenCode Server or Claude Code from the VS Code Sidebar
  • Streaming responses with loading and completion states
  • Tool activity for file reads, searches, commands, and edits
  • Before/after file diffs for supported edit tools and apply_patch
  • OpenCode session history and session restore
  • Automatic new session after 12 hours of inactivity
  • Searchable model picker for connected OpenCode providers
  • Build mode with optional Auto Accept and permission approval for protected actions
  • Automatic OpenCode CLI installation after user confirmation
  • Provider and API key setup dialogs
  • Ask about selected code from the editor context menu
  • Ask about the currently open file from the editor title bar
  • Reference specific file lines with @File#L37-42
  • OpenCode button in the editor title bar
  • Windows, macOS, and Linux support

Requirements

  • Visual Studio Code 1.90 or later
  • Node.js and npm
  • OpenCode CLI for the OpenCode backend
  • Claude Code CLI and an active login for the Claude Code backend

Usage

  1. Open a project folder in VS Code.
  2. Open the OpenCode icon from the Activity Bar or the editor title bar.
  3. Select OpenCode or Claude Code from the backend picker.
  4. Turn Auto Accept on to let the agent continue automatically, or turn it off to review each protected action.
  5. Configure the required CLI and authentication when prompted.
  6. Type a question and press Enter.
  7. Use Shift+Enter for a new line.

Model Selection

  • Click the model button below the chat composer.
  • Search by provider name or model ID.
  • Type /model provider/model to select a model directly.

Ask About Selected Code

  1. Select code in the editor.
  2. Right-click and choose OpenCode Console: Ask About Selected Code.
  3. Review or edit the generated prompt before sending it.

You can also use OpenCode Console: Ask About Current File from the editor title bar to include the active file.

Backend Selection

Use the backend picker near the composer to switch between OpenCode and Claude Code. The selected backend is remembered for the workspace.

  • OpenCode uses the local OpenCode Server and connected providers.
  • Claude Code uses the local claude CLI and its existing authentication.

Slash Commands

  • /model - open the model picker
  • /connect - connect a Provider or configure an API key
  • /model provider/model - select a model directly
  • /new - start a new chat
  • /clear - clear messages from the current view
  • /help - show available commands

OpenCode Console ภาษาไทย

Extension สำหรับคุยกับ AI Coding Agent ในเครื่องผ่าน Sidebar ของ VS Code รองรับ OpenCode และ Claude Code แสดงคำตอบแบบ Markdown พร้อม Streaming, Activity, Diff การแก้ไฟล์, การเลือก Model และประวัติการสนทนา

เวอร์ชันปัจจุบัน: 0.0.31

ฟีเจอร์หลัก

  • คุยกับ OpenCode Server หรือ Claude Code จาก Sidebar
  • แสดงคำตอบแบบ Streaming พร้อมสถานะ Loading และเสร็จสิ้น
  • แสดง Activity การอ่านไฟล์ ค้นหา รันคำสั่ง และแก้ไขไฟล์
  • แสดง Before/After Diff สำหรับเครื่องมือแก้ไฟล์และ apply_patch
  • โหลดประวัติ OpenCode และ Resume Session เดิม
  • เริ่ม Session ใหม่อัตโนมัติเมื่อไม่มีการใช้งานเกิน 12 ชั่วโมง
  • ค้นหาและเลือก Model จาก Provider ที่เชื่อมต่ออยู่
  • ตรวจสอบและติดตั้ง OpenCode CLI หลังผู้ใช้ยืนยัน
  • ตั้งค่า Provider และ API Key ผ่านหน้าต่างของ VS Code
  • มี Build Mode พร้อม Auto Accept และปุ่มยืนยัน Permission สำหรับการทำงานที่ต้องอนุญาต
  • คลุม Code ใน Editor แล้วเลือกคำสั่งถามเกี่ยวกับ Code
  • ถามเกี่ยวกับไฟล์ที่กำลังเปิดอยู่จากปุ่มบน Editor Title Bar
  • อ้างอิงช่วงบรรทัดด้วยรูปแบบ @File#L37-42
  • มีปุ่ม OpenCode บน Editor Title Bar
  • รองรับ Windows, macOS และ Linux

คำสั่งด่วน

  • /model - เปิดรายการเลือก Model
  • /connect - เชื่อมต่อ Provider หรือตั้งค่า API Key
  • /model provider/model - เลือก Model โดยตรง
  • /new - เริ่มแชทใหม่
  • /clear - ล้างข้อความในหน้าปัจจุบัน
  • /help - แสดงคำสั่งทั้งหมด
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft