How to use the OpenAI API Migration skill in Codex: install, what it does, and our Chat Completions to Responses test
Short answer
Install the OpenAI Developers plugin with codex plugin add openai-developers@openai-curated-remote, start a new Codex session, and ask it to migrate your app with $openai-api-migration. The skill moves Chat Completions code (or another provider's) to the Responses API and is built to ask you a few questions first: assessment only or full migration, privacy needs, which model, and how to test. In our test on Codex CLI 0.171.0, the plain prompt from OpenAI's docs skipped those questions and the migration log, and it quietly changed behavior (strict tool schemas, errors on cut-off replies). Naming the skill and answering its questions up front gave the most careful result: 142 seconds, 5 passing tests and a written migration ledger.
OpenAI's developer account announced the skill on X at 19:04 UTC on December 2, 2026 (23:04 Dubai time): "The OpenAI Developers plugin for ChatGPT and Codex now has a new skill built in to migrate existing LLM apps to the OpenAI Responses API." When we checked the X API at about 10:30 Dubai time on December 3, the post had 82,034 views, 803 likes, 188 bookmarks and 83 replies. X counted 18 posts about migrating to the Responses API on December 2 and 19 more in the first six hours of December 3, against 1 to 5 a day the week before.
The write-ups so far repeat the announcement. We installed the plugin, opened the skill, and pointed it at a real (small) Chat Completions app three different ways.
What is the OpenAI API Migration skill?
It is one of seven skills in the OpenAI Developers plugin. Its own description: "Audit and migrate existing AI integrations to current OpenAI APIs and models, preserving behavior and upgrading where efficiency gains are possible." What we found in the package Codex installed on December 3, 2026:
- Where it lives: plugin
openai-developersversion 1.3.16 from theopenai-curated-remotemarketplace. The plugin is 36 files and 314,737 bytes. The other skills are agents, devday-guide, openai-api-troubleshooting, openai-computer-use, openai-platform-api-key and setup. - Size: the migration skill is 6 files, 116,756 bytes:
SKILL.md(12,483 B), a Responses API guide with 32 headings, a provider guide (Chat Completions, Microsoft Foundry, LiteLLM, OpenRouter, Together AI, Vercel AI SDK), a 14,524-byte ledger template and an eval file. - What it covers: moving apps and agents to the Responses API, improving an existing Responses API setup, and updating SDK and provider settings.
- What it will not touch: audio, speech and transcription endpoints; your model, unless you ask; prompt rewriting; and new multi-agent setups.
- It needs the docs MCP: the skill lists the OpenAI developer docs MCP server (
https://developers.openai.com/mcp) as a dependency, so it can read current docs while it works.
How do you install the OpenAI API Migration skill in Codex CLI?
codex plugin add openai-developers@openai-curated-remote
# Added plugin `openai-developers` from marketplace `openai-curated-remote`.
# Installed plugin root: ~/.codex/plugins/cache/openai-curated-remote/openai-developers/1.3.16
That took under 2 seconds. You can also type /plugins inside interactive Codex, search for OpenAI Developers and pick Install, which is the route OpenAI's plugin docs show. If Codex asks you to connect the OpenAI Platform app, that is only needed if you want it to create API keys for you.
Two things to know:
- It loaded right away. In the next
codex execsession the skill list containedopenai-developers:openai-api-migration, and Codex opened itsSKILL.mdas its very first command in both plugin runs. That is better than what we saw yesterday with another plugin: in our SVG & 3D Design plugin test on December 2 the skill was missing from the list. In today's sessions that skill was listed too, so it may have been fixed on OpenAI's side. - The GitHub copy is behind. The openai/plugins repo still had openai-developers 1.2.3 (last commit November 18) with no migration skill when we checked. Install through Codex, not by copying the repo.
What prompt should you use?
OpenAI's docs suggest this:
Migrate this app to use OpenAI Responses API best practices.
It works, but read the next section before you use it on anything important. The skill's first step says Codex should state whether you want "an assessment only or an assessment followed by implementation" and ask if that is unclear. It then wants answers on Zero Data Retention, model choice and testing before it plans anything. In codex exec (non-interactive) mode nobody is there to answer, so put the answers in the prompt. This is the version we used:
Use $openai-api-migration to migrate this app to the OpenAI Responses API.
I want assessment followed by implementation. Run all approved stages in one go.
Do not make live API calls; validate with mocked tests only (run: python -m pytest -q).
Keep the model as it is. No Zero Data Retention requirement.
Keep the public Bot.ask() behaviour and tokens_used accounting.
Get the AI tools worth your time
Era of Minds by Salman Ahmed: one short email with the AI tools and news that actually matter. Free.
You're in. Check your inbox.
Confirm your email and your 50 AI prompts are on their way.
Free. Unsubscribe anytime.
Does it migrate better than Codex on its own? Our test
The app: a 58-line Python support bot for a bakery using client.chat.completions.create with a system prompt, chat history, one function tool (get_order_status), temperature=0.3, max_tokens=200 and a running tokens_used count, plus 2 mocked pytest tests. We copied it three times and ran Codex CLI 0.171.0 (model gpt-6.2-sol, workspace-write sandbox, OpenAI Python SDK 3.63.0) once per setting on December 3, 2026. No API key, no live calls.
| Setting | Time | Input tokens (cached) | Output tokens | Tests after | Ledger | Behavior kept? |
|---|---|---|---|---|---|---|
| Docs prompt, plugin on, no answers | 166 s | 888,923 (826,240) | 6,159 | 9 pass | No | Partly: strict schema on, raises on cut-off replies |
$openai-api-migration + answers | 142 s | 454,832 (414,976) | 6,180 | 5 pass | Yes, 7,323 B | Yes, strict kept off on purpose |
Plugins off (--disable plugins), same answers | 103 s | 237,666 (215,552) | 4,316 | 3 pass | No | Yes |
All three produced working Responses API code that passed their own tests: responses.create, max_output_tokens=200, a flattened tool definition, tool results sent back as function_call_output items with the right call_id, history kept locally, and store=False. The differences are where the skill earns (or costs) its tokens.
- The plain docs prompt did not ask anything. It announced it would use the migration skill, then went straight to editing. No questions about scope or privacy, and no
TEMP-openai-migration-ledger.md, even though the skill says to create one for any implementation. - It also changed behavior without saying so up front. The old bot returned whatever text came back, even if the 200-token cap cut it off. The docs-prompt version raises a
RuntimeErroron any response that is notcompleted, so a long answer now crashes the chat loop. It also turned on"strict": Truefor the tool schema, capped tool rounds at 5, and only sendstemperaturewhen the model name starts withgpt-4. Some of that is sensible hardening. None of it was asked for. - Naming the skill gave the careful version. The run with
$openai-api-migrationand our answers copied the ledger template, walked through the guide's headings (model, caching, state, reasoning, tools and more) and wrote down a decision for each. It noticed that Responses tries strict mode whenstrictis left out, so it set"strict": Falseto keep the old behavior, and it kept returning partial text on cut-off replies. Its ledger says why it skipped streaming, WebSockets, compaction and cache keys for this app. - Plain Codex was fastest and cheapest. With plugins off, Codex did a clean migration in 103 seconds with about half the input tokens of the skill run. It did not add
include=["reasoning.encrypted_content"], which only matters if you later switch to a reasoning model withstore=False.
One run per setting on a tiny app is a sample, not a benchmark. On a 58-line bot the skill's checklist is overkill. On a real codebase with several providers, streaming and saved state, a written ledger that you can review is the part we would want most.
What does the skill actually check?
The Responses API guide inside the skill is a checklist Codex must go through "once" per migration, recording what applies. Its headings include model selection, streaming, WebSocket mode, Zero Data Retention and data residency, processing tiers, prompt cache keys and cache retention, state management (with an "instruction persistence gotcha"), encrypted reasoning items, reasoning effort, verbosity, maximum output tokens, context compaction, Structured Outputs, and tools (tool choice, tool search, parallel calls, programmatic tool calling). After the plan, it delivers the work in stages and posts a review after each one: status, before and after, a usage example, what passed, and what still needs checking.
The underlying move is the same one in OpenAI's Migrate to the Responses API guide: send requests to /v1/responses, read a typed output array instead of choices, and pick how state carries between turns (previous_response_id, replaying items yourself, or the Conversations API).
Who has already covered it, and what is different here?
For "OpenAI Developers plugin migrate Responses API", a web search shows OpenAI's own docs and plugin page, a short summary card on chasingnext.com, and older Codex guides on codex.danielvaughan.com about the separate completions-responses-migration-pack script. We did not find anyone who installed the skill, read its files, or compared it with plain Codex. If you use Codex every day, see Codex banked reset: when should you use it, and why does Codex say you don't need one?. For another tool that drives an API from a coding agent, read Gemini API CLI in Claude Code: how to use Gemini 4 Neon (and what's free), and if you are weighing API costs, ChatGPT Pro API credits: is up to $500 a month really free, and what's the catch?.
Get the AI tools worth your time
Era of Minds by Salman Ahmed: one short email with the AI tools and news that actually matter. Free.
You're in. Check your inbox.
Confirm your email and your 50 AI prompts are on their way.
Free. Unsubscribe anytime.
FAQ: the OpenAI API Migration skill
What is the OpenAI API Migration skill?
It is a skill inside OpenAI's OpenAI Developers plugin for Codex and ChatGPT. It audits an app that calls an LLM and migrates it to the OpenAI Responses API, or improves an existing Responses API setup, while trying to keep the app's behavior the same. In plugin version 1.3.16 it is 6 files and 116,756 bytes: a SKILL.md, two reference guides, a ledger template and an eval file.
How do I install the OpenAI API Migration skill in Codex CLI?
Install the OpenAI Developers plugin: run codex plugin add openai-developers@openai-curated-remote, or open /plugins in interactive Codex and search for OpenAI Developers. The migration skill comes with it. In our test on Codex CLI 0.171.0 the install took under 2 seconds and the skill showed up in the next session as openai-developers:openai-api-migration.
Is the OpenAI API Migration skill free?
The plugin costs nothing to install. Running it uses your normal Codex usage, and in our test the skill runs used a lot more input tokens than a plain migration: 454,832 to 888,923 versus 237,666 with plugins turned off.
What prompt should I use for the OpenAI API Migration skill?
OpenAI's docs suggest 'Migrate this app to use OpenAI Responses API best practices.' In our test that plain prompt worked but skipped the skill's ask-first questions and its migration ledger. Naming the skill with $openai-api-migration and answering its questions up front (assessment plus implementation, keep the model, privacy needs, how to test) gave a more careful, logged result.
Does the migration skill change my model?
Not unless you ask. Changing an existing model without the developer's direction is listed as out of scope in the skill. In all three of our runs the BOT_MODEL setting and its gpt-4o-mini default stayed as they were.
Does the OpenAI API Migration skill work in Claude Code or Cursor?
OpenAI's plugin page says adaptations for Claude Code and Cursor bundle the portable developer skills and the public OpenAI Docs MCP server, without the Codex-only Platform connector. We only tested Codex CLI.
What does the skill not migrate?
Its SKILL.md lists audio, speech and transcription endpoints, model changes you did not ask for, prompt migration or rewriting, and new multi-agent orchestration as out of scope.
Is the migration skill in the openai/plugins GitHub repo?
Not when we checked on Dec 3, 2026. The GitHub copy of openai-developers was version 1.2.3 (last commit Nov 18) with no openai-api-migration folder. The copy Codex installed from its remote marketplace was 1.3.16 and had it.
Sources
- OpenAI Developers plugin, OpenAI developer docs (install steps, suggested migration prompt, Claude Code and Cursor adaptations; checked December 3, 2026)
- OpenAI Developers plugin page on openai.com (list of skills)
- Migrate to the Responses API, OpenAI API docs
- openai/plugins on GitHub (openai-developers 1.2.3, commit 981b02c, November 18, 2026)
- On X: OpenAI Developers' announcement (82,034 views, 803 likes, 188 bookmarks when checked)
- The skill package itself:
openai-developers1.3.16,skills/openai-api-migration(SKILL.md, agents/openai.yaml, references, ledger template), installed December 3, 2026 - Our test: December 3, 2026, Linux, Codex CLI 0.171.0, gpt-6.2-sol, OpenAI Python SDK 3.63.0, pytest, one run per setting, timings are wall-clock for the whole
codex execrun, no API key.
Get AI news decoded weekly.
Decoded is a free weekly email from Era of Minds. The AI stories that actually matter, in plain English. Five minutes, no hype.
You're in. Check your inbox.
Confirm your email and your 50 AI prompts are on their way.
Free. Unsubscribe anytime. Free gift: 50 AI prompts that actually work, sent the moment you join. More about Decoded