Skip to main content

Quick Start

Get started with HackAgent in minutes. Choose your preferred method below.

HackAgent TUI Demo

The command preconfigures the demo and automatically starts the attack flow in the TUI.

Prerequisites
  1. Install Ollama: curl -fsSL https://ollama.com/install.sh | sh
  2. Start server: ollama serve
  3. Pull model: ollama pull gemma3:4b
  4. Verify: curl http://localhost:11434/api/tags

Run the built-in Ollama demo directly in the TUI:

hackagent examples ollama

What the CLI does automatically

  1. Checks that Ollama is reachable at http://localhost:11434
  2. Reads required models from the demo configuration
  3. Pulls missing models automatically
  4. Opens the TUI in the Attacks tab and auto-runs the demo

Demo configuration used

  • Attack type: flipattack
  • Target model (victim): gemma3:4b via Ollama
  • Judge model: gemma3:4b with judge type harmbench_variant
  • Attacker model: not used explicitly in this demo (flipattack is transformation-based)
  • Dataset: HarmBench preset with limit: 5, shuffle: false, seed: 42
  • FlipAttack param flip_mode: FCS
  • FlipAttack param cot: false
  • FlipAttack param lang_gpt: false
  • FlipAttack param few_shot: false

Troubleshooting

  • Ollama not running: start it with ollama serve
  • Missing model: the CLI pulls missing models automatically
  • TUI startup issue: run hackagent --version first to confirm installation

Next Steps