WordPress

WordPress AI Client, Connectors & OpenAI Provider (50,000+ Installs): Architecture, BYOK Cost & the Pulled 7.2 Secrets API

With WordPress 7.2 Release Candidate 4 shipping on December 1, 2026 ahead of the December 8 final release, the WordPress AI Client and Settings > Connectors now power canonical plugins like AI Provider for OpenAI (50,000+ active installs) and the official AI plugin (60,000+ installs) at $0 core cost under BYOK. However, Changeset 65538 pulled the Secrets API from 7.2—leaving Connectors keys unencrypted in wp_options unless you use env vars or wp-config.php.

By 0xScorPionSon

8 min read

WordPress AI Client, Connectors & OpenAI Provider (50,000+ Installs): Architecture, BYOK Cost & the Pulled 7.2 Secrets API

WordPress AI Client 7.2 Connectors, AI Provider for OpenAI, and pulled Secrets API architecture

Executive Summary

On December 1, 2026, WordPress released WordPress 7.2 Release Candidate 4 ahead of the scheduled December 8, 2026 final launch, alongside a detailed December 1 technical breakdown of the WordPress AI Client. Originally introduced in WordPress 7.0 ("Armstrong") on May 20, 2026 and expanded in 7.1 ("Mary Lou"), the WordPress AI Client gives plugins a single, provider-agnostic layer under Settings > Connectors—ending the era where every SEO, chatbot, and image plugin required its own settings screen and duplicate API key.

Adoption of the canonical ecosystem is accelerating: the official AI Provider for OpenAI plugin (v1.3.0, released November 18, 2026) has passed 50,000+ active installations, while the official AI plugin sits at 60,000+ active installations—both $0 under a pure Bring-Your-Own-Key (BYOK) model. Yet a critical security caveat emerged right before RC1: in Changeset 65538 (November 22, 2026), core pulled the Secrets API out of WordPress 7.2, meaning keys entered in Settings > Connectors remain unencrypted at rest in wp_options. Pricing and active install stats verified as of December 2, 2026.


Growth Signals & WordPress.org Telemetry

With WordPress running on 38.3% of all websites (W3Techs, November 2026, cited by WPDeveloper), standardizing AI provider plumbing in core has rapidly driven installs for modular connector plugins built on the wordpress/php-ai-client SDK (1.3.1 / 1.4.0).

Component / Plugin Active Installs / Version (Verified Dec 2, 2026) Minimum Requirements Cost Model Source
WordPress AI Client (Core) Built into WordPress 7.0+ (7.2 RC4 shipped Dec 1, 2026) WordPress 7.0+ (or bundled Composer SDK on older WP) $0 (Core; no bundled AI providers or calls) WordPress.org News & WPDeveloper (Dec 1, 2026)
AI Provider for OpenAI (ai-provider-for-openai) 50,000+ active installs; v1.3.0 (2026-11-18) WordPress 6.9+ / PHP 7.4+ / Tested up to 7.1.2 $0 plugin; BYOK (OPENAI_API_KEY) WordPress.org (ai-provider-for-openai)
Official AI Plugin 60,000+ active installs WordPress 7.0+ / Connectors $0 plugin; BYOK Saint-Jean (Nov 19, 2026) & CrestDesign (Nov 29, 2026)

Recent AI Provider for OpenAI Release Velocity (1.1.0 – 1.3.0)

  • 1.3.0 (November 18, 2026): Added extensible OpenAI API profiles via the ai_provider_for_openai_api_profile filter (#41) for alternate request routing, response normalization, and model catalog parsing, plus classification of GPT-6 reasoning models (gpt-6-astra, gpt-6-luna, gpt-6-sol, gpt-6.1-sol) accepting text and image input (#54).
  • 1.2.0 (September 21, 2026): Added text-to-speech conversion (#42), PHPUnit CI matrix testing for wordpress/php-ai-client 1.3.1 and 1.4.0, and preserved reasoning token usage across multi-turn Responses API calls (#26).
  • 1.1.0 (August 17, 2026): Added OpenAI embedding models (#34), fine-tuned model capability derivation (#17), reference-image editing (#29), and TokenLimitReachedException handling (#10).

AI Architecture, Pricing Breakdown & Verification Timestamp

How the WordPress AI Client & Connectors Work

Unlike MCP (which lets external AI agents like Claude or Cursor call into WordPress), the WordPress AI Client works in the opposite direction: it lets WordPress plugins call outbound LLM providers through a unified PHP wrapper around the php-ai-client SDK, adding WordPress hooks, WP_Error handling, and Settings > Connectors integration.

flowchart LR
    Plugin["Compatible WP Plugin (SEO, Chatbot, Editor)"] -->|"is_supported_for_text_generation()"| Client["WordPress AI Client (Core 7.0+)"]
    Client -->|"wp_ai_client_prevent_prompt Filter"| Gate["Role & Capability Gate (e.g. manage_options)"]
    Gate -->|"1st: Env Var / 2nd: wp-config.php / 3rd: wp_options"| Keys["Credential Resolution (OPENAI_API_KEY, ANTHROPIC_API_KEY)"]
    Keys -->|"Routes to Installed Provider"| Provider["AI Provider for OpenAI (50K+) / Anthropic / Google / Ollama"]
    Provider -->|"Raw API Billing (No Core Quotas)"| Billing["Direct Provider Account"]

Provider Resolution, Role Gating & Plugin Integration Pattern

A key architectural rule highlighted by WPDeveloper is owner-over-plugin model choice: a plugin can declare a preferred model, but if the site owner has only connected Anthropic Claude under Settings > Connectors, WordPress routes the request to Claude. Well-built plugins check is_supported_for_text_generation() or is_supported_for_image_generation() first and wrap runtime calls in is_wp_error(), surfacing prompt_prevented cleanly if a must-use plugin blocks the user role via wp_ai_client_prevent_prompt. Concretely, agencies managing multi-author sites can drop in a lightweight must-use plugin that rejects prompts for any user without manage_options, while pairing it with plugin-level role controls (such as ThinkRank's role manager for SEO and AI screens):

<?php
// mu-plugins/restrict-wp-ai-client.php
// Restrict WordPress AI Client outbound API calls to Administrators only
add_filter( 'wp_ai_client_prevent_prompt', function( $prevent ) {
    if ( ! current_user_can( 'manage_options' ) ) {
        return true; // Triggers WP_Error with code 'prompt_prevented'
    }
    return $prevent;
} );

On the plugin-authoring side, if is_supported_for_text_generation() returns false, plugins hide AI buttons and link the admin directly to Settings > Connectors instead of throwing fatal errors. Meanwhile, features like Guidelines (for defining a site-wide brand voice once) were declined for merge in WordPress 7.1 and continue as a Gutenberg experiment.

Pricing & Billing Breakdown (Verified Date: December 2, 2026)

All plugin fees, core costs, and billing models below were verified as of December 2, 2026.

Component Plugin Cost (Verified Dec 2, 2026) Token / Usage Model Core Quota / Budget Controls Source
WordPress AI Client (Core) $0 BYOK — 0% markup; you pay OpenAI, Anthropic, or Google directly None in core: no site-wide budget, usage dashboard, or per-plugin quota yet WPDeveloper (Dec 1, 2026)
AI Provider for OpenAI $0 (WordPress.org) BYOK via OPENAI_API_KEY Relies on your OpenAI account's hard spending limits WordPress.org (ai-provider-for-openai)
Official AI Plugin $0 (WordPress.org) BYOK via Settings > Connectors No bundled credits; per-provider dashboard billing only Saint-Jean (Nov 19, 2026)
Local / Self-Hosted Connectors $0 OpenAI-compatible endpoints (Ollama community provider in progress) Local GPU/CPU compute only; $0 API token fees WPDeveloper (Dec 1, 2026)

Agency Billing Trade-Off: Because WordPress Core currently lacks per-plugin token quotas, WPDeveloper warns that a single misconfigured plugin can burn through a monthly API budget in a day. Agencies must choose between client-owned keys (transparent billing, lower agency liability) or agency-owned keys (centralized management, requiring hard spending caps in the OpenAI/Anthropic console).


WordPress Performance Footprint, Security & Lock-In Check

1. The Pulled Secrets API (Changeset 65538) & Key Storage Security

The WordPress 7.2 cycle moved from Beta 1 on October 20, 2026 through RC1 on November 17 and RC4 on December 1, targeting final release on December 8, 2026. The biggest security development for WordPress 7.2 is what did not ship. Although WordPress Developer News (November 13, 2026) previewed the Secrets API (wp_set_secret(), wp_get_secret(), wp_delete_secret(), wp_retire_secret_version()) to replace plaintext wp_options API keys with encrypted, versioned storage and secrets.php host drop-ins, WPinEU reported on November 22, 2026 that Changeset 65538 removed the Secrets API from WordPress 7.2 right before Release Candidate 1.

As a result, WordPress resolves provider keys in three fallback tiers:

  1. Environment variable at the hosting level (e.g., OPENAI_API_KEY, ANTHROPIC_API_KEY) — recommended because it stays out of database dumps, staging clones, and wp_options.
  2. PHP constant in wp-config.php — keeps keys out of database exports.
  3. Settings > Connectors database value — masked in the wp-admin UI, but stored unencrypted in plaintext inside wp_options.

For WooCommerce stores, membership sites, or agency care plans, never rely on the Connectors UI screen for production keys while Secrets API remains deferred.

2. Core Gaps & Frontend Performance Footprint

Because the WordPress AI Client ships zero AI providers by default and makes zero outbound calls until configured, sites that do not connect a provider incur zero frontend or database overhead. For active AI sites, plan around four documented v1 gaps noted on December 1, 2026:

  • No Native Core Streaming: Responses currently arrive all at once (streaming is landing in the underlying php-ai-client SDK first).
  • No Core Embeddings Yet: php-ai-client 1.4.0 added embedding APIs, but WordPress Core integration missed the 7.1 cutoff (though AI Provider for OpenAI 1.1.0+ exposes OpenAI embeddings directly).
  • No Core REST/JS Endpoints: Client-side browser features still require separate packages or custom endpoints.
  • Role Scoping Required: Any compatible plugin can call a connected provider by default unless you deploy a must-use plugin hooking wp_ai_client_prevent_prompt (for example, blocking users without manage_options so contributors or customers cannot trigger paid calls).

3. Zero Vendor Lock-In

Because the WordPress AI Client is GPL core infrastructure and AI Provider for OpenAI / php-ai-client decouple prompts from proprietary SaaS wrappers, switching from OpenAI to Anthropic or an OpenAI-compatible local endpoint requires changing one Connector configuration rather than rewriting plugin code.


Frequently Asked Questions

Is the WordPress AI Client free, and does it include AI credits?

Yes, the WordPress AI Client is free and built into WordPress 7.0+ (verified December 2, 2026). However, it includes no bundled AI credits or providers—you must install a provider plugin (such as the free AI Provider for OpenAI) and supply your own API key under a BYOK model.

Did the Secrets API ship in WordPress 7.2?

No. Although previewed during the 7.2 cycle in November 2026, Changeset 65538 (November 22, 2026) pulled the Secrets API from WordPress 7.2 ahead of the December 8, 2026 release.

Are API keys saved in Settings > Connectors encrypted?

No. Keys saved through the Settings > Connectors UI are masked visually in wp-admin but stored unencrypted in wp_options. For production sites, store OPENAI_API_KEY or ANTHROPIC_API_KEY as a hosting environment variable or wp-config.php constant.

How can agencies stop contributors or subscribers from triggering paid AI calls?

Add a small must-use plugin using the wp_ai_client_prevent_prompt filter to block prompts for users lacking manage_options (or edit_others_posts), and set hard monthly spending limits inside your OpenAI or Anthropic billing dashboard.

What is the difference between the WordPress AI Client and MCP?

They work in opposite directions: the WordPress AI Client lets WordPress plugins call outbound LLM APIs (OpenAI, Anthropic, Google), whereas MCP (Model Context Protocol) lets external AI assistants (Claude, ChatGPT, Cursor) connect inward to read or manage your WordPress site.


Sources

  1. WordPress.org News (Primary, December 1, 2026): WordPress 7.2 Release Candidate 4 — https://wordpress.org/news/2026/12/wordpress-7-2-release-candidate-4/
  2. WordPress.org Plugin Directory (Primary, v1.3.0 November 18, 2026; Verified December 2, 2026): AI Provider for OpenAI — https://wordpress.org/plugins/ai-provider-for-openai/
  3. WordPress Developer Blog (Primary, November 13, 2026): What's new for developers? (November 2026) — https://developer.wordpress.org/news/2026/11/whats-new-for-developers-november-2026/
  4. WPDeveloper (Secondary, December 1, 2026): WordPress AI Client: What Site Owners, Agencies & Plugin Teams Need to Know — https://wpdeveloper.com/wordpress-ai-client/
  5. WPinEU (Secondary, November 22, 2026): WordPress 7.2 Pulls Secrets API: What Changes (Changeset 65538) — https://wp.wpineu.com/wordpress-7-2-pulls-secrets-api-what-changes/
  6. Saint-Jean (Secondary, November 19, 2026): AI Plugins for WordPress: Six Compared and How to Choose — https://saint-jean.co/en/blog/ai-plugins-for-wordpress

More on WordPress

Tell us what is not working

A thirty-minute call, no deck and no obligation. You will leave with a straight answer about whether this is worth building - including if that answer is no.

Start a project

Direct line

hello@codebumble.net
Dhaka, Bangladesh  :   local timeCalls in English or Bangla