You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried installing Opencode into VSCode by opening it up from the integrated terminal, but it didn't work. So, I manually installed the VSCode extension and tried to start OpenCode from that extension, but even then, when the CLI pops up, it has no connection to my ide/editor.
Plugins
No response
OpenCode version
1.125
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
on macos running vscode on my ubunutu linux box using vscode remote ssh plugin
The root cause of this issue is that in Remote SSH scenarios, the VSCode extension runs on your local macOS machine, but the CLI server runs on the remote Ubuntu machine.
Activity
github-actions commentedon Jan 18, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
LIHUA919 commentedon Jan 18, 2026
The root cause of this issue is that in Remote SSH scenarios, the VSCode extension runs on your local macOS machine, but the CLI server runs on the remote Ubuntu machine.
When the extension tries to connect via
fetch(http://localhost:${port}/app`)` (line 78 in extension.ts), it connects to local localhost instead of the remote localhost where the CLI server is listening.Solution
VSCode provides the
vscode.env.asExternalUri()API to handle this exact scenario. It automatically sets up port forwarding for remote environments.For the OpenCode maintainers
The fix requires modifying
sdks/vscode/src/extension.ts:Current code (line 78):
Should be:
The same change is needed in the
appendPromptfunction (line 94).Workaround for users
Until this is fixed, you can manually set up SSH port forwarding:
Reference: Supporting Remote Development and GitHub Codespaces - see the "Forwarding localhost" section
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.