Login to your coding agents and understand the shortcuts.
The Three Agents
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.
Agent Authentication Race
Watch how each agent handles real authentication scenarios
SSH Key Generation
Generate and register SSH keys for Git authentication
What The Aliases Do
The aliases are configured for maximum power (vibe mode):
cc(Claude Code)NODE_OPTIONS="--max-old-space-size=32768" \ claude --dangerously-skip-permissions
- Extra memory for large projects
- Background tasks enabled by default
- No permission prompts
cod(Codex CLI)codex --dangerously-bypass-approvals-and-sandbox
- Bypass safety prompts
- No approval/sandbox checks
agy(Antigravity CLI)agy --model "Gemini 3.1 Pro (High)" \ --dangerously-skip-permissions
- Model pinned to "Gemini 3.1 Pro (High)"
- Auto-approves tool permissions (no confirmations)
- Successor to the retired Gemini CLI
Legacy: gmi (gemini --yolo) is still defined for reading old sessions, but the Gemini CLI it launched retired 2026-06-18 — reach for agy instead.
First Login
Each agent needs to be authenticated once:
Claude Code
$ claude auth loginFollow the browser link to authenticate with your Anthropic account.
Codex CLI
On a headless VPS, Codex requires special handling because its OAuth callback expects localhost:1455.
Option 1: Device Auth (Recommended)
- Enable "Device code login" in ChatGPT Settings → Security
- Then run the command below
$ codex login --device-authOption 2: SSH Tunnel
- On your laptop, create a tunnel
- Then run
codex loginon 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 loginChatGPT (Pro/Plus/Team)
- • For Codex CLI, ChatGPT web
- • Auth via ChatGPT login (`codex login --device-auth` is recommended on a VPS)
- • Get at chat.openai.com
API (pay-as-you-go)
- • For OpenAI API, libraries
- • Uses OPENAI_API_KEY env var
- • Get at platform.openai.com
Codex 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"
Antigravity CLI
$ agyRun agy once and follow the prompts to authenticate with your Google account. The model is pinned to Gemini 3.1 Pro (High).
Gemini CLI (legacy)
$ export GEMINI_API_KEY="your-gemini-api-key"Legacy path for the retired gemini CLI (kept for old ~/.gemini/tmp history). Put the key in ~/.gemini/.env or your shell config, then run gemini.
Backup Your Credentials!
After logging in, immediately back up your credentials:
caam backup claude my-main-accountcaam backup codex my-main-accountcaam backup gemini my-main-account
Now you can switch accounts later with:
caam activate claude my-other-account
Test Your Agents
Try each one to verify they're working:
cc "Hello! Please confirm you're working."
cod "Hello! Please confirm you're working."
agy "Hello! Please confirm you're working."
Quick Tips
- Start simple - Let agents do small tasks first
- Be specific - Clear instructions get better results
- Check the output - Agents can make mistakes
- Use multiple agents - Different agents have different strengths
Practice This Now
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