Spawn
Self-Spawn Feature Specification
Overview Self-spawn allows users to install OpenCode directly on their existing WordPress server via the Spawn plugin. No external VPS...
Changelog
All notable changes to the Spawn plugin will be documented in this file. [0.9.1] - 2026-02-14 Fixed Replace all hardcoded...
Spawn Cost Breakdown
Last updated: 2026-02-05 Final Decision Starter: $20/month, $5 credits, cpx21/cpx22 Pro: $50/month, $10 credits, cpx31/cpx32 Business: $100/month, $40 credits, cpx41/cpx42...
REST API
Overview Registers spawn/v1 REST endpoints for checkout, auth, customer accounts, credits, chat, and domain settings. Namespace spawn/v1 Constants NAMESPACE (spawn/v1)...
Configuration
Overview Describes Spawn plugin options used by provisioning, billing, domains, and auth. Options spawn_stripe_prices (array) Stripe price IDs keyed by...
Database
Overview Provides CRUD operations for Spawn customers and stores provisioning, billing, and credit metadata in the wp_spawn_customers table. Table {$wpdb->prefix}spawn_customers...
Admin
Overview Adds the Spawn admin menu, renders settings and customer list, and registers plugin options. Settings Registered options: spawn_stripe_price_starter spawn_stripe_price_pro...
Autoload
Overview Registers a PSR-style autoloader for Spawn classes and abilities. Behavior Loads classes in the Spawn namespace. Routes SpawnAbilities* to...
Blocks
Overview Registers Spawn Gutenberg blocks from build/blocks or blocks directories. Blocks domain-search tier-select checkout login dashboard account chat Methods init():...
Get Status Ability
Overview Returns customer subscription status, tier, and credit balance. Class SpawnAbilitiesAbility_Get_Status Method execute( array $input ): array|WP_Error Input { "customer_id":...
Get Usage Ability
Overview Returns usage period bounds, credit balance, and auto-refill flag. Class SpawnAbilitiesAbility_Get_Usage Method execute( array $input ): array|WP_Error Input {...
Manage Billing Ability
Overview Returns the Stripe customer portal URL. Class SpawnAbilitiesAbility_Manage_Billing Method execute( array $input ): array|WP_Error Input { "customer_id": 123 }...
Renew Domain Ability
Overview Creates a Stripe checkout session for domain renewal. Class SpawnAbilitiesAbility_Renew_Domain Method execute( array $input ): array|WP_Error Input { "customer_id":...
Scale VPS Ability
Overview Resizes a customer's Hetzner VPS via the hcloud CLI. Class SpawnAbilitiesAbility_Scale_VPS Method execute( array $input ): array|WP_Error Input {...
Set Auto-Refill Ability
Overview Configures auto-refill settings for a customer. Class SpawnAbilitiesAbility_Set_Auto_Refill Method execute( array $input ): array|WP_Error Input { "customer_id": 123, "enabled":...