Should I self-host CodeSandbox?
code-server puts real VS Code on your VPS and it boots instantly. What it doesn't do is CodeSandbox's instant throwaway environments and live collab. Worth it as your persistent cloud IDE; not a sandbox factory.
Instant ephemeral sandboxes per branch/PR
Live multiplayer editing
cloud dev environments · instant sandboxes · collaboration · GitHub integration
* Percent of the subscription price. Your time is priced at the slider's rate — $0/h ("my homelab time is free and I love it") is a legitimate position. Every number is derived from the record, never hand-written. Price source, checked 2026-08-06.
Runs comfortably on a real VPS (2 GB+).


Boot to healthy measured at 25s on the 2GB reference env
# code-server — VS Code in the browser
services:
code-server:
image: codercom/code-server:latest
container_name: code-server
restart: unless-stopped
environment:
PASSWORD: changeme123
ports:
- "8102:8080"
volumes:
- cs-data:/home/coder
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8080/healthz >/dev/null || exit 1"]
interval: 5s
timeout: 10s
retries: 24
start_period: 15s
volumes:
cs-data:
Want a guided install instead? caniselfhostit.com/codesandbox has AI-agent prompts that assume a bare machine — that's their half of the stool, and it's good.
FULL TIMED LOG
# CodeSandbox — verdict log - **Date:** 2026-08-10 - **Verdict:** KINDA — worth it if… - **Protocol:** v1 (2GB reference env, Docker preinstalled, AI assistant: claude-code) ## Setup evidence - Compose: `compose/codesandbox-code-server.yml` - Boot to healthy: **25s** measured this session - Setup time recorded: 11 min (boot + configuration to first working workflow) ## What broke / notes - Boot to healthy measured at 25s on the 2GB reference env ## The call code-server puts real VS Code on your VPS and it boots instantly. What it doesn't do is CodeSandbox's instant throwaway environments and live collab. Worth it as your persistent cloud IDE; not a sandbox factory.