Remote Agents
Section titled “Remote Agents”Antigravity Remote Agents run your agent sessions and tools in an isolated, Google-managed cloud environment rather than on your local machine.
Because execution happens in the cloud, Remote Agents keep working on long-running tasks even when you close your browser, put your laptop to sleep, or switch between desktop and mobile devices.
| Goal | Section |
|---|---|
| Start a remote session | Getting started — launch from the web, Antigravity App, or Antigravity CLI. |
| Connect repos and files | Projects and resources — attach GitHub repositories, Google Drive files, and local uploads. |
| Automate setup and store secrets | Environment and credentials — configure setup scripts, /env-setup, Network secrets, and Environment variables. |
| Load rules, skills, and plugins | Rules and skills and Plugins — use AGENTS.md, repo or uploaded skills, and Marketplace integrations. |
| Review code, run terminal commands, preview, and browse | Source control, terminal, previews, and browser — commit Git changes, open an interactive terminal, preview web apps, and run browser automation. |
| Schedule tasks and run agent swarms | Automations and Swarm — run recurring scheduled automations and parallel /swarm teams in the background. |
Remote Agents vs. Remote Control
Section titled “Remote Agents vs. Remote Control”Antigravity provides multiple ways to work with agents remotely depending on where your code and tools live:
| Feature | Remote Agents | Remote Control |
|---|---|---|
| Execution environment | Isolated, Google-managed cloud environment | Your own desktop workstation or server |
| Host machine requirement | Runs independently; no local machine needs to stay on | Requires your host machine to remain powered on and online |
| Workspace and files | Attached Resources (GitHub repositories, Google Drive files, and uploaded files) | Local filesystem folders, local toolchains, and Git worktrees |
| Best for | Repository tasks, mobile workflows, and background execution while away | Tasks that require local hardware, local dev servers, or uncommitted local checkouts |
To connect the Antigravity App directly to your own remote Linux machine over OpenSSH, see Connect over SSH.
Getting started
Section titled “Getting started”Start and continue Remote Agents conversations from any desktop or mobile browser at antigravity.google.com, the Antigravity App, or the Antigravity CLI.
Start on the web
Section titled “Start on the web”Use Remote Agents without installing a local app:
- Open antigravity.google.com and sign in with a personal Google Account on an eligible plan (Google AI Pro or Google AI Ultra).
- Enter a prompt in the message box to start a quick remote conversation without a project, or click the new-project button next to Projects in the left sidebar to create a project with GitHub repositories, Google Drive files, or uploaded files.
If you also use Remote Control to connect to local machines, use the instance switcher on antigravity.google.com (below Settings in the desktop sidebar, or in the top bar on mobile) to switch between Remote Conversations and your connected host machines.
Start in the App or CLI
Section titled “Start in the App or CLI”Antigravity App
Section titled “Antigravity App”Switch the runtime selector in the message box from This Computer to Remote to run a conversation in a cloud environment:

To create a remote project with attached repositories or files:
- Open the project selector in the message box and click New Project (or click the new-project button next to Projects in the left sidebar), then select Remote.
- (Optional) Click + Add Resource to attach GitHub repositories, Google Drive files, or uploaded files, then click Next (or Skip to add resources later).
- Enter a name in Set Project Name if prompted and click Create.
- Select your project and send a prompt in the message box.

Quick GitHub start: Open the project selector in the message box, select Remote > GitHub Repositories (connecting GitHub with OAuth if prompted), and pick a repository to select or auto-create a project for it. To copy a GitHub-backed project setup between your computer and Remote Agents, choose Clone from This Computer (under Remote) or Clone from Remote (under This Computer).
Antigravity CLI
Section titled “Antigravity CLI”-
Make sure you’re running Antigravity CLI
1.4.12or later (agy updateinstalls the latest version). -
Sign in with a personal Google Account on an eligible plan (check your signed-in account and plan at startup or with
/help). -
Launch the CLI with
--remote-agent:agy --remote-agent -
Enter a prompt to start a remote conversation. The status line shows
remotealong with the active project name, and you can continue the same conversation later from the CLI, the Antigravity App, or the web.
The first time you run --remote-agent on a machine, the CLI creates a default
project named CLI Project (<hostname>) and reuses it on that machine.
| Task | Command |
|---|---|
| Open a specific project (by name or ID) | agy --remote-agent --project="My project" |
| Create a project named after your current folder | agy --remote-agent --new-project |
| Switch projects mid-session | Run /projects, select a project, press Enter, and choose Switch to project |
| Continue your most recent remote conversation | agy --remote-agent -c |
| Resume a remote conversation by ID | agy --remote-agent --conversation=<conversation_id> (or run /resume in session) |
Projects and resources
Section titled “Projects and resources”While local projects mount folders from your workstation, projects in Remote Agents attach external context under Resources:
- GitHub: Authorize GitHub with OAuth and select one or more repositories to attach. Conversations clone and mount your connected repositories into the cloud workspace automatically. All private repositories within the same project must belong to the same GitHub user or organization owner; to work with private repositories from multiple owners, create a separate project for each owner.
- Google Drive: Attach files or folders from Google Drive (such as Google Docs, Sheets, Slides, PDFs, or folders). The agent reads attached Drive files on demand during conversations.
- Uploaded files: Upload local files from your device (up to 8 MiB per file,
50 files and 100 MiB per project, and 2 GiB total across your account),
including source code, text and data files, images, PDFs, and
.ziparchives. Uploaded files persist across conversations in the project and are available to the agent at/home/antigravity/upload.
Antigravity App
Section titled “Antigravity App”Attach or remove resources when creating a project in the Antigravity App or on the web, or at any time under Project Settings > Resources by clicking Add Resource.
Antigravity CLI
Section titled “Antigravity CLI”To create a project with resources from the CLI:
- Run
/projectsand select + New project… at the top of the list. - Enter a project name, then press Right Arrow to attach GitHub repositories, Google Drive links, or Upload Files from your machine.
- Press Ctrl + S to create the project.

To update resources on an existing project, run /projects, select the project,
press Enter, and choose Edit.
Environment and credentials
Section titled “Environment and credentials”Setup scripts and /env-setup
Section titled “Setup scripts and /env-setup”Each new remote conversation starts in a fresh environment. To install your project’s packages, runtimes, and build tools automatically in every new conversation, configure a setup script in one of two ways:
- Repository setup (
.agents/environment.json): Recommended for GitHub repositories shared with collaborators. Define aninstallcommand ({"install": "<command>"})—and an optionalterminalsarray ([{"name": "<tab>", "command": "<command>"}]) for dev servers or watchers that should start automatically in background terminals after install—in<repo>/.agents/environment.json. - Project setup script: A bash script saved to your project under
Project Settings > Environment > Setup script. It runs at
/home/antigravity/env-setup.shafter any repository.agents/environment.jsoncommands.
Run /env-setup in any remote chat to have the agent inspect your attached
repositories, uploaded files, or Google Drive files, verify the install
commands, and save either .agents/environment.json (opening a pull request) or
your project setup script interactively.
Network secrets and environment variables
Section titled “Network secrets and environment variables”Configure credentials globally under Settings > Environment (applied across all projects) or per project under Project Settings > Environment (which inherits global entries and lets you override them for a specific project):

- Network secrets (+ Add secret): Never exposed inside your remote environment. The proxy injects the secret only on outbound HTTP requests to the allowed hosts you specify (via Bearer token, custom header, Basic auth, cookie, or query parameter). Use network secrets for API keys and tokens whenever possible.
- Environment variables (+ Add variable): Available directly inside your
remote environment as shell environment variables (
KEY=VALUE, with.envpaste support). Code and commands running in the environment can read these values.
Rules and skills
Section titled “Rules and skills”Remote Agents automatically load customization files inside the remote environment:
- Rules:
AGENTS.mdandGEMINI.mdfiles in attached repositories and in your persistent~/.geminidirectory load automatically into every remote conversation. - Repository skills: Skills committed under
.agents/skillsin attached repositories are available in remote conversations. - Personal skills: Upload your own skill folders (each containing a
SKILL.mdfile, up to 2 MiB and 100 files) from Customizations > Skills using the + (Add Skill) button. Uploaded personal skills are stored with your account and available across your remote conversations.
Source control, terminal, previews, and browser
Section titled “Source control, terminal, previews, and browser”In the Antigravity App and on desktop browsers at antigravity.google.com, use the Overview panel on the right (and the side panel) to open Review, Files, Terminal, and Plugins, preview apps, and watch the remote browser.
Git source control
Section titled “Git source control”In projects connected to GitHub repositories, inspect Git status and diffs, stage or unstage files, discard changes, commit, and push directly from the Review Changes pane (Review in the Overview panel) in the Antigravity App and on antigravity.google.com.
Interactive terminal
Section titled “Interactive terminal”Once a remote conversation’s environment is running, click Terminal in the
Overview panel on the right (or click + > Terminal once the side
panel is open) to launch an interactive shell inside the cloud environment. You
can run commands, inspect files, or interact with background dev servers started
by .agents/environment.json terminals directly alongside the agent.
Previews
Section titled “Previews”- Live app previews (desktop web): When an agent starts a web server on a localhost port inside the cloud environment, preview the running web app directly in a desktop browser at antigravity.google.com.
- Interactive HTML previews (App and web): Remote Agents render interactive HTML artifacts and visual previews directly in the conversation and artifact pane.
Browser use
Section titled “Browser use”Remote Agents include a built-in browser agent that runs inside the cloud environment so the agent can open web pages, interact with running apps, inspect console and network activity, and verify visual changes as part of a task. On desktop browsers at antigravity.google.com, you can watch the remote browser live as the agent navigates and tests pages. See Browser use for general browser agent capabilities.
(Source control UI, interactive terminal tabs, previews, and live browser view aren’t displayed in the Antigravity CLI.)
Plugins
Section titled “Plugins”While project Resources attach specific repositories and files to your workspace, plugins let the agent interact directly with external services—such as creating GitHub pull requests, searching Drive, or connecting to partner tools.
Antigravity App
Section titled “Antigravity App”In the Antigravity App or on antigravity.google.com:
- Open Customizations in the left sidebar and select the Marketplace tab. Added plugins appear under Installed.
- Browse supported Marketplace plugins—including GitHub, Google Workspace apps (such as Drive, Docs, and Gmail), and partner integrations. For an overview of available plugins, see the Marketplace guide.
- Click
+(Add) next to a plugin. OAuth plugins open sign-in automatically; skills, keyless, and API-key plugins install directly.
Antigravity CLI
Section titled “Antigravity CLI”In a --remote-agent session, run /plugin to add supported plugins from the
Discover tab and manage installed plugins in the Installed tab.
Newly added plugins take effect in new conversations. Your OAuth credentials are encrypted at rest and supplied securely when the agent makes requests to authorized services.
Automations and Swarm
Section titled “Automations and Swarm”- Scheduled Automations: Run recurring prompts on a schedule in a remote
environment—even when your local machine is asleep or offline. Manage
schedules from Automations, or run
/automationin chat to have the agent configure a schedule and prompt for you. - Swarm (
/swarm): Run/swarmin a remote conversation to split a task across a coordinated team of parallel agents on a shared message board inside your cloud environment.
Permissions and settings
Section titled “Permissions and settings”Remote Agents use their own permission settings separately from your local machine. Unless you change it, the default permission preset for Remote Agents is Always proceed (Turbo), which runs commands inside the isolated cloud environment without asking for approval.
Available permission presets:
- Default: Asks for confirmation before sensitive operations.
- Request review: Asks before every command.
- Always proceed (Turbo): Runs all commands without asking.
Antigravity App
Section titled “Antigravity App”- Global remote permissions: Open Settings > General > Permissions to configure Remote permissions separately from This computer (on antigravity.google.com, open Settings > Permissions).
- Per-conversation presets: Override the permission preset for an individual remote conversation from the conversation composer without changing your global default.

Antigravity CLI
Section titled “Antigravity CLI”Remote agent CLI sessions use your local CLI settings
from settings.json (such as color scheme, verbosity, and editor mode), except
for permissions and execution mode, which come from your remote settings.
In a --remote-agent session, /config splits settings into two tabs (press
Tab to switch):
- TUI: Your local CLI interface settings (hides Agent Mode, Tool Permission, Artifact Review, Sandbox Mode, and Non-Workspace Access, which are managed by your remote settings).
- Remote Agent:
- Agent Mode: Choose
default,accept-edits, orplan(available in CLI1.5.14+; you can also switch with Shift + Tab or--mode). - Permission Preset:
default,request review, oralways-proceed (turbo). - Plan Review Policy: Controls whether the agent asks you to review
documents such as implementation plans (
always askoralways proceed).
- Agent Mode: Choose

Run /permissions in a --remote-agent session to manage your remote allow,
deny, and ask rules.
Current limitations
Section titled “Current limitations”- Auto permission preset: The Auto permission preset (and
autoexecution mode in the CLI) isn’t available on Remote Agents yet.
Antigravity CLI
Section titled “Antigravity CLI”The following CLI features aren’t available in --remote-agent sessions yet:
- Print mode (
--print) and--conversation-path GEMINI_API_KEYauthentication (Google Account sign-in is required)- Code search (
/codesearch) /diff,/fork,/rewind, and/btw- Voice dictation (
/voice dictate,/record) and voice mode (/voice live) - Running local shell commands with
! - Sending messages to subagents with
@(referencing files in the cloud environment with@is supported) - MCP servers, plugins, and agent skills installed only on your local machine
(repository
AGENTS.md,GEMINI.md,.agents/skills, and uploaded personal skills are supported)
If you run an unsupported slash command, the CLI reports that it isn’t available in remote agent sessions.
Troubleshooting
Section titled “Troubleshooting”- Remote Agents option missing or conversations won’t start: Verify you’re
signed in with a personal Google Account on an eligible plan (Google AI Pro or
Google AI Ultra). In the CLI, run
/helpto check your signed-in account. If you signed in with an older version, sign out (/logoutin the CLI) and sign back in to refresh your account permissions (CLI1.5.4+warns automatically when a refresh is needed). Project Not Foundwarning (CLI): No project matches the name or ID passed to--project, so the CLI falls back to this machine’s default CLI project. Run/projectsto list your projects.is a local conversationwarning (CLI): The ID passed to--conversationbelongs to a local conversation. Launchagywithout--remote-agentto resume it.@suggests sending a message first (CLI): A remote environment starts with the first message. After you send one message,@suggests files from the cloud environment.Not available in remote agent sessions.(CLI): The command isn’t supported in--remote-agentsessions yet. See Current limitations.
Next steps
Section titled “Next steps”Explore related documentation and guides:
- Connect over SSH: Open a remote Linux machine directly in an Antigravity App window over OpenSSH.
- Remote Control: Connect to and control local Antigravity App and CLI sessions running on your own machines.
- Projects: Learn how projects organize workspaces, scoped settings, and conversations.
- Plugins: Configure plugins and external integrations across Antigravity surfaces.
- Permissions and security: Configure permission presets and fine-grained tool access rules.