2026-11-26 15:39 UTC

comp-work releases self-hosted GKE sandboxes, estimating 1.9¢ per awake hour at scale

state: seedheat: mediumuncertainty: mediumrelevance: highagent-sandbox cloud-infrastructurecomp-work

What is this?

comp-work has published gke-sandboxes, an open-source project for running agent workspaces in a developer’s own Google Cloud project on GKE. It provides per-sandbox gVisor pods, command and file access, and sleep/wake by saving and restoring filesystem snapshots; processes do not persist through sleep. The project’s documentation estimates an awake cost of about 1.9¢ per hour for a 2-vCPU/4-GB sandbox at roughly 4% CPU utilization, but that estimate depends on operating a cluster at substantial scale (520 awake sandboxes in its model) and divides the cluster bill across those sandboxes. The Hacker News post links to the project documentation; no independent validation of its cost or performance claims is supplied. Google’s search results separately show its own Agent Sandbox on GKE materials, but do not establish a relationship between Google’s offering and comp-work’s project.

Why it matters

This makes an important infrastructure tradeoff concrete for agent builders: self-hosting can offer isolated, persistent workspaces at low estimated cost when many mostly idle sandboxes share a cluster. That may expand who can afford long-lived agent sessions, but the headline price is not a small-deployment price, and users take on cluster operations. Snapshot-based sleep saves compute but restores files rather than live process state.

Current assessment

New project release: comp-work presents gke-sandboxes as deployable in a user’s GCP project, with Terraform setup, a Node.js/Bun client, gVisor isolation, automatic sleep after five idle minutes, filesystem snapshots in Cloud Storage, and optional warm sandboxes. The project claims a 1.9¢/awake-hour estimate for a 2-vCPU/4-GB sandbox at about 4% CPU, calculated from a whole-cluster bill at 520 awake sandboxes, 56 per machine, plus two spare machines and listed overhead. It says a small cluster still incurs minimum-machine costs; its comparison excludes managed-disk and plan fees, and its alternative-provider figures use listed prices and the stated workload assumptions. It also reports sub-half-second starts with a warm pool, about 2.7 seconds without one, and slower snapshot wakes for large file collections; timings across providers came from different regions and are not a clean ranking. These are project-published figures, not independently verified evidence. The offer is most relevant to teams able to operate GKE at scale; managed services may suit small workloads or needs such as GPUs, persistent processes, or a VM kernel per sandbox. Google search results also point to Google’s separate Agent Sandbox on GKE documentation and announcements, including a May 2026 release result, but supplied results do not confirm technical or organizational ties to this project.

Measured heat

now 0 pts/hpeak 2 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 159h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-20 00:29 (minted)⭐ origin echo-reconstructedThe repository README is the primary artifact linked by the HN post and presents the project itself: “Give each cloud agent its own Linux sa
comp-work on github (echo) · attributed from hn.story.50568345 · published time unknown
—
11-19 23:59first on hacker news · published · lag ?Gke-sandboxes: Agent sandboxes with filesystem snapshots at 1.9¢/hour
follgad
—
11-19 23:59amplified on hacker news 👑hn.story.50568345
follgad
peak 1 · 0 comments · 103% of case engagement
11-20 00:26our radar first saw it · lag ?discovery anchor: hn.story.50568345—
pace: p14 vs 2105 stories at the 96h mark (now 159h old) — behind adobe-max-ai-agents-creative-tools-mcp (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnGke-sandboxes: Agent sandboxes with filesystem snapshots at 1.9¢/hour
Retrieved article excerpt

Open article · Retrieved 2026-11-20T00:27:06.884755+00:00

# gke-sandboxes

Give each cloud agent its own Linux sandbox, in your own Google Cloud project. A sandbox runs commands and keeps files. Put it to sleep while the user is away, and open the same ID later to get the files back.

A 2 vCPU / 4 GB sandbox costs about **1.9¢ for each hour it is awake**, cluster overhead included. Daytona and E2B list 16.6¢ for the same hour. A sleeping sandbox costs only its storage.

Cost in US cents for each hour a 2 vCPU and 4 GB sandbox is awake, at about 4% CPU. gke-sandboxes costs an estimated 1.9¢, the whole cluster bill divided by the hours its sandboxes are awake (1×). At list price for compute, Modal 3.5¢ (1.8×), Fly.io 9.2¢ (4.7×), Vercel Sandbox 9.5¢ (4.9×), Daytona 16.6¢ (8.5×), and E2B 16.6¢ (8.5×). Managed disk and plan fees are extra.

## Set it up

Paste this into Claude Code, Cursor, Codex or another coding agent:

```
Set up gke-sandboxes in my Google Cloud project. Follow these instructions step by step:
https://raw.githubusercontent.com/comp-work/gke-sandboxes/main/skills/setup-gke-sandboxes/SKILL.md
```

The agent deploys the cluster with Terraform, runs the verifier, and shows you how to connect your backend. Or [deploy it by hand](https://github.com/comp-work/gke-sandboxes/blob/main/docs/deploy.md).

Then use it from your backend, on Node.js 22+ or Bun:

```
npm install @getenergy/gke-sandboxes
```

```
import { GkeSandboxes, KubernetesApi } from '@getenergy/gke-sandboxes';

const sandboxes = new GkeSandboxes(new KubernetesApi(clusterUrl, getGoogleAccessToken), {
  namespace: 'sandboxes',
  serviceAccount: 'sandbox',
  image: 'docker.io/library/debian:bookworm-slim',
});

// Creates the sandbox, returns the running one, or wakes it from its snapshot.
const { sandbox } = await sandboxes.acquire('session-42', AbortSignal.timeout(300_000));
const { exitCode, result } = await sandbox.process.executeCommand('echo hello');
await sandboxes.sleep(sandbox.id);
```

[Full client guide](https://github.com/comp-work/gke-sandboxes/blob/main/docs/client.md)

## Features

- **Sleep and wake.** A sleeping sandbox is a snapshot in Cloud Storage and uses no CPU or memory. Opening its ID wakes it with its files.
- **Idle sandboxes sleep on their own.** A sweeper puts a sandbox to sleep after five minutes without use.
- **Isolated.** Each sandbox is its own gVisor pod, with incoming traffic blocked and no access to your cloud credentials.
- **Your image.** Use any container image with a POSIX shell.
- **Commands and files.** Run commands with timeouts and streamed output. Upload and download files.
- **Memory guard.** A runaway program is ended before it takes the whole sandbox down.
- **Warm pool.** Keep a few sandboxes ready so a new session starts in under half a second.
- **Preview links.** An example proxy serves a sandbox’s web server through signed links that expire.
- **Hooks.** Callbacks report every operation’s timing and failures to your own logging.

[Client guide](https://github.com/comp-work/gke-sandboxes/blob/main/docs/client.md) · [Operating limits](https://github.com/comp-work/gke-sandboxes/blob/main/docs/limits.md)

## How it compares

Costs are for one sandbox at 2 vCPU and 4 GB. Managed providers are at list prices for compute and storage only. Timings used 4 vCPU and 8 GB.

#### Cost while awake

Every bar in the chart above prices the same mostly idle sandbox, at the 0.076 vCPU that Energy’s running sandboxes averaged, about 4% of 2 vCPU. Daytona, E2B and Fly.io charge for the full size while it runs. Vercel charges for the CPU in use and all of the memory. Modal charges for what is used. The GKE figure is a whole cluster bill divided by its sandboxes: 520 awake at 56 to a machine, with two spare machines, node disks, system nodes, the cluster fee and snapshot storage. It needs that scale. A small cluster still pays for its minimum machines. Over a 730-hour month awake, 1.9¢ an hour is $14.22. Packed tighter on C4D machines, the GKE compute estimate falls to about $7.80 a month, or 1.1¢ an hour.

#### Cost while asleep

A sleeping sandbox is a snapshot in Cloud Storage. Machines you keep running still appear on your bill.

[Storage for 20 GB retained for 730 hours. GKE snapshot about $0.37, Vercel Sandbox snapshot $1.60 on Pro, Daytona archived container $0, E2B paused sandbox $0 extra on Pro. Plan fees and infrastructure are excluded.](https://github.com/comp-work/gke-sandboxes/blob/main/docs/assets/monthly-cost.png)

#### Start and wake

Medians. The GKE start time is with two sandboxes kept ready; without one it is about 2.7 s. The other providers were timed by Sandbox Bench from a different region, so read the rows as neighbors, not a ranking. GKE wakes slower than most, and slower still with many files: about 6.5 s at 25,000 files.

[Median fresh start, snapshot save and start from snapshot for GKE and ten managed configurations. All timings are in the table below.](https://github.com/comp-work/gke-sandboxes/blob/main/docs/assets/sandbox-lifecycle.png)

#### Speed once running

Building Better Auth took 67 s on a C4D machine with one sandbox, and 81 s on a machine packed with 95 idle ones. We have no build timings for the managed providers.

#### What sleep keeps

gke-sandboxes restores files, not running processes. E2B can keep memory through sleep.

#### When a managed provider fits better

The trade is that you run the cluster: capacity, upgrades and recovery are yours. A managed provider is the better choice if you need only a handful of sandboxes, running processes that survive sleep, GPUs, or a VM kernel per sandbox.

[Full comparison, with sources and method](https://github.com/comp-work/gke-sandboxes/blob/main/docs/comparison.md)
follgad10
🟧 echo.github ⭐The repository README is the primary artifact linked by the HN post and presents the project itself: “Give each cloud agent its own Linux sacomp-work——

Interpretation history

Decision trace