Skip to content
Easy AI How-To

AdvancedChatGPTBuilding

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
Tools
OpenAI: Moving from OpenAI Evals to Promptfoo, OpenAI deprecations page (Evals platform), Promptfoo: install, Promptfoo: assertions and metrics, Promptfoo: run in CI/CD

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

  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:

    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:

    # 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:

    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):

    { "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.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}}:

    [
      {
        "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:

    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 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:

    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:

    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 guide explains how to pick good test cases.

Tips

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.

Free newsletter

Learn AI by doing, one how-to at a time

New how-tos across all of AI: everyday tools, RAG, agents, local models, and taking a proof of concept to production. Each one is something you can try yourself, because the best way to learn AI is by doing it. Free, and you can unsubscribe in one click.

Subscribe free

Opens our sign-up page on beehiiv. Privacy