OpenAB supports Google Antigravity CLI via the agy-acp adapter — a thin Rust binary that translates ACP JSON-RPC into agy -p invocations.
The nightly-antigravity image defaults to Google's native agy acp server. Native ACP accepts Discord image prompts, exposes models through /models, and can resume sessions that were created with native ACP. Release and pre-beta images default to agy-acp.
For a first-time sign-in on nightly, run agy acp --login inside the container and follow the prompts. Persist the agent's home directory across container replacements.
If you need to continue an existing agy-acp thread, set this explicitly before upgrading your nightly image:
[agent]
command = "agy-acp"
args = []Existing explicit agent commands take precedence over the image default.
The native server can accept session/load with a legacy adapter session ID and then return trajectory not found when you send a message. Run /reset in the affected Discord thread. This clears the previous agent session and its context. Your next message starts a fresh native ACP session in the same thread. You can also start a new Discord thread.
docker build -f Dockerfile.antigravity -t openab-antigravity .Antigravity CLI uses Google Sign-In (OAuth). Run the image's sign-in command inside the container.
kubectl exec -it deployment/openab-antigravity -- sh -c 'exec $OPENAB_AGENT_AUTH_COMMAND'Complete the device flow in your browser. Persist the agent's home directory to retain your sign-in.
This example deploys only Antigravity and inherits the selected image's agent command. Replace the bot token and channel ID before deploying. Select a release or pre-beta tag to use its adapter default, or add the explicit [agent] override from Keep the adapter on nightly to configToml.
agents:
kiro:
enabled: false
antigravity:
image: ghcr.io/openabdev/openab:nightly-antigravity
discord:
botToken: "YOUR_DISCORD_BOT_TOKEN"
configToml: |
[discord]
bot_token = "${DISCORD_BOT_TOKEN}"
allowed_channels = ["123456789"]The following settings and behavior apply to agy-acp.
openab ──ACP JSON-RPC──► agy-acp ──spawns──► agy --add-dir /home/agent -p "prompt"
agy --add-dir /home/agent --conversation <ID> -p "follow-up"
- First prompt in a session:
agy -p "text", then discovers the conversation ID - Subsequent prompts:
agy --conversation <ID> -p "text"(resumes specific conversation) - Only the delta (new response) is sent back — previous turns are not repeated
- Full
<sender_context>metadata is passed through to agy
| Variable | Description | Default |
|---|---|---|
AGY_EXTRA_ARGS |
Extra arguments added to every agy prompt invocation (optional) |
(none) |
OPENAB_TOOL_DISPLAY |
Controls filtering of intermediate thinking narration ("I will..."). full or unset keeps all output; compact/none/off drops leading narration-only parts. |
full |
agy-acp supplies --print-timeout 20m on every prompt invocation unless
AGY_EXTRA_ARGS includes --print-timeout <duration> or
--print-timeout=<duration>. This gives longer tasks more time before the CLI
ends the turn with Error: timeout waiting for response.
Migration: The adapter now uses a 20-minute timeout instead of inheriting the CLI timeout (5 minutes in the version used to diagnose this issue). To retain a 5-minute limit or choose another duration, configure it explicitly:
[agent.env]
AGY_EXTRA_ARGS = "--print-timeout 5m"The timeout remains finite; tasks exceeding the configured duration can still fail. This setting controls the CLI print timeout, not other OpenAB timeouts.
agy reads AGENTS.md and GEMINI.md when it considers a directory a workspace:
AGENTS.mdandGEMINI.mdare loaded first and injected into the system prompt- agy does not disclose how it determines HOME as a workspace, but
--add-direxplicitly adds a directory agy-acpuses OpenAB's[agent].working_dirand automatically passes it through--add-diron every invocation
Place your steering instructions in /home/agent/AGENTS.md or /home/agent/GEMINI.md — they will be read on every prompt as long as working_dir points to that directory.
- No streaming:
agy -preturns the full response at once; the adapter sends it as a singleagent_message_chunknotification. - Cancel is a no-op:
agy -pruns to completion;session/cancelacknowledges but cannot interrupt.
The Discord /models dropdown is supported. agy-acp returns model
configOptions when a session is created or loaded. It fetches the available
models from agy models and caches a successful result. If the live fetch fails,
the adapter uses the cache and then falls back to this static list when no cache
is available:
- Gemini 3.5 Flash (Medium)
- Gemini 3.5 Flash (High)
- Gemini 3.5 Flash (Low)
- Gemini 3.1 Pro (Low)
- Gemini 3.1 Pro (High)
When a user selects a model with /models, OpenAB sends
session/set_config_option. agy-acp stores the selected model for that session
and adds --model <model_id> to subsequent agy invocations.
For tab-separated agy models output (model_id<TAB>display name), the dropdown
shows the display name and passes only the ID to --model. Older single-column
model names remain supported. Display-name selections and saved values are
resolved to IDs when the live or cached model list contains a matching name.
Cached rows and model values saved by older adapters are handled automatically;
no session reset or cache deletion is needed. Unknown values and single-column
fallback names are passed through for the installed CLI to validate; the adapter
does not guess IDs for models absent from the live or cached list.
To select a default model for every new session, set default_config_options:
[pool]
default_config_options = { model = "gemini-3.8-flash-high" }Use a model ID from the first column of agy models on your installation.
Display names are also accepted when a matching ID is available in that list;
using the ID avoids relying on CLI display-name support or name matching.