My ₹300/month Self‑Hosted Codespace: How I Run code-server + Tailscale for Remote Development

Run a secure, fast self-hosted codespace on a cheap VPS—set up code-server with Tailscale, what works well, and the tradeoffs I learned after months of daily use.

Written by: Rohan Deshpande

A developer typing on a laptop at a café table with code visible on the screen
Image credit: Pexels / George Milton

A few months ago I got fed up with constantly switching machines, carrying a bulky laptop, and waiting for IDEs to index after every SSH session. I wanted one place to open VS Code, pick up where I left off, and run small builds without the friction of local setup. The hosted options were nice but costly and sometimes laggy. So I built a self-hosted codespace on a cheap VPS and have been using it as my main dev environment ever since.

This is the exact setup I run for about ₹300/month, why I picked the parts I did, and the tradeoffs you should expect.

Why not GitHub Codespaces (or a laptop)?

What I run (components)

Why this combo works

How I set it up (high level)

Things that surprised me (good and bad)

Real constraints and tradeoffs

Practical tips from my months of use

When to pick something else

If you want to try it Start with a cheap VPS for a month, install code-server and Tailscale, and migrate one project. You’ll know within a week if the performance and workflow fit your needs.

I still keep a local dev machine for certain tasks, but this self-hosted codespace has become my primary environment for day-to-day coding. It’s cheaper than hosted alternatives, gives me control, and—most importantly—lets me pick up work from any device without the usual setup friction. If you value consistency and don’t need a giant machine, it’s a practical middle path worth trying.