r/termux • u/spectra010s • 10h ago
Showcase I built a 4MB Go client to use Google Cloud Shell from Termux (free 8GB RAM Linux VM)
A lot of us building on Termux hit the same walls most times: not enough RAM or storage for heavy builds, and some things (like Docker) can't run at all.
Google Cloud Shell gives you a free Linux VM with 8GB RAM, 2 vCPUs and 5GB persistent storage, with no credit card or billing attached. The official ways in are the browser or the gcloud CLI.
gcloud is 500MB+ and runs on Python, which makes it slower to start up. That's fine for gcloud since it does a lot of things, but not when you just want to use Cloud Shell.
So I built gshell, a standalone terminal client for Cloud Shell, written in Go. The binary is under 4MB and you connect straight from Termux.
Install: pkg install tur-repo, then pkg install gshell. Run gshell auth login to sign in, then gshell to connect.
The demo shows gshell connecting, and uname -m / free -h on my phone vs the Cloud Shell VM.
It has limits: a 50-hour weekly quota, and anything outside $HOME is wiped when the VM reboots, so it's not a VPS replacement.