HarmBench
HarmBench: A focused research framework for measuring harmful-model behavior and attack success. Ranked #17 of 29 in LLM Evaluation Tools by our editors (7.6/10); pricing: Free plan; best for researchers benchmarking harmful model behavior.
At a glance
- Editor score7.6 / 10
- PricingFree plan
- Best forResearchers benchmarking harmful model behavior
- Free planYes
- Paid fromFree
- Deployment optionsSelf-hosted
- Facts checked20 Sep 2026

Where it wins
- Generates adversarial test cases and target-model completions
- Calculates attack success rates with classifier-based evaluation
- Runs locally or through Ray and SLURM with multimodal support
Where it doesn't
- Self-hosted deployment puts environment setup on the research team
- General-purpose evaluation coverage is narrower than its safety focus
- Execution is centered on Linux, local, Ray, or SLURM workflows
Our verdict on HarmBench
HarmBench is an open-source research framework for evaluating automated red-teaming methods, LLM attacks, and defenses. It is designed for researchers benchmarking harmful model behavior, especially teams that need to generate adversarial test cases, produce target-model completions, and measure attack success rates. The framework supports Transformers-compatible models, selected closed-source model APIs, multimodal models, and provided HarmBench classifier models.
Its main strength is depth in safety evaluation rather than breadth across every LLM testing task. HarmBench combines automated red-teaming test-case generation, target-LLM completion generation, classifier-based completion evaluation, and attack success rate calculation in one research workflow. Researchers can extend model and red-teaming method configurations, while integrations with Hugging Face Transformers, OpenAI API, Anthropic API, Mistral API, Google Generative AI, Google Cloud Vertex AI, vLLM, and FastChat broaden model access. This makes it a strong fit for comparative safety studies and attack-defense research.
Deployment is self-hosted, with Linux, local, Ray, and SLURM execution modes. That supports individual experiments as well as cluster-oriented research workflows, but it also places environment setup and execution management on the research team. HarmBench is distributed as a free open-source framework rather than a hosted commercial service, so it suits teams comfortable managing research infrastructure and model connections. Choose it for focused red-teaming and harmful-behavior benchmarking; choose a broader general-purpose evaluation tool when safety testing is only one part of the evaluation scope.
Your product? Our editors can test HarmBench in depth and publish a review, labelled as paid · from $149/mo →
HarmBench pricing
HarmBench fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Deployment options | Self-hosted |
| Custom metrics | Not verified |
| LLM-as-a-judge | Yes |
| Safety evaluations | Yes |
| Human review workflows | Not verified |
| Prompt versioning | Not verified |
| CI/CD integration | Not verified |
| Deployment | Self-hosted |
| Platforms | Linux |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 10 integrations: Hugging Face Transformers, OpenAI API, Anthropic API, Mistral API, Google Generative AI, Google Cloud Vertex AI … |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 20 Sep 2026 |
HarmBench integrations
HarmBench lists 10 integrations on its own site.
- Hugging Face Transformers
- OpenAI API
- Anthropic API
- Mistral API
- Google Generative AI
- Google Cloud Vertex AI
- vLLM
- Ray
- FastChat
- SLURM
Alternatives to HarmBench
- DeepEvalA broad open-source toolkit for evaluating LLM apps, agents, RAG pipelines, and chatbots.9.4
- PromptfooA broad evaluation toolkit for teams that need testing, security scans, and CI/CD gates.9.3
- GalileoA mature evaluation platform spanning offline testing, production tracing, and runtime controls.9.1
See all HarmBench alternatives →
Also Ranked In
HarmBench is ranked in 2 of our directories.
Used HarmBench? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used HarmBench for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
HarmBench is listed in our LLM Evaluation Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/harmbench/"><img src="https://www.itechguides.com/best/badge/harmbench.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


