newspaperPress Guidelines
Pricing
Blog
Downloaddownload

Explore our next generation products

See overview

Products

antigravityAntigravity 2.0terminalAntigravity CLIcodeAntigravity IDEsdkAntigravity SDK

Built for developers in the agent-first era

See overview
EnterpriseFrontendFullstackScienceMarketer

Everything you need to stay up-to-date and get help

Documentationkeyboard_arrow_rightChangelogSupportPressReleases

Explore our next generation products

See overview

Products

antigravityAntigravity 2.0terminalAntigravity CLIcodeAntigravity IDEsdkAntigravity SDK

Built for developers in the agent-first era

See overview
EnterpriseFrontendFullstackScienceMarketer
Pricing
Blog

Everything you need to stay up-to-date and get help

Documentationkeyboard_arrow_rightChangelogSupportPressReleases
Home
Antigravity 2.0v2.3.1keyboard_arrow_right
Overview
Getting Started
Build with Google
Feature Overview
Models
Projects
Settingskeyboard_arrow_right
Overview
Agent Settings
Artifact Review
Customizationskeyboard_arrow_right
MCP
Skills
Rules
Plugins
Hooks
Sidecars
Agent Capabilitieskeyboard_arrow_right
Permissions
Subagents
Artifactskeyboard_arrow_right
Overview
Plan
Walkthrough
Screenshots
Antigravity CLIv1.1.5keyboard_arrow_right
Overview
Getting Started
Installation & Auth
Tutorial
Using AGY CLI
Features
Gemini Migration
Prompting
Artifactskeyboard_arrow_right
Overview
Conversations
Agent Capabilitieskeyboard_arrow_right
Choose an execution mode
Subagents
Sandbox
Permissions
Projects
Settingskeyboard_arrow_right
Overview
AI Credits
Customizationskeyboard_arrow_right
MCP
Plugins & Skills
Status Line
Window Title
Commandskeyboard_arrow_right
Agents (/agents)
Code Search (/codesearch)
AI Credits (/credits)
Diff (/diff)
Permissions (/permissions)
Resume (/resume)
Status Line (/statusline)
Window Title (/title)
Model Quotas (/usage, /quota)
Best Practices
Troubleshooting
Reference
Antigravity SDKv0.1.7keyboard_arrow_right
Overview + Quick Start
Customizationskeyboard_arrow_right
MCP
Antigravity IDEv2.1.1keyboard_arrow_right
Overview
Getting Started
Featureskeyboard_arrow_right
Tab
Side Panel
Review Changes
Artifactskeyboard_arrow_right
Plan
Walkthrough
Screenshots
Browser Recordings
Browserkeyboard_arrow_right
Overview
Allowlist / Denylist
Separate Chrome Profile
Customizationskeyboard_arrow_right
MCP
Skills
Rules
Workflows
Plugins
Hooks
Settings
Migrationkeyboard_arrow_right
Firebase Studio Migration
Enterprise
Plans
FAQ
  • side_navigation
  • Antigravity CLI
  • >
  • Troubleshooting

Troubleshootinglink

Diagnose and resolve common anomalies with installation PATHs, local self-updating locks, keyring access permissions, and SSH clipboard forwarding.

Quick referencelink

Scan the lookup table below to identify symptoms and access immediate solutions:
Error SymptomPotential CauseTarget Resolution
agy: command not foundBinary directory missing from shell environments.Configure your shell PATH
keyring: secure lock outMissing system service permissions or active lockouts.Authorize keyring permissions
SSH Clipboard paste failuresProtocol streams blocked or missing forward configurations.Enable emulator clipboard forwarding
Advisory lock / update failuresLocked self-updater thread or read-only directory paths.Resolve self-updater locks and failures
---

Configure your shell PATHlink

Symptomlink

Executing agy returns a shell terminal error:
bash
bash: agy: command not found

Causelink

The installation utility downloads the binary to ~/.local/bin (or C:\Users\<Username>\AppData\Local\agy\bin), but your shell's active $PATH environment does not index this directory.

Resolutionlink

Ensure your terminal session loads the binary path.
macOS & Linux:
  1. Open your shell configuration file (~/.bashrc or ~/.zshrc).
  2. Verify or append the following line at the end of the file:
    export PATH="~/.local/bin:$PATH"
  1. Reload your profile configurations:
    source ~/.zshrc
Windows (PowerShell):
  1. Open a PowerShell terminal as an Administrator and execute:
    [System.Environment]::SetEnvironmentVariable("Path", [System.Environment]::GetEnvironmentVariable("Path", "User") + ";C:\Program Files\Google\antigravity-cli", "User")
  1. Restart your terminal emulator for the system registry environment to refresh.
---

Authorize keyring permissionslink

Symptomlink

When launching, the CLI hangs, prints DBUS warnings, or throws keyring access exceptions:
text
Error: failed to retrieve token: secret keyring is locked

Causelink

Antigravity CLI utilizes secure keychain libraries (Apple Keychain, Linux secret-service via dbus, or Windows Credential Manager) to encrypt your session tokens. If the background daemon is locked or headless, the CLI cannot read credentials.

Resolutionlink

macOS:
  1. Open Keychain Access app.
  2. Search for the Antigravity CLI security item.
  3. Right-click, select Get Info, choose the Access Control tab, and verify that agy is on the allowed applications list.
  4. If running inside a headless SSH session on Mac, run the following unlock sequence:
    security unlock-keychain -p "your_keychain_password" login.keychain
Linux:
Ensure your system keyring (such as GNOME Keyring or KWallet) is unlocked and accessible.
If you are running in a headless environment or over SSH, ensure that a D-Bus session is active and that your keyring daemon is running. You can typically initialize a D-Bus session by running:
bash
export $(dbus-launch)
If you still experience access issues, ensure your user account has the necessary permissions to access the keyring service or reach out to support.
---

Enable emulator clipboard forwardinglink

Symptomlink

Pasting screenshots or media files via Ctrl+V within an SSH terminal returns a failure notification:
text
Error: local pasteboard is empty or unreachable over SSH connection

Causelink

Standard SSH streams do not forward graphical clipboards. Graphic uploads require specific terminal multiplexer protocols.

Resolutionlink

Verify that you are utilizing supported terminal emulators and configurations.
  1. Use iTerm2 or Ghostty: These emulators support advanced clip channels.
  2. Configure iTerm2 Forwarding:
  • Open iTerm2 Preferences (Cmd+,).
  • Go to the General tab, select Selection submenu.
  • Check Applications in terminal may access clipboard (enabling OSC 52 write channels).
  1. Bypass Multiplexers: If running inside tmux, ensure your active configuration maps standard paste clips correctly:
    set -s set-clipboard on
---

Resolve self-updater locks and failureslink

Symptomlink

Launching agy hangs, fails to apply upgrades, or returns an advisory lock warning:
text
Warning: another background updater process is already active (update.lock)

Causelink

Antigravity CLI contains a native, statically linked self-updater that runs in the background. It uses a 15-minute Time-To-Live (TTL) debounce marker (last_check.timestamp) and an advisory lock (update.lock) inside ~/.gemini/antigravity-cli/updater/ to prevent concurrent process collisions. If a background updater process hangs, crashes without releasing the lock, or has insufficient user filesystem permissions inside the executable directory, subsequent updates are blocked.

Resolutionlink

  • Release the advisory lock: Purge the background lock file manually:
    rm -f ~/.gemini/antigravity-cli/updater/update.lock
  • Opt-out/Disable auto-updates: Set the AGY_CLI_DISABLE_AUTO_UPDATE environment variable to true inside your shell profile (~/.bashrc or ~/.zshrc):
    export AGY_CLI_DISABLE_AUTO_UPDATE=true
  • Verify directory write permissions: Ensure your user profile owns and has write permissions inside the target installation directory (~/.local/bin/ on Unix, or %LOCALAPPDATA%\agy\bin on Windows).
---

Next stepslink

Access our quick reference sheets or configure advanced permissions:
  • CLI Reference: Dense tables listing all slash commands and visual settings keys.
  • Permissions: Configure fine-grained allowed and denied action policies.
  • Sandbox: Enforce OS-level container isolation boundaries.
  • Plugins & Skills: Create your own custom skills.
Best Practices
CLI Reference
On this Page
TroubleshootingQuick referenceConfigure your shell PATHAuthorize keyring permissionsEnable emulator clipboard forwardingResolve self-updater locks and failuresNext steps