Coding agents have a laptop problem. You kick off a long Claude Code or Codex run, close the lid, and the agent dies with it. You want a weekly job that drafts release notes or updates dependencies, and it only fires if your desktop happens to be awake. The fix is old-school: put the agents on a server that never sleeps, and connect to it from wherever you are. T3 Code is the cleanest way I've found to do that.
What T3 Code is
T3 Code is an open-source GUI and server for AI coding agents, built by the team behind T3 Chat (pingdotgg). One server runs the agents; desktop, web and phone clients all connect to it and see the same threads.
- License: MIT — genuinely open source.
- GitHub: pingdotgg/t3code — ~66k stars. Still labelled beta (v0.1.12 at the time of writing).
- Agents: Claude Code, Codex, Cursor, OpenCode and other ACP-compatible agents. You can switch models mid-thread or have one agent hand work to another.
- Clients: desktop app (macOS, Windows, Linux), web app, and iOS/Android apps.
- Remote: LAN, Tailscale, SSH or T3 Connect (a managed tunnel) — and a server can have several routes at once.
The important design point for this post: the server owns the agents, the repos, the threads and the scheduled tasks. Clients are just windows into it. Close every client and the work keeps going.
Core features that matter on a server
Background service. t3 up installs T3 Code as a systemd user service on Linux (LaunchAgent on macOS, Task Scheduler on Windows). It survives reboots and logouts, and t3 service protect shields it from the OOM killer on Linux.
Scheduled tasks. Under Settings → Scheduled tasks you set a repeating cadence or a one-off date. Each run can start a new thread, append to one ongoing thread, or reuse one thread with a fresh session per run. If the server was offline at the scheduled time, the task runs as soon as it's back.
Webhook automations. Trigger an agent run from GitHub or any service, with signature verification, field filters, deduplication and burst coalescing. Webhooks need a T3 Connect URL, so they're the one feature here that goes through a public tunnel.
Pairing and device control. Clients pair with a one-time QR code or URL (valid 5 minutes). You can scope a client to read-only access, require approval for new devices, and revoke sessions from the CLI.
Self-hosting: the server setup
The target: a small Linux VPS or home server, reachable only over a VPN, no public port, agents and scheduled jobs running 24/7.
1. Install T3 Code and sign in to your agents
# on the server, as the user that will own the agents (not root)
curl -fsSL https://t3.codes/install.sh | sh
# sign in the agents you want to drive
claude auth login # Claude Code
codex login # Codex CLI
# keep the user's services running without an active login session
sudo loginctl enable-linger "$(id -un)"
T3 Code doesn't install agents for you — they must be installed and signed in on the server itself.
2. Option A: Tailscale (recommended)
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up --ssh
# quick test in the foreground, bound only to the tailnet IP
t3 serve --host "$(tailscale ip -4)"
For the permanent setup, run the wizard and pin the host in the service environment file:
t3 up # installs the background service, walks through remote access
# ~/.t3/service.env — survives T3 Code updates
cat >> ~/.t3/service.env <<EOF
T3CODE_HOST=$(tailscale ip -4)
T3CODE_PORT=3773
EOF
chmod 600 ~/.t3/service.env
t3 service restart
t3 service protect # Linux: protect from the OOM killer
t3 service status
Then pair your devices:
t3 pair --tailscale # prints a QR code + pairing URL
Scan it with the phone app, or open the t3code://pair link on your laptop. If you want to use the browser client at app.t3.codes, it needs HTTPS — t3 serve --tailscale-serve puts it behind Tailscale Serve.
2. Option B: WireGuard (or any private network)
If you already run WireGuard, bind T3 Code to the server's WireGuard address instead:
# ~/.t3/service.env
T3CODE_HOST=10.8.0.1 # the server's wg0 address
T3CODE_PORT=3773
t3 service restart
t3 pair # one-time QR / URL / token
Worth knowing: a background service with no host configured listens on all IPv4 interfaces but drops any connection whose peer isn't loopback, private-range or tailnet. That's a nice safety net — but it's explicitly not a firewall (a reverse proxy rewriting source addresses looks private). Bind to the VPN address and firewall the port anyway:
sudo ufw default deny incoming
sudo ufw allow in on tailscale0 to any port 3773 proto tcp # or: on wg0
sudo ufw allow OpenSSH
sudo ufw enable
No official Docker image is the main path here — T3 Code expects to run as a user service next to the agents' own logins and your git checkouts. I run it directly on the host.
3. Connect from the desktop app
In the desktop app, open Remote Environments → Add environment, or just open the pairing link. When you're home on the LAN and away on Tailscale, T3 Code keeps both routes and switches automatically. Your laptop is now a thin client: close it, and everything running on the server keeps running.
4. Add a scheduled job
From any client: Settings → Scheduled tasks → New. Pick the project (a git checkout on the server), the agent, a cadence, and where runs go. A real example I use — a weekly draft for a Ghost blog:
Every Monday 07:30
Project: ~/repos/blog-automation
Agent: Claude Code
Thread: one thread, fresh session per run
Prompt:
Take the next unchecked topic from topics/devopspack.md, check via the
Ghost MCP that no post about it exists, write the post following the
devopspack-post skill, save it as a DRAFT, tick the topic off, commit
and push on a feature branch. Do not publish.
Because the server does the work, the job fires with your laptop off, and the result is waiting as a thread you can review from your phone. Two habits I'd keep: always let scheduled jobs produce drafts or branches, never direct publishes or merges to main — and don't run t3 update while a scheduled run is mid-turn, it interrupts the agent sessions.
A note on subscriptions
T3 Code's pitch is "your subscriptions" — it drives agents you're already signed in to instead of reselling tokens. For Codex with a ChatGPT plan that's straightforward. For Claude, check the fine print: T3 Code drives Claude Code through the Claude Agent SDK, and Anthropic's published terms say Free/Pro/Max OAuth logins are meant only for Claude Code and Claude.ai, explicitly not for third-party products or the Agent SDK. For anything you depend on — especially unattended scheduled jobs — I'd run Claude with an API key from the Anthropic Console, or verify the current terms before pointing your personal subscription at it.
T3 Code vs alternatives
- OpenChamber (OpenCode-based) — also self-hosted with scheduled tasks and "loops" as markdown files you commit to the repo. Great if you're all-in on OpenCode; Claude only via API key.
- Claude Code + cron + Remote Control — the first-party route:
claude -pin crontab for jobs, the Claude desktop app over SSH orclaude remote-controlfor interactive work. Fully covered by a Claude subscription, but it's Claude-only and you build the scheduling yourself. - Cloud scheduled tasks (Claude Code on the web, Codex cloud) — zero infrastructure, but jobs run on a fresh clone in the vendor's cloud, so private networks, local MCP servers and VPN-only services are out of reach.
Pick T3 Code if you use more than one agent, want one inbox for all of them across desktop and phone, and want scheduled jobs on your own box.
Pick OpenChamber if you live in OpenCode and like loops versioned in git.
Pick Claude Code + cron if you only use Claude and want to stay strictly within your subscription's terms.
Pick cloud scheduled tasks if the job only needs a public git repo and you don't want to run a server at all.
Who it's for
Good fit:
- Developers who run long agent sessions and don't want them tied to a laptop lid
- Anyone with recurring agent work — weekly content drafts, dependency bumps, report generation
- Teams whose agents need private resources: internal Git, VPN-only APIs, local MCP servers
Not the right fit:
- People who want zero ops — a server, VPN and service management are part of the deal
- Production-critical automation today — it's still beta, and updates can interrupt running turns
My take
This setup changed how I use agents more than any model upgrade did. The server is the computer; my MacBook and phone are just screens. Long refactors keep running when I close the lid, and weekly jobs fire whether I'm at my desk or not. Keeping it VPN-only matters: an agent server with shell access to your repos is about the juiciest target you can put on the internet, so there's no public port on mine — Tailscale for me and my devices, and the firewall as a second layer.
What I'd watch: it's beta and moving fast (expect frequent releases and the occasional behavior change), and the Claude subscription question is a real one, not a footnote. Treat scheduled runs like CI jobs — drafts, branches and pull requests, reviewed by a human — and T3 Code on a cheap always-on box is one of the most useful pieces of infrastructure you can set up this year.
PIPOLINE · DEVOPS CONSULTING
Need help setting up an always-on AI agent server?
I'll provision a hardened Linux server, put it behind Tailscale or WireGuard with no public ports, install T3 Code as a protected background service, and wire up your agents, MCP servers and scheduled jobs. Your team gets 24/7 agents that never touch the open internet — documented and handed over.
Get in touch at pipoline.com →
Member discussion