Until recently, every AI plugin on a WordPress site came with its own deal: its own account, its own credits and its own settings page for an API key. WordPress 7.0 changed that with the Connectors API and a new Settings > Connectors screen. You add an AI provider key once, and any plugin built on the WordPress AI Client can use it (Make WordPress Core).
What the Connectors screen does
- One place for AI keys. WordPress 7.0 ships three built-in AI connectors: Anthropic (Claude), Google (Gemini) and OpenAI. More providers arrive as plugins.
- Plugins stop asking for keys. A plugin that uses the WordPress AI Client sends its request through WordPress, and the site owner’s chosen provider and key are used. The plugin does not need its own key settings page (WordPress Developer Blog).
- Provider plugins plug in. Third-party providers that register with the AI Client appear on the same screen automatically.
Our own site runs WordPress 7.1, so the screen is already there. If you are on 7.0 or later, you have it too.
Why it can be cheaper and clearer than plugin credits
- You pay the AI provider directly, at its own rates, instead of buying credits from each plugin.
- One bill and one limit. Set a monthly spending cap in your provider account and it covers every AI feature on the site.
- No stranded credits. Switching plugins does not lose what you prepaid.
- Your choice of model. You decide which provider your site uses.
Plugin credits still make sense when a plugin bundles its own service on top of the AI, or when you do not want to manage a provider account. For the wider picture, see Why AI plugin credits run out.
Keep the key safe
A key in the Connectors screen can spend money on your provider account, so treat it like a password.
- Know where it is stored. WordPress looks for a key in this order: an environment variable, then a PHP constant, then the database. Keys saved through the screen are stored in the database; the screen masks them, but the core announcement says they are not encrypted (Connectors API).
- Prefer a constant or environment variable on production sites, so the key lives in server configuration (for example
wp-config.php) rather than in the database and its backups. - Keep administrators few. During the 7.0 release cycle, a core ticket noted that connector keys are ordinary settings behind the general administrator permission (Trac #64791). Anyone with admin access can change them.
- Set a spending cap in the provider account and use a separate key per site, so you can revoke one without breaking the others.
- Never paste keys into chats or tickets. If a key is exposed, revoke it in the provider dashboard and create a new one. See Stolen AI spend: protect your API keys.
Quick set-up checklist
- Create an API key in your provider account (Anthropic, Google or OpenAI) and set a monthly limit.
- On a staging copy, add it under Settings > Connectors, or as a constant in
wp-config.php. - Test one AI feature, then check the provider dashboard shows the usage.
- Repeat on the live site with its own key.
Related: Locking down AI access to WordPress and Keep plugins minimal.
Sources: Introducing the Connectors API in WordPress 7.0, WordPress 7.0 Field Guide, Build your first AI-powered WordPress plugin, Core Trac #64791, checked 24 November 2026.
