# OpenAI Evals is shutting down: move your evals to Promptfoo before Nov 30

> OpenAI Evals goes read-only on Oct 31 and shuts down Nov 30, 2026. Back up your evals, rebuild them in Promptfoo, check the results match, and run them in CI.

Level: Advanced
Tool: ChatGPT
Category: Building
Time: About 40 minutes
Checked: 2026-10-26
Tools: [OpenAI: Moving from OpenAI Evals to Promptfoo](https://developers.openai.com/cookbook/examples/evaluation/moving-from-openai-evals-to-promptfoo), [OpenAI deprecations page (Evals platform)](https://developers.openai.com/api/docs/deprecations), [Promptfoo: install](https://www.promptfoo.dev/docs/installation/), [Promptfoo: assertions and metrics](https://www.promptfoo.dev/docs/configuration/expected-outputs/), [Promptfoo: run in CI/CD](https://www.promptfoo.dev/docs/integrations/ci-cd/)
HTML page: https://easyaihowtos.com/guides/move-your-openai-evals-to-promptfoo

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](https://youtube.com/shorts/hxBVzH7yGXA).

Moving off Agent Builder too? It shuts down the same day. See [Move your Agent Builder workflow to the Agents SDK](/guides/move-your-agent-builder-workflow-to-the-agents-sdk).

## What you need

- Access to your evals on platform.openai.com, and an OpenAI API key for the same project
- Python 3.9 or newer (for the backup script)
- Node.js 22.22 or newer for Promptfoo (Promptfoo recommends Node.js 24 LTS)
- About 40 minutes per eval the first time, less after that

## Steps

### 1. 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.

### 2. 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:
```bash
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.py` and run `python export_evals.py`:
```python
# 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.json` holds the graders (`testing_criteria`), each run file holds the prompt template and model, and the `.jsonl` files 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.

### 3. Install Promptfoo

Check your Node.js version with `node --version`. Promptfoo needs 22.22 or newer. Then install it:
```bash
npm install -g promptfoo
promptfoo --version
```
Prefer not to install anything globally? Put `npx promptfoo@latest` in front of each command instead, like `npx promptfoo@latest --version`.

### 4. Turn your test data into Promptfoo tests

OpenAI Evals wraps each test row in an `item` field, like this (from OpenAI's own ticket-sorting example):
```json
{ "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`:
```python
# 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:
```bash
python to_promptfoo.py evals_backup/eval_.../file-....jsonl correct_label > tests.jsonl
```
Each 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.

### 5. Rebuild the prompt and config

Open the run file you want to keep and find `input_messages`. Copy each message into `prompt.json`, and change OpenAI's `{{ item.field }}` placeholders to Promptfoo's `{{field}}`:
```json
[
  {
    "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 `developer` role, use `system` here. Then create `promptfooconfig.yaml`:
```yaml
description: IT ticket categorization (moved from OpenAI Evals)
prompts:
  - file://prompt.json
providers:
  - openai:gpt-6-luna
tests: file://tests.jsonl
```
Under `providers`, put the same model your OpenAI run used, written as `openai:` 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](/guides/find-and-replace-retiring-openai-models) shows how to find them.

### 6. Swap each grader for a Promptfoo assertion

Look at `testing_criteria` in `eval.json` and use the matching assertion (Promptfoo's name for a check):

| OpenAI grader | Promptfoo assertion |
| --- | --- |
| `string_check` with `eq` | `equals` |
| `string_check` with `ne` | `not-equals` |
| `string_check` with `like` | `contains` |
| `string_check` with `ilike` | `icontains` (ignores upper and lower case) |
| `text_similarity` with `bleu`, `gleu`, `meteor` or `rouge_l` | `bleu`, `gleu`, `meteor` or `rouge-l`, with a `threshold` |
| `text_similarity` with `cosine` | `similar` (embeddings), with a `threshold` |
| `score_model` or `label_model` (a model grades the answer) | `llm-rubric` |
| `python` | `python` |

For a model grader, copy your grading instructions into an `llm-rubric` assertion:
```yaml
defaultTest:
  assert:
    - type: llm-rubric
      value: Answers only with one category word and doesn't apologize
```
`defaultTest` applies 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.

### 7. Run it and compare with your old scores

Run a fresh eval and open the results viewer:
```bash
promptfoo eval -c promptfooconfig.yaml --no-cache
promptfoo view
```
`--no-cache` makes Promptfoo call the model again instead of reusing saved answers. If you get a config error, check the file with `promptfoo 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.

### 8. 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`, and `tests.jsonl`, but never your API key. Then add a CI job that runs `promptfoo eval` on each pull request. Promptfoo's CI/CD docs have ready-made setups for GitHub Actions and other CI systems. Store `OPENAI_API_KEY` as a CI secret.

New to evals in general? Our [Write evals for an LLM app](/guides/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 `.gitignore` if 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](/guides/move-your-agent-builder-workflow-to-the-agents-sdk) (same Nov 30 deadline), [Move your custom GPT to a ChatGPT plugin](/guides/move-your-custom-gpt-to-a-chatgpt-plugin), [Find and replace retiring OpenAI models in your code](/guides/find-and-replace-retiring-openai-models), [Turn your Gemini Gems into skills before Nov 17](/guides/turn-your-gemini-gems-into-skills), and [Upgrade to Claude SDK 2.0: fix the new 400 errors](/guides/upgrade-to-claude-sdk-2-fix-400-errors), [Switch from GPT Image 1.5 to GPT Image 2.6](/guides/switch-from-gpt-image-1-5-to-gpt-image-2-5) (Dec 1).

## FAQ

### 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](/guides/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.

---

This guide is from Easy AI How-To (https://easyaihowtos.com). It is independent of the tools named above. Screens and free-plan limits change, so check the date before you rely on a button name.
