Skip to content

Installation

Install youBencha CLI to start benchmarking AI coding agents.

Before installing youBencha, ensure you have:

  • Node.js 20+ - Check with node --version
  • Git - Check with git --version
  • AI Agent - Currently supported:
    • GitHub Copilot CLI: npm install -g @githubnext/github-copilot-cli

Install youBencha globally to use the yb command from anywhere:

Terminal window
npm install -g youbencha

Or using other package managers:

Terminal window
# Using pnpm
pnpm add -g youbencha
# Using bun
bun add -g youbencha

Install as a dev dependency in your project:

Terminal window
npm install --save-dev youbencha

Use with npx:

Terminal window
npx yb --version

For contributing or testing the latest changes:

Terminal window
# Clone repository
git clone https://github.com/youbencha/youbencha-cli.git
cd youbencha-cli
# Install dependencies
npm install
# Build
npm run build
# Link globally
npm link

Confirm youBencha is installed correctly:

Terminal window
yb --version

You should see the version number (e.g., 0.1.0).

youBencha requires an AI agent to execute evaluations. Currently supported:

Terminal window
# Install Copilot CLI
npm install -g @githubnext/github-copilot-cli
# Authenticate with GitHub
gh auth login

Now that youBencha is installed, proceed to the Quick Start to run your first evaluation.