Installation
Install Humanbound — pip install, optional local engine extras, and quick paths for both account-less local mode and the full platform.
Install Humanbound with pip install humanbound, optionally adding extras for the local testing engine, firewall training, or MCP server. The sections below walk through the install command, the available extras, system requirements, and running your first test, with pointers to provider configuration and the Quick Start guide.
Install
pip install humanboundFor local engine support (run tests without login):
pip install "humanbound[engine]"Verify
hb --version
hb --helpRequirements
- Python 3.10 or higher
- An LLM provider API key (OpenAI, Anthropic, Azure, etc.) OR ollama for full local isolation
- An AI agent endpoint to test against
Optional Dependencies
| Extra | Install | What it adds |
|---|---|---|
engine | pip install "humanbound[engine]" | Local testing engine (OpenAI, Anthropic, Google SDKs, Ollama) |
firewall | pip install "humanbound[firewall]" | Firewall training (humanbound-firewall, scikit-learn, torch) |
Training with the SetFit detector also needs pip install setfit; see Firewall — Default Model: SetFit.
| mcp | pip install "humanbound[mcp]" | MCP server for AI coding assistants |
Configure Provider
Before running local tests, configure your LLM provider:
# Environment variables (recommended for CI/CD)
export HB_PROVIDER=openai
export HB_API_KEY=sk-...
# Or config file (recommended for interactive use)
hb config set provider openai
hb config set api-key sk-...
# Or ollama (no API key needed)
export HB_PROVIDER=ollama
export HB_MODEL=llama3.1:8bSee Provider Configuration for all supported providers.
First Test
hb test --endpoint ./bot-config.json --repo . --waitSee Quick Start for the full walkthrough.