OpenAB supports Google Antigravity CLI via the agy-acp adapter — a thin Rust binary that translates ACP JSON-RPC into agy -p invocations.
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
[agent]
# command defaults from OPENAB_AGENT_COMMAND="agy-acp"
# Only override if you need non-default behavior| Variable | Description | Default |
|---|---|---|
AGY_WORKING_DIR |
Working directory for agy invocations | /tmp |
AGY_EXTRA_ARGS |
Extra arguments prepended to every agy 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 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-acp automatically passes
--add-dir <working_dir>on every invocation — no configuration needed
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.
docker build -f Dockerfile.antigravity -t openab-antigravity .Antigravity CLI uses Google Sign-In (OAuth). Authenticate inside the container:
kubectl exec -it deployment/openab-antigravity -- sh -c "$OPENAB_AGENT_AUTH_COMMAND"Complete the device flow in your browser. Auth tokens persist in the PVC at ~/.gemini/.
agents:
antigravity:
discord:
botToken: "${DISCORD_BOT_TOKEN}"
allowedChannels: ["123456789"]
agent:
command: "agy-acp"
args: []
workingDir: "/home/agent"
# image: leave empty — chart auto-resolves to openab:<tag>-antigravity- 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.