Skip to main content

promptfoo (promptfoo)

Runs prompt and model test suites (assertions, regressions, red teaming) and serves the result viewer.

Generated from catalog/services/promptfoo.yaml: do not edit by hand.

Summary​

Version0.117.4
Useexecute on demand
Layerfunctional (AI catalog)
CategoryEvaluation and LLM operations
Installation methodspodman, binary
External connectionno
Sandbox onlyno

Licence​

SPDX identifierMIT
Licence policycore licence (MIT or Apache-2.0)
Licence exception-
Platform componentpromptfoo

Packages and artifacts​

A package the project of the service publishes (its image, its binary archive, its Python or OS package) carries the licence of the service; a third-party package carries the licence written on its row, read from the official upstream metadata.

KindPackageVersionLicenceDetails
container imageghcr.io/promptfoo/promptfoo0.117.4MITimage key promptfoo, used by viewer, digest sha256:e260878c048eb220e824f867d48ffff5ace1ccff4ca8507b9e778c17c0b46cdb
binary archivepromptfoo-0.117.4.tgz0.117.4MIThttps://registry.npmjs.org/promptfoo/-/promptfoo-0.117.4.tgz

Images are pinned by tag in the descriptor, and by digest when the descriptor declares one (the offline bundle then refuses a pulled image that does not carry it); the digest is recorded in the mirror of the Manager when the offline bundle is imported, and every pull or load is checked against it.

Supported systems and architectures​

MethodOperating systemsArchitectures
podmanRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64, aarch64 (not restricted by the descriptor)
binaryRHEL family (dnf), Debian family (apt), Arch Linux (pacman)x86_64, aarch64 (not restricted by the descriptor)

Certified host systems: RHEL 8/9/10, Rocky Linux 8/9/10, AlmaLinux 8/9/10, Oracle Linux 8/9, CentOS Stream 9/10, Ubuntu 22.04/24.04, Debian 12, Arch Linux (rolling). The host preflight accepts these systems (other releases of a known family give a warning, end of life releases are refused) and the x86_64 and aarch64 architectures.

Prerequisites​

Host​

The descriptor declares no host preflight check.

Network and ports​

ComponentPort namePortOpened in the host firewall
viewerhttp15500/tcpyes

Services and connections needed​

Details and resolution: see Dependencies.

Installation methods and modes​

MethodDefaultWhat the method uses
podmanyesthe container images of the descriptor, run by Podman under systemd
binary-the binary archives of the descriptor, unpacked under the service directory

Components​

ComponentKindInstallation methodsPorts
Viewer (viewer)masterpodman, binary15500/tcp

Single (single) (default)​

One viewer.

What the mode deploys:

ComponentPlacement
viewermin 1, max 1

Install this service​

The install wizard of the Navin Manager plans, validates and runs the installation; you need the services:install permission on the cluster.

  1. Open the wizard. In Clusters, choose the row action Install services of the target cluster. The wizard opens on its first step, Service.

  2. Choose the service. On the Service step, select promptfoo. The card shows the licence MIT and the dependencies the installation needs. Pick the Method among podman, binary (default podman).

  3. Choose the hosts and the mode. On the Hosts step, tick the hosts, then choose the Mode: single (default). Each mode deploys the components listed in Installation methods and modes.

  4. Bind the dependencies. On the Bindings step, choose for each dependency (litellm) Install with the platform or Use an existing connection; an optional dependency can stay on No binding.

  5. Configure. On the Configure step, review the parameters (see Configuration parameters); the required ones are llm_api_key. Passwords left empty with a generated default are generated and sealed by the Manager.

  6. Review and install. On the Install step the Manager validates the plan and shows the installation order; when it says "The plan is valid. Ready to install.", choose Install. A highly available mode is installed only when its HA checks pass.

  7. Verify. The operation ends when the health checks of every instance pass (see Health checks); the service then shows as running in Services.

On demand runs​

Runs a prompt and model test suite (assertions, regressions) when a test is asked and keeps the results for the viewer.

Portal screen: /quality/suites

High availability​

Clusternone (none)
High availabilitynone (none)
Failovernone (none)
Replicationnone (none)
Quorumnone (none)
Discoverynone (none)
Entry pointnone (none)
Official documentationhttps://www.promptfoo.dev/docs/usage/web-ui/

Topology per mode​

ModesHighest catalog levelDistributionQuorum componentFault domainsDescription
singlestandalone (standalone)parallel jobs (parallel-jobs)--One viewer; evaluations run as independent jobs.

Notes​

  • A command line tool run on demand: never a highly available cluster; several scans run as independent parallel jobs.

Configuration parameters​

General​

ParameterTypeDefaultAllowed valuesRequiredSecretRestartDescription
Viewer port (port)port15500-nononoPort of promptfoo view.
Node.js runtime (node)path/usr/bin/node-nononoNode.js 20 or later for the binary method (offline prerequisite).
OpenAI compatible endpoint (llm_base_url)urlhttp://127.0.0.1:4000/v1-nononoBase URL of the models under test when no LiteLLM binding is set (an address of the host; 127.0.0.1 is unreachable from the container of the podman method).
API key (llm_api_key)password--yesyesnoKey of the endpoint.

Dependencies​

For each active dependency the Manager takes the first of: the binding chosen in the wizard; a service of the same installation that provides it; a service already installed in the cluster; the only connection of the expected type. Otherwise an optional dependency stays unbound, and a required one is added to the installation in its default mode (the column below names the catalog service added).

BindingProvided byConnection typeEndpointOptionalWhen nothing is boundDescription
litellmlitellm-apiyesstays unbound (optional)LiteLLM gateway of the platform serving the models under test (OPENAI_BASE_URL); without it the endpoint parameter is used.

Commands​

CommandComponentTargetDescription
Run a test suite (eval)viewerfirst hostRuns promptfooconfig.yaml of a directory and stores the result for the viewer.

Command parameters​

CommandParameterTypeDefaultRequiredDescription
evalSuite directory (suite_dir)path-yesDirectory holding promptfooconfig.yaml.

Health checks​

Liveness (per instance)​

ComponentCheckDetails
viewerHTTP http://127.0.0.1:{{ config.port }}/healthExpected 200; 30 retries; interval 2 s; timeout 5 s

Preflight checks​

CheckTypeMeaningSeverityComponents
port_freeport_free {"param": "port"}port 15500 free on the hostblockingevery component

Uninstall​

Paths removed when the data is purged: {{ paths.data }}.

  • promptfoo viewer: http://{{ host.fqdn }}:{{ config.port }}/

Upstream documentation​