Back
7/65
Lesson 7
10 min
Agent Commands
Talk to Claude, Codex, and Antigravity
New to ACFS?
Complete the setup wizard first to get the most from these lessons.
Go to Set Up AccountsReady to level up?
Mark complete to track your learning progress.
Talk to Claude, Codex, and Antigravity
Complete the setup wizard first to get the most from these lessons.
Go to Set Up AccountsMark complete to track your learning progress.
Login to your coding agents and understand the shortcuts.
You have three powerful coding agents installed, each from a different AI company:
claudecccodexcodagyThe Antigravity CLI (agy) is pinned to Gemini 3.1 Pro (High). It replaced the Gemini CLI (gmi), which retired 2026-06-18 — gmi still works for reading old ~/.gemini/tmp history, but use agy for all new work.
Watch how each agent handles real authentication scenarios
Generate and register SSH keys for Git authentication
The aliases are configured for maximum power (vibe mode):
cc(Claude Code)NODE_OPTIONS="--max-old-space-size=32768" \ claude --dangerously-skip-permissions
cod(Codex CLI)codex --dangerously-bypass-approvals-and-sandbox --search \ -m gpt-6-astra -c model_reasoning_effort=xhigh \ -c model_reasoning_summary_format=experimental
agy(Antigravity CLI)agy --model "Gemini 3.8 Flash (High)" \ --dangerously-skip-permissions
Legacy: gmi is still defined, but it now launches the same locked Antigravity path as agy. The Gemini CLI retired 2026-06-18, so use agy for new work and treat old Gemini references as history/context only.
Each agent needs to be authenticated once:
$ claude auth loginFollow the browser link to authenticate with your Anthropic account.
On a headless VPS, Codex requires special handling because its OAuth callback expects localhost:1455.
Option 1: Device Auth (Recommended)
$ codex login --device-authOption 2: SSH Tunnel
codex login on the VPS through that tunneled SSH session# On laptop: $ ssh -L 1455:localhost:1455 ubuntu@YOUR_VPS_IP # Then on VPS: $ codex login
Option 3: Standard localhost callback (if you're not on a headless VPS)
$ codex loginCodex CLI uses ChatGPT OAuth, not API keys. If you have an OPENAI_API_KEY, that's for the API—different system!
If login fails: Check ChatGPT Settings → Security → "API/Device access"
$ agyRun agy once and follow the prompts to authenticate with your Google account. The model is pinned to Gemini 3.8 Flash (High).
$ export GEMINI_API_KEY="your-gemini-api-key"Only for intentionally opening the retired gemini binary or old ~/.gemini/tmp material. The gmi shortcut now launches locked agy.
After logging in, immediately back up your credentials:
caam backup claude my-main-accountcaam backup codex my-main-accountcaam backup agy my-main-account
Now you can switch accounts later with:
caam activate claude my-other-account
Try each one to verify they're working:
cc "Hello! Please confirm you're working."
cod "Hello! Please confirm you're working."
agy -p "Hello! Please confirm you're working."
Antigravity takes its prompt through -p (print mode) or -i (interactive), where Claude and Codex accept it as a plain argument. The ACFS agy launcher also forwards a bare quoted prompt as -p, but -p is the form that works everywhere.
Let's verify your agents are ready:
1# Check which agents are installed2$ which claude codex agy34# Check your agent credential backups5$ caam ls67# If you haven't logged in yet, start with Claude:8$ claude auth login