> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# A throwaway microVM for every command

> Run tests, dev servers and coding agents in locked-down sandboxes on your own machines, while you keep editing locally.

ephemera runs your commands in a fresh Firecracker microVM, on a machine you own, and deletes it when the command ends. You keep editing on your laptop. The sandbox gets the files git tracks, has no network unless you allow it, and leaves a signed record of what it did.

```bash theme={"theme":"css-variables"}
# tests in a fresh microVM
ephemera run -- npm test

# one host allowed, everything else blocked
ephemera run --allow registry.npmjs.org -- npm install

# a dev server at localhost:3000
ephemera dev -p 3000 --net -- npm run dev
```

What that gets you:

* **Nothing runs on your laptop.** An agent's `rm -rf`, a postinstall script, a test that phones home: each one happens in a microVM that is gone a second later.
* **No network unless you say so.** A sandbox has no network device at all. `--allow` lets named hosts through; every attempt, allowed or blocked, is logged.
* **Fast.** A sandbox starts from a snapshot in about 65 ms. An idle one costs its host about 60 MB of memory.
* **Your machines.** Sandboxes run on hosts you bring: a spare PC, a server, a cloud VM with nested virtualization. Your code goes from your laptop straight to them.
* **A receipt.** When a sandbox is destroyed, its host signs a record of every command, file sync and network connection. `ephemera verify` checks it.

> [card] [Quickstart](/docs/quickstart.md)
>
> Install the CLI, sign in, add a host and run your first sandbox.

> [card] [How it works](/docs/how-it-works.md)
>
> What runs on your laptop, on a host, and on the central server.

> [card] [Security and data flow](/docs/security.md)
>
> Every hop your code takes, and what ephemera can and can't see.

> [card] [Coding agents](/docs/guides/agents.md)
>
> Give Claude Code or any MCP agent a sandbox instead of your shell.

## Hosted or self-hosted

There are two ways to run the central server, the small service that keeps track of hosts and places sandboxes:

* **Hosted**, at `api.ephemera.run`. Sign in with GitHub, add your hosts, and go. This is what the [quickstart](/docs/quickstart.md) uses.
* **Self-hosted.** Run `ephemera-server` yourself, next to your hosts. See [Self-hosting](/docs/self-hosting.md).

Either way the hosts are yours, and the central server never sees your files, commands' output or secrets.

> [!NOTE]
>
> ephemera is early: v0.1 is out, and the hosted central server is new. It's open source under Apache-2.0, on [GitHub](https://github.com/pyjeebz/ephemera).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.