Cubs vs GitHub Codespaces
Cubs vs GitHub Codespaces: idled out or still running
Codespaces is a good development environment that is explicitly not an always-on machine. The idle timeout is the feature, and it is also the thing that ends an overnight run.
The short version
A GitHub Codespace is a devcontainer in the cloud, started from a repository and billed per compute-hour and storage-hour, with an included monthly allowance on personal plans. The idle timeout defaults to 30 minutes and can be raised to 240 minutes, and you are billed for the whole time it is active whether or not you are using it. Cubs is a computer with no idle timer, metered per second from prepaid credit. Codespaces is better when the editor is the interface. It is the wrong shape for an agent you expect to be working at four in the morning.
| Dimension | GitHub Codespaces | Cubs |
|---|---|---|
| Machine | A Docker container on a GitHub-hosted VM, built from your repository's devcontainer config, with machine types from 2 cores and 8 GB up to 32 cores and 128 GB. | A persistent Linux computer sized 2 to 32 vCPU. The repository is a directory on it, not the thing that defines the machine. |
| Stays running | Stops after an idle timeout, 30 minutes by default and 240 at most, and bills for the whole time it is active. | No idle timer and no session cap. It runs until you pause or delete it, and pausing keeps the disk. |
| Size and price | Compute-hours and storage-hours against an included monthly allowance on personal plans, then per-hour rates by machine type. Costs are always billed monthly. | $6 per vCPU per month running, $2 paused, metered per second from prepaid credit. A 4 vCPU machine is $24/month and $8 paused. |
| Billing | GitHub billing: compute per hour while it runs, storage per hour while it exists, which includes stopped codespaces. Beyond the quota you need a payment method and a spending limit. | Prepaid credit only, debited per second, with no separate storage line because the disk is part of the machine's price. |
| Agents included | None bundled, though Copilot is adjacent as its own product. You install the agent in the container. | None bundled. Install Claude Code, Codex or another agent and sign in as yourself; model usage stays on the provider's bill. |
| Your own tools | Whatever the devcontainer installs, plus dotfiles synced from your GitHub settings and VS Code settings sync. A rebuild recreates the environment. | Your tools installed once on a machine you keep: apt, editors, keys, private registries, and SSH so a local editor connects normally. |
| Reaching it | VS Code in the browser or on the desktop, JetBrains, or the GitHub CLI. Ports forward to a private URL. You sit inside the container with limited access to the host VM. | SSH with a key, plus terminals, previews and forwarded ports in a browser and on a phone, at the host level rather than inside a container. |
When to choose GitHub Codespaces
- You want your editor, your repository and your extensions in one place, opened from any browser in under a minute.
- You already pay for GitHub and the included personal allowance covers your usage most months.
- Your work is interactive and a machine that disappears tomorrow costs you nothing.
When to choose Cubs
- An agent has to keep working past the idle timeout, which is every long build, every test suite and every overnight task.
- The machine holds state worth keeping: a database, a cache, uncommitted work, a dev server on a port.
- You want to stop paying for compute while keeping the disk available for weeks.
The timeout is a design decision, not an oversight
Thirty minutes of inactivity is a sensible default for a product whose job is to give you an editor. You open a codespace, work, close the tab, and the platform stops paying for compute on your behalf. For a person typing, the timer is invisible, because typing resets it.
For an agent, typing is not what happens. The process sits in npm test for eleven minutes with a quiet terminal, and any liveness check that watches for output sees nothing. The timeout is defined by activity, which for a terminal means input, and a build produces no input at all.
GitHub is straightforward about the consequence, and their warning is worth quoting in substance rather than paraphrasing: compute usage is billed for the duration a codespace is active, so a codespace you forgot about still costs money until it times out. The same timer that saves you from a forgotten machine is the one that ends your agent’s work.
What survives a stop
Stopping a codespace preserves the filesystem, which is the good part: you come back and the repository is where you left it. Storage keeps billing while it exists, so the persistence is not free, but it is genuine.
What does not survive is everything the kernel was holding: running processes, open ports, an in-memory cache, a tmux session. Coming back means starting the dev server again and re-attaching to nothing. For a human that is a shrug. For four agents mid-task it is four lost tasks, and what comes back is only what had been written to disk.
The devcontainer is the interesting part
A devcontainer is a genuinely good idea: the environment lives in the repository as code, so a new machine is one config file away, and every collaborator gets the same one. The cost is that the machine is a function of the repository, which means it cannot hold anything the repository does not describe.
A Cubs machine inverts that. The machine is the artifact, the repositories are directories on it, and a new repository is git clone rather than a rebuild. That is worse for reproducibility across a team and better for a machine that accumulates a toolchain over months, and it is exactly the trade you would expect between a product built around repositories and one built around a box.
There is a third difference in the same place: a codespace places you inside a container with limited access to the host VM. A Cubs machine is the host. sudo, systemd if you want it, a port below 1024, a kernel module: all available, which is either important or irrelevant depending on what you run.
Where the allowance actually runs out
Personal plans include a monthly allowance of compute and storage, and the shape of that allowance matters more than its size. An agent that runs all night burns compute hours at a machine-type rate, and the included allowance is sized for interactive work. A machine that idles all night on Cubs costs the paused rate instead.
That is the fundamental mismatch: a product whose billing is designed around a person typing, applied to a process that does not type. It is not a criticism of the design. It is a reason the design is wrong for this use case.
What the container boundary costs you
A codespace places you inside a Docker container on a GitHub-hosted VM, with limited access to the outer host. For most development work that is invisible and welcome. For some agent work it is a wall.
Three examples. Binding a port below 1024 needs a capability you may not have. systemd is not the init system you are talking to. And anything that wants to manage its own containers, which is Docker-in-Docker, is not available. None of these are unusual requests from an agent that has decided to start a service and keep it running.
A Cubs machine is the host rather than a guest. sudo works, systemd is there if you want it, and a port is a port. That is a smaller promise than isolation and it is the promise some builds need.
Two clocks, only one of which you can raise
The timeout is adjustable between 5 minutes and 240 minutes, which is a four-hour ceiling. That is long enough for almost any interactive session and short enough that it is not a day. There is no setting that makes a codespace an always-on machine, because the product does not sell one.
So the honest framing is not that Codespaces stops agents arbitrarily. It is that the product’s unit is a session, the session has a maximum length, and an agent whose work outlasts that length has to be written to survive a restart. That is a solvable engineering problem and it is not the problem most people have when they discover their agent died at 02:40.
Where the two genuinely overlap
Both let you leave the laptop. Both give you an environment that installs from a definition, one from a devcontainer and one from a disk you configured. Both are cheaper than a dedicated server for interactive work.
The difference is what happens when nobody is typing. On Codespaces, a clock runs and then the processes stop. On Cubs, nothing happens at all, because the machine has no opinion about whether you are present.
Both approaches can coexist, and for many people they should: codespaces for reviewing a pull request on a train, a persistent machine for the agents that have to be running when the train arrives. The page’s claim is narrow: if the timer is the problem, the product with the timer cannot be the fix.
Sources
GitHub Codespaces documentation, read on the date above. We are not affiliated with them and they have not reviewed this page.
Questions
Questions
- How long before a Codespace stops?
- The idle timeout defaults to 30 minutes and can be set between 5 and 240 minutes. Billing runs for the whole time it is active, including the idle minutes before it stops.
- Do I still pay while a Codespace is stopped?
- Storage is billed per hour while the codespace exists, including while it is stopped. Compute stops when the codespace does. Their billing page has the current rates.
- Why does the idle timeout matter for an agent?
- Because an agent waiting on a long build looks idle to anything watching the terminal. When the codespace stops, its processes stop with it, and the agent comes back on a machine that restarted.
- Is Codespaces free?
- Personal accounts get an included monthly allowance of compute and storage, then usage is billed. Cubs has no free tier: it has $25 of starting credit, which is a different thing with a different purpose.
Read next
A computer that stays on
A machine that stays on, with your coding agents on it. $25 of credit to start, no card.