Skip to content

Machines

A machine is a small virtual machine (a Firecracker microVM) in one of your projects, in your organization’s region in the EU. It has its own disk, vCPUs and memory, and runs Linux with you as root. A machine you are not using is suspended: it stops and uses no compute, keeping its disk, and resumes when you connect to it or ask it to. Checkpoints back up its disk under a name.

Create a machine

In the portal, open a project and choose New machine: a name, an image and a size. Or with the CLI:

space machines create dev --wait

--wait returns once the machine is running. The name is unique in the organization: 1 to 63 lowercase letters, digits and -. Add --from <checkpoint> to start from a checkpoint’s disk instead of a fresh one, and --asleep to make the machine suspended, without starting it, when the organization’s running quota is full.

The New machine dialog: the name website, CPU and memory at 1 vCPU and 1 GiB, Storage at 10 GiB, and the Image choice with Devbox picked The New machine dialog: the name website, CPU and memory at 1 vCPU and 1 GiB, Storage at 10 GiB, and the Image choice with Devbox picked

Size

DefaultRange
vCPUs (--vcpus)21 to 8
Memory (--mem, MiB)2048256 to 16384
Disk (--disk, GiB)101 to 1024
space machines create build --vcpus 4 --mem 8192 --disk 40 --wait

Your organization’s quota can lower the maximums (space orgs show). Running machines count against its running quota (their vCPUs and memory); every machine, suspended or not, counts against the number of machines and the disk quota (the disks’ sizes added up). What the disks store is counted apart: see Storage.

The machines the platform runs for you (your agents’ machines, Claude Code sessions' machines, browsers, and your organization’s git) don’t count against the running quota or the number of machines. Each kind has a fixed size and a count of its own instead: how many of them may run at once. Their disks count against the disk quota. By default a plan allows (your organization’s own limits are under Usage & limits, below):

Platform machines runningAt once
Agents (agents’ machines and Claude Code sessions’ machines together)5 per member of the organization
Browsers (each is suspended with the machine it is for)3
Git1

A member joining raises the agents’ count, one leaving lowers it: running agents keep running, but the next one to start or resume over the count is refused, in words, like any quota refusal (see Troubleshooting). A suspended machine counts for none of these.

Usage & credits in the portal (its Usage & limits tab) shows each limit next to what the region counts now: the running vCPUs and memory of your own machines, your machines, the disk, and the platform machines running, in a group of their own.

Each kind of platform machine has this size:

Platform machinevCPUsMemoryDisk
An agent’s machine21 GiB4 GiB
A browser11 GiB4 GiB
Your organization’s git1384 MiB10 GiB
A project’s Managed Agents dispatcher or Claude Code runner orchestrator1256 or 512 MiB8 GiB
A Claude Code session’s machine21 GiB8 GiB

An agent’s machine holds only the agent’s session, logs and caches (its work runs on another machine of the project), so its disk is small. A Claude Code session’s machine is the agent of that session, so it has the agent’s vCPUs and memory; its disk is the 8 GiB its image needs. Machines made before these sizes keep their disks (agents’ machines had 10 GiB, session machines 20 GiB or what their project set) until they are made again; a session machine made at its project’s size takes 2 vCPUs and 1 GiB at its next start.

Storage: what is written

Storage is counted by what each machine, fork and checkpoint holds of its own, not by the size of its disk:

  • a machine made from an image counts what it has written, not its whole disk;
  • a fork (a machine made from a checkpoint) shares what it was made from and counts only what it wrote since: thirty forks of one 20 GiB app count as the app plus thirty small forks, not 600 GiB;
  • a checkpoint counts what changed since the checkpoint before it.

The region counts it about every 15 minutes, in whole blocks of 1 MiB (4 MiB for disks made before storage was counted this way): every block a write touches counts in full, so small writes scattered over a disk can count many times what was written (256 writes of 4 KiB in different places, 1 MiB in all, count 256 MiB).

Usage & limits has a Storage group: per kind (machine disks, forks, checkpoints, checkpoints and disks kept for forks of them, hot suspend, cold suspend, buckets, backups), what it stores now and its GiB-hours this month, what was stored for how long. Backups are shown for information. The machine’s Manage dialog shows its disk as 3.1 GiB stored of 20 GiB disk, and the checkpoint lists what each checkpoint stores.

A machine on cold suspend keeps its disk in object storage instead: from then until it resumes, it counts as cold suspend at what that storage holds (what the machine wrote, without the parts of its image it never changed), not as a machine disk.

Each plan can set a storage ceiling on machine disks, forks and checkpoints: a safety limit well above what a plan includes. At or over it, what adds to it is refused, in words (Forks store 51.2 GiB of the organization's 50.0 GiB ceiling): a new machine, a fork, a bigger disk, a checkpoint. Machines that run keep running and keep writing. You get an alert at 80 %.

Memory: reserved and in use

A running machine of your own reserves its memory size: that is what the running memory quota counts, whatever the machine does with it (platform machines don’t count against it). Its in use figure is what the programs in it use right now (the guest’s total memory less what it has available), shown next to it so you can see how small the machine could be:

  • the machine’s Manage dialog (Details): Memory 8 GiB reserved · 2.1 GiB in use (3.4 GiB at most today), the most being the highest of the last 24 hours;
  • Usage & limits, running memory: what the running machines reserve, and below it what they use;
  • the machine’s card on the canvas, when you hover it;
  • space machines show: memory 8G reserved, 2.1G in use (3.4G at most today).

A suspended machine reserves nothing and shows asleep. In use is read about once a minute; - means there is no recent figure. It is never counted: a machine that uses little still reserves its whole size, so to make room in the quota, suspend a machine or resize it smaller.

Resize

Change a machine’s vCPUs, memory and disk after it was created: in the portal, Manage in its menu on the canvas, then the Size tab and Resize; or with the CLI:

space machines resize dev --mem 4096 --disk 20 --yes --wait
The Size tab of a machine's Manage dialog: CPU and memory moved to 4 vCPUs and 8 GiB, Storage to 20 GiB, and the button Resize and restart The Size tab of a machine's Manage dialog: CPU and memory moved to 4 vCPUs and 8 GiB, Storage to 20 GiB, and the button Resize and restart
  • What you leave out stays; the ranges are those of create.
  • A suspended machine takes the new size when it next resumes.
  • A running machine restarts into it (Resize and restart in the portal): a few seconds, its disk kept, what runs in it stopped, as in a suspend. The CLI asks first on a terminal; --yes skips that.
  • The disk only grows; the filesystem grows with it at the next boot.
  • The quota counts the new size. When no host of the region can take it right now, the machine is suspended at its new size until you resume it or resize it back.
  • A machine the platform runs for you (an agent’s, a Claude Code session’s, a browser, git) has a fixed size: it can’t be resized.

From inside a machine, space-env resizes another machine of the project, or the machine itself:

space-env machines resize web --mem 8192 --disk 40
space-env resize --mem 8192

space-env resize answers first, then the machine restarts into its new size a few seconds later; it needs the resize_self grant, which every machine has unless its grants were limited. An agent’s side of this is in An agent’s machines.

Every option and exit code is in the command reference.

Suspend, resume and delete

space machines sleep dev --wait
space machines wake dev --wait
space machines list

A machine is suspended on its own after a while without use (what counts as use); space ssh to a suspended machine resumes it. space machines sleep suspends it at once and space machines wake resumes it. Running programs don’t survive a suspend: make them services and the machine starts them again at every boot.

space machines delete dev

Deleting asks for confirmation on a terminal; --yes skips it. In the portal (Delete on the machine’s Manage dialog or in its menu on the canvas) it asks for a code from your authenticator app or a passkey: the disk is gone for good. Every command and state is in the command reference.

Where its disk is kept

Where your operator moved disks onto the hosts, a machine’s disk is on the fast local storage of the host it runs on, so writes and fsync are quick. It is also saved to object storage in your region:

  • while the machine runs, a few minutes after it writes (only what changed since the last save), and
  • every time it is suspended or stopped.

If the host fails, the machine restarts on another host with its disk as of its last save: what it wrote in the minutes before can be lost. It shows as crashed until you resume it, and its page and space machines show say which save it has (disk as of <time>). A suspended machine loses nothing, and resumes on another host when its own is full or gone (cold suspend).

Its checkpoints are saved the same way, a moment after they are taken, and kept as long as the checkpoint is: a restore or a new machine from one works on any host, also after the host failed. A checkpoint the host failed before saving (taken in the moment before) is lost with it and shows as failed.

Once a day the save of that day is kept as a backup for 7 days, and copied to object storage in a second region (Paris); a save that is overwritten or deleted is kept 7 days too. Your operator restores a backup; to go back yourself, take checkpoints.

Elsewhere, a machine’s disk is on the region’s replicated storage.

Fork

A machine can copy itself into a new machine with a task, from inside, to hand work to a copy of its agent.

space-env fork NAME --text "TASK" checkpoints the machine’s disk, creates machine NAME from that checkpoint with the same size, and puts TASK in the new machine’s inbox as its first message, from the forking machine. The fork has the disk as it was at that moment (files, repositories, tools), not the memory or running programs. It counts against your organization’s quota like any machine, and its checkpoint (fork-NAME-…) stays listed until you delete it.

space-env fork issue-2 --text "Fix issue 2 on branch issue-2, push it, then reply to me."

The fork guide shows the whole loop: hand off, wait for the reply, review.

Hot forks

A fork is made from the disk alone unless you ask for a hot fork: --hot copies the machine’s memory as well, so the fork starts with the same programs running, in the same state. It is meant for things that take long to get going, such as a development website with its server, build watcher and warm caches:

space-env machines fork --hot web web-try
forked web hot as web-try	running	2 vCPU, 2048 MiB, 10 GiB

space-env fork --hot NAME --text "TASK" does the same for the machine you are in. What to know before you use it:

  • The machine pauses while its memory is written: about 0.6 seconds per GiB of its memory (a 2 GiB machine pauses for about 1.2 seconds). Its disk is frozen for a little longer, so programs that write wait a moment more.

  • Its terminals carry on after the pause. Its tunnels, space ssh port forwards and connections through the web portal drop and must be opened again; its own network connections carry on.

  • Programs carry their own random state into the fork. The kernel’s random-number generator is renewed in the fork, and the platform’s own services (SSH and the rest) are restarted for you with new keys, but a program’s own generator is not: restart what makes keys, tokens or ids in the fork, or add a script for it to /etc/vmagent/on-fork.d/, which runs in the fork once it starts.

  • The kernel’s boot_id stays the original’s: a program that uses it to tell machines apart sees one.

  • The fork runs on the same host as the original, which holds its memory. When that host has no room for it, or the memory can’t be copied or used, you get an ordinary fork from the disk instead, and the answer says so and why:

    forked web cold as web-try	running	2 vCPU, 2048 MiB, 10 GiB
    not hot: its host has no room for another machine of its size now, and a hot copy must run there
  • Not on a machine that runs an agent, such as a Claude Code session’s machine: the copy would carry on the same agent’s session. --hot on one is refused; fork it without.

Until the fork next suspends or stops, the copied memory is kept on the host’s disk and counts as the fork’s hot suspend storage.

Images

A machine starts from an image: what is installed on its disk when it is made. Pick one under Image in the portal’s New machine dialog; space machines create makes a Minimal machine. Every image gets the same platform layer (space-env and the services behind it, see Building blocks), every machine is suspended when idle and resumes on demand, and you install anything else with apt-get. An agent’s own machine is made with the agent and isn’t one of these choices.

ImageFor
Minimal (the default)your own setup, from a small Debianbelow
Devboxbuilding and running projects, with the usual toolsbelow
Makepad canvas
Experimental
a native UI on the portal’s canvasbelow
Appkit
Experimental
an app of applets for your teambelow

Minimal

The default image: Debian 12 with little more than it needs to run as a machine. It has an SSH server, git, busybox, the CA certificates, and the en_US, nl_NL, de_DE and fr_FR UTF-8 locales (LANG is en_US.UTF-8, the time zone UTC). Start from Minimal when you want to choose your own tools, or when a machine runs one small thing.

Devbox

A machine made from the Devbox image is a development machine with the usual tools installed, so you and your agents can build and run a project without setting anything up first. Pick Devbox under Image in the New machine dialog. Like every machine, it is suspended when idle and resumes on demand.

What is in it

The shellgit, tmux, vim, nano, ripgrep (rg), fd, jq, htop, lsof, strace, rsync, sshfs, man
Build toolsgcc and make (build-essential), cmake, pkg-config, the OpenSSL headers
PythonPython 3 with venv, pip and its headers; uv
Node.jsNode with npm; corepack, for pnpm and yarn
Ruststable, with rustup, cargo, rustfmt and clippy
Gogo and gofmt
Databasessqlite3, the PostgreSQL client (psql)
Forgesgh (GitHub), glab (GitLab), pun (pushin.eu)

Everything is root’s and on the PATH, with nothing to configure. The versions are fixed per image; rustup, uv and corepack install other versions of their toolchains if a project asks for them. Install anything else with apt-get.

There is no coding agent in a Devbox: agents have machines of their own. Point an agent’s work link at a Devbox and the agent’s commands and files run there (Agent tool links).

Experimental

Warning

These images are experimental: what is in them and how they work may still change.

Makepad canvas

A machine made from the Makepad canvas image has an app of its own to show: a makepad app in /root/canvas. The machine says so in its metadata, and an agent that works in the machine changes the app while you look at it.

On the portal’s canvas the machine’s card has an Open button, which shows the app in a panel of the screen (below).

What is in the machine
/root/canvas/ui.splashthe app’s UI, a script in makepad’s Splash language
/root/canvas/src/main.rsthe Rust app around the script
/root/canvas/AGENTS.mdthe rules of the script language, for the agent
Rust (a pinned nightly), cargo makepad, makepad’s sourcesto rebuild the app, without the network
space-canvasthe commands below
service canvasserves the app to open windows and watches the files
Two ways to change it

The script. Save ui.splash and every open window shows the new UI at once. Nothing is built and the app keeps running. A script with an error doesn’t replace the one on screen: space-canvas check says whether the script as saved evaluates, with line and column of each error.

What a script wants to keep over a change it saves itself, and gets back in on_state:

let count = 0
fn on_state(json){
    let s = json.parse_json()
    count = s.count
    ui.value.set_text("" + count)
}
fn add(d){
    count = count + d
    host.request("state.save", {count: count}, fn(r){})
}
View{
    width: Fill height: Fit flow: Down
    value := Label{text: "0"}
    Button{text: "+1" on_click: || { add(1); ui.value.set_text("" + count) }}
}

The script runs in a restricted isolate: no network, no files. It reaches outside only through host.request, which the Rust app answers.

The script also names its title, and may ask to go without a frame (below):

host.request("window.set", {chromeless: true, title: "My board"}, fn(r){})

The Rust code. When the script language falls short, change src/main.rs. The service rebuilds the app when a file under src/ changes (a few seconds after a small change), or run it yourself to read the compiler’s errors:

space-canvas build

After a build that succeeds the open windows start the new app, and its state is gone. A build that fails changes nothing on screen.

The commands
space-canvas status                       # published? built? is anyone looking?
space-canvas check                        # does ui.splash as saved evaluate? (exit 1: no; 3: nobody looks)
space-canvas log                          # how the script loaded, run-time errors, a failed build
space-canvas shot canvas.png              # a picture of the canvas, from an open window
space-canvas push                         # send ui.splash to the open windows again, and say as check does
space-canvas publish --title "Todo list"  # the name on the card
space-canvas publish --backend-port 8080  # where the app's WebSockets go (below)
space-canvas unpublish                    # no canvas to open

Every command but build takes --name N for another canvas than main (below).

check, log and shot report what open windows saw: the script runs only in a window, so without one check says “not checked” and there are build errors only.

Agents in the machine get a makepad-canvas skill: a short Splash tutorial and where the app’s code is.

Publishing

The service publishes the canvas when the machine boots, as two keys of the machine’s metadata, which every machine of the project can read:

KeyValue
canvas/main{"title": "Canvas", "kind": "makepad", "bundle": "<hash>"}: there is a canvas to open. bundle changes when the built app does.
mcp/canvas{"command": "space-canvas", "args": ["mcp"], "tools": [...]}: the tools below, by name.

The metadata says only that there is a canvas. The app itself goes to a window over that window’s own connection to the machine, never through metadata. space-canvas unpublish removes both keys and keeps them away over a reboot.

Several canvases

A machine has one app and any number of canvases of it. Each has a name, its own script (ui.splash for main, <name>.splash for another; so no canvas is named ui), title and backend port, and is one of two kinds:

Kind--layerWhere it shows
a person’suser (the default)in a canvas app panel of whoever opens it from the machine’s card
sharedsharedthe same; for everyone, a canvas_app panel on one of the project’s screens (below)
space-canvas publish --name board --title "Board" --layer shared --size 800x500
space-canvas open --name board             # everyone sees it
space-canvas close --name board            # and no longer

space-canvas publish --name ticket --title "Ticket"
space-canvas open --name ticket --for alice@example.com    # a window on her canvas
space-canvas close --name ticket --for alice@example.com

The person is named by the email address they sign in with. In the metadata a shared canvas has "layer": "shared" and "shown" in its canvas/<name> value. An opening for one person is the key canvas-open/<name>/<key>, where the key is a hash of the address: other machines of the project read the metadata, and don’t learn the address from it.

space-canvas unpublish --name N takes one canvas away; the tools’ key goes with the last.

A machine of another image can publish a canvas the same way once it has the layer’s space-canvas; today only the Makepad canvas image does.

For an agent on another machine

An agent in the machine edits the files and runs space-canvas. An agent elsewhere gets the same as tools: space-canvas mcp is an MCP server over stdio.

ToolFor
canvas_read_script, canvas_write_scriptthe script; writing returns whether it evaluates in an open window
canvas_checkwhether the script as it is now evaluates
canvas_buildrebuild the Rust app, with the compiler’s output
canvas_log, canvas_statusas the commands
canvas_shotthe picture, as an image
A backend

The app in a window has no network of its own. A WebSocket it opens is connected to one port on this machine, the one you name with space-canvas publish --backend-port. The address’s host is ignored; its path and query are kept. Without a backend port such sockets are refused, so an app cannot reach anything else in the machine or outside it.

On a screen

A machine that publishes a canvas shows it in a canvas app panel on one of the project’s screens: "type": "canvas_app" bound to the machine, with the canvas’s name as its app option (main without one). On the portal’s canvas the machine’s card has Open beside the shell button (with several canvases the card’s menu names each), which opens it as a panel of the screen, in its target stack or a side sheet. A suspended machine resumes first.

  • The panel’s title names the canvas and the machine it comes from.
  • The pointer, the wheel and the keys go to the app while the panel has the focus. The clipboard, input methods and drag and drop don’t yet.
  • The panel’s status line shows what is wrong: a script’s mistake with line and column (the last good script stays on screen), a run-time error of the app.
  • After a rebuild in the machine the panel starts the new app by itself.
  • The app is laid out at the panel’s size.
  • When the connection ends the panel says why, with Open again.
How the panel looks

A canvas app panel has the title bar every panel has; with "chrome": false in the page’s file it has none, and the app is all there is. Pop out in the panel’s title bar shows it in a browser window of its own.

Shared canvases, and windows a machine opens

Note

Since a project’s canvas became a panel of its screens, the portal no longer draws a shared canvas on the agents view, nor a window a machine opens for one person. space-canvas open and close (with or without --for) and --layer shared still publish what they did, and every canvas, shared or not, opens in a canvas app panel: from the card’s Open (or its menu), or as a canvas_app panel of a page that everyone sees, which is how a canvas is shared now.

Opening a canvas is opening the machine’s console as far as rights go: the same members may, and the audit log has the same line. The app runs in the browser in a frame of its own, without the portal’s cookies and without a network; it reaches only its own machine, through the window.

When it runs

Service canvas starts with the machine (services) and stops when it is suspended. It listens on a socket only root can open (/run/space-canvas/bridge.sock); no port is opened. If /root/canvas is gone, the service puts the image’s template back (/opt/makepad-canvas/template).

Appkit

A machine made from the Appkit image comes with an app for your team’s own use: the applet shell. It is made of applets. Each applet has a page, its own data, and, if it wants, canvases on the portal’s canvas. An agent that works in the machine adds applets and changes them while you look.

The image is not offered in regions yet: it is built, and its roll-out is the next step.

What is in the machine
/root/applet_shellthe shell’s sources (Phoenix LiveView, Ash, SQLite); open source
/root/applet_shell/AGENTS.mdthe rules for an agent that works on it
Erlang and Elixirto run it from source: a saved file is recompiled and live
service applet-shellruns the shell on port 8080
/var/lib/applet-shell/shell.dbits data
everything of the Makepad canvas imagethe canvases’ app, space-canvas, Rust
Who gets in

The shell is behind the machine’s web portal, which the service attaches at its first start. It lets in the members of your organization (Sign in with AgentSpaces) and people you invite (space-env web-portal invite), and nobody else. The address is the portal’s: space-env web-portal show prints it.

Applets

The nine dots in the top bar switch between applets.

  • Home lists the applets and their canvases, with buttons to show a shared canvas to everyone or to open a person’s canvas (which the portal shows in a canvas app panel, above).

  • Board is a ticket board: lists of tickets that you drag between lists. Its two canvases are the example of both kinds:

    • board, shared: the whole board;
    • ticket: the ticket you chose Show on canvas for, with a button that moves it to the next list.

    A change on the page, or in a canvas, shows in the others at once.

A new applet

Ask the agent in the machine, or do it yourself: an applet is a module that names its page, its data and its canvases, listed in the shell’s configuration.

defmodule AppletShell.Applets.Notes do
  use AppletShell.Applet,
    name: "notes",
    title: "Notes",
    icon: "hero-pencil-square",
    domain: AppletShell.Applets.Notes.Domain,
    live: AppletShellWeb.NotesLive,
    canvases: [[name: "notes", title: "Notes", layer: :shared, size: {640, 400}]]
end

/root/applet_shell/README.md has the steps, and the board (lib/applet_shell/applets/board) is all of them in one place.

Canvases of an applet

A canvas’s UI is a Splash script beside the applet (canvases/<name>.splash). The shell publishes every applet’s canvases when it starts. From the applet’s code:

AppletShell.Canvases.open("board")                          # everyone sees it
AppletShell.Canvases.open_for("ticket", "ada@example.com")  # a window on Ada's canvas
AppletShell.Canvases.push("board", "board", "state", %{lists: [...]})

The script and the applet talk over a channel: the script joins canvas:<applet>:<canvas> and gets the applet’s state, pushes events, and receives what the applet pushes (the script’s side is in the canvas page and in /root/canvas/AGENTS.md).

The app in a canvas does not know who looks at it. What the board shows in a person’s ticket window is the ticket that was last shown, whoever asked.

applet-shell status                   # does the shell answer? its web portal
space-env services restart applet-shell
space-canvas status --name board      # a canvas: published? shown? anyone looking?
Last updated on