Docs / Your server / Google Cloud
Google Cloud
MarkdownOpen in ClaudeOpen in ChatGPT
At the end, you have a box on Google Cloud, a Compute Engine VM instance in Google's words, with Docker on it, and a Terminal on it in your browser.
- Time
15 minutes, then Any Linux box.
- You need
- A Google Cloud project with billing turned on
- About 25 to 35 dollars a month while the box runs
Set this up with your agent
Copy this to a coding agent on your laptop. It runs the commands and checks each step with you; what you sign in to, press or paste stays yours.
This is for a coding agent that can run commands on my laptop (Claude Code, Codex, Cursor), not a chat website.
Walk me through Loopgate's docs page "Google Cloud": https://loopgate.dev/docs/gcp.md. The pages it links to are beside it, each ending in .md.
Run its commands yourself, on my laptop or on my box over SSH as the page says, one step at a time, and check each "You should see" line before the next step.
These are mine: tell me when it is my turn, wait for me, and never ask me to type them into this chat. Signing in to anything (the portal, a cloud console, Slack, GitHub), pressing Add a runner, every token and password, my AI subscription's device code, and making the Slack app.
If I paste you the portal's install line, run it on the box: its token works once, for an hour.Steps
Sign in to the Google Cloud console, type Compute Engine in the search bar at the top and open VM instances. If Google asks you to enable the Compute Engine API, press Enable and wait a minute.
Press Create instance and fill it in:
- Name:
loopgate-runner. - Region: the one nearest your team.
- Machine configuration: General purpose, series E2, machine type e2-medium (2 processors and 4 GB of memory).
- OS and storage (called Boot disk in some versions): press Change, choose Ubuntu, Ubuntu 24.04 LTS marked x86/64 and 30 GB, then Select.
- Networking: under Firewall, leave Allow HTTP traffic and Allow HTTPS traffic unchecked. Nothing should come in but SSH.
- Name:
Press Create.
You should see: your instance in the list with a green tick after a minute.
Press SSH on your instance's row. Google opens a Terminal on the box in a new browser window. You need no key file.
You should see: a prompt that ends with
loopgate-runner:~$.Install Docker with Docker's own script.
curl -fsSL https://get.docker.com | sudo shYou should see: a few minutes of output ending with a note about running Docker as a non-root user.
Let your user run Docker without
sudo.sudo usermod -aG docker $USERClose the SSH window, then press SSH again, so the change takes hold.
Check that Docker answers without
sudo.docker compose versionYou should see:
Docker Compose version v2.followed by more numbers.
Good to know
- Google's default network lets SSH in from anywhere, guarded by Google's own keys. Leave it as it is unless your company requires otherwise.
- Once Docker answers, By hand sets the runner up from files instead of the portal's line.
If something is off
- Google asks you to enable the Compute Engine API. Press Enable and wait a minute.
- Docker says permission denied. Close the SSH window and press SSH again (step 7).