⌘K
DocsDeveloper reference

Install your lane

Set up the CLI, note the API endpoint, or add the SDK to your app.

The CLI

macOS and Linux (Terminal):

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

Windows (PowerShell):

irm https://spaceboy.ai/install.ps1 | iex

Or install from npm on any platform — the natural path for CI pipelines and coding agents, and it pins cleanly in a lockfile:

npm install -g @spaceboy-ai/cli
# or run it without installing:
npx @spaceboy-ai/cli login

All install paths require Node 20+ (the script installers check for it). On Windows, plain `curl` in PowerShell is an alias for Invoke-WebRequest — use the PowerShell command above, or run the bash installer inside WSL or Git Bash.

Run spaceboy with no arguments to see the greeting and quickstart:

The API

Nothing to install — one GraphQL endpoint serves the whole platform:

Endpoint

https://api.repobot.dev/graphql

Method

POST

Auth header

Authorization: Bearer rbk_...

The npm SDK

Add the SDK to a TypeScript or JavaScript project:

npm install @spaceboy-ai/sdk

Create one client and use it everywhere:

import { Spaceboy } from "@spaceboy-ai/sdk"
const spaceboy = new Spaceboy({
apiKey: process.env.REPOBOT_API_KEY,
})
const projects = await repobot.projects.list()

The SDK requires Node 20+ (it uses the built-in fetch). Every example in this reference assumes a `repobot` client constructed like this.

Authentication