OpenCode AIAn unofficial OpenCode integration for VS Code and VSCodium. Requires an installed, running OpenCode V2 service. No Copilot dependency or Microsoft AI account is needed. Features
Setup
The extension discovers the existing service. It does not start, stop, upgrade, or restart it. It manages only the OpenCode terminals it creates, not ordinary shells or manually started terminals. VSCodium users can install the same VSIX manually. This release is published to Microsoft's Marketplace only, not Open VSX. Commit messagesStage the changes you want to describe, then select the OpenCode action in Source Control or run OpenCode: Generate commit message with OpenCode. The result goes into the existing Git commit box. Nothing is staged or committed automatically. Existing drafts require replacement confirmation, and edits made while generation is running are preserved. Staging changes during a request discards the stale result. The staged diff is limited to 64 KiB. Known credential files are rejected, and Git external diff/text-conversion programs are not run. Inline completionInline requests are disabled by default. Enabling them sends bounded code around the cursor to your configured OpenCode model and may incur model usage costs. Known credential files and Git internals are excluded. Requests are debounced and canceled when superseded. Responses for changed documents or cursor positions are discarded. Nothing is inserted until you accept a suggestion. IntelliSense selections are extended using their native replacement ranges. Use OpenCode: Select inline-completion model to choose a fast model. Commit drafts use OpenCode: Select commit-message model. These preferences stay in VS Code settings and do not change global OpenCode configuration. OpenCode's current one-shot API uses the server's base configuration. Per-request token limits are not exposed by that API. The extension bounds context and response size and applies request timeouts, but model billing and generation limits remain controlled by OpenCode and its provider. Settings
Privacy and limitationsThe extension has no analytics. Generation uses OpenCode's stateless text endpoint without tools or session-history entries. Authentication remains in the extension host, never in the sidebar webview. This version targets local filesystem workspaces and the local OpenCode V2 service. It is not a browser extension or a client for external remote OpenCode servers. Project switching uses the editor's normal unsaved-file safeguards. Canonical DevelopmentRequires Node 22.18+ for development, VS Code 1.100+, and OpenCode 2.0.23+.
Press F5 in this folder to run an Extension Development Host. AttributionThe logo and pixel-loader artwork are adapted from OpenCode under its MIT license. OpenCode AI is maintained independently and is not affiliated with or endorsed by the OpenCode team. Third-party notices are included in the extension package. |