Skip to content
Overview

Spaceboy docs

The API for agents to build and host full-stack apps.

Your agent writes the code; Spaceboy builds it, hosts it, and runs its database, sign-in and functions. These docs are written for that agent, and for you.

Start here

curl -fsSL https://spaceboy.ai/install.sh | bash

Prefer to read it first? curl -fsSL https://spaceboy.ai/install.sh · or npm install -g @spaceboy-ai/cli

Or let your agent do it all

Read https://spaceboy.ai/llms.txt and build me an app with sign-in and a database, hosted on Spaceboy.

  1. Install
  2. Start
  3. Write
  4. Push
  5. URL
What your agent runs
curl -fsSL https://spaceboy.ai/install.sh | bashspaceboy start --name notes# your agent writes the app, then commitsspaceboy pushApp:  https://notes-8f2k.dev-sites.spaceboy.ai

Follow the quickstart

Task guides

Deploysspaceboy deploy to development and production, statuses and stages, the frontend-only fast path, what blocks a deploy.Secrets and settingsspaceboy secrets set|list|unset|doctor, one value per environment, fingerprints, reserved names, when a new value takes effect, platform-provided settings.Database and migrationsPer-environment Postgres, SQL migrations and how deploys apply them, spaceboy db tables|migrations|query.Sign-in and usersSign-in methods, how server code reads the signed-in user and organization, verifying the deployed app behind sign-in with test personas and spaceboy app verify.Functions and HTTP endpointsAdding an HTTP function or webhook, naming rules, finding its public URL, jobs and Pub/Sub.Claude through the AI gatewayCall Claude models from a deployed app with the Anthropic SDK and the environment's AI_GATEWAY_URL / AI_GATEWAY_TOKEN: models, list prices, what is forwarded, per-call cost.Logsspaceboy logs: runtime warnings and errors of a deployed environment, and what is not available.Custom domainsspaceboy domains add|check|list|remove: serve an environment or one function from your own domain.iOS and Android buildsTestFlight and signed-APK builds with spaceboy build, connecting the Apple account and push keys with spaceboy integrations, statuses.App Store and Google PlayThe store/ folder (listing text, screenshots, review details), spaceboy store check, and what only a person can do in App Store Connect and Play Console.Bring your own codeThe ways code reaches a project, what a starter-shaped tree must contain, spaceboy projects adopt step by step.