# Promptfoo

CreateWithAI Hub page: https://createwithaihub.com/evals-observability/promptfoo
Latest version of this file: https://createwithaihub.com/evals-observability/promptfoo.md

- Type: Tool · Category: Evals & Observability
- Publisher: Promptfoo (part of OpenAI)
- Pricing: Free plan plus paid plans · License: MIT
- Runs on: macOS, Windows, Linux, Docker / self-hosted

Open-source CLI and library for evaluating prompts, models and agents and red-teaming LLM apps, running locally.

Promptfoo is a command-line tool and Node.js library for testing LLM applications. You define prompts, providers and assertions in a config file, run evals locally or in CI, and compare outputs side by side; its red-teaming mode generates attacks such as prompt injection, jailbreaks and PII leaks. It can also ingest OpenTelemetry traces during evals. The README states that Promptfoo is now part of OpenAI and remains open source under MIT.

Useful for: Running a red-team scan against a customer-support chatbot in CI before each release to catch prompt injection and data leaks.

## Key features

- Declarative eval configs with assertions, run locally or in CI/CD
- Side-by-side comparison of prompts and models across many providers
- Red teaming and vulnerability scans (prompt injection, jailbreaks, PII leaks, insecure tool use)
- OTLP trace ingestion and pulling traces from Langfuse, Braintrust, Jaeger and others
- Built-in MCP server (npx promptfoo@latest mcp) exposing eval and red-team tools to agents
- Community edition free; Enterprise and On-Premise plans add team features

## Connection

- What it does: Evals, Red teaming & security tests
- Hosting: Cloud, Self-hostable
- Integrates via: SDK, OpenTelemetry

## Before you start

- Node.js

## Install steps from the official documentation

Start a project:

```
npx promptfoo@latest init --example getting-started
```

Global install:

```
npm install -g promptfoo
```

Homebrew:

```
brew install promptfoo
```

Red-team setup:

```
npx promptfoo@latest redteam setup
```

## Limitations

- Community plan includes 10k red-team probes per month
- Self-hosted web viewer uses SQLite with no auth, RBAC or horizontal scaling; docs advise against it for production
- Team sharing, SSO, monitoring and dashboards require an Enterprise plan (custom pricing)

## Official links

- Website: https://www.promptfoo.dev/
- Source repository: https://github.com/promptfoo/promptfoo
- Documentation: https://www.promptfoo.dev/docs/intro/
- Source: https://github.com/promptfoo/promptfoo (README: CLI/library, features, install options, 'now part of OpenAI, remains open source and MIT licensed'; MIT LICENSE; not archived)
- Source: https://www.promptfoo.dev/blog/promptfoo-joining-openai/ (2026-03-09 announcement of joining OpenAI)
- Source: https://www.promptfoo.dev/pricing/ (Community free (10k red-team probes/month), Enterprise and On-Premise custom)
- Source: https://www.promptfoo.dev/docs/integrations/mcp-server/ (MCP server commands and tools)
- Source: https://www.promptfoo.dev/docs/usage/self-hosting/ (Docker/Helm self-hosting and its limitations)
- Source: https://www.promptfoo.dev/docs/tracing/ (OTLP trace ingestion and trace sources)
