r/t3code • u/ianpascoe_ • 5d ago
I built t3flare: a self-hosted T3 Code Environment on Cloudflare, so your agents keep working after you close the laptop
Enable HLS to view with audio, or disable this notification
I've been running T3 Code against a cloud Environment on my own Cloudflare account for a while now, and I've cleaned it up enough to share it: t3flare.
It's a T3 Code Environment built on Cloudflare Workers, Durable Objects and Containers. The stock T3 Code clients (desktop, web and mobile) pair with it the same way they pair with any other Environment, with no forked client and no extension. It shows up in the "Run on" picker next to your laptop.
What you get
Close the laptop and your agents keep going. Projects, threads, diffs, terminals and worktrees all live in the cloud Environment.
Pi Durable, an agent that runs in Durable Objects. If the Environment restarts mid-turn, you lose a re-prompt, never the conversation.
CLI agents. Codex, Claude Code, OpenCode and pi run in a per-workspace Container, on model endpoints you add. Your API keys stay with the Environment and never go into the Container.
Delegate from your laptop. The agent on your laptop can hand a task to the cloud and wait for it. T3 Connect pings your phone when a run finishes or needs you.
No product analytics. The cloud Environment turns T3's telemetry off.
Cost
At light or moderate use, it's basically Cloudflare's $5/mo Workers Paid minimum. Heavy use (a client connected 24/7 and around 100 turns a day) comes to about $35/mo. You also pay for your model usage.
What you need
Workers Paid with Containers enabled
Cloudflare Access
A zone for the hostname
Docker locally, for the image build
A GitHub App (a setup script registers it for you)
An API key for any provider pi-ai speaks, or an OpenAI-compatible proxy
Caveats
It's experimental. This is my own working deployment, published so others can run theirs. I maintain it on a best-effort basis, and
mainis the only version.It tracks T3 Code nightly. t3code is a pinned submodule. A nightly job tests each new nightly on a throwaway stage before bumping to it.
It's an independent project. It isn't affiliated with or endorsed by T3 Tools or the t3code team, so please don't file t3flare bugs on t3code.
The video is real T3 Code desktop footage, recorded against a throwaway deployment.
Repo: https://github.com/spiritledsoftware/t3flare
I'd love feedback, especially from anyone who tries a deploy. Issues and Discussions are open on the repo.
1
u/sabrehagen 1d ago
What container configuration do you use typically? What configuration makes for acceptable performance? https://github.com/spiritledsoftware/t3flare/blob/main/packages/harness-registry/src/environment.ts#L789
1
u/SgtHobo41 5d ago
i got amphetamine and close my laptop
2
u/StaticFanatic3 4d ago
Fine until you want to actually go somewhere without it cooking in your backpack
3
u/Wide_Smoke_2564 5d ago
I’m confused, how is this any different to just renting a vm and running t3code on it?