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
{{ message }}
Repository navigation
[object Object] error output when running opencode over SSH #5206
When running opencode via SSH on a remote server, the application outputs [object Object] instead of a proper error message or UI. Additionally, terminal escape sequences are not handled correctly, resulting in garbled output.
These issues also report SSH connection problems with terminal escape sequences and output corruption. The [object Object] error and garbled escape sequences you're seeing may be related to how opentui handles terminal detection and output formatting over SSH.
Feel free to ignore if none of these address your specific case.
Thanks for the suggestion. However, my situation is a bit different — I actually need the proxy to access the full network (e.g., npm registries and other external resources).
If I set NO_PROXY, the opencode CLI itself seems to work, but it still fails to launch properly because some dependencies can't be downloaded without the proxy.
I just tried it and became even more confused. I can use opencode in the terminal when I open a single file with VSCode, but it doesn't work when I open a project folder with VSCode.
You can bypass the local address first.
export NO_PROXY=localhost,127.0.0.1,::1
Thanks for the suggestion. However, my situation is a bit different — I actually need the proxy to access the full network (e.g., npm registries and other external resources). If I set NO_PROXY, the opencode CLI itself seems to work, but it still fails to launch properly because some dependencies can't be downloaded without the proxy.
Hi, I ran into the same problem.
When I use SSH to forward my local proxy and then run opencode, I get the same error output.
It seems that setting NO_PROXY allows the CLI itself to start, but then it fails again because some dependencies cannot be downloaded without the proxy.
May I ask if you’ve found a solution or workaround for this issue?
On Fri, Jan 9, 2026 at 12:09 faiz ***@***.***> wrote:
*hezhexi2002* left a comment (anomalyco/opencode#5206)
<#5206 (comment)>
You can bypass the local address first.
export NO_PROXY=localhost,127.0.0.1,::1
Thanks for the suggestion. However, my situation is a bit different — I
actually need the proxy to access the full network (e.g., npm registries
and other external resources). If I set NO_PROXY, the opencode CLI itself
seems to work, but it still fails to launch properly because some
dependencies can't be downloaded without the proxy.
Hi, I ran into the same problem.
When I use SSH to forward my local proxy and then run opencode, I get the
same error output.
It seems that setting NO_PROXY allows the CLI itself to start, but then it
fails again because some dependencies cannot be downloaded without the
proxy.
May I ask if you’ve found a solution or workaround for this issue?
—
Reply to this email directly, view it on GitHub
<#5206 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEHTIQV6YBQZXKHKQTVZQ3T4F4SX7AVCNFSM6AAAAACOJRH6LKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTOMRXGEYDIMRZG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Activity
github-actions commentedon Dec 7, 2025
This issue might be a duplicate of existing issues. Please check:
These issues also report SSH connection problems with terminal escape sequences and output corruption. The
[object Object]error and garbled escape sequences you're seeing may be related to how opentui handles terminal detection and output formatting over SSH.Feel free to ignore if none of these address your specific case.
junjieit commentedon Dec 10, 2025
I encountered this error even though I wasn't using SSH.
Operating System
Linux archhostname 6.17.9-zen1-1-zen #1 ZEN SMP PREEMPT_DYNAMIC Mon, 24 Nov 2025 15:21:16 +0000 x86_64 GNU/Linux
Terminal
Ghostty
junjieit commentedon Dec 11, 2025
The error on my end occurred because I had a network proxy enabled.
The error likely originates from this location: https://github.com/sst/opencode/blob/dev/packages/sdk/js/src/v2/gen/client/client.gen.ts#L196
nicehiro commentedon Dec 11, 2025
Same here. I also have a local proxy set.
junjieit commentedon Dec 11, 2025
You can bypass the local address first.
export NO_PROXY=localhost,127.0.0.1,::1nicehiro commentedon Dec 11, 2025
Thanks for the suggestion. However, my situation is a bit different — I actually need the proxy to access the full network (e.g., npm registries and other external resources).
If I set
NO_PROXY, the opencode CLI itself seems to work, but it still fails to launch properly because some dependencies can't be downloaded without the proxy.timiil commentedon Dec 24, 2025
same problem here?
in a new wsl ubuntu 24.04.
thanks for help
timiil commentedon Dec 24, 2025
very strange, ssh from a lan computer and start opencode is OK. the problem is related by Terminal ?
nicehiro commentedon Dec 24, 2025
@timiil I guess the problem is related to using proxy.
I have following configs in my
.bashrcas hereAnd also I need to set:
And now I can use opencode.
timiil commentedon Dec 24, 2025
seems not , i do have these envs:
nicehiro commentedon Dec 24, 2025
timiil commentedon Dec 24, 2025
yep, i do
timiil commentedon Dec 24, 2025
jiehai4 commentedon Jan 5, 2026
Terrible, using a proxy results in [object Object], and without it, I can't connect to the URL, but it was working fine yesterday.
jiehai4 commentedon Jan 5, 2026
I just tried it and became even more confused. I can use opencode in the terminal when I open a single file with VSCode, but it doesn't work when I open a project folder with VSCode.
grey8848 commentedon Jan 7, 2026
evn: windows 11 wsl debian zsh
error: [object Object]
❯ vim .zshrc
❯ echo $no_proxyROXY
❯ echo $NO_PROXY
local-registry,192.168.,172.31.,172.30.,172.29.,172.28.,172.27.,172.26.,172.25.,172.24.,172.23.,172.22.,172.21.,172.20.,172.19.,172.18.,172.17.,172.16.,10.,127.*,localhost,
❯ opencode
[object Object]
❯ opencode --print-logs --log-level DEBUG
INFO 2026-01-07T00:55:25 +209ms service=default version=1.1.4 args=["--print-logs","--log-level","DEBUG"] opencode
INFO 2026-01-07T00:55:25 +1ms service=config path=/home/jack111/.config/opencode/config.json loading
INFO 2026-01-07T00:55:25 +0ms service=config path=/home/jack111/.config/opencode/opencode.json loading
INFO 2026-01-07T00:55:25 +2ms service=config path=/home/jack111/.config/opencode/opencode.jsonc loading
[object Object]
❯ vim .zshrc
❯ vim .p10k.zsh
❯ export OPENCODE_DISABLE_DEFAULT_PLUGINS=1
❯ opencode --print-logs --log-level DEBUG
INFO 2026-01-07T00:56:54 +180ms service=default version=1.1.4 args=["--print-logs","--log-level","DEBUG"] opencode
INFO 2026-01-07T00:56:54 +1ms service=config path=/home/jack111/.config/opencode/config.json loading
INFO 2026-01-07T00:56:54 +0ms service=config path=/home/jack111/.config/opencode/opencode.json loading
INFO 2026-01-07T00:56:54 +2ms service=config path=/home/jack111/.config/opencode/opencode.jsonc loading
[object Object]
~ ❯
timiil commentedon Jan 7, 2026
no any update opencode, but today:
can not start opencode inside a ssh session any more, it is hang for long time no any char showup in ssh
hezhexi2002 commentedon Jan 9, 2026
Hi, I ran into the same problem.
When I use SSH to forward my local proxy and then run opencode, I get the same error output.
It seems that setting NO_PROXY allows the CLI itself to start, but then it fails again because some dependencies cannot be downloaded without the proxy.
May I ask if you’ve found a solution or workaround for this issue?
nicehiro commentedon Jan 9, 2026
thdxr commentedon Mar 25, 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.