If you want a coding agent to keep working after you close your laptop, you need a machine that is not your laptop. GitHub Codespaces is the one many teams already have. Sandscale workspaces are built for the same job with agents in mind. This post compares them using GitHub's documentation as of November 2026 (security in Codespaces, timeout period, automatic deletion and Codespaces billing) and Sandscale's live docs.
What each one is
GitHub Codespaces is a development environment for a repository, configured with a devcontainer.json, that you open in a browser or VS Code. GitHub's security page says each codespace is hosted on its own newly built virtual machine, two codespaces are never on the same VM, and a restart deploys it to a new VM.
A Sandscale workspace is a persistent cloud computer for you or your coding agent, created from a template your organization set up (image, size and tools). Its disk survives; it sleeps when idle and starts again when you open it. You open it over SSH with a short-lived certificate, in a terminal, in the browser, or from an editor that connects over SSH. Sandscale also has short-lived sandboxes, each its own Firecracker microVM, for one-off agent runs; this post is about workspaces.
Running an agent that outlives your laptop
Both can run Claude Code, Codex or another agent CLI in a terminal on the remote machine. The difference is what happens when nobody is typing.
Codespaces. A codespace stops after a period of inactivity, 30 minutes by default, settable between 5 and 240 minutes in your personal settings, and organizations can set a maximum. GitHub also says that regardless of the idle setting, a codespace has a maximum lifetime of 12 hours. An agent run that goes overnight needs to fit inside those limits.
Sandscale workspaces. The workspaces page describes the agent's session living on the workspace rather than on the device you opened it from, so you can disconnect and reconnect from another device. Workspaces sleep when idle (on Free, after 30 minutes idle, per the workspaces concept page) and you can set start and stop schedules with sandscale workspace schedule. Hours count against your plan only while the workspace runs.
Network
Codespaces. Each codespace has its own isolated virtual network. Firewalls block incoming connections from the internet and stop codespaces talking to each other on internal networks. Codespaces are allowed to make outbound connections to the internet.
Sandscale workspaces. You reach ports with sandscale workspace port-forward, which listens on 127.0.0.1 on your computer and goes through SSH; the guide says nothing is opened to the internet. What the workspace can reach outbound follows your template, your plan and your organization's policy.
For an agent, outbound access is where the risk is. An agent that can run any command and reach any host can send your source anywhere. With Codespaces you would handle that outside Codespaces. On Sandscale, egress follows organization policy, and agent policy can block or route commands to a person.
Credentials in the box
Codespaces. Each time a codespace is created or restarted, it gets a new GitHub token with an automatic expiry. With write access to the repository, the token has read and write access to it; with read access only, it can clone. That token is in reach of whatever runs in the codespace, including an agent.
Sandscale workspaces. Access to the workspace uses SSH certificates that expire in minutes rather than keys left on disk. Secrets for a run come from Vault, so they are not pasted into prompts. Pushing code from an agent is a step agent policy can send for approval: the workspaces page shows git push --force blocked by policy and a git push waiting on a named approver.
Agent controls
Codespaces is a dev environment product; controls specific to agent actions are out of its scope. Sandscale includes, on every plan, agent policy (allow, block or ask a person), approvals, Vault, DLP on prompts and tool calls, and a hash-chained audit log recording every sandbox, workspace and API call. Audit log export is on Team and Enterprise, as is SSO with SAML or OpenID Connect.
Cleanup
Codespaces. Stopped codespaces are deleted automatically after a retention period you choose, up to 30 days.
Sandscale workspaces. A workspace keeps its disk; idle workspaces sleep rather than being cleaned up on a timer.
Pricing
Codespaces. Billed on compute time and storage. GitHub's billing page lists compute at $0.18 an hour for 2 cores, $0.36 for 4, $0.72 for 8, $1.44 for 16 and $2.88 for 32, and storage at $0.07 per GB-month. Personal accounts get a free monthly quota of 120 hours and 15 GB-month on GitHub Free, or 180 hours and 20 GB-month on GitHub Pro, with compute counted using a multiplier by core count. Organization and enterprise plans include no free quota.
Sandscale. Plans include awake vCPU-hours: 100 a month on Free, 1,500 on Pro and 2,000 per member pooled on Team. The plans reference says a box counts only while it is awake, with 4 GiB of memory per vCPU included. Pro is $20 a month billed annually or $25 monthly; Team is $40 per member a month billed annually or $48 monthly. Paid plans can add usage at $0.05 per awake vCPU-hour if you turn it on. The plans reference lists workspaces on every plan. See pricing.
Which fits
Choose Codespaces if your work is people coding in VS Code against GitHub repositories, sessions fit within its idle and 12-hour limits, and an outbound-open network with a repo-scoped token in the box is acceptable for your agents.
Choose Sandscale workspaces if agents run for long stretches while you are away, you want access by short-lived certificates, ports kept off the internet, and agent actions like pushes to go through policy and approvals with an audit trail. When the work is a one-off task rather than an ongoing session, use a sandbox instead.
Originally published on the Sandscale blog.
Top comments (0)