Skip to main content
ephemera run runs one command in a fresh sandbox and deletes the sandbox when the command ends:
Everything after -- is the command. To use shell features such as &&, pipes or globs, wrap it in sh -c '...'.

What goes in

The CLI sends the files git would track: tracked files, and untracked files that aren’t ignored. It works out the list itself from your repository, so uncommitted edits go in too. Ignored files, such as node_modules, .env.local and build output, stay on your laptop. To send an ignored file anyway, name it:
--dir picks another worktree to send instead of the current folder. The files land in the sandbox’s working directory, and the command runs there.

What comes back

Output streams back as it happens, with standard output and standard error kept apart, so redirects and pipes on your laptop work as usual:
Nothing the command writes inside the sandbox comes back. Files it creates are deleted with the sandbox. If you need a build artifact, print it, or copy it somewhere it can reach. The CLI’s own messages go to standard error, starting with ephemera::

Exit codes

So ephemera run works anywhere a plain command does: in make, in a pre-push hook, in CI.

Time, size and environment

Without --cpus and --memory, a sandbox gets the host’s default size, which is also the size that starts fastest, from a snapshot. Every host also caps how long any sandbox may live, 24 hours by default. --env values go to the command only. They aren’t kept in the record or in setup snapshots, and the central server never sees them. --image picks another image on hosts that have one. Most hosts have just the default guest image: Ubuntu 24.04 with git, Python, Node.js 24, npm and build tools. Inside the sandbox lists exactly what’s in it, and how the sandbox differs from a CI runner.

Ctrl-C

Pressing Ctrl-C stops the command and destroys the sandbox. Nothing is left running.

JSON output, for agents and scripts

--json prints one JSON object per line instead of raw output:

Name it

Every sandbox has a name. Give it one that says what it’s for, so you and your agents can tell them apart:
Names are lowercase letters, digits and hyphens, up to 40 characters, like api-tests or pr-1234. Leave --name off and you get one like amber-dune-42. Only one running sandbox in your account can have a given name. A second api-tests while the first is still running is refused; once it ends, the name is free again. Your run history keeps the name either way.

See what’s running

The dashboard shows the same, plus every run in your account.