{"id":120,"date":"2026-06-16T12:23:18","date_gmt":"2026-06-16T10:23:18","guid":{"rendered":"https:\/\/halawa.io\/blog\/?p=120"},"modified":"2026-06-16T15:54:18","modified_gmt":"2026-06-16T13:54:18","slug":"ai-provider-for-chatgpt-is-now-on-wordpress-org","status":"publish","type":"post","link":"https:\/\/halawa.io\/blog\/ai-provider-for-chatgpt-is-now-on-wordpress-org\/","title":{"rendered":"AI Provider for ChatGPT Is Now on WordPress.org"},"content":{"rendered":"\n<div class=\"wp-block-group ai-summarization-summary is-layout-flow wp-block-group-is-layout-flow\">\n<p class=\"wp-block-paragraph\">AI Provider for ChatGPT is now available in the WordPress.org plugin directory. It lets WordPress 7.0\u2019s AI Client use an existing ChatGPT Free, Plus, or Pro account instead of a separate OpenAI API key, supporting text generation, chat history, tool use, JSON output, and model discovery.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The update includes review-related fixes, documented external endpoints, namespaced plugin data, improved cleanup on uninstall, and a resolved stream error. The post also explains installation, connection through a pairing CLI, and limitations such as no Business or Enterprise support, no image generation, and reliance on OpenAI\u2019s Codex CLI OAuth flow.<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">A few weeks ago I wrote about a plugin I built to plug WordPress 7.0&#8217;s AI features into a ChatGPT subscription instead of a billed API key.&nbsp;Back then it lived on GitHub and you had to install it by hand.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That changed.&nbsp;The plugin passed the WordPress.org review and is now live on the official plugin directory:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/plugins\/ai-provider-for-chatgpt\/\" target=\"_blank\" rel=\"noopener\"><strong>AI Provider for ChatGPT on WordPress.org<\/strong><\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you read&nbsp;<a href=\"https:\/\/halawa.io\/blog\/wordpress-7-ai-chatgpt-subscription-without-api-key\/\">the original write-up<\/a>,&nbsp;this is the short version of what happened since,&nbsp;and how to get it now.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What the plugin does<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress 7.0 ships a built-in AI Client,&nbsp;and providers register against it.&nbsp;Every provider plugin I could find wanted an OpenAI API key,&nbsp;and that key is billed separately from your ChatGPT subscription.&nbsp;So if you already pay for ChatGPT Plus or Pro,&nbsp;you end up paying a second time to use AI inside WordPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">AI Provider for ChatGPT connects your existing ChatGPT account instead.&nbsp;No API key.&nbsp;Requests are routed through the same backend the Codex CLI uses,&nbsp;so usage runs against the plan you already have.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once it is connected,&nbsp;any plugin or theme that uses the WordPress AI Client can call ChatGPT the same way it calls Google or Anthropic:&nbsp;text generation with GPT-4o,&nbsp;GPT-4.1 and the o-series,&nbsp;multi-turn chat history,&nbsp;function calling and tool use,&nbsp;structured JSON output,&nbsp;and automatic model discovery.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is new since the GitHub-only version<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Getting through the WordPress.org review meant tightening a few things up.&nbsp;The notable changes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>All plugin-owned options, transients, and hooks are now prefixed so they cannot collide with anything else in WordPress&#8217;s shared namespaces.<\/li>\n\n\n\n<li>Every external service the plugin contacts is documented in the readme, with the exact endpoints and what data is sent to each.<\/li>\n\n\n\n<li>The configured state of the connector is read through the AI Client API rather than poking at the core option directly.<\/li>\n\n\n\n<li>A &#8220;Missing the output key&#8221; error from the Codex responses stream was fixed.<\/li>\n\n\n\n<li>Uninstall now cleans up the options and transients the plugin created.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The security model is the same one described in the first post.&nbsp;The OAuth bundle is encrypted at rest with&nbsp;<code>sodium_crypto_secretbox<\/code>,&nbsp;keyed off your&nbsp;<code>wp-config.php<\/code>&nbsp;salts.&nbsp;The pairing endpoint uses a single-use token with a ten-minute lifetime,&nbsp;hashed before storage,&nbsp;with a per-IP rate limit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to install it now<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You no longer need to clone anything.&nbsp;From your WordPress admin:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to\u00a0<strong>Plugins, Add New<\/strong>\u00a0and search for &#8220;AI Provider for ChatGPT&#8221;.<\/li>\n\n\n\n<li>Install and activate it.<\/li>\n\n\n\n<li>Open\u00a0<strong>Settings, ChatGPT<\/strong>\u00a0and click\u00a0<strong>Connect with ChatGPT<\/strong>.<\/li>\n\n\n\n<li>The screen shows a one-line command. Run it on any machine with a browser: <code>npx @abdalsalaam\/chatgpt-wp-connect https:\/\/your-site.example &lt;pairing-token><\/code><\/li>\n\n\n\n<li>Sign in to OpenAI in the window that opens. The WordPress tab connects itself. No copying secrets, no pasting tokens.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">After that the provider appears in the WordPress AI picker,&nbsp;and the models your account can reach show up automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you already use the Codex CLI,&nbsp;the same screen has an Advanced option to paste or upload your existing&nbsp;<code>~\/.codex\/auth.json<\/code>&nbsp;instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The trade-offs still apply<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">I said this in the first post and it is still true,&nbsp;so it stays here:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The OAuth consent screen says &#8220;Codex CLI&#8221; because that is the OpenAI-owned client whose ID the flow reuses. If OpenAI rotates or revokes it, the plugin breaks the same day.<\/li>\n\n\n\n<li>This is the consumer ChatGPT backend, so there is no API data processing agreement. Prompts may be used for training unless your account has training turned off.<\/li>\n\n\n\n<li>Only the Free, Plus, and Pro tiers work. Business, Edu, and Enterprise do not.<\/li>\n\n\n\n<li>Image generation is not supported on this backend. For DALL-E or gpt-image, use the standard OpenAI provider with an API key.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">None of that is hidden.&nbsp;It is the honest cost of getting WordPress AI to run on a subscription you already pay for.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Try it<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The plugin is free and open source under GPL.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress.org listing:\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/ai-provider-for-chatgpt\/\" target=\"_blank\" rel=\"noopener\">wordpress.org\/plugins\/ai-provider-for-chatgpt<\/a><\/li>\n\n\n\n<li>Plugin source:\u00a0<a href=\"https:\/\/github.com\/Abdalsalaam\/ai-provider-for-chatgpt\" target=\"_blank\" rel=\"noopener\">github.com\/Abdalsalaam\/ai-provider-for-chatgpt<\/a><\/li>\n\n\n\n<li>Pairing CLI source:\u00a0<a href=\"https:\/\/github.com\/Abdalsalaam\/chatgpt-wp-connect\" target=\"_blank\" rel=\"noopener\">github.com\/Abdalsalaam\/chatgpt-wp-connect<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">If you install it,&nbsp;I would really like to hear how it goes,&nbsp;bug reports especially.&nbsp;Open an issue on GitHub or leave a review on the directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI Provider for ChatGPT is now live on WordPress.org, letting WordPress 7.0\u2019s AI Client use an existing ChatGPT Free, Plus, or Pro subscription instead of a separately billed OpenAI API key. Learn what changed since the GitHub version, how to install and connect it, and the trade-offs to know before using it.<\/p>\n","protected":false},"author":1,"featured_media":121,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ai_generated_summary":"AI Provider for ChatGPT is now available in the WordPress.org plugin directory. It lets WordPress 7.0\u2019s AI Client use an existing ChatGPT Free, Plus, or Pro account instead of a separate OpenAI API key, supporting text generation, chat history, tool use, JSON output, and model discovery.\n\nThe update includes review-related fixes, documented external endpoints, namespaced plugin data, improved cleanup on uninstall, and a resolved stream error. The post also explains installation, connection through a pairing CLI, and limitations such as no Business or Enterprise support, no image generation, and reliance on OpenAI\u2019s Codex CLI OAuth flow.","footnotes":""},"categories":[10],"tags":[93,85,97,95],"class_list":["post-120","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-plugins","tag-ai-client","tag-chatgpt","tag-chatgpt-connector","tag-openai"],"_links":{"self":[{"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/comments?post=120"}],"version-history":[{"count":2,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions"}],"predecessor-version":[{"id":123,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/posts\/120\/revisions\/123"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/media\/121"}],"wp:attachment":[{"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/media?parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/categories?post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/halawa.io\/blog\/wp-json\/wp\/v2\/tags?post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}