Guide

Open a project folder in Antigravity IDE from the terminal

Updated

On this page

Google Antigravity IDE includes a setup step to configure its agy-ide command-line tool alongside extensions, though Google's published documentation does not list shell flags for launching a folder with agy-ide. Inside the standalone Antigravity IDE, open a local folder from the interface and launch a shell via Terminal > New Terminal. To start the same agent directly inside a project directory from your system terminal, install the Antigravity CLI (agy), cd into the folder and run agy. You can then govern agent commands with execution policies and terminal sandboxing, and watch Antigravity desktop app conversations on a keypad or phone with Orbtile.

Orbtile showing live coding agent sessions on a Mac panel, a Logitech MX Creative Keypad and an iPhone
SurfaceHow you open a project folderTerminal experienceDefault terminal sandbox
Antigravity IDEOpen a local folder, repository or solution in the editorTerminal > New Terminal (run agy inside for terminal AI)Disabled by default (macOS and Linux)
Antigravity CLI (agy)cd into the folder and run agy, plus --add-dir or --projectRuns directly in your host terminalOn in auto mode (enableTerminalSandbox defaults to false)
Antigravity AppCreate a Project with one or more local folders or Git checkoutsSide panel + then Terminal (Cmd + J or Ctrl + J)Enabled by default under Default and Auto presets

Configure agy-ide and put the agy CLI in PATH

During standalone Antigravity IDE setup, you sign in with your Google account, pick a theme and configure agent policies for terminal execution, review and JavaScript execution. A subsequent setup screen lets you configure extensions and the agy-ide command-line tool. Google's getting-started codelab names agy-ide on that screen without documenting separate agy-ide flags or folder arguments.

To work with a project folder directly from a system terminal, install the Antigravity CLI (agy) with the automated installer for your operating system.

On macOS, Linux and Googlebook, install to the default ~/.local/bin/agy path:

curl -fsSL https://antigravity.google/cli/install.sh | bash

On Windows PowerShell, install to the default C:\Users\<username>\AppData\Local\agy\bin path:

irm https://antigravity.google/cli/install.ps1 | iex

On Windows Command Prompt (CMD), run the CMD installer for the same C:\Users\<username>\AppData\Local\agy\bin folder:

curl -fsSL https://antigravity.google/cli/install.cmd -o install.cmd && install.cmd && del install.cmd

Confirm the binary with agy --version, or run agy install to configure environment paths and shell settings.

If your shell returns bash: agy: command not found, add the binary directory to PATH. On macOS and Linux, add ~/.local/bin to ~/.bashrc or ~/.zshrc and reload:

export PATH="~/.local/bin:$PATH"
source ~/.zshrc

On Windows PowerShell, add $env:LOCALAPPDATA\agy\bin to your user Path and restart your terminal emulator:

$binDir = "$env:LOCALAPPDATA\agy\bin"
$userPath = [System.Environment]::GetEnvironmentVariable("Path", "User")
if (($userPath -split ";") -notcontains $binDir) {
  [System.Environment]::SetEnvironmentVariable("Path", (($userPath.TrimEnd(";"), $binDir | Where-Object { $_ }) -join ";"), "User")
}

For full CLI options, see Google Antigravity CLI (agy): install, commands and flags and Google Antigravity on Windows: install, CLI and setup.

Open a local folder and launch the integrated terminal in Antigravity IDE

Download the standalone Antigravity IDE from antigravity.google/download, or click Install IDE in the top right corner of the Antigravity App if the IDE is not installed yet. It requires macOS 12 (Monterey) or later, Windows 10 (64-bit) or later, or Linux or Googlebook with glibc >= 2.28 and glibcxx >= 3.4.25.

From the main Antigravity IDE interface, open a local folder, repository or solution, then open an integrated terminal via Terminal > New Terminal. That puts the editor, the integrated terminal and the right-hand Agent side panel together.

  • The integrated terminal is not AI-assisted by default, so run agy inside it once Antigravity CLI is installed.
  • Select error output in the integrated terminal and press Cmd + L to send it to the agent conversation.
  • Press Cmd + L on macOS or Ctrl + L on Windows and Linux from the editor to focus the Agent panel.
  • That editor shortcut also adds your selected lines or current line to the prompt as context.
  • Press Cmd + Shift + L on macOS or Ctrl + Shift + L on Windows and Linux to start a new conversation.
  • Click Toggle Agent in the title bar to show or hide the Agent side panel.
  • Type @ in the agent panel to reference files, directories, terminal context or MCP servers.
  • Hover over a linter problem to select Explain and fix, or pick Send to Agent in the Problems tab.

Above the agent input box, four icons open Changes Overview, Terminal for background processes, Artifacts and Browser. In the editor, Tab accepts smart auto-complete, jump suggestions and import suggestions.

Run Antigravity CLI directly in a project directory

To start an agent session straight from your terminal, change into the project folder and launch agy:

mkdir agy-demo && cd agy-demo
agy

On first launch, the CLI prompts you to choose a colour scheme, select Alt-Screen or Inline rendering and confirm workspace trust before indexing files. Trusted directories are recorded under trustedWorkspaces in ~/.gemini/antigravity-cli/settings.json.

  • Run agy -i "prompt" for an interactive session with a starting prompt, or agy -p "prompt" for one non-interactive reply.
  • Starting agy without project flags runs conversations in default-cli-project.
  • Pass agy --project=<project_id> to attach to an existing project, or agy --new-project to create a project on startup.
  • Add extra directories to the active workspace with repeatable --add-dir flags or the /add-dir <path> slash command.
  • Run /open <path> to open a path in your default system editor.
  • Run /fork <project_id> to copy and continue your conversation in another project.
  • Resume a thread with --conversation=<conv_id> or /resume, which automatically uses that conversation's project.

In ~/.gemini/antigravity-cli/settings.json, the editor key sets the external editor the CLI opens for artifacts and files and for composing prompts with Ctrl + G. Its default "auto" uses $EDITOR and falls back to vim on macOS and Linux, or to edit and then notepad on Windows.

Terminal execution policies and sandboxing in Antigravity IDE

Agent-generated terminal commands in Antigravity IDE follow your security policies in Antigravity Settings at the bottom right corner, Advanced Settings and Antigravity user settings.

Policy or settingStandard Antigravity IDE settingsStrict mode enabled
Terminal command auto executionRequest Review (uses allowlist) or Always Proceed (uses denylist)Set to Request Review; terminal allowlist ignored
Agent non-workspace file accessProject folders and ~/.gemini/antigravity-ide/ by defaultRestricted to workspace; .gitignore rules respected
Terminal sandboxingDisabled by default (macOS and Linux)Turned on automatically with network access denied
Artifact and browser reviewConfigurable during initial setupArtifact review and browser JavaScript set to Request Review

Outside Strict mode, each boundary is configured separately:

  • Request Review prompts before every agent terminal command except those explicitly added to your configurable allowlist.
  • Always Proceed runs agent commands without prompting except those on your denylist, which carries high autonomy and high risk.
  • By default, the agent reaches only your project folders and ~/.gemini/antigravity-ide/, which holds artifacts, knowledge items and configuration files.
  • Terminal sandboxing isolates agent commands at the kernel level using Seatbelt sandbox-exec on macOS and kernel namespaces on Linux.
  • Turn on Enable Terminal Sandbox so agent commands can only write to your designated workspace directory and essential system locations.
  • Toggle Sandbox Allow Network separately to allow or deny network access while keeping file system restrictions active.

Strict mode also governs external Markdown images and automatic Read URL tool execution through your browser URL allowlist and denylist. For Deny, Ask and Allow rules and IDE hooks, see Google Antigravity IDE: editor, agents and permissions.

Antigravity IDE vs Antigravity App and CLI for folders and terminals

All three surfaces access the same underlying agents at different levels. In the Antigravity App, you orchestrate parallel local agents inside a Project that can span one or multiple local folders or Git checkouts, each with isolated project settings and permissions. In the Software Engineering layout, new conversations offer Local mode for active folders or New worktree mode for isolated Git worktrees while leaving non-Git folders in place. On personal Google Accounts (v2.30.0+), the Knowledge Work layout runs directly in project folders without a worktree prompt, or you can start chatting from Home. Standalone conversations outside any project run in a local scratch folder. Remote 64-bit Linux projects open over OpenSSH (v2.33.0+) via + next to Projects and SSH Host….

To open a terminal in the Antigravity App, click + in the side panel and choose Terminal, then press Cmd + J on macOS or Ctrl + J on Windows and Linux to show or hide it.

Terminal sandboxing differs between the IDE and the App or CLI:

  • Antigravity App turns its terminal sandbox on by default under Default and Auto presets, while Request Review and Turbo turn it off.
  • Antigravity App and CLI run sandboxes on Linux kernel namespaces, macOS sandbox-exec and Windows AppContainer.
  • Windows sandboxing requires Windows 11 24H2 or later with the August 2026 update or later.
  • In Antigravity CLI, auto mode turns sandboxing on automatically for personal accounts on supported macOS, Linux and Windows machines.
  • Outside auto mode in the CLI, turn sandboxing on with --sandbox, /config or enableTerminalSandbox in settings.json.

For the full comparison of desktop surfaces and editor extensions, see Antigravity App vs Antigravity IDE: key differences.

Watch Antigravity conversations on a keypad or phone with Orbtile

Logitech's MX Keypad offers customisable LCD keys through Logi Options+ on Windows and macOS. Its native integrations for VS Code and IntelliJ navigate code, launch agents, manage debuggers and toggle terminals. Orbtile works the other way: it drives the nine LCD keys and two page buttons of the Logitech MX Creative Keypad over USB without Logi Options+ to display live status from your coding agents.

Orbtile runs on a computer with macOS 14.0 Sonoma or later on Apple silicon (M1 or later) or Windows 11 (x64), and pairs with Orbtile Mobile on iPhone (App Store, iOS 17+) and Android (Android 8.0+).

  • Orbtile follows conversations in the local Antigravity desktop app and shows each title, state and live typewriter reply text.
  • Antigravity IDE and Antigravity CLI sessions do not appear automatically in Orbtile.
  • Active Antigravity desktop app sessions use an azure blue palette, while waiting conversations move to the front in terracotta.
  • Supported numbered-option questions in the Antigravity desktop app can be answered on the keypad, up to four questions with two to four choices each.
  • Written answers, permission requests, remote sessions and unsupported questions stay on your computer.
  • If an Antigravity update changes how the app talks to Orbtile, live text and keypad answers stop until Orbtile catches up.
  • Custom scripts or tools on your computer can report sessions through Orbtile's local Adapter API.

The same pad also shows Claude Code, Codex, ZCode and Kimi Code sessions, plus remote Claude Code, Codex and ZCode CLI sessions over SSH. Optional Orbtile Away connects Orbtile Mobile over mobile networks for push notifications and supported answers away from your desk. See Antigravity keypad: MX Keypad shortcuts and Orbtile status pad and Show any script or agent on a keypad with the Orbtile Adapter API.

FAQ

Is there a CLI command to open a project folder directly in Google Antigravity IDE?

During initial setup, Antigravity IDE lets you configure extensions and the agy-ide command-line tool, though Google's published docs do not list separate agy-ide folder-launch flags. Open a local folder from the IDE interface, or navigate into your folder in a terminal and run agy with the Antigravity CLI.

How do I open and use the integrated terminal inside Antigravity IDE?

Open a local folder in Antigravity IDE, then select Terminal and New Terminal from the menu. The terminal is not AI-assisted by default, so run agy inside it once Antigravity CLI is installed. You can also select error output in the terminal and press Cmd+L to send it to the agent conversation.

How do I fix agy command not found in my terminal?

Add the installer binary folder to PATH. On macOS and Linux, add ~/.local/bin to ~/.bashrc or ~/.zshrc and reload your profile. On Windows PowerShell, add the AppData Local agy bin folder to your user Path environment variable and restart your terminal emulator.

Does Orbtile show Antigravity IDE or agy CLI terminal sessions?

No. Orbtile automatically follows conversations in the local Antigravity desktop app on a Logitech MX Creative Keypad, an iPhone or an Android phone. Antigravity IDE and Antigravity CLI sessions do not appear automatically, though custom local tools can report sessions through Orbtile's local Adapter API.