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 | bashPrefer to read it first? curl -fsSL https://spaceboy.ai/install.sh · or npm install -g @spaceboy-ai/cli
Read https://spaceboy.ai/llms.txt and build me an app with sign-in and a database, hosted on Spaceboy.
- Install
- Start
- Write
- Push
- URL
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
Task guides
Deploys
spaceboy 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.CLI reference
Concepts
Projects and environmentsOrganizations, projects, development and production environments, deleting.PreflightWhat every push is checked for before anything is merged: what blocks, what warns, how to acknowledge.What a project provisionsStarters,
repobot.deploy.json, what the first deploy creates, and the price.Pricing and billingWhat is free, the one checkout a person completes, --confirm-charge, more room, failed payments, the error codes.