Overview

The BYOC Deploy Wizard provisions a self-hosted Allternit runtime on your own VPS. It automates server creation, SSH bootstrap, mesh enrollment, runtime pairing, and registration in the platform gizzi instance registry. The wizard is hosted by the Allternit Cloud API and driven through a stateful HTTP API at /api/v1/cloud/wizard/deployments. The wizard supports two credential modes:
  • API mode: provide a provider API token and the wizard creates the server for you.
  • Manual SSH mode: provide an existing SSH host and credentials; the wizard skips cloud provisioning and runs bootstrap directly.

Base URL

All wizard endpoints require a Clerk session JWT in the Authorization: Bearer <token> header.

Wizard steps

Endpoints

Start a wizard

API mode

Manual SSH mode

Response

Secrets are redacted from every response but retained server-side for later steps.

Advance the wizard

Response

Advance is idempotent per step: duplicate requests return the current state without re-executing.

Bootstrap the box

When the wizard reaches the Bootstrap step, call the dedicated bootstrap endpoint. It is long-running because it downloads and installs software over SSH.

Response on success

Retryable failures

If bootstrap fails for a recoverable reason (transient SSH or script failure), call the same endpoint again. The bootstrap script is idempotent. The response includes the attempt count:
Once maxBootstrapAttempts is reached, or the failure is non-recoverable (auth or validation), retry returns HTTP 409:

Resume after a human checkpoint

Some steps require human action (for example, confirming a provider account). Use resume to record the action and advance.

Cancel or delete

Supported providers

Security model

  • Provider API tokens and SSH private keys are stored encrypted at rest when ALLTERNIT_CREDENTIALS_KEY is configured.
  • Tokens and keys are never echoed in API responses.
  • Mesh preauth keys and runtime-pairing bootstrap tokens are minted before the SSH run and only ever written to the 0600 env file on the box.
  • The platform writes the gizzi instance registry row directly; credentials are never handed to the VPS.

Error codes