Reported on Reddit (r/selfhosted thread): the Gemini run mode spawns gemini-cli, which Google stopped serving for consumer accounts on June 18, 2026.
Background: at I/O 2026 Google announced it is consolidating its developer tooling under Antigravity and retiring the standalone Gemini CLI. Since June 18, gemini commands only work for enterprise customers with paid Gemini / Enterprise Agent Platform API keys; free and Google AI Pro/Ultra accounts were moved to the new Antigravity CLI (agy). Announcement: https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/ Migration guide: https://antigravity.google/docs/cli/gcli-migration
So Codeman's Gemini mode is effectively enterprise-only today. The fix has two parts:
1. Add Antigravity CLI (agy) as a backend. It is still a real terminal agent (Go rewrite, keeps Agent Skills, Hooks, Subagents and Extensions), so it fits the existing external-CLI architecture. Rough scope, mirroring how Codex and Gemini were added (resolver pattern notes in docs/opencode-integration.md):
- CLI resolver (
src/utils/antigravity-cli-resolver.ts): locate the agy binary across install methods, mirroring gemini-cli-resolver.
- SessionMode: add
'antigravity', gate Claude-specific behavior off via isExternalCliMode() so readiness falls back to output stabilization like the other external TUIs.
- Env prefix allowlist:
ANTIGRAVITY_* in ALLOWED_ENV_PREFIXES (schemas.ts). Open question whether it also needs the broad GOOGLE_* namespace the Gemini mode got for Vertex auth, or whether agy's keyring-based auth makes that unnecessary. Start narrow.
- tmux-only spawn: secrets flow via socket-scoped
tmux setenv, never on the spawn command line, same as the other external CLIs.
- Frontend: run-mode entry in
session-ui.js (with the {success,data} envelope unwrap) plus the mode badge.
2. Decide what the existing gemini mode becomes. Keeping it makes sense for enterprise API-key users, but the UI should stop suggesting it works for everyone. Probably: keep the mode, mark it "enterprise API keys only" in the run dropdown/docs, and point consumer accounts at the Antigravity mode.
Work on this is starting now. If you hit this (Gemini button erroring on a regular Google account), that is why; agy support is the fix.
Reported on Reddit (r/selfhosted thread): the Gemini run mode spawns
gemini-cli, which Google stopped serving for consumer accounts on June 18, 2026.Background: at I/O 2026 Google announced it is consolidating its developer tooling under Antigravity and retiring the standalone Gemini CLI. Since June 18,
geminicommands only work for enterprise customers with paid Gemini / Enterprise Agent Platform API keys; free and Google AI Pro/Ultra accounts were moved to the new Antigravity CLI (agy). Announcement: https://developers.googleblog.com/an-important-update-transitioning-gemini-cli-to-antigravity-cli/ Migration guide: https://antigravity.google/docs/cli/gcli-migrationSo Codeman's Gemini mode is effectively enterprise-only today. The fix has two parts:
1. Add Antigravity CLI (
agy) as a backend. It is still a real terminal agent (Go rewrite, keeps Agent Skills, Hooks, Subagents and Extensions), so it fits the existing external-CLI architecture. Rough scope, mirroring how Codex and Gemini were added (resolver pattern notes indocs/opencode-integration.md):src/utils/antigravity-cli-resolver.ts): locate theagybinary across install methods, mirroringgemini-cli-resolver.'antigravity', gate Claude-specific behavior off viaisExternalCliMode()so readiness falls back to output stabilization like the other external TUIs.ANTIGRAVITY_*inALLOWED_ENV_PREFIXES(schemas.ts). Open question whether it also needs the broadGOOGLE_*namespace the Gemini mode got for Vertex auth, or whetheragy's keyring-based auth makes that unnecessary. Start narrow.tmux setenv, never on the spawn command line, same as the other external CLIs.session-ui.js(with the{success,data}envelope unwrap) plus the mode badge.2. Decide what the existing
geminimode becomes. Keeping it makes sense for enterprise API-key users, but the UI should stop suggesting it works for everyone. Probably: keep the mode, mark it "enterprise API keys only" in the run dropdown/docs, and point consumer accounts at the Antigravity mode.Work on this is starting now. If you hit this (Gemini button erroring on a regular Google account), that is why;
agysupport is the fix.