Title: AI Provider for ChatGPT &#8211; ChatGPT Connector, No API Key Needed
Author: Abdalsalaam Halawa
Published: <strong>15 Tháng 6, 2026</strong>
Last modified: 30 Tháng 10, 2026

---

Tìm kiếm plugin

![](https://ps.w.org/ai-provider-for-chatgpt/assets/banner-772x250.png?rev=3752400)

![](https://ps.w.org/ai-provider-for-chatgpt/assets/icon-256x256.png?rev=3752400)

# AI Provider for ChatGPT – ChatGPT Connector, No API Key Needed

 Bởi [Abdalsalaam Halawa](https://profiles.wordpress.org/abdalsalaam/)

[Tải về](https://downloads.wordpress.org/plugin/ai-provider-for-chatgpt.1.1.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/ai-provider-for-chatgpt/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/ai-provider-for-chatgpt/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/ai-provider-for-chatgpt/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/ai-provider-for-chatgpt/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/)

## Mô tả

AI Provider for ChatGPT connects the AI features in WordPress to your own ChatGPT
plan. You sign in with Sign in with ChatGPT, OpenAI’s official sign-in for apps 
that use a ChatGPT plan, and AI requests from your site are billed to that ChatGPT
Plus, Pro or Go plan. You do not need an OpenAI API key or a separate API account.

Any plugin or theme that uses the WordPress AI Client can call ChatGPT models the
same way it calls other providers.

Connecting takes about a minute and the settings screen walks you through every 
step. Your ChatGPT account stays private: the plugin runs only on your website, 
and the plugin developer never receives your sign-in, your tokens or anything you
send.

**Features:**

 * Text generation with the models your ChatGPT plan offers, listed from your account
 * Multi-turn chat history
 * Function calling and tool use
 * Structured output via JSON schema
 * Image input
 * A default model and reasoning effort for prompts that do not choose their own
 * A guided settings screen: step-by-step instructions, Paste from clipboard, and
   a button to reopen the ChatGPT sign-in page
 * Refresh, disconnect and switch to a different ChatGPT account from the settings
   screen, with connection diagnostics
 * Clear messages when your ChatGPT session ends or your plan’s usage limit is reached,
   with a link to manage usage in ChatGPT

**Requirements:**

 * PHP 7.4 or higher, with the `sodium` and `openssl` extensions
 * A ChatGPT Plus, Pro or Go account. Free accounts are not eligible for plan usage.
 * WordPress 7.0+ (AI Client is bundled in core), or WordPress 6.9 with the [WordPress/php-ai-client](https://github.com/WordPress/php-ai-client)
   package installed

**Privacy:**

Prompts and content you send through the AI Client are sent to OpenAI for processing.
Requests are sent with store set to false, so OpenAI does not keep them for later
retrieval. OpenAI’s privacy policy covers how your content is handled. Your tokens
are stored encrypted in your site’s database and are sent only to OpenAI. See the**
External services** section for what is sent and when.

### External services

This plugin connects to services operated by OpenAI, L.L.C. so the WordPress AI 
Client can use your ChatGPT plan. Nothing is sent to OpenAI until an administrator
starts a sign-in. The plugin contacts two OpenAI domains, `auth.openai.com` and `
api.openai.com`, and no other third-party service.

 * **`https://auth.openai.com/api/accounts/authorize`** is opened in the administrator’s
   browser when they click **Continue with ChatGPT**. The address carries the client
   id, a stable id for this site, the requested permissions, a one-time state and
   nonce, and a PKCE challenge. On the first sign-in it also carries the agent name“
   AI Provider for ChatGPT” (not when the `CHATGPT_OAUTH_CLIENT_ID` constant is 
   set). On a new sign-in for an existing connection it carries the connected account’s
   email and ID token as hints.
 * **`POST https://auth.openai.com/api/accounts/oauth/token`** is called from your
   server when the administrator pastes the sign-in address (sends the client id,
   the one-time code, the PKCE verifier, the redirect address and the API resource),
   and when the access token is due for renewal, including a weekly scheduled refresh(
   sends the client id, the refresh token and the API resource). No prompt or user
   content is sent.
 * **`GET https://auth.openai.com/.well-known/jwks.json`** is called from your server
   to fetch OpenAI’s public keys and verify the ID token at sign-in. Nothing about
   your site or account is sent. The keys are cached for 24 hours.
 * **`POST https://auth.openai.com/api/accounts/oauth/revoke`** is called when the
   administrator clicks **Disconnect** or **Use a different ChatGPT account**, and
   once when the plugin is deleted while still connected (sends the client id and
   the refresh token). On deletion the call is best effort: if it fails, the plugin’s
   data is removed anyway.
 * **`GET https://api.openai.com/v1/models`** is called with the access token to
   list the models your plan offers, usually at most once an hour (the list is cached
   on your site and fetched again after a sign-in, a disconnect or Clear cached 
   model list) and from the diagnostics probe. No prompt or user content is sent.
 * **`POST https://api.openai.com/v1/responses`** is called whenever a plugin or
   theme on your site uses the AI Client with a ChatGPT model. The request carries
   the access token and what the calling code supplies: the prompt and conversation,
   system instructions, tool definitions, JSON schema, and any attached images or
   files, plus the reasoning effort chosen under Model settings when the calling
   code sets none.

These services are provided by OpenAI. By connecting an account and using this provider
you agree to OpenAI’s terms:

 * Terms of Use: [https://openai.com/policies/terms-of-use/](https://openai.com/policies/terms-of-use/)
 * Privacy Policy: [https://openai.com/policies/privacy-policy/](https://openai.com/policies/privacy-policy/)
 * Sign in with ChatGPT: [https://developers.openai.com/siwc/token-sharing-open-source](https://developers.openai.com/siwc/token-sharing-open-source)

## Ảnh màn hình

[⌊ChatGPT registers as a connector and appears in the WordPress AI connectors list,
alongside the other providers.⌉⌊ChatGPT registers as a connector and appears in 
the WordPress AI connectors list, alongside the other providers.⌉[

ChatGPT registers as a connector and appears in the WordPress AI connectors list,
alongside the other providers.

[⌊The ChatGPT settings screen: sign in with ChatGPT, paste the address you landed
on, then check the connection and its models in diagnostics.⌉⌊The ChatGPT settings
screen: sign in with ChatGPT, paste the address you landed on, then check the connection
and its models in diagnostics.⌉[

The ChatGPT settings screen: sign in with ChatGPT, paste the address you landed 
on, then check the connection and its models in diagnostics.

## Cài đặt

 1. Upload the plugin files to `/wp-content/plugins/ai-provider-for-chatgpt/`, or install
    through the WordPress plugin browser.
 2. Activate the plugin through the **Plugins** menu in WordPress.
 3. Go to **Settings > ChatGPT** and click **Continue with ChatGPT**. A ChatGPT sign-
    in page opens in a new tab.
 4. Sign in, keep the agent name, and approve **Use your ChatGPT plan**. The tab then
    shows an error such as “This site can’t be reached” for 127.0.0.1. That is expected.
 5. Copy the full address from that tab’s address bar (it starts with `http://127.0.0.1:
    1455/auth/callback`), paste it on the settings screen, or use **Paste from clipboard**,
    and click **Connect**.
 6. Any plugin or theme that uses the WordPress AI Client can now generate text with
    the ChatGPT models your plan offers.

## Hỏi đáp

### How do I connect?

**Settings > ChatGPT** shows the steps under **How connecting works**:

 1. Click **Continue with ChatGPT**. A ChatGPT sign-in page opens in a new tab.
 2. Sign in, keep the agent name, and approve **Use your ChatGPT plan**.
 3. The tab then shows an error such as “This site can’t be reached” for 127.0.0.1.
    That is expected: nothing is wrong.
 4. Copy the full address from that tab’s address bar, come back to the settings tab,
    paste it and click **Connect**. **Paste from clipboard** pastes it for you; the
    address starts with `http://127.0.0.1:1455/auth/callback`.

If no ChatGPT tab opened, click **Open ChatGPT sign-in** under “Didn’t see the ChatGPT
tab?”. It reopens the same sign-in page and keeps the countdown.

Each sign-in attempt is valid for 10 minutes. If it expires, click **Start again**.

### Why does the browser show a page that cannot load?

After you approve, ChatGPT sends your browser to `http://127.0.0.1:1455/auth/callback`,
an address on your own computer where nothing is listening, so the tab shows an 
error such as “This site can’t be reached”. That is expected: nothing is wrong. 
Copy the full address from that tab’s address bar and paste it on the settings screen.
The page address carries a one-time code; your site exchanges it for tokens when
you paste it. The code is useless without the secret your site kept when you clicked**
Continue with ChatGPT**.

### Which accounts are eligible?

ChatGPT Plus, Pro and Go accounts. OpenAI grants plan usage to other apps only on
these plans. If your account does not grant plan usage, the plugin shows a message
and saves nothing.

### How do I connect a different ChatGPT account?

Disconnect keeps the site’s registration with OpenAI, so the next sign-in reuses
it and must use the same ChatGPT account. To switch accounts, click **Use a different
ChatGPT account** on **Settings > ChatGPT**. It revokes any stored tokens and deletes
the site’s copy of the registration (the issued client id and the account’s id, 
email and name); the app stays listed under ChatGPT **Settings > Security and login
> Sign in with ChatGPT**, where you can disconnect it. Then sign in with the other
account.

### Where do I manage usage?

Usage and per-app limits are at [https://chatgpt.com/settings/usage](https://chatgpt.com/settings/usage).
The settings screen links there with **Manage usage in ChatGPT**. To disconnect 
the plugin from your ChatGPT account, go to ChatGPT **Settings > Security and login
> Sign in with ChatGPT** and select **Disconnect**.

### I used version 0.1.x. What changes?

Version 1.0.0 connects with Sign in with ChatGPT and no longer uses the command 
line tool or `auth.json` files. Existing connections are removed on update; sign
in again under **Settings > ChatGPT**. Free accounts are no longer eligible.

### Responses are slow. How do I make them faster?

Every model your ChatGPT plan offers is a reasoning model, and by default it reasons
at its own default effort (medium for the current models). On **Settings > ChatGPT**,
under **Model settings**, set **Reasoning effort** to **Low (fastest)** for short
tasks such as translation, and pick a **Default model**. The plugin applies these
only when the plugin sending the prompt does not choose a model or effort itself.
ChatGPT models cannot turn reasoning off; Low is the lowest effort they accept.

A plugin that calls the AI Client can also choose per prompt: `using_provider( '
chatgpt' )` and `using_model_preference( 'model-id' )` pick the model, and a `ModelConfig`
passed to `using_model_config()` with the custom option `reasoning` set to `array('
effort' => 'low' )` sets the effort.

### AI features fail with “An error occurred” or “has not been approved”. What is wrong?

The AI plugin has a Connector Approval experiment. When it is on, every plugin, 
including the AI plugin itself, must be approved before it can use a connector, 
and requests from plugins that are not approved fail. Most features show only a 
generic message such as “An error occurred while resizing content.” Go to **Tools
> Connector Approvals** and approve the plugin for ChatGPT, or turn the Connector
Approval experiment off under **Settings > AI**. **Settings > ChatGPT** shows a 
notice naming the plugins that are waiting for approval.

### Which API does the plugin call?

Since 1.0.0, every request goes to OpenAI’s public Responses API at `https://api.
openai.com/v1/responses`, authorized with your ChatGPT plan through Sign in with
ChatGPT. The models offered are the ones `https://api.openai.com/v1/models` lists
for your account.

### Does this plugin work without the WordPress AI Client?

No. The plugin registers ChatGPT with the AI Client provider registry, so the AI
Client must be available, either bundled in WordPress 7.0+ or installed as a separate
package on 6.9.

### Does it support image generation?

No. OpenAI does not allow image generation for apps that use a ChatGPT plan through
Sign in with ChatGPT; it is only available with an OpenAI API key. If your site 
needs image generation, use the official AI Provider for OpenAI plugin with an API
key next to this one. This plugin covers text generation, chat, tool use, structured
output and image input (reading images you attach).

### Can the plugin developer see my ChatGPT account?

No. This plugin runs only on your website. The plugin developer never receives your
ChatGPT sign-in, your tokens or anything you send, and has no way to see or use 
your account. Your website keeps the connection encrypted in its own database and
talks to OpenAI directly; the plugin contacts no other service (see **External services**).
The connection cannot read your ChatGPT conversations or memories; it only lets 
your site use your plan for AI requests. OpenAI says so in [Using your ChatGPT plan in other apps and sites](https://help.openai.com/en/articles/20001542-using-your-chatgpt-plan-in-other-apps-and-sites)(
conversations and memories) and in the [Sign in with ChatGPT documentation](https://developers.openai.com/siwc/token-sharing-open-source)(
conversations). You can disconnect at any time on **Settings > ChatGPT**, or under
ChatGPT **Settings > Security and login > Sign in with ChatGPT**.

### How are tokens stored?

Tokens are stored in the WordPress options table on your own site, encrypted with`
sodium_crypto_secretbox` using a key derived from your `wp-config.php` salts. They
are sent only to OpenAI, to make requests and to refresh or revoke the connection.

## Đánh giá

![](https://secure.gravatar.com/avatar/dd211e90791b65c075fe351df00ad60393360f3ed300a9ab7c86f7888c038ba5?
s=60&d=retro&r=g)

### 󠀁[Useful plugin to save on API bills, with excellent support](https://wordpress.org/support/topic/useful-plugin-to-save-on-api-bills-with-excellent-support/)󠁿

 [Narinder Singh](https://profiles.wordpress.org/narinder-singh/) 2 Tháng 11, 2026

It will help us save on API bills and I really appreciate the developer efforts.
I shared questions about slow responses and model selection. @abdalsalaam provided
a detailed explanation and released version 1.1.0 with model selection and reasoning
effort settings to help address our needs. Thank you for creating this useful plugin
and continuously improving it!

 [ Đọc tất cả 1 đánh giá ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/)

## Người đóng góp & Lập trình viên

“AI Provider for ChatGPT – ChatGPT Connector, No API Key Needed” là mã nguồn mở.
Những người sau đã đóng góp vào plugin này.

Những người đóng góp

 *   [ Abdalsalaam Halawa ](https://profiles.wordpress.org/abdalsalaam/)

[Dịch “AI Provider for ChatGPT – ChatGPT Connector, No API Key Needed” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/ai-provider-for-chatgpt)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/ai-provider-for-chatgpt/),
check out [SVN repository](https://plugins.svn.wordpress.org/ai-provider-for-chatgpt/),
hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/ai-provider-for-chatgpt/)
qua [RSS](https://plugins.trac.wordpress.org/log/ai-provider-for-chatgpt/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.1.0

 * Choose a default model and reasoning effort under Settings > ChatGPT > Model 
   settings. A lower effort makes short tasks such as translation faster.
 * Settings > ChatGPT names the plugins that the AI plugin’s Connector Approval 
   experiment is blocking from ChatGPT, with a link to approve them.
 * Clear cached model list now also clears the model list WordPress 7 keeps in the
   object cache.

#### 1.0.1

 * Fixed a fatal error on WordPress 7 (Psr\SimpleCache\CacheInterface not found)
   when updating from 0.1.x with a connected account, connecting or disconnecting.

#### 1.0.0

 * Connect with Sign in with ChatGPT on a guided settings screen: no command line
   tool, no API key, billed to your ChatGPT Plus, Pro or Go plan.
 * Existing connections must sign in again after updating, and Free ChatGPT accounts
   are no longer eligible.

#### 0.1.4

 * WordPress 7.1 compatibility.

#### 0.1.3

 * Removed the direct reads of the core `connectors_ai_chatgpt_api_key` option from
   the connection and diagnostics REST endpoints. The connector’s configured state
   is now read solely through the AI Client API (`isProviderConfigured()`); the 
   option is still written so the WordPress AI plugin can detect the connector’s
   credentials, but it is no longer read back by this plugin.

#### 0.1.2

 * Prefixed all plugin-owned options, transients, and hooks with `halawa_chatgpt_`
   to avoid collisions in WordPress’s shared namespaces.
 * Documented every external service the plugin contacts and corrected the model-
   list endpoint URL in the readme.
 * Made the public CLI-pairing REST route’s intentionally-public design explicit(`
   __return_true`) while keeping its single-use-token security boundary and per-
   IP rate limiting.
 * Added uninstall cleanup that removes the plugin’s stored options and transients.

#### 0.1.1

 * Fixed a “Missing the output key” error from the Codex `/responses` stream.

#### 0.1.0

 * Initial release.
 * ChatGPT text generation models with dynamic model discovery.
 * Function calling and structured (JSON schema) output.
 * Encrypted token storage with automatic refresh.
 * Default-model selection under Settings > ChatGPT.

## Meta

 *  Phiên bản **1.1.0**
 *  Cập nhật lần cuối **3 tuần trước**
 *  Số lượt cài đặt **80+**
 *  Phiên bản WordPress ** 6.9 hoặc cao hơn **
 *  Đã kiểm tra lên đến **7.1.4**
 *  Phiên bản PHP ** 7.4 hoặc cao hơn **
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/ai-provider-for-chatgpt/)
 * Thẻ
 * [AI](https://vi.wordpress.org/plugins/tags/ai/)[ai-provider](https://vi.wordpress.org/plugins/tags/ai-provider/)
   [ChatGPT](https://vi.wordpress.org/plugins/tags/chatgpt/)[connector](https://vi.wordpress.org/plugins/tags/connector/)
   [openai](https://vi.wordpress.org/plugins/tags/openai/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/ai-provider-for-chatgpt/advanced/)

## Đánh giá

 5 trên 5 sao.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/#new-post)

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/reviews/)

## Những người đóng góp

 *   [ Abdalsalaam Halawa ](https://profiles.wordpress.org/abdalsalaam/)

## Hỗ trợ

Các lỗi đã xử lý trong vòng hai tháng gần đây:

     1 trên 1

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/ai-provider-for-chatgpt/)