Cloud Shell
Cloud Shell gives you 50 hours a week plus 5 GB of home storage at no charge, but 40 idle minutes end the VM and the home directory is deleted after 120 days away.
Cloud Shell gives you a command line in your browser, on a Google-run virtual machine, for managing Google Cloud and running short scripts.
By Google CloudDevOps & CIChecked ✓ 23 Nov 2026
Is it a fit?
Good fit
Use Cloud Shell for quick gcloud and terminal work on Google Cloud, without local setup, from any computer with a browser.
- cloud management
- learning
- quick fixes
- short scripts
Not a fit
Avoid it for non-interactive or long-running jobs, since idle sessions end and it has a weekly hour quota. Google points heavier users to Cloud Workstations.
- you need jobs that run without you at the terminal
- you need more than 50 hours a week
- you need more than 5 GB of home storage
You use Cloud Shell from the Google Cloud console in a browser tab. You type commands in a terminal, and it suits anyone who manages Google Cloud and wants no local install.
What the free plan gives you
The pricing page says Cloud Shell is free for users with a Google Cloud account. It does not mention a card, and Google's Free Tier page says Free Tier products need a billing account, so the card rule is not confirmed. The default weekly quota is 50 hours. You can see the hours left and the reset time in Session information, under Usage quota.
Each user gets 5 GB of persistent disk storage, mounted as the home directory. Files there, such as .bashrc and .vimrc, stay between sessions. Sessions end after 12 hours, and you can start a new one right away. You can edit files, work with repositories and preview web apps. Users must be 18 or older with a known age; Workspace for Education blocks access by default.
When you hit a limit
At the weekly quota, you wait until the reset date and time before you can use Cloud Shell again. Google also offers an upgrade to Cloud Workstations, which has no weekly limit.
Idle sessions do not run forever. The virtual machine ends after 40 minutes of inactivity, and changes outside the home directory are lost. Non-interactive sessions end after 40 minutes. Cloud Shell itself has no charge. Resources you create or operate with its commands can have their own Google Cloud charges.
Gotchas
- Cloud Shell is for interactive use only, so a script left running unattended is cut off after 40 minutes.
- Google deletes your home directory after 120 days without access, or if you delete it, and cannot recover the files. You get an email first, and starting a session prevents it.
- Anything you install outside the home directory is gone when the virtual machine ends.
Alternatives in this atlas
- Cloud Build: when you want a build to run without you at a terminal.
- Cloud Run: when you want to host a container instead of only working at a prompt.
- GitHub Actions: when you want scripts to run on a schedule or on every push.
Questions people ask
Is Google Cloud Shell free?
Yes. The pricing page says Cloud Shell is free for users with a Google Cloud account. It has a weekly quota of 50 hours and 5 GB of storage.
How long can I use Cloud Shell?
A session lasts up to 12 hours, and the weekly quota is 50 hours. An idle virtual machine ends after 40 minutes.
Does Cloud Shell keep my files?
Files in your home directory stay between sessions, up to 5 GB. Google deletes them after 120 days without access, so start a session now and then.
How to get started
- Sign in to the Google Cloud console with a Google Cloud account.
- Click Activate Cloud Shell at the top of the console.
- Wait for the session to open in a frame at the bottom of the console.
- Type commands in the terminal, such as gcloud commands for your project.
- Open Session information, then Usage quota, to see your weekly hours left.
Other free devops & ci options
Same category, safest first.