Upgrading promptfoo safely

A promptfoo upgrade changes the machines, images and servers that run your evals, so it can break CI, self-hosted data or result baselines. This page covers the Node.js 22.22 requirement, version pinning, release note review, re-baselining and rollback.

On this page

How to plan a promptfoo upgrade without losing your baseline

Test the new promptfoo release on a pinned version running on Node.js 22.22.0 or newer, then re-baseline your results before you promote it to CI, Docker images or the self-hosted server. The upgrade reaches further than one server because promptfoo runs locally on the machine or image that calls the LLM. Each CI runner, developer workstation, base image and container that runs promptfoo eval carries its own copy of the tool and its own Node.js runtime, so all of them must move together. A runner that still has an older Node.js version or an older promptfoo pin will produce results from a different setup than the rest of your pipeline. Start by listing every place promptfoo is installed, including lockfiles, Dockerfiles and the self-hosted server image.

The supported path is the sequence of versions your release notes and tests cover, and you should confirm that sequence with the vendor before you plan a jump across several releases. The promptfoo releases on GitHub page lists the changes in each version, and breaking changes are the entries to read first. Write down the exact sequence you intend to follow, then check that each step is covered by a passing run of your own suite. Pin the exact version in package.json, the lockfile and Docker image tags, and keep floating tags such as latest out of the pipeline so that a rebuild never pulls a release you have not tested. Confirm that every runner meets the Node.js 22.22.0 requirement before the first run, since an older runtime may fail at install.

Re-baselining means showing that the new version reproduces your results before you retire the old baseline. Run the same suite, with the same configuration, prompts and test data, on the old pinned version and on the candidate, and save both outputs as files. Compare pass rates, the assertions whose outcomes changed and the error counts, and read the release notes for any changed assertion behavior before you accept a difference. Use fresh provider responses for both runs, since a shared cache can make two versions look identical. Record which differences you accepted, why, and who approved them. Keep the previous baseline and the previous pin archived until the new version has run cleanly in every environment, so that a rollback is a single version change.

Which promptfoo upgrade changes need action before go-live

This table lists the promptfoo upgrade changes that can affect a go-live, with the impact of each and the action to take before you switch versions. Read each row against your current and target versions, because the GitHub release notes for every version in between are the final source for breaking changes and deprecations. The first checks for most self-hosted teams are the Node.js requirement and the SQLite data store.

ChangeImpactAction needed
Node.js minimumRelease 0.124.1, published 8 October 2026, requires Node.js 22.22.0 or newer.Confirm the Node.js version on every CI runner, developer machine and Docker base image before upgrading.
OpenAI acquisitionOpenAI acquired promptfoo, announced 9 March 2026. The project is MIT licensed and the founders state it stays open source.Confirm the license terms in the version you pin. Ask your legal team to review any change in ownership terms.
Release cadenceNew releases arrive often, so an unpinned install can change behavior between two runs of the same pipeline.Pin exact versions in package.json, lockfiles, CI images and Docker tags, and change the pin only through a reviewed upgrade.
SQLite data storeSelf-hosted servers keep data in a local SQLite database that cannot be shared across replicas.Back up the database file before upgrading, then confirm stored results still open in the target version.
Breaking changes and deprecationsBreaking changes and deprecated options are published in each GitHub release note, and they vary by version.Read every release note between your current and target versions, then update configs, scripts and CI steps that depend on them.
Baseline resultsA new version can change how providers, prompts or grading behave, which can shift pass rates without any change to your application.Re-run your reference suite on the target version and compare results with the prior baseline before you accept the upgrade.

What to inventory and back up before a promptfoo upgrade

Upgrading is safest when you know exactly which versions are running, what your suites depend on and what you could restore. The four items below cover the versions in use, the custom code and config your suites rely on, the stored data, and a test environment where you can compare results before and after the change.

Pin versions on every runner

Write down the promptfoo version and the Node.js version on every runner, developer machine and container image that runs evals or red team scans. The npm release 0.124.1 requires Node.js 22.22.0 or newer, so any location on an older Node.js line will not meet the requirement. Record the base image tag for each Docker build and confirm that every location reports the same values before you begin.

promptfoo on npm

Inventory custom targets and config

List every custom HTTP, WebSocket and Python target, any custom provider module, and the config keys your suites use. For each one, write the file path, the owning team, the endpoint or script it calls and the environment variables it reads. Include the keys set in promptfooconfig.yaml, such as providers, redteam and defaultTest, so you can check each one against the release notes once you choose a target version. This list defines what you must retest after the upgrade.

Back up results, cache and data

Back up the self-hosted data volume, including the SQLite database that stores results, and the response cache directory on each runner before you change anything. Because the database cannot be shared across replicas, stop the server or take a consistent copy before you copy the file, and record its path and size. Confirm in the release notes whether cached responses from the old version are reused after the upgrade. Store the backup where the upgraded instance cannot overwrite it.

Self-hosting docs

Match the test environment

Build a test environment that matches production on Node.js version, container base image, operating system and the promptfoo version you plan to move to. Run your existing evals and red team scans there on the current version first, so you have a baseline to compare against. Keep the same environment variables, provider credentials and network routes to your targets, because differences in any of them can make the before and after results hard to compare.

How the upgrade path moves from pinned version to promotion

The diagram starts at the promptfoo version currently pinned in CI and Docker. Before anything changes, the team reads the release notes for breaking changes, then upgrades a separate test environment running Node.js 22.22.0 or newer, the requirement for the npm release 0.124.1. The baseline suite runs in that environment, and its results are compared with the stored baseline. If the comparison shows no regressions, the new version is promoted to CI and Docker and a new baseline is recorded. If it shows regressions, the rollback branch restores the previous pinned image or lockfile, and the upgrade is retried only after the cause is understood.

Upgrade path from pinned version to promotion or rollback.

Upgrade steps with a check and a rollback point at each stage

This sequence moves a promptfoo upgrade through a frozen reference, a tested target build, a re-baselined result set and a staged promotion into CI and Docker. Each stage ends with a check that must pass before the next stage starts, and a rollback action that returns that stage to the known state. The result is a pinned version your team has compared against the current one under the same model settings and can return to at any stage.

  1. Freeze the current version and back up data

    Record the promptfoo version and Node.js version that CI runners and the Docker image use today, then copy everything you would need to restore: eval configs, prompt files, saved results and, if you run the self-hosted server, its SQLite database. The engineer who owns the evaluation pipeline does this before anything changes. Check: a restore of the copy into an empty directory opens and lists the expected runs and configs. Rollback at this stage: nothing has changed yet, so keep the frozen version and its lockfile committed as the reference point for every later stage.

  2. Read every release note before installing

    Open the promptfoo release notes on GitHub and read every entry between your current version and the target, in order, including the entries that look minor. Look for breaking changes to config keys, assertion behavior, default provider settings, output formats and runtime requirements, and match each one against the configs, CI jobs and scripts you maintain. The eval owner leads this review, with a security reviewer present for red team configs. Check: a written list of every affected file and job, each with a named owner and a decision on whether it needs a change. Rollback at this stage: nothing is installed, so if the list cannot be closed, keep the current pin and carry the open items into the next review.

  3. Prepare a test environment on Node.js 22.22.0

    Build an environment separate from production that matches your CI runner image and runs Node.js 22.22.0 or newer, the minimum runtime stated for the npm release 0.124.1. Confirm the runtime before installing anything, because a runtime below the minimum can stop the install or the CLI from starting. The platform engineer builds this environment from the same container or runner definition that CI uses. Check: node --version reports 22.22.0 or higher, and a simple eval runs on the frozen version inside this environment. Rollback at this stage: discard the test environment, and leave production runners on their current Node.js and promptfoo pin.

  4. Install the target version with an exact pin

    In the test environment, install the target promptfoo release with an exact version in package.json (no caret or tilde range) and commit the updated lockfile, so every later install resolves to the same build. The engineer running the upgrade performs this step and records the version in the change request. Check: npx promptfoo --version prints the target version, and a clean install from the lockfile resolves to that same version on a second runner. Rollback at this stage: restore package.json and the lockfile from the frozen commit and reinstall, which returns the test environment to the frozen version.

  5. Run the baseline suite and red team scan

    Run your existing eval suite and a red team scan twice, once on the frozen version and once on the target, with the same model, model settings, prompts, test data and provider endpoints. Clear the response cache before each run so that neither run reuses the other's output, and save the full results from both. The eval owner runs both and confirms the settings are recorded in the output files. Check: both runs complete with the same test count, and the settings block in each output matches. Rollback at this stage: nothing is promoted, so keep the frozen version as the reference and treat the target results as a draft until the comparison is finished.

  6. Compare results and record a decision for each change

    Diff the two result sets test case by test case, looking at outcome changes, score shifts, new error types and output text changes that your assertions depend on. Each difference gets a recorded decision: accept it with a reason, fix the config or prompt, or classify it as a regression. Security reviewers check red team differences in the same pass, since a change in grading can hide a weaker result. Check: every changed test case has a decision on record, and no error type remains unexplained. Rollback at this stage: if any regression stays open, keep the frozen pin in every pipeline and return to the release note review with the open items.

  7. Promote the pinned version one pipeline at a time

    Move the pin into one pipeline at a time, starting with a lower-risk job such as a scheduled eval, then the CI gates, then the Docker image used for the self-hosted server. Change the version in the pipeline config and the image tag, and keep every tag explicit. The platform engineer reviews and merges each change separately so that each promotion can be reverted on its own. Check: the promoted job passes on the same suite, and its results match the test environment run. Rollback at this stage: revert that pipeline's pin commit and rebuild the image from the previous explicit tag, leaving already promoted pipelines in place unless their results show a problem.

  8. Monitor the first scheduled runs and rebaseline

    Watch the first scheduled runs after promotion for timeouts, provider errors, rate-limit failures and pass-rate shifts that the test environment did not show, and compare each run against the baseline from the comparison step. When the runs hold steady, save the target results as the new baseline for the next upgrade and record the sign-off in the release record. The eval owner runs this check. Check: the scheduled runs complete with error counts and pass rates in line with the baseline, and the new baseline is stored with its model settings. Rollback at this stage: if a scheduled run regresses, revert the pin in the affected pipeline, keep the frozen version there until the cause is fixed, and repeat the steps for that change.

How pinning works for CI, Docker and self-hosted promptfoo

A CI job installs whatever version the install step resolves when the job starts, so two runs of the same commit can use different promptfoo releases. The promptfoo package on npm is the source your pipeline installs from, so pin the version in the files that job reads. Without a pin, a new release can change default assertions, provider handling or output format, and a gate that passed yesterday can fail today with no change to your prompts.

  • Lockfile install: Commit package-lock.json and run npm ci in the job. It installs exactly what the lockfile records and fails if the lockfile and manifest disagree.
  • Exact version in the manifest: Declare "promptfoo": "0.124.1" in package.json without a caret or tilde, so a later install cannot move the range forward.
  • Global installs: Name the version in every global install, such as npm install -g promptfoo@0.124.1, so each runner does not resolve the newest release.
  • Runner Node.js version: Confirm the runner image provides Node.js 22.22.0 or newer, since release 0.124.1 requires it.

Check that each job log prints the promptfoo version and the Node.js version, so a failed gate can be traced to a version change.

Why promptfoo results shift after an upgrade and how to re-baseline

An eval score can move after an upgrade for reasons that have nothing to do with the promptfoo version. The provider may have updated the model behind an alias, the response cache may serve outputs recorded under an earlier prompt or model, a judge model used for model-graded assertions may have changed, or a default in the new release may alter how a test runs. To separate these causes, pin everything except the promptfoo version: the same Node.js 22.22.0 or newer runtime, the same model identifier (with a dated snapshot where the provider offers one), the same prompts and test files in promptfooconfig.yaml, and the same cache state. Then run the old and new versions against that identical setup. If the scores agree, the upgrade has not changed this suite's results. If they diverge, the remaining difference comes from promptfoo itself, and you can review it against the release notes.

Before accepting a new baseline, compare the two result sets case by case. Read the promptfoo releases on GitHub for every version between your current pin and the target, looking for changes to assertion behavior, default settings and breaking changes, and note which of your config keys each one touches. Then review every test whose pass or fail status changed, along with any assertion whose score moved without flipping status. Open the outputs in the web viewer or a JSON export so you can read the response text, not only the verdict. Record whether each change is an intended improvement, a grader difference or a regression in your application. Keep provider errors out of this review, since timeouts and rate-limit failures belong to the retry process and should not be read as model changes.

The owner of the eval suite signs off on the new baseline, usually the engineer or product owner who wrote the pass criteria. Add a second approver from security or compliance when the suite produces red team evidence or supports a regulated release. Ask that approver to confirm that every changed result has a recorded decision. Commit the new baseline, the pinned promptfoo version, the Node.js runtime and the cache settings in the same change, so a later reader can reproduce both runs. Keep the old results alongside the new ones so the comparison survives the next upgrade. Confirm with your own change board who must approve baseline changes for production gates, because that policy varies between organizations. Keep the re-baseline separate from any prompt or model change, so each diff can be traced to one cause.

What makes a promptfoo upgrade take longer

This table lists the drivers that decide how much work a promptfoo upgrade needs and how long the checks take. Read each row as a question to answer about your own setup before you schedule the change. The main takeaway is that custom targets, pinned pipelines and self-hosted data usually add more work than the package update itself.

DriverWhy it mattersWhat to check
Custom providers and targetsPython and HTTP targets run your own code, so a promptfoo change can alter how requests and responses pass through.Test each custom provider file and endpoint on the new version, and confirm the response shape your assertions expect.
Pinned CI pipelines and imagesEvery pipeline, Docker image and developer machine that pins the version must move together, or results will mix versions.List every pin in CI configs, Dockerfiles and lockfiles, and confirm each one points to the same target version.
Eval and red team suite sizeLarger suites take longer to re-run and produce more results to compare against the old baseline.Run a copy of the suite on the new version with your current provider settings, and plan the re-baseline around that run.
Releases skippedEach skipped release adds its own release notes, default changes and possible breaking changes to review.Read the release notes for every version between your current and target versions, and note any changed defaults.
Node.js runtimeRecent releases require Node.js 22.22.0 or newer, so older hosts and build images may need changes first.Confirm the Node.js version on every CI runner, image and workstation before changing the promptfoo pin.
Self-hosted server and data volumeThe server keeps past runs in its database, and storage or schema changes can affect that history.Back up the data volume first, and confirm the server runs as one instance, because its SQLite database cannot be shared across replicas.
Regulated evidenceAssessors may expect test results, approvals and red team reports that tie to the version under review, so an upgrade can make them stale.Identify which evidence cites the old version, and plan to regenerate and re-approve it after the change.

Which rollback points actually reverse an upgrade

Three artifacts can reverse an upgrade, and each covers a different layer. The prior image tag restores the promptfoo code when you run the self-hosted server with Docker, Docker Compose or Helm, so record the exact tag currently running and avoid floating tags such as latest. The lockfile or pinned install command does the same for CLI and CI use: keep the previous package-lock.json or the exact version string, and record the Node.js runtime as well, because promptfoo 0.124.1 requires Node.js 22.22.0 or newer and a rollback that leaves Node changed can behave differently. Neither artifact restores data.

The data volume is the only artifact that puts stored results back, and it is the one easiest to overlook. Self-hosted promptfoo keeps its data in a local SQLite database, so copy the volume or data directory while the server is stopped, which gives you a consistent snapshot. Store that copy with the same access controls as the results it holds, because eval outputs can contain sensitive prompts, model responses and red team findings. Before you copy anything, confirm the database path for your deployment in the promptfoo self-hosting documentation, since the location depends on how the container or chart mounts storage. Take the snapshot immediately before the change so it matches the state you would roll back to.

Data written by a newer version may not be readable by an older one. Schema changes in a release can add or alter tables, so restoring an old image over a database that the new version has already written to may fail at startup or misread records. Read the release notes for both the version you are leaving and the version you are returning to, on the promptfoo releases page, and look for migration or schema notes before you rely on a downgrade. If the notes are silent, treat the downgrade as unproven until you test it. Then rehearse it: restore the volume copy into a separate test environment, start the prior image, run a small eval, open the web viewer and confirm that results from before the upgrade still display. Only accept the rollback plan for go-live after that check passes.

Questions buyers ask about promptfoo upgrade cost and effort

How much does a promptfoo upgrade cost?

The cost is the DeployOpen fee for the written scope. The promptfoo software itself is MIT licensed, the Community edition is free, and Enterprise and On-Premise are sold at custom pricing, so those license costs are separate from the upgrade work. A DeployOpen quote follows from the written scope, and DeployOpen does not publish a price list. The main cost drivers are the number of environments that pin promptfoo (developer machines, CI runners, Docker images and any self-hosted server), how many eval and red team suites must be rerun, and how much re-baselining your team asks for. One-time work covers the upgrade plan, runtime changes, pinning and the re-baseline. Recurring costs appear only if you buy a retainer for ongoing upgrades, continuous testing or support. Ask the quote to list each environment, each deliverable and the person who signs off on results.

How long does a promptfoo upgrade take?

Duration depends on scope, so no single timeline applies to every team. Length is set by how many environments pin promptfoo, how many suites and pipelines must be rerun, and how far your current version sits from the target release. Reviewing release notes, changing the Node.js runtime on every host and image, and updating CI configuration each add steps. A self-hosted server adds time because its data lives in a local SQLite database, so a backup and a tested restore path should exist before the change. Re-baselining takes longer when results feed compliance evidence. Ask for a timeline in the written scope with milestones for staging, sign-off and production. Fixed-scope engagements agree deliverables and timelines in writing before work starts.

What does our team need to provide for an upgrade?

Your team provides access, decisions and sign-off. Expect to supply:

  • Access to the machines, CI systems, container registries and any self-hosted promptfoo server inside your infrastructure.
  • A list of eval configs, red team suites and pipelines that pin promptfoo, with a named owner for each.
  • Approvers who can accept changed pass rates and decide how to handle any breaking change.
  • Backups of self-hosted data and a tested restore path before the change is made.

Ask the written scope to list each item, the people who hold each role and the dates they must be available.

Can an internal team upgrade promptfoo without a partner?

Yes, many internal teams can, because promptfoo installs through npm and its release history is public. The work is disciplined rather than exotic: read the promptfoo releases on GitHub for breaking changes, move to Node.js 22.22.0 or newer, pin the new version in package files, CI and Docker, rerun suites and record new baselines. Teams that lack clear CI ownership, security review capacity or a tested restore path for a self-hosted server often take longer and make more errors. Test your own capacity by counting who owns each pipeline and who can review red team results. A partner is useful when you need an independent plan, a fixed scope or evidence prepared for an assessment. Compare your internal estimate with a written scope before deciding.

Does the Node.js requirement or Enterprise edition change the upgrade?

Yes. The npm release 0.124.1, published on 8 October 2026, requires Node.js 22.22.0 or newer, so any host, container or CI image on an older runtime must change before the upgrade can run. Enterprise adds team sharing, SSO, custom roles, continuous monitoring and guardrail dashboards, so the upgrade must also test those settings, role mappings and integrations. On-Premise runs that functionality inside your infrastructure and includes a dedicated deployment engineer, so confirm which upgrade tasks promptfoo handles and which fall to your team. Enterprise and On-Premise pricing is custom, so check the promptfoo pricing page and ask for the edition in the written scope.

Does a promptfoo upgrade reproduce our compliance evidence?

No. An upgrade changes the tool that produces results, so evidence from before and after the change must be kept apart and labeled. Old reports, logs and eval results record the version and configuration that produced them, so archive them with the promptfoo version and Node.js version. After upgrading, rerun the same suites and document any differences in pass rates, assertions and red team probes as a re-baseline. This work can prepare controls, records and test evidence for an assessment, but DeployOpen does not issue audit reports, attestations or certifications. Independent auditors and certification bodies make those determinations. Ask the quote to name which records are retained and who reviews the re-baseline.

How DeployOpen scopes and delivers a promptfoo upgrade

DeployOpen treats an upgrade of promptfoo as a planned change inside your own infrastructure, whether it runs on a developer machine, in CI or on a self-hosted server. We agree the target version, the Node.js baseline and the re-baselining work in writing before any change starts. Engagements are fixed-scope, and ongoing upgrades can be covered by a retainer.

How we scope

  • The written scope names the promptfoo version range, the Node.js 22.22.0 or newer baseline and each environment being upgraded.
  • It lists which CI pipelines, Docker images and self-hosted servers pin the version and will change.
  • Scope also covers how release notes are reviewed for breaking changes and which evaluation suites are re-run.

How we build

  • Pin the promptfoo version in package.json, lockfiles, CI images and Docker files so every environment matches.
  • Move Node.js runners and base images to 22.22.0 or newer before the promptfoo change is merged.
  • Re-run the evaluation suites on a staging copy, then record new baseline results with the upgraded version.

How we hand over

  • Handover includes a written record of the old and new versions, pinning locations and the Node.js baseline.
  • Your team receives the re-baselining notes, comparison results and a runbook for the next release.
  • Documentation is written so your engineers can repeat the upgrade on later releases.

How we support

  • Ongoing support, upgrades and continuous testing for later promptfoo releases are available as a retainer.
  • Confirm with promptfoo which edition and support terms apply, since Enterprise support includes SLAs.
  • Each upgrade is re-checked against the agreed scope before the change is closed out.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.