Installation
Install youBencha CLI to start benchmarking AI coding agents.
System Requirements
Section titled “System Requirements”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
- GitHub Copilot CLI:
Installation Methods
Section titled “Installation Methods”Global Installation (Recommended)
Section titled “Global Installation (Recommended)”Install youBencha globally to use the yb command from anywhere:
npm install -g youbenchaOr using other package managers:
# Using pnpmpnpm add -g youbencha
# Using bunbun add -g youbenchaLocal Project Installation
Section titled “Local Project Installation”Install as a dev dependency in your project:
npm install --save-dev youbenchaUse with npx:
npx yb --versionDevelopment Installation (from source)
Section titled “Development Installation (from source)”For contributing or testing the latest changes:
# Clone repositorygit clone https://github.com/youbencha/youbencha-cli.gitcd youbencha-cli
# Install dependenciesnpm install
# Buildnpm run build
# Link globallynpm linkVerify Installation
Section titled “Verify Installation”Confirm youBencha is installed correctly:
yb --versionYou should see the version number (e.g., 0.1.0).
Install AI Agent
Section titled “Install AI Agent”youBencha requires an AI agent to execute evaluations. Currently supported:
GitHub Copilot CLI
Section titled “GitHub Copilot CLI”# Install Copilot CLInpm install -g @githubnext/github-copilot-cli
# Authenticate with GitHubgh auth loginNext Steps
Section titled “Next Steps”Now that youBencha is installed, proceed to the Quick Start to run your first evaluation.