Agents & Model Handoffs

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:

AgentHow T3 Code ConnectsAuthentication Command / Path
Claude CodeLocal CLI / SDKclaude auth login
CodexCodex CLIcodex login
CursorCursor Agent CLIagent login
Grok BuildGrok Build CLIgrok login
OpenCodeLocal OpenCode environmentopencode auth login
Google AntigravityBuilt-in provider setupOpen 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:

bash
# Check binary resolution and sign in
which claude && claude auth login
which codex && codex login
agent login
grok login
opencode auth login

Make 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:

  1. Open Settings → Providers;
  2. Enable Antigravity;
  3. 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:

  1. Check where the CLI lives with which claude or which codex.
  2. Test launching t3 directly from your interactive shell. If that detects the agent while the Electron app or background service does not, PATH is the culprit.
  3. Ensure the agent binaries are exposed on standard system paths (such as /opt/homebrew/bin or /usr/local/bin), then run t3 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.