This SDK provides the Google Antigravity CLI (agy) inside a Canonical Workshop environment. It provides global access to the agy binary and persists credential configuration between workshop updates.
A minimal workshop:
# workshop.yaml
name: dev
base: ubuntu@24.04
sdks:
- name: agy
channel: latest/stable
actions:
agy-prompt: agy -p "$@"
agy-sandbox: agy -p "$@" --sandboxThis demonstrates a basic environment setup to execute Antigravity CLI tasks
using agy, including reusable actions for headless prompts. Note that agy
is exclusively a Terminal User Interface (TUI) and CLI tool; it does not have a
standalone desktop graphical application.
-
Google Account
Since the Antigravity CLI requires Google authentication, you must complete the OAuth process when launching the CLI for the first time.
-
Headless environment authentication
Because the workshop container runs in a headless environment (where native desktop keyrings are isolated), you will need to sign in interactively.
-
No specific project layout is needed.
Once the workshop is ready:
workshop shell
agyThis opens an interactive shell session inside the workshop container.
To run a single command (for example, the diagnostic tool):
workshop exec -- agy doctorAll credentials and settings are persisted under /home/workshop/.gemini, which is backed by persistent Workshop storage by default. Subsequent refreshes or updates will not require re-authentication.
For non-interactive runs, pass the prompt with -p:
workshop exec -- agy -p "implement this markdown.md file"If the task may need file edits or commands, configure permission handling up front so the job doesn't hang waiting for an interactive prompt.
Use sandbox mode for automatic progress within stricter execution boundaries:
workshop exec -- agy -p "implement this markdown.md file" --sandboxFor trusted one-off jobs, use the bypass flag:
workshop exec -- agy -p "implement this markdown.md file" --dangerously-skip-permissionsTo change the default permission behavior globally, launch the interactive TUI:
workshop shell
agyThen use /permissions or /config and set the default permission behavior.
To confirm the SDK is working:
workshop exec -- agy --version-
Interface:
mount -
Workshop target:
/home/workshop/.gemini -
Purpose: Preserves credential information and user settings directories between workshop updates. By default, it is backed by persistent Workshop storage, but can optionally be remounted to a host directory. To mount your existing host
~/.geminiconfiguration into the workshop, stop the workshop first, remount, then start it again:workshop stop <workshop-name> workshop remount <workshop-name>/agy:gemini-config ~/.gemini workshop start <workshop-name>
-
Interface:
desktop -
Purpose: Allows the Google Antigravity CLI to access the host's Wayland or X11 display server. This is required for running browser-based tasks or interactive GUI authentication. Connect it using:
workshop connect <workshop-name>/agy:desktop
This SDK doesn't define any slots.
- Upstream project: Google Antigravity
- Workshop forum: Discourse
- Please review our Code of Conduct before participating.
All contributions, including code, documentation updates, and issue reports, are welcome!
- Open issues or pull requests on the official repository.
Copyright 2026 Rajan Patel.
This repository's wrapper code, configuration (sdkcraft.yaml), integration tests, and hooks are licensed under the MIT License.
The Google Antigravity CLI binary itself is proprietary and subject to the Google Terms of Service.