promptfoo/promptfoo

★ 25,303⑂ 2,344

Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, DeepSeek, and more.

About promptfoo/promptfoo

promptfoo/promptfoo is an open-source project on GitHub, mainly written in TypeScript. Test your prompts, agents, and RAGs. Red teaming/pentesting/vulnerability scanning for AI. Compare performance of GPT, Claude, Gemini, DeepSeek, and more. It currently holds 25,303 stars and 2,344 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Prompt Engineering board.

GitHub Repository Details

Repository promptfoo/promptfoo · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Promptfoo: LLM evals & red teaming

https://github.com/promptfoo/promptfoo/blob/HEAD/npm https://github.com/promptfoo/promptfoo/blob/HEAD/npm https://github.com/promptfoo/promptfoo/blob/HEAD/GitHub Workflow Status https://github.com/promptfoo/promptfoo/blob/HEAD/MIT license https://github.com/promptfoo/promptfoo/blob/HEAD/Discord

promptfoo is a CLI and library for evaluating and red-teaming LLM apps. Stop the trial-and-error approach - start shipping secure, reliable AI apps.

Website · Getting Started · Red Teaming · Documentation · Discord

Promptfoo is now part of OpenAI. Promptfoo remains open source and MIT licensed. Read the company update.

Quick Start

Requires Node.js >=22.22.0 for npm and npx usage. Node.js 24 LTS is recommended; see the runtime support guide.

npm install -g promptfoo
promptfoo init --example getting-started

Also available via brew install promptfoo and pip install promptfoo. You can also use npx promptfoo@latest to run any command without installing.

Most LLM providers require an API key. Set yours as an environment variable:

export OPENAI_API_KEY=sk-abc123

Once you're in the example directory, run an eval and view results:

cd getting-started
promptfoo eval
promptfoo view

See Getting Started (evals) or Red Teaming (vulnerability scanning) for more.

What can you do with Promptfoo?

Here's what it looks like in action: https://github.com/promptfoo/promptfoo/blob/HEAD/prompt evaluation matrix - web viewer

It works on the command line too:

https://github.com/promptfoo/promptfoo/blob/HEAD/promptfoo command line

It also can generate security vulnerability reports:

https://github.com/promptfoo/promptfoo/blob/HEAD/gen ai red team

Why Promptfoo?

Learn More

Contributing

We welcome contributions! Check out our contributing guide to get started.

Join our Discord community for help and discussion.

GitHub Stars & Activity

25,303Stars
2,344Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars25,303
Forks2,344
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

linshenkx / prompt-optimizer

TypeScript★ 35,188⑂ 4,108
2

langfuse / langfuse

TypeScript★ 34,845⑂ 3,816
3

humanlayer / 12-factor-agents

TypeScript★ 26,308⑂ 1,977
4
5

cobusgreyling / loop-engineering

TypeScript★ 11,263⑂ 1,512
6

YouMind-OpenLab / awesome-gpt-image-2

TypeScript★ 9,919⑂ 880
7

rockbenben / ChatGPT-Shortcut

TypeScript★ 8,771⑂ 957
8

promptslab / Awesome-Prompt-Engineering

TypeScript★ 6,336⑂ 765

More AI Rankings