Humanbound website
Documentation
Getting Started

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 humanbound

For local engine support (run tests without login):

pip install "humanbound[engine]"

Verify

hb --version
hb --help

Requirements

  • 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

ExtraInstallWhat it adds
enginepip install "humanbound[engine]"Local testing engine (OpenAI, Anthropic, Google SDKs, Ollama)
firewallpip 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:8b

See Provider Configuration for all supported providers.

First Test

hb test --endpoint ./bot-config.json --repo . --wait

See Quick Start for the full walkthrough.