Skip to content
Fuse
Esc
↑↓navigate↵open⌘Jpreview
On this page

Quickstart

Install the CLI, start Fuse on your laptop or a KVM server, and boot your first environment

Fuse has two parts: the CLI on your laptop, and a stack (orchestrator, host agent, microVMs) that runs wherever there is KVM. Pick where the stack runs:

Run it locally Run it on a KVM server
Where Your laptop A Linux box you can SSH into
Needs Linux with /dev/kvm, or macOS 15+ on M3 or later Linux x86_64 with /dev/kvm and sudo
Setup fuse local up sudo ./scripts/fc-agent.sh bootstrap
Good for Trying Fuse, developing a Fusefile Real workloads, a team, always-on

Both run the same binaries, so a Fusefile that works on one works on the other.

1. Install the CLI

brew install --cask folsomintel/fuse/fuse

Or, without Homebrew (macOS and Linux):

curl -fsSL https://raw.githubusercontent.com/folsomintel/fuse/main/ops/install-fuse.sh | bash

Check it with fuse --version.

2. Start the stack

Do one of these.

Option A: locally

fuse local up

The first run downloads Firecracker, a kernel, a base rootfs and the fuse binaries into ~/.fuse/local/ (on macOS it also boots a small Linux appliance VM, so install vfkit first with brew install vfkit). It then connects the CLI to a context named local and registers your machine as a host. Later runs take seconds.

Stop it with fuse local down. See Local development for requirements and troubleshooting.

Option B: on a KVM server

On the server, check that KVM is there, then clone the repo and run bootstrap:

ls -l /dev/kvm   # must exist, or the box cannot run microVMs

git clone https://github.com/folsomintel/fuse && cd fuse/host-agent/firecracker
sudo ./scripts/fc-agent.sh bootstrap

bootstrap installs the host dependencies, Firecracker, the host agent, a local Postgres and the orchestrator as systemd services, bakes the guest rootfs, registers the box as host local-fc, and turns on a weekly auto-update. It is safe to re-run. It ends by printing the line to run on your laptop:

 fuse host ready
   orchestrator : http://203.0.113.10:8080
   token        : 3f9c...

   drive it from your laptop:
     fuse connect http://203.0.113.10:8080 --token 3f9c...

Open 8080/tcp from your laptop to the server (or put it behind a TLS proxy or a tailnet), then run that fuse connect line on your laptop.

3. Write a Fusefile

In any project directory, save this as Fusefile:

version: 1

resources:
  cpus: 2
  memory: 2GB

run: echo "hello from $(hostname)" > hello.txt

That is the whole shape: how big the box is, and what to run on it. See Your first Fusefile for what each line does, and Fusefile for every field. fuse init writes a fully commented example with every field filled in, which is a good reference but needs editing before it boots.

4. Bring it up

fuse up

up creates an environment from the Fusefile and streams events until it is running, then exits. If it ends up failed, up exits non-zero.

5. Use it

fuse environment list
fuse environment exec <id> -- cat /workspace/hello.txt

Already have an orchestrator and host?

If you deployed the pieces yourself (see Orchestrator deploy and Firecracker host setup), connect the CLI and register the host in one guided pass instead of step 2:

fuse quickstart

It prompts for the orchestrator URL and token, then the host’s ID, agent URL and agent token. On a non-tty, run the two steps it wraps:

fuse connect https://orch.example.com --token "$ORCH_AUTH_TOKEN"
fuse host register prod-east-1 \
  --url http://10.0.0.5:8090 \
  --token "$FC_AGENT_TOKEN" \
  --max-vms 20

Installing the CLI

The install script verifies the release archive against its checksums.txt and installs to /usr/local/bin (or ~/.local/bin when that is not writable). VERSION=vX.Y.Z pins a release and FUSE_INSTALL_DIR=/path picks the target. You can also download the fuse-cli_* archive for your platform from the latest release.

If macOS refuses to open a binary you downloaded through a browser, clear the quarantine attribute:

xattr -dr com.apple.quarantine ./fuse

Upgrade a Homebrew install with brew upgrade --cask folsomintel/fuse/fuse.

Next steps

Was this page helpful?