Runtime Reference
CLI commands
Section titled “CLI commands”From src/:
# Start web servergo run . start --database-url "$DATABASE_URL" --port 8080
# Migrationsgo run . migrate up --database-url "$DATABASE_URL"go run . migrate down --database-url "$DATABASE_URL"go run . migrate status --database-url "$DATABASE_URL"go run . migrate version --database-url "$DATABASE_URL"go run . migrate create add_new_tableEnvironment variables
Section titled “Environment variables”DATABASE_URL(required): PostgreSQL connection string used bystartandmigrateWEBAUTHN_RP_ID(required): relying party ID for passkeysWEBAUTHN_RP_ORIGINS(required): comma-separated allowed originsWEBAUTHN_RP_NAME(optional): display name, defaults toFleetiCSRF_SECRET(required): secret used to sign CSRF tokens for POST requestsBOOTSTRAP_TOKEN(required for initial setup): token used in/setup?token=...OPENROUTER_API_KEY(optional): enables the profile AI wizardOPENROUTER_MODEL(optional): OpenRouter model for the profile AI wizard, defaults toopenai/gpt-5-miniOPENROUTER_BASE_URL(optional): override the OpenRouter chat completions endpointOPENROUTER_HTTP_REFERER(optional): forwarded to OpenRouter for request attribution
Key endpoints
Section titled “Key endpoints”GET /connectivity: lightweight connectivity checkGET /healthz: health endpointGET /api/v1/profiles: list profiles visible to the authenticated API key ownerGET /api/v1/profiles/{id}: fetch the latest configuration for a specific visible profileGET /api/v1/profiles/{id}/builds: list builds for a specific visible profileGET /api/v1/profiles/{id}/builds/{buildId}: fetch a specific build for a visible profileGET /api/v1/profiles/{id}/builds/{buildId}/logs: poll incremental logs for a queued or running buildPOST /api/v1/profiles/{id}/builds: queue a new build for a manageable profilePUT /api/v1/profiles/{id}: replace the latest stored profile configurationPATCH /api/v1/profiles/{id}: partially update the latest stored profile configurationGET /profiles/wizard: AI-assisted draft flow for creating a new profileGET /profiles/{id}/wizard: AI-assisted draft flow for adapting an existing profileGET /login: login pageGET /setup: first user setup / invite setup flowPOST /webauthn/login/startandPOST /webauthn/login/finish: passkey loginPOST /webauthn/setup/startandPOST /webauthn/setup/finish: bootstrap/invite setup/update/*: served update artifacts directory