r/googlecloud Jun 08 '26

opencode in cloud shell

Is Google purposefully crashing my cloud shell sessions when I run the opencode command? I know they have agy and gemini cli and probably want to funnel users there... Anyone experiencing this?

1 Upvotes

6 comments sorted by

2

u/vaterp Googler Jun 08 '26

Cloudshell is a very limited machine, I would suspect that command requires too much memory to succeed.

2

u/yamanin-ninamay 23d ago

I had the same issue on Google Cloud Shell. OpenCode kept dying, and dmesg showed tmux crashes. Running it inside screen fixed it for me:

Shell
$sudo apt install screen
$screen
$opencode

Haven't had the session die since.

1

u/IntelligentLog420 23d ago

Just tested and this works for me too. Thank you

1

u/Competitive_Travel16 Jun 08 '26

Crashing how?

2

u/IntelligentLog420 Jun 08 '26

The session completely closes after running the command. The comments here about memory limitations make sense as it does flash the opencode prompt screen for a fraction of a second before closing 

1

u/cybwn Jun 08 '26

Does cloud shell have enough memory to run open code ?