Connecting Local Agent CLIs
Exact authentication commands for Claude Code, Codex, Cursor, Grok Build, OpenCode, and Antigravity.
New users opening T3 Code often hunt through Settings looking for fields to paste OpenAI or Anthropic API keys.
Here is the core difference: T3 Code drives the coding agent CLIs already installed and signed in on your machine. That lets you use existing subscriptions (such as Claude or ChatGPT plans authenticated via CLI) directly, without paying separate per-token markups.
1. Supported Agents & Authentication Steps
T3 Code supports six major coding agents out of the box. You only need to install and sign in to the ones you actually plan to use:
| Agent | How T3 Code Connects | Authentication Command / Path |
|---|---|---|
| Claude Code | Local CLI / SDK | claude auth login |
| Codex | Codex CLI | codex login |
| Cursor | Cursor Agent CLI | agent login |
| Grok Build | Grok Build CLI | grok login |
| OpenCode | Local OpenCode environment | opencode auth login |
| Google Antigravity | Built-in provider setup | Open Settings → Providers inside T3 Code, enable Antigravity, and sign in with Google |
2. Verify Each CLI Works Outside T3 Code First
If a thread fails immediately with an authentication or missing-binary error, verify the underlying CLI in your normal shell first:
# Check binary resolution and sign in
which claude && claude auth login
which codex && codex login
agent login
grok login
opencode auth loginMake sure none of them stop on a first-run interactive onboarding prompt when invoked directly from the shell.
Configuring Google Antigravity
Unlike the CLI-based agents above, Antigravity is managed directly inside T3 Code:
- Open Settings → Providers;
- Enable Antigravity;
- Follow the built-in install/Google sign-in prompt—no standalone terminal login command required.
3. Troubleshooting: "Works in My Terminal, Missing in T3 Code"
The most common setup snag on macOS and Linux is PATH mismatch between interactive shells and GUI/background services.
If you installed Node or agent CLIs through nvm, fnm, volta, or custom directories in ~/.zshrc, apps/desktop (Electron) or t3 service install (launchd / systemd) may launch without those shell init scripts:
- Check where the CLI lives with
which claudeorwhich codex. - Test launching
t3directly from your interactive shell. If that detects the agent while the Electron app or background service does not,PATHis the culprit. - Ensure the agent binaries are exposed on standard system paths (such as
/opt/homebrew/binor/usr/local/bin), then runt3 service restart(or restart the desktop app).
4. Quick Switching Shortcuts Once Connected
Once your agents are recognized:
mod+shift+m: Open the model / agent selector;mod+shift+e: Adjust reasoning effort;mod+shift+a: Switch execution permission mode.