You can use your ChatGPT subscription inside Claude by adding a ChatGPT MCP server. Claude then calls GPT models and GPT Image as tools, and the calls count against your ChatGPT plan instead of an API bill. With MCPifex you link the account with a one-time code and add one URL to Claude Code or claude.ai. An OpenAI API key can take over when the plan runs out.

Before you start: the ChatGPT subscription link is unofficial. OpenAI does not make, endorse or support it, and you use it at your own risk. OpenAI may limit or ban accounts that use their plan through third-party services. The OpenAI API key path uses the official API.

Why use ChatGPT from inside Claude?

Without a connection, using both tools means copying between them: draft in Claude, paste into ChatGPT for an image or a second opinion, then paste back. An MCP server removes the copy and paste: Claude decides when to call GPT, sends the prompt, and gets the result back in the same conversation.

Typical uses:

  • Images. Claude reads images but does not create them. A generate_image tool gives it gpt-image-2, so a blog draft and its header image come out of one chat.
  • A second opinion. Claude can ask a GPT model to review a function, a plan or a paragraph and compare the answer with its own.
  • Using a plan you already pay for. If your ChatGPT plan has headroom, calls through the subscription cost nothing extra.

The ChatGPT MCP server has five tools: ask, generate_image, edit_image, list_models and account_status.

How does a ChatGPT subscription work outside ChatGPT?

OpenAI's coding agent, the open-source Codex CLI, lets you sign in with a ChatGPT account instead of an API key. OpenAI's Codex pricing page says Codex is included in the Free, Go, Plus, Pro, Business, Edu and Enterprise plans. The MCPifex server signs in the same way Codex does, with a device code, and sends your calls to ChatGPT on that account.

A terminal window and a coral plan card passing through a sign-in doorway next to a keypad of blank keys, ending at a padlock with a warning triangle
Illustration: the link signs in with a one-time device code, and the warning triangle marks that this route is unofficial.

That is also why the link is unofficial. OpenAI built that sign-in for its own Codex apps, not for third-party services. It works today, but OpenAI can change it or block it, and it can act on accounts that use it this way. If that risk is not acceptable for your account, use only the API key path, which is the public and official OpenAI API.

What do you need before you start?

  • A Claude client that supports remote MCP servers: Claude Code, claude.ai or Claude Desktop.
  • A ChatGPT account, an OpenAI API key, or both. One is enough.
  • Device code sign-in switched on for that ChatGPT account. OpenAI's authentication docs say personal accounts enable it in ChatGPT's security settings, and a workspace admin enables it for workspace plans.
  • A free MCPifex account. The ChatGPT server works on the Free plan, which has 3 instances and needs no card.
  1. In the MCPifex portal, open the marketplace and pick ChatGPT. On the Details step, name the instance.
  2. On the Configure step, under ChatGPT subscription (unofficial), click Link ChatGPT. The portal shows a one-time code.
  3. Click Open ChatGPT sign-in, sign in to your ChatGPT account and enter the code. It works for 15 minutes.
  4. Wait on the portal page. It updates by itself and shows Linked as with your account once the link works.
  5. Optionally paste an OpenAI API key under OpenAI API key. It takes over when the plan hits a limit.
  6. Optionally click Test connection.
  7. On the Tools step, keep the tools you want for your first key, then click Create instance.
  8. The Connect step shows your MCPifex API key once. It starts with mcpx_; copy it before you close the dialog.
Configure step of the ChatGPT connect wizard in the MCPifex portal, with the Link ChatGPT button and the OpenAI API key field highlighted
The Configure step before linking, captured November 2026. Clicking Link ChatGPT shows the one-time code and the Open ChatGPT sign-in button.

If the code expires without linking, device code sign-in is probably off for the account. Switch it on in ChatGPT and click Link ChatGPT again. The link token is stored encrypted, and disconnecting the account in the portal revokes it the way codex logout does.

How do you add it to Claude Code?

Run this once in a terminal, with your MCPifex key in place of the placeholder:

claude mcp add mcpifex --transport http https://mcp.mcpifex.com/mcp \
  --header "Authorization: Bearer <YOUR_API_KEY>"

The command uses Claude Code's default local scope for the current project. Add --scope user to have it in every project. Start Claude Code, run /mcp and check that the server lists the five ChatGPT tools. Add an MCP server to Claude Code covers scopes and troubleshooting.

How do you add it to claude.ai?

  1. Open Customize, then Connectors, and choose Add custom connector. On Team and Enterprise, an owner adds it first under Organization settings.
  2. Name it, for example "MCPifex".
  3. Paste https://mcp.mcpifex.com/mcp/<YOUR_API_KEY> with your real key as the server URL.
  4. Choose No sign-in and leave OAuth and header fields empty.
  5. Add it, then turn it on in a conversation from the plus menu under Connectors.

Treat that URL like a password: anyone who has it can call the tools enabled on that key. The same connector shows up in Claude Desktop, because both apps use your Claude account's connectors. Claude custom connectors has the menu paths per plan.

How do you check that it works?

Ask Claude: "Call account_status and tell me which ChatGPT credential is active." A linked Plus account answers like this (email removed):

A status board with two usage bars, one short with a teal check mark and one about a third full, and an empty key outline beside a grey bar
Illustration: account_status shows the plan's usage windows and whether an API key is set.
ChatGPT subscription: linked and working (you@example.com, plan plus).
Usage:
  - codex: primary 0% used of a 5-hour window; secondary 13% used of a 7-day window.
  - credits: none
OpenAI API key: not set.

That output is from a real call on 2026-11-29, with the reset times cut. It shows the two things to watch: the plan's usage windows, and whether a key is set as a fallback. Then try a cheap call such as "Ask GPT to summarise this paragraph in one line" before any image work.

What happens when the plan runs out?

Every call tries the subscription first. On a usage or rate limit, a saved API key takes over, and the result starts with ChatGPT limit reached, billed to your API key. A plan that does not include a feature, or a link that stopped working, also falls back, each with its own one-line note. Without a key, the tool returns an error that gives the reset time when OpenAI reports one.

A plan card with its gauge needle at the far end, an hourglass, and a cable that bends through a lever switch to a key lying on a stack of coins
Illustration: a used-up plan either waits for the reset or, with a key saved, moves the call to paid API usage.

OpenAI's pricing page says image generation counts toward the same usage limits as other Codex messages and uses them 3 to 5 times faster on average. So an image batch drains the plan much sooner than text questions. ChatGPT plan limits vs OpenAI API pricing shows what the fallback costs per image.

What should you watch out for?

  • Account risk. Keep the unofficial link off accounts you cannot afford to lose access to. A separate ChatGPT account, or the API key only, avoids the question.
  • Calls come from MCPifex. Subscription calls go out from MCPifex's servers, not from your own connection.
  • No memory. Each ask is one message. Claude has to send all context every time.
  • Slow images. Image calls take one to three minutes. Ask for low quality while you explore.
  • Prompts go to OpenAI. Do not send secrets or customer data you would not paste into ChatGPT.

For image prompts, sizes, edits and masks, read Claude image generation with GPT Image 2.

Quick answers

  • Yes, through a ChatGPT MCP server. Link your account with a one-time code in the MCPifex portal and add MCPifex to Claude. Calls then use your plan's limits. The link is unofficial, not endorsed by OpenAI, and at your own risk.

Sources

  1. OpenAI, Codex pricing and usage limits, checked 2026-11-29.
  2. OpenAI, Codex authentication, checked 2026-11-29.
  3. OpenAI, openai/codex repository on GitHub.

Ready to try it?

Run hosted MCP servers behind one endpoint and choose exactly which tools your AI can use.

← Back to blog