Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
P

promptfoo

> DevOps
Open source

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

23.8K stars0 likes3 views
WebsiteGitHub

About

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

Promptfoo: LLM evals & red teaming

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.

bash
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:

bash
export OPENAI_API_KEY=sk-abc123

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

bash
cd getting-started
promptfoo eval
promptfoo view

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

What can you do with Promptfoo?

  • Test your prompts and models with automated evaluations
  • Secure your LLM apps with red teaming and vulnerability scanning
  • Compare models side-by-side (OpenAI, Anthropic, Azure, Bedrock, Ollama, and more)
  • Automate checks in CI/CD
  • Review pull requests for LLM-related security and compliance issues with code scanning
  • Share results with your team

Here's what it looks like in action:

It works on the command line too:

It also can generate security vulnerability reports:

Why Promptfoo?

  • Developer-first: Fast, with features like live reload and caching
  • Private: LLM evals run 100% locally - your prompts never leave your machine
  • Flexible: Works with any LLM API or programming language
  • Battle-tested: Powers LLM apps serving 10M+ users in production
  • Data-driven: Make decisions based on metrics, not gut feel
  • Open source: MIT licensed, with an active community

Learn More

  • Getting Started
  • Full Documentation
  • Red Teaming Guide
  • CLI Usage
  • Node.js Package
  • Supported Models
  • Code Scanning Guide

Contributing

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

Join our Discord community for help and discussion.

Issues· 702 open

View all issuesOpen on GitHub
  • #11093

    Single-string `tests:` ignores globs (documented `tests: file://tests/*` silently loads 0 tests)

    Updated Sep 26, 2026
  • #992

    Enhance UI to group `--repeat` tests into collapsible sections

    Feature RequestUpdated Sep 25, 2026
  • #9968

    Telemetry beacon to `r.promptfoo.app` still fires when `PROMPTFOO_DISABLE_TELEMETRY` is set

    Updated Sep 25, 2026
  • #11056

    `anthropic:messages:` / `anthropic:completion:` provider IDs truncate model names containing : (registry.ts doesn't join splits)

    Updated Sep 25, 2026
  • #11057

    anthropic:claude-agent-sdk: copy working_dir into a new directory for each call and each repeat

    Updated Sep 25, 2026
  • #11048

    Prp

    Updated Sep 23, 2026
  • #11042

    Add TypeSafe Jev provider

    Updated Sep 23, 2026
  • #10973

    Chat and Tool discussion, all models supported

    Updated Sep 23, 2026
  • #11041

    isEmptyResponse treats transport failures (empty, undefined, null) as refusals, so a dead endpoint scores clean on 130 of 138 redteam graders

    Updated Sep 23, 2026
  • #10977

    custom and voice-crescendo strategies ignore an explicitly configured redteamProvider and use remote generation instead

    Updated Sep 17, 2026

> Tags

TypeScriptcici-cdcicdevaluation

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
CategoryDevOps
PricingOpen source

> Related tools

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理