How to Connect Claude, ChatGPT, and Gemini to WordPress

Updated: March 31, 2026 By: Marios

WordPress AI integration Claude ChatGPT Gemini

WordPress just made connecting AI to your site radically simpler.

Instead of every plugin building its own integration, WordPress now has official provider plugins for Anthropic Claude, OpenAI (ChatGPT / GPT / DALL-E), and Google Gemini — all working through a single, standardized system called the PHP AI Client SDK. Set up the connection once, and every compatible plugin on your site can use it.

I’ve been running all three providers on my test sites since the plugins launched. This guide walks you through the exact setup process for each one, compares what you get from each provider, and helps you decide which one (or which combination) makes sense for your site.


Before you start: what you need

You need three things regardless of which provider you choose.

WordPress 7.0 or later. If you’re on WordPress 7.0 (releasing April 9, 2026), the AI Client SDK is already built into core. There’s nothing extra to install — the SDK is just there, like the REST API or the block editor.

If you’re still on WordPress 6.9, you can still follow this guide, but you’ll need to install the PHP AI Client SDK as a separate plugin first. Grab it from GitHub (WordPress/php-ai-client) and install it manually. Once you update to 7.0 later, the standalone SDK plugin becomes redundant and can be removed.

PHP 7.4 or higher. All three provider plugins require PHP 7.4 minimum. For the best experience, the core team recommends PHP 8.2 or higher. Check your version at WP-Admin → Tools → Site Health → Info → Server.

An API key from your chosen provider. Each AI provider requires its own API account and key. I’ll walk you through getting each one below. These are all pay-as-you-go services — you pay for what you use, and costs depend on which models you choose and how much traffic your AI features handle.


Method 1: The Connectors screen (WordPress 7.0)

This is the simplest path. WordPress 7.0 includes a new Connectors screen at Settings → Connectors that shows the three default providers — Anthropic, Google, and OpenAI — ready to install with a single click.

How it works

Navigate to WP-Admin → Settings → Connectors. You’ll see cards for each provider. Click the one you want, and WordPress will prompt you to install the corresponding provider plugin directly from this screen. Enter your API key, save, and you’re connected. The whole process takes about two minutes per provider.

The Connectors screen is powered by an extensible registry, so community-built connectors (like Ollama for local models, OpenRouter for 400+ models through a single key, or xAI for Grok) also appear here once their plugins are installed.

If you’re on WordPress 6.9, you won’t have the Connectors screen. Use Method 2 below instead.


Method 2: Manual plugin installation (WordPress 6.9 or 7.0)

This method works on both WordPress 6.9 and 7.0. You install each provider plugin the traditional way.


Connecting Claude (Anthropic)

Claude is Anthropic’s AI model, known for strong performance on long-form writing, nuanced reasoning, and code generation. The WordPress provider plugin supports text generation with multimodal input (you can send images to Claude for analysis), function calling, and extended thinking for complex tasks.

Step 1: Get your Anthropic API key

Go to console.anthropic.com. Create an account if you don’t have one. Navigate to API Keys in the left sidebar. Click “Create Key,” give it a name (like “WordPress Production”), and copy the key immediately — Anthropic won’t show it again.

Anthropic offers a pay-as-you-go model. Claude Sonnet (the mid-tier model) costs roughly $3 per million input tokens and $15 per million output tokens as of early 2026. For a typical WordPress site generating a few dozen AI responses per day, expect to spend $5-20 per month depending on usage.

Step 2: Install the provider plugin

Go to WP-Admin → Plugins → Add New. Search for “AI Provider for Anthropic.” It’s the official plugin by the WordPress core team — look for the WordPress.org author attribution. Click Install, then Activate.

On WordPress 6.9, make sure you’ve already installed the PHP AI Client SDK plugin. The Anthropic provider plugin requires it and won’t activate without it. On WordPress 7.0, the SDK is built in and no extra step is needed.

Step 3: Enter your API key

After activation, go to Settings → Connectors (on WordPress 7.0) or the plugin’s settings page (on 6.9). Paste your Anthropic API key into the field and save.

The plugin dynamically discovers available models from the Anthropic API. This means when Anthropic releases new Claude models, they’ll appear in your WordPress site automatically without needing a plugin update.

Step 4: Verify the connection

Once saved, the Connectors page should show a green status indicator for Anthropic. Any SDK-compatible plugin on your site can now use Claude for AI tasks — content generation, image analysis, function calling, or whatever the plugin supports.


Connecting ChatGPT / GPT (OpenAI)

The OpenAI provider plugin is the most feature-rich of the three, reflecting OpenAI’s broad API surface. It supports text generation through GPT models, image generation through DALL-E and GPT Image models, text-to-speech through TTS models, function calling, and web search.

Step 1: Get your OpenAI API key

Go to platform.openai.com. Create an account or sign in. Navigate to API Keys in the left sidebar. Click “Create new secret key,” name it, and copy it immediately.

OpenAI’s pricing varies by model. GPT-4o is roughly $2.50 per million input tokens and $10 per million output tokens. DALL-E image generation costs $0.040-0.080 per image depending on resolution. For most WordPress sites, expect $10-30 per month depending on how heavily you use AI features.

Step 2: Install the provider plugin

Go to WP-Admin → Plugins → Add New. Search for “AI Provider for OpenAI.” Install and activate the official WordPress.org plugin.

Again, WordPress 6.9 users need the PHP AI Client SDK installed first.

Step 3: Enter your API key

Navigate to Settings → Connectors (7.0) or the plugin settings (6.9). Paste your OpenAI key and save.

Like the Anthropic plugin, models are dynamically discovered from the API. As OpenAI releases new GPT models, they appear automatically in your WordPress installation.

Step 4: Verify and explore

The OpenAI connection unlocks the widest range of capabilities: text, images, speech, search, and function calling. If you only set up one provider, OpenAI gives you the broadest feature coverage.


Connecting Gemini (Google)

Google’s Gemini models are competitive on text generation and have a unique strength: image generation through Google’s Imagen models. The provider plugin supports text generation, image generation, and function calling.

Step 1: Get your Google AI API key

Go to aistudio.google.com. Sign in with your Google account. Click “Get API Key” in the sidebar. Create a key for a new or existing Google Cloud project.

Google offers a generous free tier for Gemini. The free tier includes a meaningful number of requests per minute, making this the most budget-friendly option for experimentation. Paid usage through Google Cloud is competitively priced with the other providers.

Step 2: Install the provider plugin

Go to WP-Admin → Plugins → Add New. Search for “AI Provider for Google.” Install and activate.

Step 3: Enter your API key

Navigate to Settings → Connectors and paste your Google AI key. Save the connection.

Step 4: Verify and test

Google’s Gemini connection gives your WordPress site access to Gemini models for text and Imagen for image generation. If you’re already in the Google ecosystem (using Google Workspace, Google Cloud, etc.), this provider keeps everything under one billing umbrella.


Should you install one provider or all three?

You can install all three simultaneously. They don’t conflict — each one simply registers its models with the SDK, and plugins choose which provider to use based on the task.

Here’s how I think about it after running all three on my test sites:

Install just OpenAI if you want the simplest setup with the broadest feature coverage. One API key gets you text, images, speech, search, and function calling. Most third-party WordPress AI plugins were built with OpenAI in mind first, so compatibility is strongest here.

Install just Anthropic (Claude) if your primary use case is content creation, editorial workflows, or anything requiring nuanced, long-form writing. Claude consistently produces the most natural-sounding content in my testing, particularly for blog posts and product descriptions. The extended thinking feature is also useful for complex SEO analysis tasks.

Install just Google (Gemini) if you want the lowest cost of entry. Google’s free tier is real and generous. For a site that needs occasional AI assistance without committing to a monthly API bill, Gemini is the pragmatic choice. It’s also the only provider offering Imagen for image generation within the WordPress SDK framework.

Install all three if you’re running multiple AI-powered plugins that have different strengths with different providers, or if you want the flexibility to switch providers without reconfiguring anything. I run all three on my production sites because different plugins perform better with different models — my chatbot uses Claude, my image generation uses OpenAI’s DALL-E, and my translation workflows use Gemini.


Beyond the provider plugins: connecting Claude via MCP

The provider plugins are one way to connect AI to WordPress. But there’s a second, more powerful method specifically for Claude: the Model Context Protocol (MCP).

MCP isn’t just about sending prompts and getting text back. It gives Claude direct access to your WordPress site’s capabilities — creating posts, managing plugins, editing content, querying your database — through natural language commands. Think of the provider plugin as “WordPress can talk to Claude” and MCP as “Claude can operate WordPress.”

WordPress.com sites

WordPress.com launched an official Claude connector in early 2026 — the first of its kind for any WordPress host. If your site is on WordPress.com, you can connect it to Claude through Anthropic’s connectors directory with OAuth 2.1 authentication. No API key management needed — the integration handles authentication securely.

To set it up, go to claude.ai, navigate to connectors, search for WordPress, and follow the authorization flow. Once connected, Claude can access your site’s content, analytics, and publishing tools directly within the Claude interface.

Self-hosted WordPress sites

For self-hosted WordPress installations, the MCP connection requires a bit more setup. Several hosting providers now offer managed MCP servers — InstaWP, for example, lets you connect Claude to any site hosted with them using a single toggle.

If you’re using Claude Code (Anthropic’s command-line tool for developers), you can connect to any WordPress site’s MCP endpoint with a terminal command. This is particularly powerful for developers building custom plugins or managing site infrastructure through AI.

The AI Engine plugin also supports MCP, allowing Claude, ChatGPT, and other AI agents to interact with your WordPress site through a standardized protocol — including WooCommerce operations like managing products, orders, and inventory.


What happens after you connect

Installing a provider plugin doesn’t immediately change anything visible on your site. The provider plugins are infrastructure — they create the connection, but they don’t do anything with it on their own.

The magic happens when you install plugins that are built on the PHP AI Client SDK. These plugins detect your configured providers automatically and use them for their features. Here are some practical examples of what becomes possible:

Content creation. Jetpack AI Assistant uses your configured provider to generate drafts, adjust tone, and create summaries directly in the Gutenberg editor.

SEO optimization. Rank Math Content AI can use your provider connection to suggest keywords, generate meta descriptions, and score your content against top-ranking competitors.

Chatbots. AI Engine can build a chatbot trained on your site’s content, using whichever provider you’ve connected — Claude, GPT, or Gemini.

Image generation. Plugins can request image generation from OpenAI’s DALL-E or Google’s Imagen through the same unified SDK interface.

Automation. Plugins like Bit Flows or Uncanny Automator can trigger AI-powered workflows — automatically generating product descriptions when new WooCommerce items are added, translating posts into multiple languages, or summarizing long articles into social media snippets.

The ecosystem is young but growing fast. As more plugin developers adopt the SDK, the value of having your providers configured increases. Setting up the connection now means you’re ready to take advantage of every new AI-powered plugin that launches in the WordPress ecosystem.


Quick reference: provider comparison

FeatureAnthropic (Claude)OpenAI (GPT)Google (Gemini)
Text generationYesYesYes
Image generationNoYes (DALL-E, GPT Image)Yes (Imagen)
Text-to-speechNoYes (TTS models)No
Function callingYesYesYes
Web searchNoYesNo
Multimodal inputYes (images)Yes (images)Yes (images)
Extended thinkingYesNoNo
Free tierNoNoYes
WordPress pluginAI Provider for AnthropicAI Provider for OpenAIAI Provider for Google
API key sourceconsole.anthropic.complatform.openai.comaistudio.google.com
Estimated monthly cost$5-20$10-30$0-15

Troubleshooting common issues

“Provider not found” after installing. Make sure the PHP AI Client SDK is active. On WordPress 6.9, this is a separate plugin. On 7.0, it’s built in — but if you previously installed the standalone SDK plugin, deactivate it after updating to 7.0 to avoid conflicts.

API key rejected. Double-check that you copied the full key with no leading or trailing spaces. For Google, make sure the Gemini API is enabled on your Google Cloud project. For OpenAI, verify your account has billing set up — keys on free-tier accounts may have rate limits that cause errors.

Models not appearing. The provider plugins dynamically discover models from each API. If no models show up, the API key likely isn’t valid or the provider’s API is experiencing downtime. Check the provider’s status page.

High API costs. Monitor your usage on each provider’s dashboard. Some plugins make more API calls than you’d expect — a chatbot handling 100 conversations per day uses significantly more tokens than generating a meta description once per post. Set spending limits in each provider’s dashboard as a safety net.

Plugin compatibility. Not all WordPress AI plugins use the SDK yet. Older plugins like the original AI Engine handle their own API connections independently. You can run both systems simultaneously — SDK-based connections through the Connectors screen and direct connections within individual plugins.


What’s next

WordPress 7.0 is just the foundation. The community is already building connector plugins for additional providers — Ollama for local models, OpenRouter for access to 400+ models through a single key, and xAI for Grok.

WordPress 7.1 (expected August 2026) will likely deepen the integration, with more core features utilizing the SDK and the Abilities API enabling smarter interactions between AI providers and WordPress itself.

The smartest thing you can do right now is get at least one provider connected before the ecosystem really takes off. The setup takes five minutes. The plugins that will use it are launching every week.

Read next