<- all tokdocs

Self-Hosting Coding Agents on a Hetzner VPS: Real Cost and Setup

By , founder of Mavric and Apso

View on TikTok ->

A TikTok from @isaacdyor says to "stop wasting money on cloud agents" and self-host them with a Hetzner VPS, Tailscale, Xfce, Vercel's agent-browser and T3 Code. The stack is real and mostly free software. The server costs about twice the "~$5/MO" shown on screen, the Xfce desktop step is mostly unnecessary, and the agent subscription stays on your bill.

What does a 4 vCPU, 8 GB Hetzner server cost?

About $10 a month. The video labels the server "4 VCPU · 8 GB · ~$5/MO" under a Hetzner badge. Hetzner's price adjustment notice says new prices applied "for new orders and cloud instance rescales starting on the 15 June 2026," about three months before the video was posted on 2026-09-25.

After that change, the plans with 4 vCPU and 8 GB cost:

  • CX33: $9.99 a month, up from $7.99, in both the Germany/Finland and USA tables.
  • CAX21 (ARM, Ampere Altra): $12.49 a month, up from $9.49. The USA table does not list CAX plans, so US-region buyers cannot get it.
  • CPX31: $73.49 a month, up from $24.99, a 194% increase in USD.

The cheapest Hetzner cloud server is CX23 at $6.49, and that is 2 vCPU with 4 GB of RAM, half the machine in the video. Bitdoze's plan breakdown confirms the shapes and adds that a dedicated IPv4 address costs €0.50 a month on top.

Is Tailscale free for this setup?

Yes. The video says to install Tailscale on the VPS and your laptop so they can "talk to each other privately without opening any port," which is how a tailnet works.

Tailscale's free Personal plan covers "Up to 6 users" with "Unlimited user devices," and the pricing page says you can use "nearly all of Tailscale's offerings and products for free, indefinitely." Paid plans start at $8 per user per month for Standard and $18 for Premium. One person with a laptop and a VPS is well inside the free tier.

Do you need Xfce for agent-browser?

Mostly no. The video calls Xfce "the coolest part that everyone skips" and says it "gives your server a virtual desktop so your agent has a real screen to work with."

agent-browser, Vercel Labs' "Browser automation CLI for AI agents," runs headless by default. Its documentation says that in headed mode on a Linux host with no display, when DISPLAY is unset and Xvfb is installed, it starts a private virtual display and cleans it up on close. You can turn that off with AGENT_BROWSER_NO_XVFB=1.

Xvfb is a virtual X server, not a desktop environment. Xfce is a full desktop on top of that. A full desktop is useful if you want to watch the session over VNC, which is a different reason from the one the video gives.

The project spells its name "Xfce" and describes itself as "a lightweight desktop environment for UNIX-like operating systems." The all-caps "XFCE" on screen is a retired form.

How to install agent-browser and record a video

The install takes two commands, npm install -g agent-browser and then agent-browser install, which fetches the browser. The video shows only the first.

Recording has a dependency the video skips. The recording docs say "Recording pipes frames into ffmpeg, which must be on PATH with the libvpx and libx264 encoders," and agent-browser doctor checks for it. The documented signature is record start <path.webm|path.mp4> [url] [--fps <n>] [--cursor] [--contact-sheet].

The video's agent-browser click "Buy now" does not match the docs. click takes a selector, and text-based targeting goes through semantic locators such as agent-browser find role button click --name 'Submit'.

MP4 output was new at the time. The changelog shows WebM recording in v0.6.0 on 2026-01-18 and MP4 with configurable frame rates in v0.37.0 on 2026-09-07, 18 days before the video.

Is T3 Code free?

Yes. pingdotgg/t3code is MIT licensed and describes itself as an "agent harness control surface." It ships a t3 server, a web app, an Electron desktop app, and iOS and Android apps.

The Tailscale path in the video is documented upstream. The remote access guide says to "join both devices to the same tailnet," offers a Tailscale HTTPS toggle, and documents t3 serve --tailscale-serve. It also warns: "Treat pairing URLs and authorization codes as passwords. Do not include them in screenshots, logs, or bug reports." The video shows the pairing flow without that warning. The project is pre-1.0, with nightly builds at 0.0.46 as of 2026-10-05.

Does self-hosting replace paying for cloud agents?

It replaces the cloud runner, not the agent. T3 Code drives coding agents you already have installed and signed in: Claude Code, Codex, Cursor, Grok Build, OpenCode and Google Antigravity. The video's last frame shows a model picker set to "Claude Opus 5.5" with "GPT-6-Astra / Codex" in the list.

Those are paid products. Cursor Pro costs $20 a month and includes background agents, the feature the video's opening frame crosses out. Codex comes bundled with ChatGPT, at roughly $20 a month on Plus and $100 or more on Pro. Devin's Core plan is $20 a month plus $2.25 per Agent Compute Unit.

You keep the agent subscription and add about $10 a month for the server, plus €0.50 for IPv4.

Can you set this up in 30 seconds?

The video opens with "here's how you can self-host them in 30 seconds," then numbers six steps and adds a bonus phone step. Those steps cover renting a server, installing Tailscale twice, installing a coding agent, a desktop, agent-browser and ffmpeg, and pairing devices to t3 serve. The video's own step counter contradicts the 30-second claim.

Bottom line

The software stack is real, and Tailscale, agent-browser and T3 Code cost nothing. The server costs $9.99 a month for the shape shown, and agent-browser already provides its own virtual display. Your coding agent subscription stays, so the savings are smaller than the video suggests.

Sources

Published September 25, 2026. Based on a TikTok by @isaacdyor. Full video notes (markdown)