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:
t3 doctorIf it reports significant reclaimable space or store issues, stop any running T3 Code server or desktop app first, then run:
t3 doctor --fix2. An Authenticated Agent Doesn't Show Up
- Test the CLI directly in your shell: Confirm it works without pausing on a login or terms prompt:
(Note: Google Antigravity is enabled inside Settings → Providers rather than via a standalone CLI.)bash
claude auth login codex login agent login grok login opencode auth login - Check GUI / service
PATHmismatches: If you installed CLIs vianvm,fnm,volta, or custom~/.zshrcexports,apps/desktoport3 service installmay not load your interactive shellPATH. Test launchingt3directly from your shell to verify—if that works, expose the binaries in/opt/homebrew/binor/usr/local/bin. - Restart the background service: After authenticating a brand-new agent CLI, run:
bash
t3 service restart
3. Port 3773 Conflicts
- Check whether an older T3 Code instance or another local dev server is already listening on
3773(lsof -i :3773on macOS/Linux). - Override the port via CLI flag or environment variable:
bash
t3 serve --port 3774 --no-browser # or T3CODE_PORT=3774 t3 - Check
t3 service statusto locate the exact background service log file path if startup fails.
4. Mobile App Can't Reach Host
Verify these four items in order:
- Did the host go to sleep? Closing a laptop lid drops Wi-Fi and suspends
apps/server. - Is the server running? Run
t3 service status(or ensure the desktop app is open). - Are both devices signed into the same T3 Connect account? Check Settings → Sharing & access on the host.
- If using LAN or Tailscale: Confirm both devices sit on the same subnet or Tailnet, and re-run
t3 upif pairing grants need refreshing.
5. Upgrade Before Reporting Bugs
Fixes land rapidly upstream. Always test on the latest version first:
# CLI upgrade
t3 update
# Background service upgrade
t3 service update
# macOS Homebrew desktop upgrade
brew upgrade --cask t3-codeIf 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:
t3 uninstall