logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt
How to install promptfoo/promptfoo. Official installation instructions. Project installation guide. Framework or library installation. Build installation instructions. How to setup and install from GitHub. Installation steps and setup instructions. Official docs and installation instructions GitHub.

promptfoo/promptfoo Installation Guide

How to install promptfoo/promptfoo. Official project installation instructions and setup guide.

Automated Install (Recommended)

Quick installation instructions for promptfoo/promptfoo. This is the fastest way to complete project installation and setup.

Install via curl

curl -fsSL https://hexmos.com/ipm-install | bash && 
ipm i promptfoo/promptfoo
or

Install via npx

npx @hexmos/ipm i promptfoo/promptfoo

Prerequisites

Node.js

runtime

npm

package manager

Python

runtime

pip

package manager

git

version control

Homebrew

package manager

Version: >=3.0.0

Manual Installation Methods

Manual installation instructions. How to install from GitHub source.

NPM

npm install -g promptfoo

Homebrew

brew install promptfoo

Pip

pip install promptfoo

Npx (without installation)

npx promptfoo@latest

Source

git clone https://github.com/promptfoo/promptfoo

cd promptfoo

npm install -g .

Post Installation Steps

  • export OPENAI_API_KEY=sk-abc123
  • promptfoo init --example getting-started
  • cd getting-started
  • promptfoo eval
  • promptfoo view