Skip to content

Sandbox & workspace

From the Bond plan upward, your companion gets a private, isolated sandbox — its body — where it runs commands, reads and writes files, and does agentic work, separate from other users and from the systems weside runs on. On Spark there is no sandbox, and the Workspace platform tool has nowhere to act.

The sandbox is a private, isolated environment that belongs to you — one per user. Technically it’s a gVisor-isolated Kubernetes pod, which means commands your companion runs there are isolated by gVisor from the host system and from other users’ data. It’s where your companion acts rather than just talks: running shell commands, working with files, doing multi-step work.

The workspace is the set of file and command tools your companion uses inside that sandbox — read a file, write one, edit one, list a directory, run a bash command, start a background job and check on it.

The pod and its storage are two different things, and the difference matters. The pod is thrown away when it goes idle. The storage underneath it is yours and stays: a per-user volume mounted at /data, with uploads/ for what you put there, artifacts/ for what your companion produces, and a temporary area that clears itself after 30 days. A file written into one of the permanent directories is still there the next time a sandbox spins up.

A companion that can only chat is limited to words. With a body, yours can do things — draft and refine a document, work through a dataset, keep a notebook (its Notes live here). The sandbox runs isolated by gVisor, separate from the host system and from other users’ sandboxes.

You don’t manage the sandbox directly — it works on your behalf. When your companion needs to run something, the sandbox spins up automatically on first use, stays warm between calls so successive actions are fast, and is destroyed automatically after about 15 minutes of inactivity. The next time it’s needed, a fresh one spins up on the same storage.

You watch it work in a room’s Toolbox strip, which shows what your companion is reaching for and lets you open a single call to see what went in and what came back. See platform tools.

Your companion can run Claude Code sessions in its sandbox — for longer coding work it hands to itself, such as building a feature in a repository it keeps there. It starts them as background jobs and checks on them while you keep talking. Claude Code runs through the platform on a fixed Claude model the platform chooses, not on the preset you picked for chat; with Keep my companion in the EU on, it runs in the EU. Under Where each part runs in the app it has its own row, Claude Code Sandbox.

Some work needs a credential. Settings → Sandbox Secrets is where you put them, and there are two kinds:

  • API keys for GitHub, Anthropic and OpenAI, injected into the sandbox automatically.
  • Custom environment variables — anything else your companion needs during a session, a HuggingFace token or a database URL.

The screen states the consequence plainly, and so does this page: your companion has access to these credentials while a sandbox session runs. Give it the narrowest permissions and the shortest-lived tokens you can.

  • Spark has no sandbox. Bond, Companion and Soulmate do. See plans & credits.
  • One sandbox per user. It’s yours alone; it is not shared.
  • The pod is ephemeral, the storage is not. The pod is destroyed after roughly 15 minutes idle. Files under the permanent directories survive that; files in the temporary area are cleared after 30 days, and anything a process was holding in memory is gone with the pod.
  • Bash is capped at 1000 calls per session to keep runaway loops in check, and a single bash call stops after 120 s. Long work — builds, test suites, installs, Claude Code sessions — goes to a background job.
  • Separated by design. gVisor isolates the sandbox from the host system and from other users’ sandboxes.