CreateWithAIHub

Tool Promptfoo (part of OpenAI)

Promptfoo

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

LLM eval and red-teaming toolFree plan + paidOpen source
Visit website ↗
Save

What it is

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.

What it's 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

How to use it

Before you start

  • Node.js
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

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • 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)

MCP servers for this

AWS Labs' collection of open-source MCP servers for AWS docs, the AWS API, infrastructure as code, databases, costs and more.

FreeOpen source

MCP reference server that gives an AI client controlled read/write access to chosen local directories.

FreeOpen source

Open-source MCP server that gives coding agents simplified Figma layout and styling data to implement designs.

Free plan + paidOpen source

Skills for this

Collection of 93 plugins with 199 subagents, 185 skills and 103 commands, written once and adapted to seven coding tools.

FreeOpen source

Vercel's collection of Agent Skills for React/Next.js performance, UI review, writing style and Vercel deploys.

FreeOpen source

Anthropic skill that has Claude test local web apps by writing Python Playwright scripts, with screenshots and browser logs.

FreeOpen source

Related resources

The MCP project's developer tool for testing and debugging MCP servers from a web UI, a scriptable CLI or a terminal UI.

FreeOpen source

Open-source tool to download and run open models locally with one command, plus optional cloud models.

Free plan + paidOpen source

C/C++ engine for running LLMs and multimodal models locally on a wide range of hardware, with a built-in server.

FreeOpen source

Coding agent that runs each thread in a cloud sandbox, with a CLI, web, desktop and mobile apps.

Free plan + paid

Type to search. Use ↑ ↓ and Enter.