---
raw: true
title: Spacefast
description: Publish the sites your agents build. One command, a live URL, immutable versions, custom domains.
sidebar:
  order: 0
---

Spacefast hosts the sites people build with AI agents. You hand it a folder, it hands back a URL. Everything you can do in the dashboard you can also do from the `sf` CLI, the HTTP API, or an MCP server, so the agent that built the site can publish it too.

## Publish in one command

```bash
npm install -g spacefast
```

```bash
sf publish ./dist
```

No account needed for the first publish. The CLI creates a Space, uploads the files, and prints a live URL plus a claim link. Sign in later to keep it.

```text
Published: https://quiet-harbor.space.fast

  Open          https://quiet-harbor.space.fast
  Version URL   https://quiet-harbor--v1.space.fast
  Version       v1 (ready)
  Files         12
  Duration      3.2s
```

Or ask the agent that built it.

**Publish this folder to Spacefast and give me the live URL.**

> Publish this folder to Spacefast and give me the live URL.

## How it fits together

A **Space** is one site with a stable hostname. Every publish creates a new **version**, an immutable snapshot with its own URL that never changes. The `live` channel points at one version. Promoting or rolling back moves that pointer. Nothing gets rebuilt.

Static output is the default path. Point `sf publish` at a build directory and it uploads only the files that changed. If you'd rather publish source, Spacefast detects the framework and builds it. Sites that need a database, server functions, or scheduled jobs opt into the Zero runtime with one line of config.

**[Quickstart](/docs/quickstart)**

Install, sign in, publish, and attach a domain in five minutes.

**[Publishing](/docs/publish)**

What gets uploaded, how versions work, and how to roll back.

**[Custom domains](/docs/domains)**

DNS records, verification, TLS, and the primary domain.

**[Agents](/docs/agents)**

Connect Claude Code, Cursor, Codex, or any MCP client.

**[CLI reference](/docs/cli)**

Every `sf` command, flag, and exit code.

**[API](/docs/api)**

Auth, envelopes, errors, and the full operation reference.
