OpenAI reusable prompts shut down on 30 November 2026: how to move yours into code

OpenAI's v1/prompts API and saved prompt objects shut down on 30 November 2026. Find every prompt ID in your code, copy each prompt out and version it in Git.

By the Kipt team · Updated 25 November 2026 · 5 min read

What is shutting down on 30 November?

OpenAI is retiring reusable prompt objects, the prompts you saved in the dashboard and called by ID (they start with pmpt_). Its deprecations page schedules the v1/prompts API and reusable prompt objects to shut down on November 30, 2026. Prompt creation was de-emphasized from June 3, 2026, when OpenAI first notified developers.

The same page lists two more shutdowns for that day: Agent Builder, and the Evals dashboard and API. Existing evals became read-only on October 31.

If any request in your code passes a prompt object with an ID, that request depends on something that is about to disappear. The fix is to move the prompt text into your own code. OpenAI's migration guide recommends exactly that.

How do I find every saved prompt my code uses?

Start with an inventory. Saved prompt IDs tend to hide in more places than the obvious API call: environment variables, config files, feature flags and other services.

Search the repo for the ID prefix and for the prompt parameter:

# Saved prompt IDs anywhere in the repo, including config and .env files
git grep -n "pmpt_"

# Calls that pass a prompt object instead of input messages
git grep -nE "prompt[\"']?\s*[:=]\s*\{"
git grep -n "prompt_id"

Then check the places git grep can't see:

  • Environment variables and secrets in your hosting provider
  • Feature flag or remote config systems that hand a prompt ID to the app
  • Other repos and services that call the same OpenAI project

Write each ID down with the version number your code pins, the variables it passes, and the file that calls it. That list is your migration plan.

How do I copy the prompt text out?

OpenAI's migration guide shows the before and after, but it does not describe an API that exports prompt objects. Langfuse's own migration guide states plainly that OpenAI has no API to list or read them, so the export is a copy from the dashboard.

For each ID on your list:

  1. Open the prompt in the OpenAI dashboard.
  2. Copy the version your code actually uses, not just the latest one.
  3. Note the variable names exactly as written, so the code you write next fills the same slots.
  4. If the saved prompt also set a model or other options in the dashboard, write those down too, so behavior doesn't change silently.

Do this before November 30. After the shutdown there may be nothing left to copy from.

Move the prompt into code

OpenAI's guide lists the changes: put the prompt text in your codebase, turn variables into function arguments, pass the messages through input in the Responses API, and move versioning to your repo. It also warns against scattering prompts inline and suggests a small prompts/ module with one named builder function per prompt.

A minimal Python version of that pattern:

# prompts/support.py
SUPPORT_SYSTEM = (
    "You are a support assistant for Acme. "
    "Be concise and accurate. Do not invent policy details."
)

def support_messages(customer_name: str, issue: str) -> list[dict]:
    return [
        {"role": "system", "content": SUPPORT_SYSTEM},
        {
            "role": "user",
            "content": f"Customer: {customer_name}\nIssue: {issue}\nWrite a reply to the customer.",
        },
    ]
# app.py
from openai import OpenAI
from prompts.support import support_messages

client = OpenAI()

response = client.responses.create(
    model="gpt-6.2-astra",  # pin the model you validated the prompt with
    input=support_messages("Acme", "billing question"),
)
print(response.output_text)

The same shape works in TypeScript: a prompts/ folder that exports functions returning the message array, called from wherever you used prompt: { id, version, variables } before.

Two details from OpenAI's guide are easy to miss:

  • Keep static text first and dynamic text later. Cache hits depend on an exact matching prefix, so put the fixed instructions at the top and the per-request values at the end. The prompt caching guide explains why.
  • Make variables explicit. A typed function argument fails loudly when a value is missing. A dashboard variable that was left empty failed quietly.

Keep the versioning you had

The one thing the dashboard gave you for free was a version number. Git replaces it, and gives you more: every change is a commit with an author, a diff and a reason, and a bad prompt change rolls back like any other code change.

Treat prompt files like product code:

  • Review prompt changes in pull requests, with the diff visible.
  • Keep a few fixed test inputs per prompt and run them in CI before merging. The LLM evals guide covers how to build these.
  • If you need to change a prompt without a deploy, load it from your own config and roll it out behind a flag, instead of depending on a hosted prompt store.

The prompt version control guide goes deeper on tags, review and rollbacks.

A checklist for the next few days

  1. Run the searches above in every repo that calls OpenAI.
  2. List each prompt ID, the version pinned, its variables and its callers.
  3. Copy every pinned version out of the dashboard into a prompts/ module.
  4. Replace each prompt: {...} call with input built from your new function.
  5. Run your test inputs and compare outputs with the old prompt before you ship.
  6. If you used Evals or Agent Builder, export what you need from them now as well. OpenAI points to Promptfoo for evals.

What about prompts you only used by hand?

Some teams used the dashboard as a shared notebook, saving prompts they pasted into ChatGPT or a coding agent rather than calling them from code. Those don't belong in your application, but they still need a home before the dashboard goes.

A plain Git repo of Markdown files works. Kipt is one way to keep that repo usable day to day: it saves prompts and Agent Skills as Markdown in a private GitHub repo you own, with {{name}} blanks for the parts that change, and lets Claude Code or Codex search them through MCP. For prompts you reuse every week, the free SKILL.md generator turns one into a skill your agent can load on its own.

Questions

OpenAI's deprecations page schedules the v1/prompts API and reusable prompt objects to shut down on November 30, 2026. After that, a Responses API call that points at a saved prompt ID has nothing to load, so move the prompt text into your code before then.

OpenAI's migration guide says to move the prompt content into your application code, turn prompt variables into function arguments, pass the messages through input in the Responses API, and do versioning in your repo with Git, pull request review and tests or evals.

OpenAI's migration guide does not describe an export endpoint. Langfuse's migration guide says OpenAI offers no API to list or read prompt objects, so plan to copy each prompt and version you use from the dashboard by hand.

The same deprecations page lists Agent Builder and the Evals dashboard and API for November 30, 2026. Existing evals became read-only on October 31, and OpenAI points to Promptfoo as a migration path for evals.

More in Learn

All guides

Your prompts and skills, one keystroke away.

Explore

Use it from your agent.

Save it to Kipt, in your own GitHub, then ask your agent for it by name while you work.

  • Claude Code
  • Codex
  • Cursor
  • VS Code
  • Claude
  • ChatGPT
  • Gemini CLI
  • Windsurf
  • and any MCP client
Get started