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

# Quickstart

> Install the CLI, sign in, add a host and run your first sandbox.

This uses the hosted central server at `api.ephemera.run`. You need a GitHub account, a laptop running Linux or macOS (Windows works too, from the zip on the releases page), and one Linux machine with KVM to be your host. That can be the laptop itself, if it runs Linux or WSL2: see [Run it on one machine](/docs/guides/one-machine.md). To run the central server yourself instead, start with [Self-hosting](/docs/self-hosting.md); then add `--server <URL>` to `ephemera login`.

**1. Install the CLI**

```bash theme={"theme":"css-variables"}
curl -fsSL https://ephemera.run/install | sh
```

It downloads the latest release for your OS and CPU, checks it against the release's checksums, and puts `ephemera` in `/usr/local/bin`, or `~/.local/bin` if that isn't writable. Check it with `ephemera version`.

**2. Sign in**

```bash theme={"theme":"css-variables"}
ephemera login
```

The CLI shows a code such as `K7QM-2XRT` and opens a page in your browser. Sign in with GitHub if you haven't, check the code matches, and approve. The CLI saves a token for this machine, named after it. The code works for 10 minutes.

```text theme={"theme":"css-variables"}
To sign in, open this page and check it shows K7QM-2XRT:

  https://ephemera.run/device?code=K7QM-2XRT

Waiting for you to approve it… (Ctrl-C to stop)
Logged in to https://api.ephemera.run as my-laptop (saved in ~/.config/ephemera/config.json)
```

No browser on that machine, as on CI? Make a token in the [dashboard](https://ephemera.run/dashboard/tokens) and use it instead: see [Tokens and CI](/docs/guides/tokens.md).

**3. Add a host**

A host is the Linux machine your sandboxes run on: x86\_64, with KVM. In the [dashboard](https://ephemera.run/dashboard/hosts), make a join code. It works once, for 15 minutes. Then, on that machine:

```bash theme={"theme":"css-variables"}
curl -fsSL https://ephemera.run/host | sudo sh -s -- ej_...
```

It installs Firecracker and the host agent, builds the guest image (a few minutes), joins your account and starts. [Add a host](/docs/guides/hosts.md) has the details.

The host connects out to `api.ephemera.run`, so it needs no open ports for the central server. Your laptop does talk to it directly, to send files and read output, so it must be able to reach the host's address: the same network, or a VPN between them.

**4. Run something**

In any git repository:

```bash theme={"theme":"css-variables"}
ephemera run -- echo hello from a microVM
```

```text theme={"theme":"css-variables"}
ephemera: new host lab-1 (SHA256:qL3HdSf8UZXKjpVRma/Eo9jyxni9zZ8p6aDu+FxTJhA); pinned
hello from a microVM
ephemera: signed record saved to ~/.config/ephemera/records/amber-dune-42-sbx_b5268cedc2cec984.json
```

The first time you use a host, the CLI pins its key, like ssh does. The sandbox got the files git tracks, ran the command, and was deleted. `ephemera run` exits with the command's exit code.

If a step fails, run `ephemera doctor`. It checks the login, the central server, the token and each host in turn, and says how to fix the first thing that's wrong.

## Next

> [card] [Run commands](/docs/guides/run.md)
>
> What goes into a sandbox, exit codes, timeouts and JSON output.

> [card] [Dev servers](/docs/guides/dev.md)
>
> Keep a sandbox running, forward ports, and sync edits as you make them.

> [card] [Network access](/docs/guides/network.md)
>
> Let a sandbox reach the hosts it needs, and see what it tried.

> [card] [Coding agents](/docs/guides/agents.md)
>
> Hand the sandbox to Claude Code or any MCP agent.


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