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

# Quickstart

> Install the CLI, create your first machine, then serve, fork, snapshot, checkpoint and share it.

A boxd machine is a persistent, hardware-isolated Linux computer for developers, agents, apps, and automations. The recommended way to use boxd is the [CLI](/cli/installation.md). For orchestration and automation, use the [TypeScript](/reference/typescript-sdk.md) and [Python](/reference/python-sdk.md) SDKs.

The quickest way to get started is the onboarding in the console at [app.boxd.sh](https://app.boxd.sh). If you prefer the terminal, follow the steps below.

## 1. Install

> [tab] macOS and Linux
>
> ```bash
> curl -fsSL https://boxd.sh/downloads/install.sh | sh
> ```
>
> This script auto-detects your platform, verifies checksums, and installs the latest boxd CLI to `~/.local/bin/boxd`.
>
> From an AI agent, or anywhere without a terminal to answer the installer's questions, add `--yes`. Without it only the binary is installed; with it the installer also adds the agent skills, the PATH line and shell completions:
>
> ```bash
> curl -fsSL https://boxd.sh/downloads/install.sh | sh -s -- --yes
> ```

> [tab] Windows
>
> In PowerShell:
>
> ```powershell
> irm https://boxd.sh/downloads/install.ps1 | iex
> ```
>
> This script verifies the checksum and installs the latest boxd CLI to `~\.local\bin\boxd.exe`. It needs no administrator rights.
>
> From an AI agent, or anywhere without a console to answer the installer's questions, pass `-Yes`. Without it only the binary is installed; with it the installer also adds the agent skills and puts `~\.local\bin` on your user PATH:
>
> ```powershell
> & ([scriptblock]::Create((irm https://boxd.sh/downloads/install.ps1))) -Yes
> ```

## 2. Authenticate

> [tab] CLI
>
> Sign in with GitHub or Google:
>
> ```bash
> boxd auth login
> ```

> [tab] TypeScript
>
> Add the SDK and mint a key:
>
> ```bash
> npm install @boxd-sh/sdk
> export BOXD_API_KEY=$(boxd auth keys create my-app)
> ```

> [tab] Python
>
> Add the SDK and mint a key:
>
> ```bash
> pip install boxd
> export BOXD_API_KEY=$(boxd auth keys create my-app)
> ```

## 3. Create a machine

<video autoPlay muted loop playsInline src="/videos/boxd-new.mp4" />

boxd new boots a fresh machine in milliseconds.

> [tab] CLI
>
> ```bash
> boxd new myapp
> ```

> [tab] TypeScript
>
> ```typescript
> import { Boxd } from "@boxd-sh/sdk";
>
> const boxd = new Boxd();                              // reads BOXD_API_KEY
> const machine = await boxd.machines.create({ name: "myapp" });
> console.log(machine.access.url, machine.bootTimeMs);
> ```

> [tab] Python
>
> ```python
> from boxd import Boxd
>
> boxd = Boxd()                              # reads BOXD_API_KEY
> machine = boxd.machines.create("myapp")
> print(machine.access.url, machine.boot_time_ms)
> ```

You'll see:

```text
    name: myapp
      id: 9645b1e8-193d-4d11-86b1-f91deff5bbfb
     url: myapp.boxd.sh
     source: standalone
    boot: 6ms

Connect via SSH: ssh myapp.boxd
Or from your browser: https://myapp.boxd.sh
```

This is your first machine. It has a persistent disk and its own HTTPS domain, with TLS already terminated. Visit the URL and you'll see a default landing page until you start a server.

The URL also says where the machine runs. The CLI puts it in the region closest to you, and the SDKs put it in Frankfurt unless you pass `region`. `myapp.boxd.sh` is in Frankfurt, and a machine in New York gets `myapp.nyc.boxd.sh`. See [Regions](/guides/regions.md) to pick one.

## 4. Get into the machine

> [tab] CLI
>
> ```bash
> boxd connect myapp
> ```
>
> You get a shell on the machine straight away. Type `exit` or Ctrl-D to come back to the shell on your laptop.

> [tab] SSH
>
> Creating the machine in [step 3](#3-create-a-machine) wrote the `myapp.boxd` alias into your SSH config. `boxd auth login` writes the aliases for the machines you already have. SSH straight to the machine by name:
>
> ```bash
> ssh myapp.boxd
> ```
>
> You get a normal shell on the machine, as the `boxd` user with passwordless sudo. It is real SSH, so `scp`, `rsync`, `ssh -L` and your editor's Remote-SSH all work too.

## 5. Serve something on your public URL

Every machine already has a public HTTPS address at `https://myapp.boxd.sh`. It serves whatever listens on port 80, 443, 8080, 8000, 3000, 5000 or 5173, and falls back to port 8000. To see it working, start the nginx that comes pre-installed:

> [tab] CLI
>
> ```bash
> boxd machine exec myapp -- sudo systemctl start nginx
> ```

> [tab] TypeScript
>
> ```typescript
> await boxd.machines.waitUntilReady(machine.id);
> await boxd.machines.exec(machine.id, { command: ["sudo", "systemctl", "start", "nginx"] });
> ```

> [tab] Python
>
> ```python
> boxd.machines.wait_until_ready(machine.id)
> boxd.machines.exec(machine.id, "sudo systemctl start nginx")
> ```

Now open `https://myapp.boxd.sh` in your browser. You are looking at a server running on your machine, reachable by anyone you send the link to. Swap nginx for your own app on one of those ports and the same URL serves that instead.

## 6. Fork your machine

A fork is a full copy of the source machine exactly as it is right now, with the disk, the memory, and every running process included. Disk and memory are copy-on-write, so the fork arrives in under 200ms.

Fork the machine you just set up:

> [tab] CLI
>
> ```bash
> boxd machine fork myapp myapp-test
> ```

> [tab] TypeScript
>
> ```typescript
> const fork = await boxd.machines.fork("myapp", { name: "myapp-test" });
> console.log(fork.access.url);   // https://myapp-test.boxd.sh
> ```

> [tab] Python
>
> ```python
> fork = boxd.machines.fork("myapp", "myapp-test")
> print(fork.access.url)   # https://myapp-test.boxd.sh
> ```

You now have a second machine, `myapp-test`, with its own URL at `https://myapp-test.boxd.sh`.

**Running processes come with it.** The nginx you started in step 5 is already serving on the fork's URL. Nothing had to boot or start up again. Open both URLs side by side and you will see the same page twice.

## 7. Snapshot your machine

A snapshot is a saved copy of a machine's memory and disk, kept under its own name. Where a fork gives you a live copy of a machine that is still running, a snapshot is a starting point you create machines from. No machine has to keep running for that, so it costs less. It stays around even after you delete the source machine.

Save `myapp` as a snapshot:

> [tab] CLI
>
> ```bash
> boxd snapshots save myapp my-workspace
> ```

> [tab] TypeScript
>
> ```typescript
> await boxd.snapshots.create(machine.id, "my-workspace");
> ```

> [tab] Python
>
> ```python
> boxd.snapshots.create(machine.id, "my-workspace")
> ```

The machine keeps running while it saves. Now you can create machines from that saved state whenever you want:

> [tab] CLI
>
> ```bash
> boxd new fresh --from-snapshot my-workspace
> ```

> [tab] TypeScript
>
> ```typescript
> await boxd.machines.create({ fromSnapshot: "my-workspace", name: "fresh" });
> ```

> [tab] Python
>
> ```python
> boxd.machines.create("fresh", from_snapshot="my-workspace")
> ```

Each one comes up in the saved state with its processes already running, so this is how you keep a known-good setup and hand copies of it to your organization or to an agent.

## 8. Make a checkpoint

A checkpoint is an undo button for one machine. Save one before you try something risky, and if it goes wrong, rewind the same machine back to that moment. The machine keeps its name and its URL.

Save a checkpoint:

> [tab] CLI
>
> ```bash
> boxd machine checkpoint save myapp before-changes
> ```

> [tab] TypeScript
>
> ```typescript
> await boxd.machines.checkpoints.create(machine.id, "before-changes");
> ```

> [tab] Python
>
> ```python
> boxd.machines.checkpoints.create(machine.id, "before-changes")
> ```

Then if a change goes wrong, roll the machine back:

> [tab] CLI
>
> ```bash
> boxd machine checkpoint restore myapp before-changes -y
> ```

> [tab] TypeScript
>
> ```typescript
> await boxd.machines.checkpoints.restore(machine.id, "before-changes");
> ```

> [tab] Python
>
> ```python
> boxd.machines.checkpoints.restore(machine.id, "before-changes")
> ```

The machine reboots into exactly the state it was in when you saved. Checkpoints live on the machine, so they go away when you delete it. Use a snapshot when you want something that outlives the machine.

## 9. Talk between machines

Machines can manage each other. The boxd CLI and both SDKs are already installed on every machine. Inside a private machine they act as the machine's owner, fenced to that organization. Inside a shared machine they act for the organization's shared machines only. There is no API key to copy in and nothing to configure.

Get into `myapp` as you did in step 4, then run any of these from in there:

> [tab] CLI
>
> ```bash
> boxd machine list                            # see myapp and myapp-test
> boxd machine exec myapp-test -- hostname     # run a command on the fork
> boxd machine cp ./file myapp-test:/tmp/file  # copy a file across
> ```

> [tab] TypeScript
>
> ```typescript
> import { Boxd } from "@boxd-sh/sdk";
>
> const boxd = new Boxd();          // no API key needed in here
> for (const m of await boxd.machines.list()) {
>   console.log(m.name, m.status);
> }
> ```

> [tab] Python
>
> ```python
> from boxd import Boxd
>
> boxd = Boxd()                     # no API key needed in here
> for machine in boxd.machines.list():
>     print(machine.name, machine.status)
> ```

To control which machines are allowed to reach which, put them on networks. See [Machine to machine](/guides/vm-to-vm.md).

## 10. Share a machine

Machines are private to you by default. Sharing one opens it to every member of your org, so a colleague can connect to it and work in the same machine.

> [tab] CLI
>
> ```bash
> boxd machine share myapp     # every member of your org can now reach it
> boxd machine unshare myapp   # private to you again
> ```

> [tab] TypeScript
>
> ```typescript
> await boxd.machines.share(machine.id);
> await boxd.machines.unshare(machine.id);
> ```

> [tab] Python
>
> ```python
> boxd.machines.share(machine.id)
> boxd.machines.unshare(machine.id)
> ```

Only the owner can share or unshare a machine, and sharing never moves it between organizations. It only changes who can reach it.

> [!WARNING]
>
> Sharing wipes the agent logins inside the machine, so a colleague with a shell can never read your Claude Code, Codex, or OpenCode tokens. Do not share a machine an agent is working in, because it gets logged out immediately. If you want a copy with your logins intact, fork the machine instead. A fork of a shared machine is private to you.

See [Machine sharing](/guides/share-a-vm.md).

## Next steps

Dive deeper into the [guides](/guides/fork.md), or explore the [use cases](/use-cases/development-workspaces.md).

> [card] [Development workspaces](/use-cases/development-workspaces.md)
>
> A real computer for you and your team.

> [card] [Preview environments](/use-cases/preview-environments.md)
>
> A URL for every pull request.

> [card] [Coding agents](/use-cases/coding-agents.md)
>
> Give an agent its own machine to work in.

> [card] [Personal assistants](/use-cases/personal-assistants.md)
>
> An always-on machine your assistant lives on.

> [card] [Sandboxes](/use-cases/sandboxes.md)
>
> Run untrusted code behind a hardware boundary.

> [card] [Agentic SaaS offerings](/use-cases/agentic-saas.md)
>
> Give every one of your users their own machine.
