Prerequisites
Before installing YC-Bench, ensure you have:- Python 3.12 or higher — YC-Bench uses modern Python features
- uv — Fast Python package manager (automatically installed by the quickstart script)
- API key for at least one LLM provider (Anthropic, OpenAI, Google, OpenRouter, etc.)
Installation
Install uv (if not already installed)
YC-Bench uses After installation, add Verify installation:
uv for fast dependency management. Install it with:uv to your PATH:Install dependencies
- Creates a virtual environment
- Installs all required dependencies from
pyproject.toml - Sets up the
yc-benchCLI tool
API Key Setup
YC-Bench uses LiteLLM to support multiple LLM providers. Configure your API key by creating a.env file in the project root.
Supported Providers
Multiple keys: You can include multiple provider keys in your
.env file. YC-Bench will use the appropriate key based on the model you specify in the --model parameter.Key Detection
The YC-Bench interactive launcher (yc-bench start) automatically detects your key type by prefix:
sk-ant-*→ Anthropicsk-or-*→ OpenRouterAIza*→ Google Geminisk-*→ OpenAI
Verification
Confirm your installation is working:Troubleshooting
Command not found: uv
Command not found: uv
If
uv is not found after installation:- Ensure the install script completed successfully
- Add
uvto your PATH: - Restart your terminal or source your shell config:
Python version error
Python version error
If you see
requires-python = >=3.12 errors:- Check your Python version:
- Install Python 3.12+ using your system package manager or pyenv
- Retry
uv sync
API key not recognized
API key not recognized
If your API key isn’t detected:
- Verify the
.envfile is in the project root (same directory aspyproject.toml) - Check for typos in the environment variable name
- Ensure no extra quotes or whitespace:
- Test manually:
LiteLLM connection errors
LiteLLM connection errors
If you encounter LiteLLM-related errors:
- Verify your API key is valid and has credits
- Check provider status pages for outages
- For OpenRouter, ensure your account has sufficient credits
- Try a different model from the same provider
- Check the LiteLLM documentation for provider-specific issues
Database errors
Database errors
YC-Bench uses SQLite by default. If you see database errors:
- Ensure the
db/directory exists (created automatically on first run) - Check file permissions:
ls -la db/ - Delete old database files if upgrading:
rm db/*.db - For PostgreSQL support:
uv add yc-bench[postgres]and setDATABASE_URLin.env
Next Steps
Quickstart
Run your first benchmark with the interactive launcher