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():...
Add Credits Ability
Overview Adds credits to a customer's balance. Class SpawnAbilitiesAbility_Add_Credits Method execute( array $input ): array|WP_Error Input { "customer_id": 123, "amount":...
Cancel Ability
Overview Cancels a subscription and schedules deletion after the grace period. Class SpawnAbilitiesAbility_Cancel Method execute( array $input ): array|WP_Error Input...
Export Site Ability
Overview Returns export instructions for a customer's WordPress site. The actual export runs on the customer's VPS. Class SpawnAbilitiesAbility_Export_Site Method...
Get Domain Renewal Info Ability
Overview Returns domain expiration details and renewal pricing with markup. Class SpawnAbilitiesAbility_Get_Domain_Renewal_Info Method execute( array $input ): array|WP_Error Input {...
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 {...