Skip to content

Menu

Antigravity

Should you turn on Remote Control, SSH, or remote agents: risks first

Before enabling Antigravity Remote Control, SSH, or Remote Agents, decide where the agent will run, who can drive it, what happens on disconnect or sleep, and how to switch it off.

min read
12
Level
Intermediate
Last verified

“Remote” means three different things in Antigravity: driving your own machine from somewhere else, connecting the App to a remote Linux machine, or letting a Google-managed environment run the agent for you. What they share is this: the agent can read and write files and run commands while you are not sitting in front of it. This page covers risks and revocation first, then how to decide. After reading it, you should be able to say where the agent runs under each method, go through the risks one by one before enabling anything, and know how to turn it off.

This site is an independent project and is not affiliated with Google. This page did not enable or test any remote feature; it organizes facts checked against the official pages. Where the official pages say nothing, this page says “not documented on the official page” and does not guess. Plans, versions, and availability are changing, so defer to the official pages. This page gives no quota numbers.

The official SSH page has a comparison table. The key question is where the agent runs:

Method Where the agent runs What you operate it with Prerequisite
Remote Control Your own desktop or server A web browser (the dashboard at antigravity.google.com) Install and sign in to the App or CLI on that machine
SSH Your remote Linux machine The Antigravity App No manual host setup (installed automatically over OpenSSH)
Remote Agents A Google-managed isolated environment App, CLI, or web A personal Google Account on Pro or Ultra; rolling out gradually

They answer different questions:

  • Remote Control: I am away from my desk and want to check progress, answer the agent’s questions, or start a new task, while the code stays on this machine. The official page says it lets you connect to and drive desktop App sessions and CLI instances from any web browser: view conversations, start new tasks, review implementation plans, and inspect artifacts.
  • SSH: My code and toolchain are on a remote Linux machine and I want to use them from an App window. Projects, agents, Git worktrees, terminals, and customizations run on the host; tools, shell commands, and the terminal sandbox also run there.
  • Remote Agents: I don’t want any of my own machines to stay on. The agent runs in a Google-managed environment and sees only the resources you attach to the remote project (GitHub repositories, Google Drive files, uploaded files). It cannot read or change files on your own machine.

Remote Control has two forms in the CLI. Interactive mode uses /remote-control (or the --remote-control flag at launch), and the tunnel lasts only as long as that CLI process. The headless background daemon uses agy remote-control start and registers as an operating system service, reachable whenever the machine is on. The risk surfaces differ a lot, so they are listed separately below.

  • The same Google Account. Remote Control requires you to sign in on the web with the same Google Account the desktop app uses, then pick the machine in the instance switcher. The official page does not describe a way to share a machine with a different account, and this page does not assume one exists.
  • The daemon’s credentials. The headless daemon uses the credentials you signed in to the CLI with, separate from the Antigravity editor’s sign-in on the same machine.
  • SSH credentials land on the host. When you sign in inside an SSH window, your local browser completes OAuth and the credentials are saved on the host. The official page lists personal Google Accounts, Google Workspace, Pay As You Go, and Gemini Enterprise as supported. The host also holds ~/.gemini/ (agent data, including saved conversations and settings).
  • Remote Agents is for personal accounts only. The official page says it is for Google AI Pro and Ultra subscribers who sign in with a personal Google Account. It is not available on the free plan, on Google AI Plus, or for business accounts (Google Workspace or Google Cloud).
  • Whether Remote Control is enabled depends on account or organization policy. The CLI troubleshooting section says that when you see “Remote control is not enabled for your account.”, the account or organization policy has not enabled the feature, and you should contact your workspace administrator or check that your plan supports it. Which plans support it is not documented on the official page. For how accounts differ, see Accounts, plans, and quotas.
  • Surfaces differ. SSH is offered only in the App. Remote Agents work from the App, CLI, and web. The Remote Control web dashboard covers App and CLI sessions. For a comparison of surfaces, see Choosing an Antigravity surface.

Each item below is a fact the official pages support, followed by what it means for you. Treat each as a question to ask before enabling.

  • Whoever holds a signed-in session for the same Google Account can see your machine instance in the dashboard and gets “full access” to its sessions: view conversations, start new tasks, review plans and artifacts. A hijacked account is the same as lending out the agent on that machine. The official page does not document any extra confirmation step, device allowlist, or access log. Those are “not documented on the official page”; do not assume they exist.
  • The headless daemon stays connected whenever the machine is on, so the access window is no longer limited to the time you sit at the terminal. An interactive tunnel exists only inside that CLI process and disconnects automatically when you exit (/exit, Ctrl + C, Ctrl + D) or close the terminal window.
  • SSH access is bounded by your existing OpenSSH setup: Antigravity uses your keys, ssh-agent, and ProxyJump settings, and host-key checks, passwords, 2FA codes, and security-key touches are prompted in the app. It forces ForwardAgent and ForwardX11 to no on the command line.
  • A remote session can do what a local session could do under the permission settings in effect: read and write files, run commands, call MCP tools. The official permissions and sandbox pages cover presets, rules, and the sandbox in detail. This page only reminds you: the preset controls whether the sandbox is on, and the Turbo preset turns it off and runs commands without prompting. Before going remote, check your current preset and your deny rules (for example, do not let the agent write to ~/.ssh).
  • In a CLI interactive Remote Control session, tool confirmations (y / n) and clarifying questions can be answered from either the local terminal or the remote UI. So the person approving permissions may not be at the terminal. One tap on a phone could approve a command; be as careful as you would be at the terminal.
  • You cannot change CLI settings from the remote interface; go back to the CLI to change them. Whether the App’s remote interface can change settings is not documented on the official page.
  • Remote Agents are the most permissive by default. The official page says that unless you change it, the permission preset is always-proceed (turbo), meaning commands run without approval. It also always uses the default execution mode, so plan, accept-edits, and auto are unavailable. Its permissions are managed in the Remote Agent tab of /config and with /permissions, separate from your local rules, so deny rules you configured locally are not automatically applied (the official page says remote agents follow your remote agent settings). Change the preset before first use.
  • Remote Agents isolate the agent from your machine, not from the resources you grant: attached GitHub repositories are cloned into the remote workspace, Drive files are read on demand, and connected plugins use the OAuth credentials you authorized (the official page says they are encrypted at rest and tokens are injected at request time). All private repositories must belong to the same GitHub user or organization. Attach only what the task needs.
  • MCP servers, plugins, and agent skills installed on your machine are not available in remote agent sessions. Whether local rules and hooks take effect in the remote environment is not documented on the official page.
Scenario Behavior the official pages describe
Remote Control, your network drops briefly The web UI reconnects automatically; background agent tasks and shell commands keep running as long as the host stays online
Remote Control, host asleep, suspended, or offline The host is not online, so the machine does not appear on the web (the troubleshooting item requires the host to be online and not asleep or suspended); whether a task keeps running in that time is not documented
CLI interactive Remote Control, terminal exits The tunnel ends and the instance disappears from the dashboard; the local process itself also ends
CLI daemon Linux starts at boot and keeps running after sign-out; macOS starts at login, stops on sign-out, and returns at next login; Windows starts at boot only with an Administrator install, otherwise it resumes after login; it restarts after a crash (up to three attempts on Windows)
SSH, you close the window The window and SSH tunnel disconnect, but the server and agents on the host keep running; reconnect any time
SSH, the client sleeps or loses network Retries automatically; the server and agents on the host keep running
SSH, you choose Stop SSH Server… Disconnects and stops the agents, sidecars, and server on the host
Remote Agents Closing the browser, sleeping your laptop, or switching devices does not stop the task; no local machine has to stay on

The point: apart from “Stop SSH Server…” and exiting the CLI, “I closed the window” does not mean “the agent stopped.” If the agent is partway through a long command you approved and you want it to stop, interrupt it explicitly in the UI or shut things off as described in the next section.

Minimal example: decide whether to turn it on

Section titled “Minimal example: decide whether to turn it on”

A fictional scenario that needs no real credentials. Lin Le maintains the demo-notes project and will be out of the office for two hours on Thursday afternoon. At her desk laptop she asked the agent to run a dependency upgrade that should take about 40 minutes and may need to ask a question. She wants to watch progress on the way.

Going through the risk checklist:

Question Her situation Judgment
Does the agent need local files? Yes: the changes are on an uncommitted local branch Rules out Remote Agents (it cannot read local files)
Will the host stay online? The laptop lid will close as she leaves Remote Control needs the host online and not asleep; this cannot be met
Is there an always-on remote machine? Yes, a Linux dev box that also has the code SSH is a candidate: agents keep running after the window closes
What is the current permission preset? Default, with write_file(/home/user/.ssh) in the deny list Acceptable; confirm the same setup on the remote host
Who can reach the signed-in session? Only her own devices Acceptable

Conclusion: this time she does not turn on Remote Control, because closing the lid takes the laptop offline. If the task can run on the dev box, she uses SSH. If it isn’t urgent, the other option is to let the agent finish and look afterward, with no remote access. That last option is usually the lowest risk: “don’t turn it on” is a legitimate conclusion.

If the conclusion is “turn it on,” write down three things before you start:

  1. The expected access window: just these two hours, or long term;
  2. What it may do: the preset and the deny rules, written out;
  3. How to turn it off: see the next section, and actually do it once the task is over.
Method How to turn it off (official pages)
App Remote Control In Settings, under Application, switch Enable Remote Control to Off
CLI interactive In the prompt box run /remote-control off (keeps the local terminal session), or exit the CLI
CLI daemon agy remote-control stop stops the daemon and unregisters it; agy remote-control status shows its status and instance name
SSH Choose Stop SSH Server… (sidebar, command palette, or Workspace menu), which stops agents on the host. To uninstall, stop the server, then delete ~/.antigravity-hub-server on the host; to also delete saved conversations and settings, delete ~/.gemini
Remote Agents No separate off switch is documented on the official page. To stop using them, don’t launch with --remote-agent and don’t create remote projects in the App or web, and remove repositories and files you no longer need from the remote project’s resources

Account-level revocation, such as invalidating an already signed-in web session or removing a machine from the dashboard, is not documented on the official page. For managing sign-ins on the Google Account itself, follow Google’s own account documentation; this page does not cover it.

Common situations from the official pages:

  • The machine does not appear on the web: check that Enable Remote Control is on at the host, that the host is online and not asleep, and that the web and desktop app use the same Google Account. For the daemon, run agy remote-control status; if it reports a sign-in problem, run agy, sign in, then run agy remote-control start again.
  • Two similar entries: one is the editor and one is the daemon. They are separate on purpose, and you can rename either.
  • A rename did not take effect: the name is read when the daemon starts; run agy remote-control start again.
  • The connection keeps dropping: an old script-installed daemon may still be registered and competing for the connection. Running agy remote-control start again removes the old service automatically.
  • SSH will not connect: the official page gives a fix per error code. For example, for an authentication failure, test ssh <host> on its own in a terminal; HOSTKEY_REJECTED means the known_hosts entry is missing or changed, so confirm the host really changed before clearing the old entry, and do not skip verification just to get connected; FORWARDING_PROHIBITED requires allowing TCP forwarding in sshd_config on the host and any jump host; UNSUPPORTED_HOST means the host must be 64-bit Linux with glibc 2.26 or later, and macOS, Windows, and musl Linux are not supported.
  • Remote Agents will not start: confirm you are signed in with a personal Google Account on an eligible plan (/help in the CLI shows the current account), and that the CLI version meets the official page’s requirement.
Counterexample Problem Rewrite
“Install the daemon before I leave, just in case.” The machine is reachable whenever it is on; the access window has no boundary and no stated purpose Use interactive /remote-control only when there is a task, and run /remote-control off when it ends
“Remote Agents default to turbo, but it’s Google’s environment, so it’s fine.” By default it runs commands without approval, reads the repositories and Drive files you attach, and uses the plugins you authorized Before first use, change the preset to Default or Request Review, attach only what the task needs, and write deny rules in /permissions
“Closing the window stops the agent.” In SSH and Remote Agents the agent keeps running after the window closes To stop it, use Stop SSH Server…, or interrupt explicitly in the session
“Approving on my phone is convenient; it’s my own session.” Approving a command carries the same risk as at the terminal On the phone, answer questions and review results only; approve commands that write, delete, or use the network back at the terminal
“A remote agent can read my uncommitted local changes.” It cannot; it works in its own remote environment Commit to a branch and attach the repository, or use Remote Control or SSH instead

Go through this before and after enabling. Every item needs a result you can check:

  • I can say in one sentence which machine the agent runs on and which account drives my session;
  • I have looked at the current permission preset and deny rules (for Remote Agents, their own settings), not assumed the defaults;
  • I know whether this host will sleep, lose network, or log out during the task;
  • I have written down how to turn it off and confirmed the command or switch exists;
  • When finished I actually turned it off: the App switch is Off, /remote-control off has run or agy remote-control status shows it stopped, and SSH was ended with Stop SSH Server…;
  • I went back to the dashboard and confirmed the instance is gone or offline (the official page says the instance disappears after an interactive tunnel closes);
  • I did not paste real keys, cookies, or customer data into a remote session; examples and demos use placeholders such as YOUR_API_KEY.