Remote, Workflows & Ops

Troubleshooting & t3 doctor

Fix missing agent detection, port 3773 conflicts, and stale local state with t3 doctor and updates.

Because pingdotgg/t3code ships updates quickly, most day-to-day hiccups trace back to one of four things: growing SQLite event logs, shell PATH differences, port 3773 collisions, or a host machine going to sleep.

Work through these checks in order before wiping anything.


1. Compact Local State with t3 doctor

T3 Code stores thread history, event logs, and pairing grants inside local SQLite (~/.t3/userdata/state.sqlite by default). Over time, heavy agent usage can bloat the database.

Run a non-destructive inspection first:

bash
t3 doctor

If it reports significant reclaimable space or store issues, stop any running T3 Code server or desktop app first, then run:

bash
t3 doctor --fix

2. An Authenticated Agent Doesn't Show Up

  1. Test the CLI directly in your shell: Confirm it works without pausing on a login or terms prompt:
    bash
    claude auth login
    codex login
    agent login
    grok login
    opencode auth login
    (Note: Google Antigravity is enabled inside Settings → Providers rather than via a standalone CLI.)
  2. Check GUI / service PATH mismatches: If you installed CLIs via nvm, fnm, volta, or custom ~/.zshrc exports, apps/desktop or t3 service install may not load your interactive shell PATH. Test launching t3 directly from your shell to verify—if that works, expose the binaries in /opt/homebrew/bin or /usr/local/bin.
  3. Restart the background service: After authenticating a brand-new agent CLI, run:
    bash
    t3 service restart

3. Port 3773 Conflicts

  1. Check whether an older T3 Code instance or another local dev server is already listening on 3773 (lsof -i :3773 on macOS/Linux).
  2. Override the port via CLI flag or environment variable:
    bash
    t3 serve --port 3774 --no-browser
    # or
    T3CODE_PORT=3774 t3
  3. Check t3 service status to locate the exact background service log file path if startup fails.

4. Mobile App Can't Reach Host

Verify these four items in order:

  1. Did the host go to sleep? Closing a laptop lid drops Wi-Fi and suspends apps/server.
  2. Is the server running? Run t3 service status (or ensure the desktop app is open).
  3. Are both devices signed into the same T3 Connect account? Check Settings → Sharing & access on the host.
  4. If using LAN or Tailscale: Confirm both devices sit on the same subnet or Tailnet, and re-run t3 up if pairing grants need refreshing.

5. Upgrade Before Reporting Bugs

Fixes land rapidly upstream. Always test on the latest version first:

bash
# CLI upgrade
t3 update

# Background service upgrade
t3 service update

# macOS Homebrew desktop upgrade
brew upgrade --cask t3-code

If the bug reproduces on the latest build, open an issue with your OS details and service logs at pingdotgg/t3code Issues.

To wipe the CLI, background service, and local data completely:

bash
t3 uninstall