OpenAI Evals is shutting down: move your evals to Promptfoo before Nov 30
OpenAI is shutting down its Evals platform. Existing evals become read-only on October 31, 2026, and the Evals dashboard and API are scheduled to shut down on November 30, 2026. OpenAI recommends Promptfoo as the replacement. This guide shows you how to back up your evals before the shutdown, rebuild them in Promptfoo with your test data, prompts and graders, check the scores match, and run them automatically on every change.
Prefer to watch? Catch the quick video on YouTube.
Moving off Agent Builder too? It shuts down the same day. See Move your Agent Builder workflow to the Agents SDK.
- Time
- About 40 minutes
- Checked
If a button name on the screen does not match this guide, follow the action. These products rename buttons often. This is an advanced guide: it uses code, and each technical term is explained the first time it appears. Model names and prices change, so check the linked docs before you ship.
Steps
Know the two dates
OpenAI Evals is the eval tool inside the OpenAI Platform: you upload test data, pick graders (the rules that score each answer), and run a prompt against it. OpenAI is winding it down. From the deprecations page:
Date What happens Oct 31, 2026 Existing evals become read-only Nov 30, 2026 The Evals dashboard and API are scheduled to shut down OpenAI says graders used in eval workflows are part of this transition. Its recommended replacement is Promptfoo, an open-source command-line tool for testing AI apps. There's no export button, so you rebuild each eval by hand. This guide makes that quick.
Terms: an eval is an automated test for AI output. A run is one pass of a prompt and model over the test data. CI (continuous integration) means tests run automatically, for example on every pull request.
Back up everything while you still can
Read-only still lets you look, but the Evals dashboard and API are scheduled to shut down on Nov 30. Save each eval's settings, its runs (which hold the prompt and model you tested), and the test data files. Set up a folder and install the OpenAI Python SDK:
mkdir evals-move && cd evals-move python3 -m venv .venv source .venv/bin/activate # Windows: .venv\Scripts\activate pip install openai export OPENAI_API_KEY="your-key-here"Save this as
export_evals.pyand runpython export_evals.py:# export_evals.py: save every eval, its runs, and its test data files to ./evals_backup import json, pathlib from openai import OpenAI client = OpenAI() # reads OPENAI_API_KEY out = pathlib.Path("evals_backup") out.mkdir(exist_ok=True) for ev in client.evals.list(): # the SDK pages through every eval for you folder = out / ev.id folder.mkdir(exist_ok=True) (folder / "eval.json").write_text(ev.model_dump_json(indent=2)) print("Saved", ev.id, "-", ev.name) for run in client.evals.runs.list(ev.id): (folder / f"{run.id}.json").write_text(run.model_dump_json(indent=2)) source = (run.data_source.model_dump().get("source") or {}) if source.get("type") == "file_id": data = client.files.content(source["id"]).text (folder / f"{source['id']}.jsonl").write_text(data) print(" saved test data", source["id"])You get one folder per eval. Inside,
eval.jsonholds the graders (testing_criteria), each run file holds the prompt template and model, and the.jsonlfiles are your test data. Also take a screenshot of your best run's scores in the dashboard. You'll compare against it later.The API key only sees evals in its own project. If you have several projects, run the script once with a key from each.
Install Promptfoo
Check your Node.js version with
node --version. Promptfoo needs 22.22 or newer. Then install it:npm install -g promptfoo promptfoo --versionPrefer not to install anything globally? Put
npx promptfoo@latestin front of each command instead, likenpx promptfoo@latest --version.Turn your test data into Promptfoo tests
OpenAI Evals wraps each test row in an
itemfield, like this (from OpenAI's own ticket-sorting example):{ "item": { "ticket_text": "My monitor won't turn on!", "correct_label": "Hardware" } }Promptfoo calls the same fields vars (variables) and puts the check right next to them. This script converts a whole file. Save it as
to_promptfoo.py:# to_promptfoo.py: turn OpenAI Evals test data into Promptfoo tests # usage: python to_promptfoo.py tickets.jsonl correct_label > tests.jsonl import json, sys data_file, answer_field = sys.argv[1], sys.argv[2] for line in open(data_file): if not line.strip(): continue item = json.loads(line)["item"] # OpenAI wraps each row in "item" test = {"vars": item, "assert": [{"type": "equals", "value": item[answer_field]}]} print(json.dumps(test))Run it with your data file and the name of the field that holds the right answer:
python to_promptfoo.py evals_backup/eval_.../file-....jsonl correct_label > tests.jsonlEach line now looks like
{"vars": {"ticket_text": "...", "correct_label": "Hardware"}, "assert": [{"type": "equals", "value": "Hardware"}]}. This uses an exact-match check. Step 6 shows what to swap in for other graders.Rebuild the prompt and config
Open the run file you want to keep and find
input_messages. Copy each message intoprompt.json, and change OpenAI's{{ item.field }}placeholders to Promptfoo's{{field}}:[ { "role": "system", "content": "You are an expert in categorizing IT support tickets. Given the support ticket below, categorize the request into one of 'Hardware', 'Software', or 'Other'. Respond with only one of those words." }, { "role": "user", "content": "{{ticket_text}}" } ]If your run used the
developerrole, usesystemhere. Then createpromptfooconfig.yaml:description: IT ticket categorization (moved from OpenAI Evals) prompts: - file://prompt.json providers: - openai:gpt-6-luna tests: file://tests.jsonlUnder
providers, put the same model your OpenAI run used, written asopenai:plus the model name. If that model is on OpenAI's retirement list, test the old and the new one side by side by listing both. Our retiring OpenAI models guide shows how to find them.Swap each grader for a Promptfoo assertion
Look at
testing_criteriaineval.jsonand use the matching assertion (Promptfoo's name for a check):OpenAI grader Promptfoo assertion string_checkwitheqequalsstring_checkwithnenot-equalsstring_checkwithlikecontainsstring_checkwithilikeicontains(ignores upper and lower case)text_similaritywithbleu,gleu,meteororrouge_lbleu,gleu,meteororrouge-l, with athresholdtext_similaritywithcosinesimilar(embeddings), with athresholdscore_modelorlabel_model(a model grades the answer)llm-rubricpythonpythonFor a model grader, copy your grading instructions into an
llm-rubricassertion:defaultTest: assert: - type: llm-rubric value: Answers only with one category word and doesn't apologizedefaultTestapplies the check to every test. OpenAI notes that similarity scores may not come out exactly the same in another tool, and that any rebuilt model grader should be checked before you trust it.Run it and compare with your old scores
Run a fresh eval and open the results viewer:
promptfoo eval -c promptfooconfig.yaml --no-cache promptfoo view--no-cachemakes Promptfoo call the model again instead of reusing saved answers. If you get a config error, check the file withpromptfoo validate config -c promptfooconfig.yaml.Compare the pass rate with your screenshot from step 2. Close is good. If it's way off, open the failing rows in the viewer. The usual causes are a placeholder you forgot to rename, a different model, or a grader that's stricter or looser than the original.
Run it on every change
The upside of the move: your evals now live in your repo next to your code. Commit
promptfooconfig.yaml,prompt.json, andtests.jsonl, but never your API key. Then add a CI job that runspromptfoo evalon each pull request. Promptfoo's CI/CD docs have ready-made setups for GitHub Actions and other CI systems. StoreOPENAI_API_KEYas a CI secret.New to evals in general? Our Write evals for an LLM app guide explains how to pick good test cases.
Tips
Run the backup script now, even if you rebuild later. After Nov 30 the Evals API is scheduled to shut down, so the script won't work anymore.
Don't paste your API key into a chat or commit it to Git. Set it in your terminal as shown, or as a secret in your CI settings.
Test data can include real customer messages. Keep the backup folder somewhere private, and add it to
.gitignoreif it doesn't belong in your repo.Model-graded checks call a model too, so they cost money on each run. Start with a small test set while you match up the results.
Part of the Before it retires series: Move your Agent Builder workflow to the Agents SDK (same Nov 30 deadline), Move your custom GPT to a ChatGPT plugin, Find and replace retiring OpenAI models in your code, Turn your Gemini Gems into skills before Nov 17, and Upgrade to Claude SDK 2.0: fix the new 400 errors, Switch from GPT Image 1.5 to GPT Image 2.6 (Dec 1).
Common questions
Can I still use OpenAI Evals after Oct 31?
Your existing evals become read-only on Oct 31, 2026, so you can still open them and back them up. The dashboard and API are scheduled to shut down on Nov 30, 2026. Check OpenAI's deprecations page for the current timeline.
Is there an export button?
No. OpenAI's own migration guide says you recreate each eval by hand and doesn't need an export feature. The backup script above saves the pieces through the API so you have them to work from.
Do I have to use Promptfoo?
No. It's the path OpenAI recommends, but any eval tool or a small script of your own works. Our Write evals for an LLM app guide shows a plain Python version.
Can Promptfoo test models other than OpenAI's?
Yes. Promptfoo supports many providers, including Anthropic, Google, and local models through Ollama. Add more entries under providers to compare them on the same tests.
What about my old run results?
The backup script saves each run's settings and summary. Your first Promptfoo run is a new, separate run, so keep that screenshot of your old scores to compare against.
More guides
BeginnerChatGPTEveryday
Plan a week of meals
Give free ChatGPT your people, your time, and foods to skip. Get a 7-day plan and a shopping list you can edit.
About 10 minutes using ChatGPT
BeginnerChatGPTWriting
Write a social media caption
Ask free ChatGPT for three short captions from what really happened, then post one yourself.
About 6 minutes using ChatGPT
BeginnerChatGPTWriting
Make a message sound kinder
Paste a blunt draft into free ChatGPT and get a kinder version that does not add apologies or new facts.
About 6 minutes using ChatGPT