AI-native

Does an AI agent's sandbox need a GPU?

Usually not. When an agent uses a hosted model, the model runs on the provider's GPUs, and the agent's sandbox only sends and receives text. The work the sandbox does, running code, tests, builds, headless browsers and data analysis, is ordinary CPU work. A GPU matters only for steps like training or running a large model yourself, and those can be sent out as one request while the sandbox keeps the code and files.

Updated November 19, 2026

Where does the GPU work happen in an agent?

An agent loop has two halves. The model decides what to do next, and the sandbox does it: it writes files, installs packages, runs the tests, opens a page or crunches a CSV. With a hosted model, the first half runs on the provider's GPUs and reaches your sandbox as an HTTPS response. The second half is plain Linux work. That's why Sandboxer, the studio's cloud sandbox for agents, has no GPUs and says so on its own site.

How fast is common agent work on CPU?

Sandboxer measured it on one default sandbox (4 vCPU, 8 GB of memory) on November 18, 2026, in its guide Does an AI agent's sandbox need a GPU?. One day on one machine, not a promise:

TaskMeasured
pandas: read a 5-million-row, 74 MB CSV0.10–0.11 s
pandas: two group-by aggregations over 5M rows0.18 s
A real pytest suite (772 tests)23–24 s; 10.8 s spread over 4 cores
Headless Chrome: load a page and save a screenshot0.63–0.73 s
Embeddings with a small model, 5,000 sentencesabout 630 sentences a second

The slowest item, the test suite, was limited by CPU cores. More cores, or a bigger sandbox, helped. A GPU wouldn't.

Which steps do need a GPU?

StepOn CPU in the sandbox?
Calling a hosted modelYes, it's an HTTPS request
Code, tests, builds, Docker, browsersYes
pandas, SQL, charts, classic machine learningYes
Small embedding or speech modelsYes
A small local chat modelYes, slowly: tens of tokens a second
Fine-tuning or training a neural networkNo: use a GPU cloud
A large local model, image or video generationNo: use a hosted inference API

What do you do with the GPU step?

Send just that step out. The sandbox stays the agent's workspace, with the repo, data, scripts and results. The GPU step becomes a small script that reads an endpoint and key from environment variables, never prints the key, retries on busy responses and writes its result back to disk. In Sandboxer's test, a request from inside the sandbox to a public endpoint took 0.03 to 0.04 seconds round trip. For a CPU-only Python setup, install PyTorch's CPU-only build, which skips CUDA downloads the sandbox can't use.

What does this mean for building an AI product?

Most agent products don't need to run GPUs at all. They pay a model provider per call and run the agent's work on ordinary machines billed by the second. That keeps a small team's infrastructure simple, which is part of how the studio runs several companies at once; see how a small studio runs several companies and whether an agent should run on a server or in a sandbox.

Frequently asked questions

Does Sandboxer have GPUs?

No. Sandboxer runs on CPU only and says so on its site; for a step that needs a GPU, call a GPU service from inside the sandbox.

Can an agent run a local LLM without a GPU?

A small one, yes, slowly, at tens of tokens a second on CPU. A large model needs a hosted inference API.

Do embeddings need a GPU?

Not for small models. Sandboxer measured about 630 sentences a second with a small embedding model on a 4-vCPU sandbox.

What speeds up a slow agent test loop?

More CPU cores. In Sandboxer's test, spreading a test suite over 4 cores halved the time; a GPU wouldn't help.