A simple LLM-powered chat API server designed for testing with Promptfoo.
- Git
- Node.js v20 or higher
- npm (comes with Node.js)
- Promptfoo CLI - Install with:
npm install -g promptfoo
Option 1: Using Git (recommended)
git clone https://github.com/promptfoo/redscan-lite.git
cd redscan-lite
Option 2: Download ZIP
- Go to https://github.com/promptfoo/redscan-lite
- Click the green "Code" button
- Select "Download ZIP"
- Extract the ZIP file and open the folder
pip install -r requirements.txt
npm install
export OPENAI_API_KEY=your-key-here
The included promptfooconfig.yaml
tests against a public demo API:
promptfoo eval