⇠ chan.dev / posts

Set Up T3 Code for Your Phone (Without Leaving the Door Open)

AI-assisted post: written by Claude from the setup we worked through together.

I run T3 Code on my Linux desktop. Agents work in threads. I want to check on them from my phone.

Getting there took a few settings I didn’t expect. Some of them are security settings. Here’s all of it, in the order I’d do it again.

Initial setup

Let agents push

My repos use https remotes. Git had no credential helper. So every git push an agent ran failed with:

fatal: could not read Username for 'https://github.com'

T3’s own “create pull request” button pushes the same way. It failed too.

gh was already logged in. One command makes git use it:

gh auth setup-git

It prints nothing. That’s success. Check it:

git config --global --get-regexp credential
git push --dry-run

The catch: the helper is saved as an absolute path to the gh binary. I install gh with mise, so that path includes a version number. When mise upgrades gh and removes the old version, pushes break again. Re-run gh auth setup-git after upgrading gh.

Connect your accounts once

Agents can’t run OAuth flows mid-task. Connectors like Gmail and Google Calendar just show “needs authentication.” Authorize them once in your claude.ai connector settings.

The same goes for the built-in browser. Its default profile starts signed out. Sign in to the dashboards you want agents to use (for me, Cloudflare) once, at the desk.

Phone

The phone part is simple. Share the environment once. Then, from my phone, I spin up new threads in that environment.

They run on my desktop, in my repos, with my tools. The phone is just where I type.

Sharing lives in your environment’s Sharing settings. These are mine, on a desktop named btw:

T3 Code Sharing settings: Network access on, Tailscale HTTPS off, T3 Connect on with a connected tunnel (1 of 3 in use), Publish agent activity on

T3 Connect is the one that does it. Turn it on and the environment shows up on your other devices, ready for new threads. It runs a tunnel (cloudflared) that connects out from your machine. Your phone reaches T3 without you opening a port. Mine says “Tunnel connected · 4 connections · QUIC,” and I’m using 1 of 3 tunnels.

Publish agent activity sends agent activity to mobile notifications and Live Activities. The setting says it works even without T3 Connect. Turn it on if you want your phone to buzz when an agent finishes or needs you.

Network access makes T3 listen on your network, not just 127.0.0.1. T3 shows the LAN address it’s reachable at. T3 Connect doesn’t need it. More on that below.

Tailscale HTTPS puts T3 behind a Tailscale Serve HTTPS URL on your tailnet. I left it off. If you want it, Tailscale has to let your user configure Serve first:

sudo tailscale set --operator=$USER

Security

Here’s the part that matters.

T3 agents run commands as you. Mine run with permission prompts bypassed. Anyone who can reach T3 can run anything my user can. Your phone pairing is the lock. Treat it like an SSH key.

Open as little as you can. T3 Connect dials out. It doesn’t need Network access or an open port. If your phone only uses T3 Connect, turn Network access off.

I’d left it on. T3 said it was “reachable” on my LAN. It wasn’t: my firewall (ufw) drops incoming traffic by default and has no rule for port 3773. That’s a safety net. I’d rather not lean on it.

Hand secrets over through the secret card. When an agent needs a token, a PIN or your sudo password, T3 can show a private input card. Use that. Don’t paste secrets into chat.

Prefer phone-friendly logins. Device-code flows work great from a phone. gh auth refresh -s workflow gave me a code, and I typed it in on my phone.

Localhost redirects don’t work. wrangler login sends you to localhost:8976, which your phone can’t reach. Do those at the desk, or use a scoped API token through the secret card.

Checklist

  • gh auth setup-git (re-run after upgrading gh)
  • Authorize connectors in claude.ai
  • Sign the built-in browser in to the dashboards you use
  • Sharing → T3 Connect on
  • Sharing → Publish agent activity on, for phone notifications
  • Sharing → Network access off, unless something besides T3 Connect needs it
  • Firewall default-deny for incoming traffic
  • Secrets through the secret card, never chat