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...
Cleanup
Overview Deletes VPS and DNS resources after cancellation grace period and sends notification emails. Constants GRACE_PERIOD_DAYS (7) Hooks spawn_process_deletions (hourly)...
Config
Overview Defines tier pricing, VPS specs, and location rules. This class is the single source of truth for tier data....
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 {...
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":...