As if the software was as permanent as the hardware lol
There’s no guarantee that the software will ever be updated to something that the user finds usable though.
Google could just one day go “meh, we don’t think folding displays are where we want to be right now”, and - ta-da! - you’re left with a folding doorstop and Google’s got yet another entry on the “killed by Google” list.
Something like a raspberry pi or equivalent, and use reverse SSH set up to connect to a server with a known address on your end.
This means that ports don’t need to be opened on their end.
Also if you go with a gateway host, shift SSH to a randomised port like 37465, and install fail2ban.