automation-dev
CodeSandbox logo

Should I self-host CodeSandbox?

KINDAworth it if…

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.

The math (nothing hidden, including your time)

CodeSandbox (Pro)$12.00/mo
VPS share + storage−$1.00/mo
Your maintenance: 15 min/mo at $20/h−$5.00/mo
Net saving$6.00/mo
Setup: 11 min measured (one-time)$3.67
Break-even0.6 months
Markup Index (price ÷ real self-host cost)2.0×

Price: source, checked 2026-08-06. Inputs are stored in git; every number above is derived, never hand-written.

What you lose

  • Instant ephemeral sandboxes per branch/PR
  • Live multiplayer editing

What you're paying CodeSandbox for

  • cloud dev environments
  • instant sandboxes
  • collaboration
  • GitHub integration
code-server running from the boot-verified compose file
code-server, running from the compose file on this page — screenshot from our verified instance, not marketing material.

Ranked alternatives

VS Code in a browser tab, running on a machine you own, with the terminal and the toolchain that come with it.

coder/code-server · ★ 78,700 · last commit 0d ago · MIT

Hardware

Runs comfortably on a real VPS (2 GB+).

The tested compose file (our evidence, CI-booted)

# 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.

Verification

Protocol v1 · verified by zernonia on 2026-08-10 · setup measured at 11 min · AI assistant: claude-code (allowed & stated)

What broke

  • Boot to healthy measured at 25s on the 2GB reference env
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.

Verdict history

  • 2026-08-10: unscored → KINDA — Initial verdict: code-server puts real VS Code on your VPS and it boots instantly.