An open API service indexing awesome lists of open source software.

https://github.com/humanbound/humanbound

Open-source AI agent red-team engine, SDK, and CLI. Run offline or against the Humanbound Platform.
https://github.com/humanbound/humanbound

adversarial-testing agentic-ai ai-agents ai-red-teaming ai-safety ai-security aisecops cli cybersecurity guardrails humanbound llm llm-security multimodal-ai multimodal-security owasp pentesting prompt-injection security-testing security-tools

Last synced: 17 days ago
JSON representation

Open-source AI agent red-team engine, SDK, and CLI. Run offline or against the Humanbound Platform.

Awesome Lists containing this project

README

          





Humanbound

humanbound


Open-source AI agent red-team engine, SDK, and CLI.


Runs locally or against the Humanbound Platform. No login required to start.


Quick Start ยท
CLI ยท
SDK ยท
Documentation ยท
Contributing


PyPI version
Python versions
Downloads
CI
License
Discord
Docs

---

> ๐Ÿ“– **Full documentation** lives at [**docs.humanbound.ai**](https://docs.humanbound.ai/) โ€”
> this README covers the essentials; the docs have the depth.

## Quick Start

### Install

```bash
pip install humanbound # CLI + SDK, core deps
pip install humanbound[engine] # + OpenAI / Anthropic / Gemini providers
pip install humanbound[firewall] # + humanbound-firewall runtime
pip install humanbound[engine,firewall] # everything
```

### CLI usage

```bash
# Configure your LLM provider
export HB_PROVIDER=openai
export HB_API_KEY=sk-...

# Run a security test
hb test --endpoint ./bot-config.json --repo . --wait

# View results
hb posture # security score (0-100, A-F)
hb logs # conversation logs
hb report -o report.html # HTML report
hb guardrails -o rules.yaml # firewall rules
```

Full air-gap with [Ollama](https://ollama.com) โ€” zero external API calls:

```bash
export HB_PROVIDER=ollama
export HB_MODEL=llama3.1:8b
hb test --endpoint ./bot-config.json --scope ./scope.yaml --wait
```

### Python SDK

```python
from humanbound import Bot, LocalRunner, OwaspAgentic, TestingLevel, EngineCallbacks

# Compose your own test pipeline
bot = Bot(endpoint="https://my-agent/chat", api_key="...")

class Callbacks(EngineCallbacks):
def on_finding(self, insight): ...
def on_progress(self, pct): ...

runner = LocalRunner()
# See docs.humanbound.ai for the full example
```

## Stability contract

| Import path | Stability |
|---|---|
| `from humanbound import X` | **Stable** โ€” semver-protected |
| `from humanbound. import Y` | **Stable** โ€” semver-protected |
| `from humanbound_cli.* import Z` | **Internal** โ€” may change any release, do not import from user code |

The full Tier-by-Tier walkthrough, orchestrator authoring guide, Platform
integration, and API reference all live on
[docs.humanbound.ai](https://docs.humanbound.ai/).

## What's shipping in 2.0

- **Clean name**: `humanbound` is the new PyPI install. The old
`humanbound-cli` package is a discontinued transitional stub (final
release 1.2.2 depends on `humanbound>=2.0.2`); please install
`humanbound` directly.
- **Public SDK namespace** alongside the CLI โ€” use the CLI or drive the
engine from Python. Both share the same implementation, so they can't
drift.
- **Firewall integration**: `pip install humanbound[firewall]` pulls the
renamed [`humanbound-firewall`](https://github.com/humanbound/humanbound-firewall)
(formerly `hb-firewall`) alongside the CLI.

See [CHANGELOG.md](./CHANGELOG.md) for the full 2.0.0 release notes.

## Contributing

Contributions welcome. See [CONTRIBUTING.md](./CONTRIBUTING.md) for the dev
loop, release process, and CLA requirement (see [CLA.md](./CLA.md)).

- ๐Ÿ› [Report a bug](https://github.com/humanbound/humanbound/issues/new/choose)
- ๐Ÿ’ก [Request a feature](https://github.com/humanbound/humanbound/issues/new/choose)
- ๐Ÿ”’ [Report a security issue](./SECURITY.md) โ€” **not via public Issues**
- ๐Ÿ’ฌ [Join Discord](https://discord.gg/gQyXjVBF)

## License

[Apache-2.0](./LICENSE). Free to use in any context โ€” commercial or
open-source โ€” with attribution. See [TRADEMARK.md](./TRADEMARK.md) for the
trademark policy. The code is open; the name is not.

The sibling project [`humanbound-firewall`](https://github.com/humanbound/humanbound-firewall)
is also Apache-2.0 โ€” same license, different product.