---
artifact_id: ao-evals-promptfoo-and-openai-evals-code
kind: code-snippet
slug: ao-evals-promptfoo-and-openai-evals
iil_id: null
note_url: https://iinventedlight.com/library/notes/ao-evals-promptfoo-and-openai-evals/
title: "Illustration: the promptfoo eval and view loop"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
as_of: 2026-11-16
status: week-draft-20261116
untested: "Not executed. Running evals calls model APIs and can cost money."
related_slugs:
  - ao-evals-promptfoo-and-openai-evals
  - ao-evals-inspect-scorers
source_notices: >
  The note cites MIT (promptfoo/promptfoo (GitHub)); MIT (openai/evals (GitHub)); prose restates cited source lines in own words. This snippet is an original illustration, not a copy of a docs example.
---

# Illustration for ao-evals-promptfoo-and-openai-evals (round-1 draft, not live yet)

The round-1 note: run an eval with `promptfoo eval` and view results with `promptfoo view`; OpenAI Evals keeps its registry in Git-LFS.

```bash
# In a folder with a promptfoo config
promptfoo eval     # run the configured prompts, providers and checks
promptfoo view     # open the results viewer

# OpenAI Evals: fetch the registry data first
git lfs fetch --all && git lfs pull
```

This file is a local draft for the 16 November week. It is not live.
