OpenCode is not starting on the remote Debian server. The authentication and OpenCode Zen keys are set up correctly in auth.json. #2175

Closed
opened 2026-02-16 17:34:31 -05:00 by yindo · 12 comments
Owner

Originally created by @vishawdeepsingh-dev on GitHub (Oct 19, 2025).

Originally assigned to: @thdxr on GitHub.

Description

Image

after writing this it just showing this blank state

OpenCode version

0.15.8

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

Debian GNU/Linux 12 (bookworm)

Terminal

No response

Originally created by @vishawdeepsingh-dev on GitHub (Oct 19, 2025). Originally assigned to: @thdxr on GitHub. ### Description <img width="823" height="205" alt="Image" src="https://github.com/user-attachments/assets/69eb7d4d-131e-47e4-b7ca-cbf1d6509a91" /> after writing this it just showing this blank state ### OpenCode version 0.15.8 ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System Debian GNU/Linux 12 (bookworm) ### Terminal _No response_
yindo added the bug label 2026-02-16 17:34:31 -05:00
yindo closed this issue 2026-02-16 17:34:31 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #3275: TUI will not start (Directory commands DNE) - Similar startup failure on v0.15.8
  • #3142: "Failed to send message" error when doing any type of prompt - Shows similar blank state behavior after startup
  • #3213: Bug: opencode run and TUI exits hang on v0.15+ - TUI hanging/blank state issues on v0.15+
  • #3270: LM Studio "failed to send message" error - Authentication/connection issues leading to failed startup
  • #3273: MCP client failing makes opencode hang - Server hanging after configuration issues

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Oct 19, 2025): This issue might be a duplicate of existing issues. Please check: - #3275: TUI will not start (Directory commands DNE) - Similar startup failure on v0.15.8 - #3142: "Failed to send message" error when doing any type of prompt - Shows similar blank state behavior after startup - #3213: Bug: `opencode run` and TUI exits hang on v0.15+ - TUI hanging/blank state issues on v0.15+ - #3270: LM Studio "failed to send message" error - Authentication/connection issues leading to failed startup - #3273: MCP client failing makes `opencode` hang - Server hanging after configuration issues Feel free to ignore if none of these address your specific case.
Author
Owner

@veracioux commented on GitHub (Oct 19, 2025):

@vishawdeepsingh-dev i'm assuming you are using ssh? If so, please try running ssh with the -t flag, e.g. ssh -t <server> opencode

@veracioux commented on GitHub (Oct 19, 2025): @vishawdeepsingh-dev i'm assuming you are using `ssh`? If so, please try running ssh with the `-t` flag, e.g. `ssh -t <server> opencode`
Author
Owner

@vishawdeepsingh-dev commented on GitHub (Oct 19, 2025):

@vishawdeepsingh-dev i'm assuming you are using ssh? If so, please try running ssh with the -t flag, e.g. ssh -t <server> opencode

ssh -t tapti@debian opencode
tapti@debian's password:
zsh:1: command not found: opencode
Connection to debian closed.

Not working

@vishawdeepsingh-dev commented on GitHub (Oct 19, 2025): > [@vishawdeepsingh-dev](https://github.com/vishawdeepsingh-dev) i'm assuming you are using `ssh`? If so, please try running ssh with the `-t` flag, e.g. `ssh -t <server> opencode` ssh -t tapti@debian opencode tapti@debian's password: zsh:1: command not found: opencode Connection to debian closed. Not working
Author
Owner

@veracioux commented on GitHub (Oct 19, 2025):

Interesting. What if you use the absolute path to opencode? Also, the --print-logs option could be useful.

Please try the following:
ssh -t <server> /full/path/to/opencode --print-logs
ssh <server> /full/path/to/opencode --print-logs (same but without -t option)

@veracioux commented on GitHub (Oct 19, 2025): Interesting. What if you use the absolute path to `opencode`? Also, the `--print-logs` option could be useful. Please try the following: `ssh -t <server> /full/path/to/opencode --print-logs` `ssh <server> /full/path/to/opencode --print-logs` (same but without -t option)
Author
Owner

@vishawdeepsingh-dev commented on GitHub (Oct 19, 2025):

Interesting. What if you use the absolute path to opencode? Also, the --print-logs option could be useful.

Please try the following: ssh -t <server> /full/path/to/opencode --print-logs ssh <server> /full/path/to/opencode --print-logs (same but without -t option)

ssh -t tapti@debian /home/tapti/.opencode/bin/opencode --print-logs
tapti@debian's password:
INFO 2025-10-19T14:54:23 +144ms service=default version=0.15.8 args=["--print-logs"] opencode
INFO 2025-10-19T14:54:23 +1ms service=project directory=/home/tapti fromDirectory
INFO 2025-10-19T14:54:23 +12ms service=config path=/home/tapti/.config/opencode/config.json loading
INFO 2025-10-19T14:54:23 +0ms service=config path=/home/tapti/.config/opencode/opencode.json loading
INFO 2025-10-19T14:54:23 +10ms service=config path=/home/tapti/.config/opencode/opencode.jsonc loading
INFO 2025-10-19T14:54:23 +5ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.config/opencode running
INFO 2025-10-19T14:54:23 +2ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.opencode running
INFO 2025-10-19T14:54:23 +1ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO 2025-10-19T14:54:23 +3ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-10-19T14:54:23 +1ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca)

installed @opencode-ai/plugin@0.15.8

[2.00ms] done
stderr=Saved lockfile
done
INFO 2025-10-19T14:54:23 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.2 installing package using Bun's default registry resolution
INFO 2025-10-19T14:54:23 +0ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/tapti/.cache/opencode","opencode-anthropic-auth@0.0.2"] cwd=/home/tapti/.cache/opencode running
INFO 2025-10-19T14:54:23 +1ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca)

installed @opencode-ai/plugin@0.15.8

[3.00ms] done
stderr=Saved lockfile
done

ssh tapti@debian /home/tapti/.opencode/bin/opencode --print-logs
tapti@debian's password:
INFO 2025-10-19T14:55:28 +146ms service=default version=0.15.8 args=["--print-logs"] opencode
INFO 2025-10-19T14:55:28 +1ms service=project directory=/home/tapti fromDirectory
INFO 2025-10-19T14:55:28 +12ms service=config path=/home/tapti/.config/opencode/config.json loading
INFO 2025-10-19T14:55:28 +1ms service=config path=/home/tapti/.config/opencode/opencode.json loading
INFO 2025-10-19T14:55:28 +9ms service=config path=/home/tapti/.config/opencode/opencode.jsonc loading
INFO 2025-10-19T14:55:28 +5ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.config/opencode running
INFO 2025-10-19T14:55:28 +2ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.opencode running
INFO 2025-10-19T14:55:28 +1ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin
INFO 2025-10-19T14:55:28 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin
INFO 2025-10-19T14:55:28 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.2 installing package using Bun's default registry resolution
INFO 2025-10-19T14:55:28 +0ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/tapti/.cache/opencode","opencode-anthropic-auth@0.0.2"] cwd=/home/tapti/.cache/opencode running
INFO 2025-10-19T14:55:28 +2ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca)

installed @opencode-ai/plugin@0.15.8

[3.00ms] done
stderr=Saved lockfile
done
INFO 2025-10-19T14:55:28 +1ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca)

installed @opencode-ai/plugin@0.15.8

[2.00ms] done
stderr=Saved lockfile
done

@vishawdeepsingh-dev commented on GitHub (Oct 19, 2025): > Interesting. What if you use the absolute path to `opencode`? Also, the `--print-logs` option could be useful. > > Please try the following: `ssh -t <server> /full/path/to/opencode --print-logs` `ssh <server> /full/path/to/opencode --print-logs` (same but without -t option) ssh -t tapti@debian /home/tapti/.opencode/bin/opencode --print-logs tapti@debian's password: INFO 2025-10-19T14:54:23 +144ms service=default version=0.15.8 args=["--print-logs"] opencode INFO 2025-10-19T14:54:23 +1ms service=project directory=/home/tapti fromDirectory INFO 2025-10-19T14:54:23 +12ms service=config path=/home/tapti/.config/opencode/config.json loading INFO 2025-10-19T14:54:23 +0ms service=config path=/home/tapti/.config/opencode/opencode.json loading INFO 2025-10-19T14:54:23 +10ms service=config path=/home/tapti/.config/opencode/opencode.jsonc loading INFO 2025-10-19T14:54:23 +5ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.config/opencode running INFO 2025-10-19T14:54:23 +2ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.opencode running INFO 2025-10-19T14:54:23 +1ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin INFO 2025-10-19T14:54:23 +3ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-10-19T14:54:23 +1ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca) installed @opencode-ai/plugin@0.15.8 [2.00ms] done stderr=Saved lockfile done INFO 2025-10-19T14:54:23 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.2 installing package using Bun's default registry resolution INFO 2025-10-19T14:54:23 +0ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/tapti/.cache/opencode","opencode-anthropic-auth@0.0.2"] cwd=/home/tapti/.cache/opencode running INFO 2025-10-19T14:54:23 +1ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca) installed @opencode-ai/plugin@0.15.8 [3.00ms] done stderr=Saved lockfile done ssh tapti@debian /home/tapti/.opencode/bin/opencode --print-logs tapti@debian's password: INFO 2025-10-19T14:55:28 +146ms service=default version=0.15.8 args=["--print-logs"] opencode INFO 2025-10-19T14:55:28 +1ms service=project directory=/home/tapti fromDirectory INFO 2025-10-19T14:55:28 +12ms service=config path=/home/tapti/.config/opencode/config.json loading INFO 2025-10-19T14:55:28 +1ms service=config path=/home/tapti/.config/opencode/opencode.json loading INFO 2025-10-19T14:55:28 +9ms service=config path=/home/tapti/.config/opencode/opencode.jsonc loading INFO 2025-10-19T14:55:28 +5ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.config/opencode running INFO 2025-10-19T14:55:28 +2ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","@opencode-ai/plugin@0.15.8","--exact"] cwd=/home/tapti/.opencode running INFO 2025-10-19T14:55:28 +1ms service=plugin path=opencode-copilot-auth@0.0.3 loading plugin INFO 2025-10-19T14:55:28 +2ms service=plugin path=opencode-anthropic-auth@0.0.2 loading plugin INFO 2025-10-19T14:55:28 +0ms service=bun pkg=opencode-anthropic-auth version=0.0.2 installing package using Bun's default registry resolution INFO 2025-10-19T14:55:28 +0ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/tapti/.cache/opencode","opencode-anthropic-auth@0.0.2"] cwd=/home/tapti/.cache/opencode running INFO 2025-10-19T14:55:28 +2ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca) installed @opencode-ai/plugin@0.15.8 [3.00ms] done stderr=Saved lockfile done INFO 2025-10-19T14:55:28 +1ms service=bun code=0 stdout=bun add v1.3.0 (b0a6feca) installed @opencode-ai/plugin@0.15.8 [2.00ms] done stderr=Saved lockfile done
Author
Owner

@vishawdeepsingh-dev commented on GitHub (Oct 19, 2025):

Interesting. What if you use the absolute path to opencode? Also, the --print-logs option could be useful.

Please try the following: ssh -t <server> /full/path/to/opencode --print-logs ssh <server> /full/path/to/opencode --print-logs (same but without -t option)

still tui is not loaded

@vishawdeepsingh-dev commented on GitHub (Oct 19, 2025): > Interesting. What if you use the absolute path to `opencode`? Also, the `--print-logs` option could be useful. > > Please try the following: `ssh -t <server> /full/path/to/opencode --print-logs` `ssh <server> /full/path/to/opencode --print-logs` (same but without -t option) still tui is not loaded
Author
Owner

@veracioux commented on GitHub (Oct 19, 2025):

@rekram1-node I looked at the logs and the code a bit. It looks like the bun add step at INFO 2025-10-19T14:55:28 +0ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/tapti/.cache/opencode","opencode-anthropic-auth@0.0.2"] cwd=/home/tapti/.cache/opencode running is hanging.

I'm a bit out of my depth here, and I don't wanna waste anyone's time, so I'm leaving this to you. Thought this one would be easy lol

@veracioux commented on GitHub (Oct 19, 2025): @rekram1-node I looked at the logs and the code a bit. It looks like the `bun add` step at ` INFO 2025-10-19T14:55:28 +0ms service=bun cmd=["/home/tapti/.opencode/bin/opencode","add","--force","--exact","--cwd","/home/tapti/.cache/opencode","opencode-anthropic-auth@0.0.2"] cwd=/home/tapti/.cache/opencode running` is hanging. I'm a bit out of my depth here, and I don't wanna waste anyone's time, so I'm leaving this to you. Thought this one would be easy lol
Author
Owner

@rekram1-node commented on GitHub (Oct 19, 2025):

@vishawdeepsingh-dev can you run:

 cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls

If a package is failing to install you may have slow network and it may just take a minute

@rekram1-node commented on GitHub (Oct 19, 2025): @vishawdeepsingh-dev can you run: ``` cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls ``` If a package is failing to install you may have slow network and it may just take a minute
Author
Owner

@vishawdeepsingh-dev commented on GitHub (Oct 20, 2025):

@vishawdeepsingh-dev can you run:

 cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls

If a package is failing to install you may have slow network and it may just take a minute

cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls
/home/tapti/.cache/opencode node_modules (14)
├── opencode-anthropic-auth@0.0.2
└── opencode-copilot-auth@0.0.3

@vishawdeepsingh-dev commented on GitHub (Oct 20, 2025): > [@vishawdeepsingh-dev](https://github.com/vishawdeepsingh-dev) can you run: > > ``` > cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls > ``` > > If a package is failing to install you may have slow network and it may just take a minute cd ~/.cache/opencode && BUN_BE_BUN=1 opencode pm ls /home/tapti/.cache/opencode node_modules (14) ├── opencode-anthropic-auth@0.0.2 └── opencode-copilot-auth@0.0.3
Author
Owner

@rekram1-node commented on GitHub (Oct 20, 2025):

are you able to run:

opencode run hello --print-logs

and show output?

the “run hello” are more useful here im just trying to see if u can do anything at all and if not what part bricked

@rekram1-node commented on GitHub (Oct 20, 2025): are you able to run: opencode run hello --print-logs and show output? the “run hello” are more useful here im just trying to see if u can do anything at all and if not what part bricked
Author
Owner

@vishawdeepsingh-dev commented on GitHub (Oct 20, 2025):

are you able to run:

opencode run hello --print-logs

and show output?

the “run hello” are more useful here im just trying to see if u can do anything at all and if not what part bricked

after running this command it responded and tui is now opening successfully . I dont know how but now it is working.
Thank you very much for your time.

@vishawdeepsingh-dev commented on GitHub (Oct 20, 2025): > are you able to run: > > opencode run hello --print-logs > > and show output? > > the “run hello” are more useful here im just trying to see if u can do anything at all and if not what part bricked after running this command it responded and tui is now opening successfully . I dont know how but now it is working. Thank you very much for your time.
Author
Owner

@rekram1-node commented on GitHub (Oct 20, 2025):

Sweet! happy to help

@rekram1-node commented on GitHub (Oct 20, 2025): Sweet! happy to help
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2175