pkg.soopen package index

brew / 排名 1787

使用 Homebrew, Nix, winget 安装 promptfoo

查看 promptfoo 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install promptfoo

local Homebrew formula metadata

Linux

Nix已验证 · 92%
nix profile install nixpkgs#promptfoo

nixpkgs package indexes · pkgs/by-name/pr/promptfoo/package.nix · 来源: api.github.com

Windows

Windows Package Manager已验证 · 92%
winget install --id Microsoft.Promptflow -e

Windows Package Manager source index · Microsoft.Promptflow · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Test your LLM app locally

命令和别名

  • pf
  • promptfoo

历史

项目历史与用法

Promptfoo is an open-source command-line tool and library for evaluating, benchmarking, and red-teaming LLM applications.

项目历史

Promptfoo began as developer tooling for systematically comparing prompts and model outputs. Its scope expanded from prompt evaluation into testing agents and RAG pipelines, automated red teaming, vulnerability scanning, model auditing, and code-scanning workflows.

采用历史

Promptfoo states that the underlying tooling was originally built for LLM applications serving more than ten million users in production. It subsequently developed into an open-source CLI and library usable locally, in application code, and in CI/CD.

The official repository now documents installation through npm, npx, pip, and Homebrew. In 2026, the project announced that Promptfoo had become part of OpenAI while remaining open source and MIT licensed.

使用方式

Users define prompts, providers, test variables, assertions, and red-team targets in configuration, then run evaluations from the CLI and inspect matrix or vulnerability reports.

API credentials are normally supplied through process environment variables or an environment file. Official guidance warns against resolving secrets into exported evaluation configuration.

Promptfoo may be run as a globally installed CLI, through `npx`, as a library, or in CI/CD.

为什么软件包爱好者会关心

Promptfoo brought familiar test-driven development practices—declarative cases, assertions, caching, matrices, and CI checks—to prompt and model evaluation. It is notable for combining quality evaluation and adversarial red teaming in a locally runnable package rather than requiring a hosted notebook or evaluation service.

时间线

  • Early project: Tooling originated in production LLM applications serving more than ten million users.
  • Open-source expansion: Added declarative evaluations, multiple model providers, CI/CD use, and local reports.
  • Later development: Expanded into red teaming, vulnerability scanning, RAG and agent evaluation, and model security.
  • 2026: Promptfoo became part of OpenAI while remaining open source under the MIT license.

Related projects

  • Promptfoo integrates with providers including OpenAI, Anthropic, Azure, Google, Hugging Face, and locally or privately implemented APIs.
  • Its workflow complements general test runners and CI systems by treating prompts, providers, test variables, and assertions as declarative evaluation inputs.

来源

  • Official CLI documentation: https://www.promptfoo.dev/docs/usage/command-line/
  • Official configuration documentation: https://www.promptfoo.dev/docs/configuration/guide/
  • Official introduction: https://www.promptfoo.dev/docs/intro/
  • Official repository README: https://github.com/promptfoo/promptfoo

安全态势

尚未找到受保护工具覆盖

没有找到 promptfoo 的匹配本地密钥处理 manifest。软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 5 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
promptfooconfig.yaml

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
.env

可执行文件

已安装的可执行文件

命令类型暴露范围备注
pfcli全局可执行文件
promptfoocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-09-19
管理器版本0.123.0
管理器更新时间2026-09-11
本地数据OK
上游not checked
检测到的最新版本未检测到

https://promptfoo.dev/

安装元数据

软件包元数据

软件包键brew:promptfoo
版本0.123.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/promptfoo
主页https://promptfoo.dev/
上游文档https://promptfoo.dev/
许可证MIT
源码归档https://registry.npmjs.org/promptfoo/-/promptfoo-0.122.2.tgz
最后更新2026-09-11T09:44:29Z
Pulseupdated
依赖node
构建依赖cmake, rust
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepromptfoo
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

promptfoo

nix profile install nixpkgs#promptfoo
  • normalized package name match
  • 匹配方式:Promptfoo
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/pr/promptfoo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
winget92%

Microsoft.Promptflow

winget install --id Microsoft.Promptflow -e
  • installed executable or alias match
  • 匹配方式:Pf
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Microsoft.Promptflow from https://cdn.winget.microsoft.com/cache/source.msix

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment
  • pkg.so package database
  • pkgdb category and tag curation