Skip to content
Harish Dhanraj Sugandhi edited this page Mar 4, 2026 · 1 revision

OpenWP Developer Documentation

Version: 0.1.4 | Requires: WordPress 6.9+ | PHP: 7.4+ | License: GPLv2+

OpenWP is a plugin-native AI agent operating system for WordPress. It executes only pre-registered actions through strict policy gates, with approval queues, backup snapshots, and full audit logging.


Quick Links

Page Description
Architecture Overview High-level system design and directory map
Boot Sequence How the plugin loads and initializes
Action System Action registry, executor, risk levels, and schemas
Agent Engine Prompt-to-action orchestration and LLM integration
REST API Reference All openwp/v1 and mcp/v1 endpoints
Security Model Policy engine, SQL guard, encryption, rate limiting
Database Schema 5 custom tables and migration system
MCP Server Model Context Protocol server implementation
LLM Providers OpenAI, Anthropic, GLM, OpenRouter clients
Frontend Architecture React SPA, Tailwind CSS, Gutenberg block
Settings & Configuration Default settings, constants, and options
Backup & Restore Pre-action snapshots and restoration
Memory System Agent memory CRUD with guard rails
Abilities API WordPress Abilities API bridge
Editor Block AI content generator Gutenberg block
Contributing Development setup and coding standards

System Requirements

  • WordPress 6.9 or later
  • PHP 7.4 or later
  • MySQL 5.7+ or MariaDB 10.3+
  • Single-site only (no multisite support in v1)

Tech Stack

Layer Technology
Backend PHP 7.4+, WordPress REST API, PSR-4 autoloading
Frontend React 18, Tailwind CSS 3.4, Radix UI, Lucide icons
Build @wordpress/scripts (webpack), PostCSS
LLM Providers OpenAI, Anthropic, GLM (Z.AI), OpenRouter
Protocol MCP (Model Context Protocol) 2025-06-18
Database 5 custom tables via dbDelta migrations
Security Sodium/OpenSSL encryption, SQL guard, rate limiting

Clone this wiki locally