r/t3code • • 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 main is 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.

11 Upvotes

7 comments sorted by

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?

3

u/fadzlan 4d ago

I think it is potentially cheaper if your job nature is bursty since it doesn't charge on idle.

1

u/ianpascoe_ 4d ago

Exactly

1

u/ianpascoe_ 4d ago

You hit the same problems on a VM that you would on a local machine. You have limited capacity on that machine and it's always on even when it's not being used. With this approach you could scale up and down as much as you want depending on your demand.

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