Working Remotely with Google Antigravity

1. Introduction

In this codelab, you will learn how to work remotely with Google Antigravity, an agentic development platform that serves as your AI agents' central command center.

Until recently, working with AI agents meant sitting at your desk with your laptop open while the agent ran tests, analyzed spreadsheets, or fixed bugs. Google Antigravity untethers your workflows with two complementary ways to work away from your desk via antigravity.google.com:

  • Remote Control: Connects your web or mobile browser directly to the Antigravity Desktop App running on your own machine, giving you access to local folders, spreadsheets, notes, uncommitted Git branches, and local dev servers.
  • Remote Agents: Runs your agent sessions inside an isolated, Google-managed cloud sandbox connected to your Google Drive files, GitHub repositories, uploaded files, and Marketplace plugins—with zero dependency on your local laptop.

In this codelab, we will focus on using Remote Control and Remote Agents through the Antigravity Desktop App and any web or mobile browser at antigravity.google.com.

What you'll learn

  • The clear mental model between Remote Control and Remote Agents and when to use each.
  • How to enable Remote Control in the Antigravity Desktop App and connect from another browser or your phone using the instance switcher.
  • How to run Remote Control workflows against local files on your laptop (both a zero-code business check-in workflow and a developer bug-fix + unit-test workflow).
  • How to create a Remote Project and attach Uploaded files (/home/antigravity/upload), Google Drive files, and GitHub repositories.
  • How to run Remote Agents in Google's cloud for a zero-code product spec review and an end-to-end GitHub repository bug fix.

What you'll need

  • Google Antigravity Desktop App installed and configured on your local machine (macOS, Windows, or Linux) with Git and Python 3 available locally.
  • Chrome web browser (and optionally a phone or tablet browser so you can test the mobile experience at antigravity.google.com).
  • A personal Google Account (Gmail) with Google Drive.
  • A GitHub account (to fork our all-in-one codelab starter repository).
  • Remote Agents functionality is currently available to Google AI Pro and Google AI Ultra subscribers signed in with their personal Google Accounts (this is at the time of writing).

This codelab is designed for users and developers of all levels, no coding is required for the business and product workflows.

Reporting issues

As you work through the codelab and with Antigravity, you might encounter problems.

  • For codelab-related issues (typos, wrong instructions), please open a bug with the Report a mistake button in the bottom-left corner of this codelab.
  • For bugs or feature requests related to Antigravity, you can report product feedback inside Antigravity by clicking Settings in the bottom-left corner and choosing Provide Feedback.

2. Remote Control vs. Remote Agents

Because Remote Control and Remote Agents sound similar, the first question almost everyone asks is: "What is the difference between the two, and when should I use which?"

The simplest mental model is to ask one question: "Where is the agent actually running commands?"

Side-by-Side Comparison

Feature

Remote Control

Remote Agents

Where execution happens

On your own laptop or desktop workstation

In an isolated, Google-managed cloud sandbox

Laptop requirement

Your machine must stay powered on and online

Runs independently in Google's cloud—your laptop can be closed or off

What files it accesses

Local Project folders, spreadsheets, notes, uncommitted code, local tools & localhost dev servers

Attached cloud Resources: Google Drive files, GitHub repositories, and Uploaded files (/home/antigravity/upload)

Best for

Files sitting on your laptop, uncommitted local code, local dev servers (localhost:8080), or local CLI tools (ffmpeg)

Working from a phone/tablet while traveling, GitHub repo fixes, Drive + CSV reviews, and zero-setup cloud tasks

One Browser UI, Two Execution Modes

Both modes share the exact same web interface at antigravity.google.com. Use the instance switcher (in the left sidebar above Settings on desktop browsers, or in the top bar on mobile) to switch anytime between:

  • Any of your connected local machines (Remote Control), and
  • Remote Conversations (Remote Agents).

3. Remote Control: Setup & "Hello World"

To save you from copy-pasting starter files by hand, all files for every step of this codelab live in a single companion GitHub repository: working-remotely-antigravity-codelab.

1. Fork & Clone the Codelab Repository

mkdir -p "$HOME/agy2-projects"
cd "$HOME/agy2-projects"
git clone https://github.com/<your-github-username>/working-remotely-antigravity-codelab.git

2. Open the Repo as a Project & Enable Remote Control

  • Step 1: Launch the Antigravity Desktop App on your laptop.
  • Step 2: In the left sidebar under Projects, click + > New Project, and select $HOME/agy2-projects/working-remotely-antigravity-codelab as your project folder.
  • Step 3: Open Settings in the bottom-left corner (Cmd + , on macOS or Ctrl + , on Windows/Linux).
  • Step 4: Go to Application and toggle Enable Remote Control to On.
  • Step 5 (Optional): Enter a friendly Device Name such as my-laptop so it is easy to spot in the browser.

3. Connect from Another Browser or Your Phone

Inside 01-hello-remote-control/, sample_gcp_config.json is intentionally missing the bigquery_dataset key, and env_check.py prints your laptop's hostname while validating all 6 required keys.

  • Step 1: Open antigravity.google.com on your phone, tablet, or a separate Chrome browser window and sign in with the same Google Account.
  • Step 2: Open the instance switcher (left sidebar above Settings on desktop, or top bar on mobile) and select your laptop (my-laptop).
  • Step 3: Select the working-remotely-antigravity-codelab project and send this prompt:
Run `python3 01-hello-remote-control/env_check.py`.
Then add `"bigquery_dataset": "acme_analytics_dev"` to `01-hello-remote-control/sample_gcp_config.json` and re-run `env_check.py` to confirm it reports `[OK]`.

4. Observe the Live Sync

Watch both screens at once: the prompt you typed in the browser streams live into your Antigravity Desktop App, updates sample_gcp_config.json on your local disk, and runs env_check.py on your own machine. You should see output similar to this (showing your own laptop's hostname and OS):

=== Antigravity Remote Control: Local Workstation Check ===
Host Machine : my-laptop.local (Darwin 25.6.0)
Working Dir  : /Users/<you>/agy2-projects/working-remotely-antigravity-codelab

Loaded Google Cloud Dev Config:
  - project_id: acme-commerce-dev
  - region: us-central1
  - cloud_run_service: checkout-api-dev
  - firestore_database: (default)
  - cloud_storage_bucket: gs://acme-checkout-receipts-dev
  - bigquery_dataset: acme_analytics_dev

[OK] All required Google Cloud config keys are present!

4. Remote Control: Business User Use Case

You don't have to be a programmer to get huge value from Remote Control. Imagine you are hosting a customer workshop across town and realize the exported attendee registration spreadsheet and your VIP speaker notes are still sitting in a local folder on your laptop back at your desk.

At the venue check-in desk, the event coordinator and caterer ask you on the spot:

  • "What is our final confirmed headcount after removing duplicates and cancellations?"
  • "What are the exact dietary counts for lunch?"
  • "Which VIPs and speakers need special lanyards, front-row seats, or stage mics?"

1. Inspect the Local Event Files

In your cloned repo under 02-event-checkin/, you already have both local files ready:

  • 02-event-checkin/workshop_registrations.csv: 9 sign-up rows (notice that Priya Sharma registered twice under REG-101 and REG-103, and Alex Rivera's status is Cancelled).
  • 02-event-checkin/vip_speaker_notes.md: Special lanyard, front-row seating, adapter, meal-box, and stage-mic notes for your VIPs and speakers.

2. Ask in Plain English from Your Phone or Browser

Start a new conversation in your working-remotely-antigravity-codelab project at antigravity.google.com (with your laptop selected in the instance switcher) and send this plain-English prompt—zero code or scripts required:

1. Read `02-event-checkin/workshop_registrations.csv`, remove any duplicate email sign-ups, and ignore Cancelled registrations.
2. Give me the final headcount and dietary counts for the caterer.
3. Cross-check the confirmed VIPs and Speakers against `02-event-checkin/vip_speaker_notes.md` and save a clean check-in sheet to `02-event-checkin/venue_checkin_brief.md` so I can read it on my phone at the registration desk.

3. Verify the Output

Antigravity reads both local files on your laptop, writes 02-event-checkin/venue_checkin_brief.md, and replies right in your browser with the exact numbers:

  • Final Confirmed Headcount: 7 attendees
  • Duplicates Removed (1): Priya Sharma (REG-103)
  • Cancelled Excluded (1): Alex Rivera (REG-106)

Dietary Preference

Confirmed Count

Gluten-Free

1

Standard

3

Vegan

1

Vegetarian

2

Check that 02-event-checkin/venue_checkin_brief.md was also saved cleanly on your laptop with the full VIP & Speaker desk checklist.

5. Remote Control: Developer Use Case

Now let's try a classic developer scenario for Remote Control: you have uncommitted code sitting on your laptop with failing unit tests, and you need to step away from your desk before pushing to GitHub. Because your changes haven't been pushed yet, a cloud sandbox wouldn't have your code—but Remote Control can fix it and run your local test suite right on your machine.

1. Review the Local Invoice API Files

In your cloned repo under 03-invoice-api/, we have two files ready:

  • 03-invoice-api/invoice_api.py: Calculates invoice subtotal, sales tax, and a Cloud Storage archive URI (gs://<bucket>/invoices/<invoice_id>.pdf). It intentionally has 2 bugs: tax-exempt items (tax_exempt=True) are accidentally being taxed, and build_invoice_gcs_uri does not reject empty or path-traversal IDs (../secret).
  • 03-invoice-api/test_invoice_api.py: 3 unit tests (2 currently failing).

2. Send One Natural Prompt from Your Phone or Browser

Notice that you do not need to run the failing tests manually first or spoon-feed line-by-line instructions. From antigravity.google.com, send a single prompt:

Fix the issues in `03-invoice-api/invoice_api.py`, run the unit tests in `03-invoice-api/test_invoice_api.py`, and share the test output as proof that everything is passing.

3. Verify the Fix & Proof

Antigravity runs the test suite on your laptop, diagnoses both failures (test_tax_exempt_items_not_taxed and test_gcs_invoice_uri_rejects_invalid_id), patches 03-invoice-api/invoice_api.py, and returns the passing test output as proof:

test_gcs_invoice_uri_rejects_invalid_id (test_invoice_api.TestLocalInvoiceApi.test_gcs_invoice_uri_rejects_invalid_id) ... ok
test_standard_taxable_items (test_invoice_api.TestLocalInvoiceApi.test_standard_taxable_items) ... ok
test_tax_exempt_items_not_taxed (test_invoice_api.TestLocalInvoiceApi.test_tax_exempt_items_not_taxed) ... ok

----------------------------------------------------------------------
Ran 3 tests in 0.000s

OK

6. Remote Agents: Setup & "Hello World"

Now let's switch gears from your own laptop to Google's cloud!

What if you are traveling, your laptop is turned off or packed away, and you still want an agent to work? With Remote Agents, Antigravity runs inside an isolated, Google-managed cloud sandbox. Because it does not touch your laptop's hard drive, you give it context via Remote Project Resources and Marketplace Plugins:

  • Google Drive Files & Folders: Google Docs, Sheets, Slides, PDFs, or folders read on demand.
  • GitHub Repositories: Automatically cloned into your isolated cloud workspace.
  • Uploaded Files (/home/antigravity/upload): Upload CSVs, logs, PDFs, code, or .zip archives from your phone or computer (up to 8 MiB per file, 50 files / 100 MiB per project, and 2 GiB across your account). Uploaded files persist across conversations in the project at /home/antigravity/upload.
  • Marketplace Plugins: Connect OAuth integrations under Customizations > Marketplace (Google Drive, Docs, Sheets, Slides, Calendar, GitHub, and cloud deployment tools).

1. Create Your First Remote Project & Upload sample_gcp_config.json

You can create a Remote Project either in your browser or right inside the Antigravity Desktop App:

  • On Web or Mobile ( antigravity.google.com): Open the instance switcher and switch from your laptop back to Remote Conversations. Click Create Project next to Projects in the left sidebar, click Add Resource > Uploaded files, upload 01-hello-remote-control/sample_gcp_config.json from your cloned repository, click Next, enter hello-remote-agent under Set Project Name, and click Create.
  • From the Antigravity Desktop App: Click + next to Projects in the left sidebar, choose New Remote Project, click Add Resource > Uploaded files, select 01-hello-remote-control/sample_gcp_config.json, click Next, name it hello-remote-agent, and click Create.

2. Run the Remote Agent "Hello World" Prompt

Open your hello-remote-agent Remote Project and send this prompt—no Python script needed:

Print the hostname and OS of the machine you are running on, list the files inside `/home/antigravity/upload`, and check whether `/home/antigravity/upload/sample_gcp_config.json` contains `project_id`, `region`, `cloud_run_service`, `firestore_database`, `cloud_storage_bucket`, and `bigquery_dataset`.

3. Compare Against Your Previous Output

Even if you close the browser tab right after hitting Enter, the Remote Agent finishes in Google's cloud and returns something like:

Host Machine   : remote-agent-sandbox (Linux 6.6.x x86_64)
Working Dir    : /home/antigravity/workspace
Upload Staging : /home/antigravity/upload -> ['sample_gcp_config.json']

Notice the three big differences compared to Remote Control:

  • Cloud Host Machine: Instead of your laptop's hostname and OS, the agent ran inside an isolated Linux container in Google's cloud.
  • Staged Uploads (/home/antigravity/upload): The agent only sees the file you attached—not the rest of your laptop's filesystem.
  • Zero Local Machine Dependency: Your laptop does not need to stay awake or connected.

7. Remote Agents: Drive & CSV Review

In this step, you will combine two different cloud resource types in a single Remote Project—a Google Drive document and an Uploaded CSV—without writing a single line of code.

The Scenario: Tomorrow morning is the scope lock meeting for your team's new Webhook Delivery Service (v1). The draft Product Requirements Document (webhook-service-gcp-prd.md) lives in Google Drive, and your customer success team sent you a Q3 customer feedback CSV (bigquery-customer-feedback-q3.csv) with each customer's tier and Annual Recurring Revenue (arr_usd). You want to know whether your v1 scope actually addresses your highest-ARR Enterprise customers—or accidentally pushes their top requests to v2.

1. Upload the PRD File to Your Google Drive

Both starter files are already in your cloned repo under 04-prd-review/:

  • Step 1: Upload 04-prd-review/webhook-service-gcp-prd.md to your Google Drive (you can upload the .md file directly to drive.google.com, or open it as a Google Doc).
  • Step 2: Keep 04-prd-review/bigquery-customer-feedback-q3.csv ready on your machine to attach as a local upload in the next step.

2. Create the Remote Project & Attach Both Resources

  • Step 1: At antigravity.google.com (with Remote Conversations selected), click Create Project next to Projects (or in the Antigravity Desktop App click + > New Remote Project).
  • Step 2 — Attach from Google Drive: Click Add Resource > Google Drive (authorize Google Drive if prompted), and use the Google Drive Picker to select webhook-service-gcp-prd.md (or your Google Doc).
  • Step 3 — Attach the Local CSV: Click Add Resource > Uploaded files and upload 04-prd-review/bigquery-customer-feedback-q3.csv (staged at /home/antigravity/upload/bigquery-customer-feedback-q3.csv).
  • Step 4: Click Next, enter webhook-prd-review in Set Project Name, and click Create. (Tip: You can add or remove resources anytime later inside Project Settings > Resources > Add Resource.)

3. Ask in Plain English

Open your webhook-prd-review project and send:

1. Read our draft product spec from Google Drive (`webhook-service-gcp-prd.md`) and the customer feedback CSV (`/home/antigravity/upload/bigquery-customer-feedback-q3.csv`).
2. Compare the customer requests against our "Proposed Scope (v1)" and "Out of Scope for v1 (Deferred to v2)" sections.
3. Give me a summary table ranked by total customer ARR showing which requests are covered in v1 vs. deferred to v2, and highlight any Enterprise risks I should flag in tomorrow's review.

4. Verify the Executive Readout

In seconds, the Remote Agent synthesizes both cloud resources and reveals a major scope blind spot:

  • Total Customer ARR in Q3 Feedback: $1,476,000 (10 tickets)
  • Covered by Current v1 Scope: $60,000 (4.1% of total ARR — 0 Enterprise tickets)
  • Deferred to v2 ("Out of Scope"): $1,416,000 (95.9% of total ARR — all 6 Enterprise tickets!)

Feature Category

PRD Status

Tickets

Enterprise

Total ARR

% ARR

Cloud Storage DLQ & Replay API

Deferred to v2

3

2

$547,000

37.1%

Dual-Key Rotation in Firestore

Deferred to v2

2

2

$470,000

31.8%

7-Day Retention Window

Deferred to v2

2

2

$335,000

22.7%

Per-Tenant Concurrency Cap

Deferred to v2

1

0

$64,000

4.3%

Exponential Retry Backoff

In Scope (v1)

1

0

$48,000

3.3%

BigQuery Delivery Logs API

In Scope (v1)

1

0

$12,000

0.8%

Notice how cleanly you got a data-backed executive brief straight in your browser—with zero local code and zero setup on your laptop.

8. Remote Agents: Developer Use Case

Finally, let's test the third Remote Project resource type—GitHub Repositories—using the exact same repository you forked earlier in the codelab (working-remotely-antigravity-codelab).

Inside 05-order-discounts/, order_discounts.py has 3 intentional checkout bugs (and 6 unit tests in test_order_discounts.py, 4 of which currently fail or error):

  • Promo codes are rejected on their expiration date (today >= promo.expires_on) instead of remaining valid through the end of that day.
  • Fixed gift vouchers on smaller orders drive the final payable total negative (-12.50 instead of clamping at 0.00).
  • Percentage discounts return unrounded floats (16.9915 instead of 16.99).

1. Create a Remote Project & Attach Your Forked GitHub Repository

You can connect your fork of working-remotely-antigravity-codelab in either of two ways:

  • Option A — Via Create Project: Click Create Project (on antigravity.google.com) or + > New Remote Project (in the Desktop App), click Add Resource > GitHub, click Connect GitHub to authorize with OAuth if prompted, select your forked working-remotely-antigravity-codelab repository, click Next, name the project checkout-discounts-bugfix, and click Create.
  • Option B — Quick Message-Box Shortcut: Click the project selector dropdown directly inside the message box, choose Remote > GitHub Repositories, authorize GitHub if prompted, and pick your forked working-remotely-antigravity-codelab repository. Antigravity automatically creates (or opens) a Remote Project for that repository and clones it into the cloud workspace.

2. Send One Natural Prompt (Fix, Run Tests & Share Proof)

Once your Remote Project opens, send a single prompt:

Fix the issues in `05-order-discounts/order_discounts.py`, run the unit tests in `05-order-discounts/test_order_discounts.py`, and share the test output as proof that everything is passing.

3. Verify the Fix & Passing Test Proof

Inside Google's isolated container, the Remote Agent runs python3 -m unittest, identifies all 4 initial failures/errors, updates 05-order-discounts/order_discounts.py (today > promo.expires_on and round(max(0.0, discounted), 2)), and shares the verified test output as proof:

test_combined_percentage_and_fixed_discount (test_order_discounts.TestOrderDiscounts.test_combined_percentage_and_fixed_discount) ... ok
test_fixed_voucher_never_goes_negative (test_order_discounts.TestOrderDiscounts.test_fixed_voucher_never_goes_negative) ... ok
test_no_promo_code (test_order_discounts.TestOrderDiscounts.test_no_promo_code) ... ok
test_percentage_discount_rounding (test_order_discounts.TestOrderDiscounts.test_percentage_discount_rounding) ... ok
test_promo_rejected_day_after_expiration (test_order_discounts.TestOrderDiscounts.test_promo_rejected_day_after_expiration) ... ok
test_promo_valid_on_expiration_date (test_order_discounts.TestOrderDiscounts.test_promo_valid_on_expiration_date) ... ok

----------------------------------------------------------------------
Ran 6 tests in 0.000s

OK

9. Congratulations

Congratulations! You have now experienced both ways of working remotely with Google Antigravity at antigravity.google.com:

  • Learned the core mental model separating Remote Control (running on your own machine) from Remote Agents (running in Google's isolated cloud sandbox).
  • Enabled Remote Control in the Antigravity Desktop App and used it from another browser/phone to inspect local configs, generate a zero-code event check-in brief, and fix uncommitted local Python code with unit test proof.
  • Created Remote Projects in Google's cloud and exercised all three resource types: Uploaded files (/home/antigravity/upload), Google Drive files, and GitHub repositories.

Reference docs