CodeSandbox Freemium

Cloud dev environments that boot a full repo in seconds

CodeSandbox is a cloud development environment that boots a full repository — dependencies installed, dev server running — in a browser tab or a remote VM. The free tier gives you limited VM hours per month; paid plans start at $9/month per editor with fuller machine specs.

What is CodeSandbox?

It started in 2017 as a React playground you could paste into a blog post. That toy grew into two products: the browser sandbox (quick snippets, instant previews) and Devboxes, which are real microVMs running your actual repo with a terminal and a VS Code-flavoured editor.

Owned by Together AI since 2024. The Devbox side is the part that matters for teams — it is closer to GitHub Codespaces or Gitpod than to the old playground.

What can you run in a Devbox?

  • Any Node, Python, Go or Rust project that fits a Linux container.
  • Docker inside the VM, so Postgres or Redis sidecars work for full-stack apps.
  • VS Code extensions and a full terminal over WebSocket.
  • Port forwarding with public preview URLs, including webhooks and API callbacks.
  • Git branch checkouts and PR review environments.
  • Shared snapshots, so a teammate opens the exact same environment state.
  • How much does CodeSandbox cost in 2026?

    Free covers 40 VM hours a month on a 2-core machine — enough for hobby work, not a 9-to-5 job. Pro is $9/month per editor with 4 cores, 8GB RAM and 400 VM hours. Team is around $15/month per editor with shared workspaces and SSO.

    Note the billing quirk. VM hours are wall-clock time the box is running, and idle timeout defaults are generous, so a forgotten tab can eat an afternoon of quota.

    Product Features

    • Instant boot — cached dependencies mean a repeat devbox opens in 10–20 seconds.
    • VS Code in the browser — including extension support and a real terminal.
    • AI assistant — inline chat and task automation inside the editor, billed as extra credits.
    • Preview URLs — every port gets a public HTTPS address for shareable demos.
    • Repo import — GitHub, GitLab and Bitbucket, or a template from the public gallery.
    • SDK — spin devboxes up programmatically from CI or an agent.

    Product Highlights

    • Best-in-class cold start; nothing else in this category feels as fast for small repos.
    • Public gallery templates for Next.js, Astro and Vite remove most setup work.
    • Works on a Chromebook or an iPad, which is the whole point of the browser model.
    • Sharing a live environment beats a screenshot when debugging with a teammate.

    Who should use CodeSandbox, and who should not?

    Good for front-end and full-stack JS/TS work, documentation demos, open-source contributors, and contractors who do not want client repos on a personal laptop.

    Weak spot one: heavy native toolchains. Large C++ builds and Android emulators exceed what a 4-core VM handles comfortably. Weak spot two: offline. There is no offline mode; on a plane you are stuck.

    Also worth comparing against GitHub Codespaces, which is free for 60 hours a month on 2-core machines for personal accounts and sits inside GitHub’s UI. For a GitHub-only team, Codespaces is usually the cheaper default.

    Common CodeSandbox use cases

    • Reviewing a pull request in an environment that actually runs the branch.
    • Onboarding a new developer without a two-day laptop setup.
    • Embedding a runnable example in documentation or a course.
    • Spinning ephemeral environments from CI for end-to-end tests.

    Quick Summary

    • CodeSandbox runs full repos in browser microVMs with terminals, Docker and preview URLs.
    • Free gives 40 VM hours/month; Pro is $9/month per editor with 400 hours.
    • Fastest cold start in the category, but no offline mode and weak for native builds.
    • GitHub Codespaces is the main alternative and is often cheaper for GitHub-centric teams.