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)...
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...
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...
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():...
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":...
Abilities
Overview Registers the Spawn abilities category and all abilities exposed through the Abilities API. Category spawn labeled “Spawn Service”. Registration...
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...