# Promptfoo

> Open-source LLM evals and red-teaming for secure AI apps.

- Website: https://www.promptfoo.dev
- Category: Coding & Development
- Source page: https://opendirs.com/en/tools/promptfoo
- Pricing: Open source
- Starting price: $0
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: United States
- Last verified: Nov 28, 2026

## Overview

Promptfoo is an open-source toolkit for testing and red-teaming LLM applications. Developers define test cases and assertions in config files, compare prompts and models side by side, and run automated adversarial scans for jailbreaks, prompt injection, and data leakage, locally or in CI.

**Best for:** Developers and security teams who need to test LLM apps before shipping.

## Key features

- Declarative eval configs with assertions
- Side-by-side comparison of prompts and models
- Automated red teaming and vulnerability scans
- CI/CD integration and web viewer

## Use cases

- Regression-testing prompts when changing models
- Red-teaming a chatbot for prompt injection
- Choosing the best model for a task with data

## Pros

- Open source and runs locally
- Covers both quality evals and security
- Large community

## Cons

- Config-driven approach takes some setup
- Enterprise security features are paid

## Alternatives

- [Jupyter AI](https://opendirs.com/en/tools/jupyter-ai.md)
- [Confident AI](https://opendirs.com/en/tools/confident-ai.md)
- [Quilter](https://opendirs.com/en/tools/quilter.md)
- [OpenCode](https://opendirs.com/en/tools/opencode.md)
- [Code Arena](https://opendirs.com/en/tools/code-arena.md)

## FAQ

### What is Promptfoo?

Promptfoo is an open-source toolkit for testing and red-teaming LLM applications. Developers define test cases and assertions in config files, compare prompts and models side by side, and run automated adversarial scans for jailbreaks, prompt injection, and data leakage, locally or in CI.

### Is Promptfoo free?

Promptfoo uses a Open source pricing model (verified Nov 28, 2026).

### Does Promptfoo have an API?

Yes. Promptfoo offers an API for developers.

### Does Promptfoo support Chinese, and is it available in China?

Promptfoo does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to Promptfoo?

Popular alternatives to Promptfoo include Jupyter AI, Confident AI, Quilter, OpenCode.

_Last verified: Nov 28, 2026_