Why Self-Host a Cloud IDE?
GitHub Codespaces charges $0.18/hour – at 8 hours per day and 20 work days that's $28.80/month per developer. A VPS with code-server? From ~€4/month, unlimited hours, any extensions you want. For a 5-person team, you save over €100 per month.
Beyond cost, there are three more reasons for self-hosting: Data sovereignty (your code stays on your server – no third parties, GDPR-compliant), no vendor lock-in (you switch VPS providers in an hour, migrating away from Codespaces takes days), and full control over the environment (any system packages, root access, no sandbox restrictions).
Cloud IDEs solve a real problem: Consistent development environments, access from anywhere, zero local setup time. New team members just need a browser – no more "works on my machine".
The 4 Best Self-Hosted Cloud IDEs
code-server is VS Code in the browser for a single user. Installation in 2 minutes, built-in password protection, minimal resource usage (~2 GB RAM). Perfect for solo developers who want to access their projects from anywhere.
Coder is the enterprise solution for teams. Each developer gets their own workspace from a template – reproducible, isolated, centrally managed. Coder requires PostgreSQL 13+ as backend and supports OAuth/OIDC for single sign-on. The better choice over code-server from 3 developers onwards.
OpenVSCode Server by Gitpod is the leanest option: A single binary, no Docker needed, ~1 GB RAM. However, no multi-user support and no built-in authentication – you need a reverse proxy with basic auth or Tailscale.
DevPod by Loft Labs uses Dev Containers (devcontainer.json). Each developer works in a reproducible container built from a Git repo. DevPod can run on local Docker hosts, remote VPS or Kubernetes – maximum flexibility, but also the highest resource requirements (~2 GB RAM per workspace).
| Tool | Target Audience | Multi-User | RAM per User | Auth |
|---|---|---|---|---|
| code-server | Solo developers | No | ~2 GB | Password |
| Coder | Teams (3-50+) | Yes (Templates) | ~1.5 GB | OAuth/OIDC |
| OpenVSCode Server | Minimal setup | No | ~1 GB | Reverse Proxy |
| DevPod | Dev containers | Yes (Containers) | ~2 GB | Provider Auth |
What You Need
A VPS with Docker – that's the minimum requirement. For code-server, 2 GB RAM and 1 vCPU are sufficient (from ~€4/month). For teams with Coder, plan 1.5 GB RAM per developer plus 2 GB overhead for Coder itself and PostgreSQL.
A domain is optional but recommended. With a subdomain like code.example.com plus Let's Encrypt SSL, you get HTTPS for free. Without a domain, IP:port with code-server's built-in password protection also works.
A reverse proxy (Traefik or Caddy) is essential for production setups. It handles SSL termination, WebSocket proxying (essential for IDE performance) and optionally basic auth for OpenVSCode Server. Caddy is the simplest option – automatic HTTPS with a 3-line configuration.
Storage: 20 GB NVMe is enough for a solo setup. For teams with multiple repos and Docker images: plan 10-15 GB per developer. NVMe matters – language servers and the TypeScript compiler benefit greatly from fast random reads.
Cost Comparison: Self-Hosting vs. Cloud
A VPS from ~€4/month replaces a Codespaces subscription of $20-50/month per developer. The math improves with each additional team member: For 5 developers, GitHub Codespaces costs ~$145/month (core hours + storage), while a Contabo VPS with 16 GB RAM for the whole team costs just ~€10.
The only overhead: A one-time 30-60 minute setup (Docker, reverse proxy, DNS). After that, the system runs maintenance-free. Updates via docker compose pull take 2 minutes.
| GitHub Codespaces | Gitpod | Self-Hosted (code-server/Coder) | |
|---|---|---|---|
| 1 Developer | ~$29/mo | ~$25/mo | ~€4-5/mo |
| 5 Developers | ~$145/mo | ~$125/mo | ~€10-15/mo |
| 10 Developers | ~$290/mo | ~$250/mo | ~€15-25/mo |
| Hour Limit | Yes (Core Hours) | Yes (50h/mo) | No (24/7) |
| Extensions | Marketplace | Open VSX | Marketplace + Open VSX |
| Data Location | US (Azure) | EU (optional) | Your server |
Our Recommendation
For solo developers with code-server, Hetzner CX22 with 4 GB RAM for about €4/month is enough. Runs VS Code in the browser including TypeScript language server and Docker.
For small teams with Coder, we recommend Contabo Cloud VPS S with 8 GB RAM for about €6/month – enough for 3-5 developers with lightweight workspaces.
For teams of 5+ with Docker workspaces: Contabo Cloud VPS M with 16 GB RAM for about €10/month. With Coder, always install PostgreSQL on the same server – external DBs increase latency noticeably.
