Do not build an editor — deploy the real, open-source code-server (VS Code in the browser) on your own VPS, running under a process manager, bound to localhost. Access it only through a private tunnel (Tailscale or an SSH tunnel) — no public exposure, and that's the entire security model, kept deliberately simple. Build a small CLI that creates a new sandbox from a named template folder (a Node starter, a Python starter, a static-site starter), runs its install step, and prints the URL to open it. Give each sandbox's dev server its own port reachable through the same tunnel, with a small index page listing active sandboxes and their ports. Add a command to archive and remove a sandbox, tarring it before deleting. Do not build multi-user collaboration, instant VM forking, or public preview URLs — those need real multi-tenant infrastructure, which is exactly what the hosted product provides and a personal server shouldn't attempt to replicate.