Skip to main content

Installation

HackAgent needs Python 3.10+, or nothing at all with a standalone binary.

Install​

python3 -m venv .venv
source .venv/bin/activate
pip install hackagent

Check it:

hackagent --version
hackagent --help

Optional extras​

The base install has the SDK, the CLI and a local results store. Add an extra when you need what it unlocks, at any time:

ExtraUnlocksNeeded by
tuiTextualThe terminal UI (hackagent, hackagent tui)
webFlask and the dashboard bundlehackagent web
browserPlaywrightWEB targets that drive a live page
ragFAISS and NumPyh4rm3l, the RAG attack, AutoDAN-Turbo
visionPillowThe MML attack
hfHugging Face datasets25 of the 27 dataset presets (all but agenthazard and omnisafebench) and any other Hub dataset

For example, the terminal UI needs pip install 'hackagent[tui]'; add several at once with pip install 'hackagent[tui,rag,hf]'.

Local or remote​

No account or API key. Runs and results are stored in SQLite at ~/.local/share/hackagent/hackagent.db, and hackagent web serves them at http://127.0.0.1:7860.

hackagent init walks you through the same storage choice and saves it (never the key) to ~/.config/hackagent/config.json. hackagent config shows and changes every setting.

A campaign records its own results separately: execution.storage.backend is local unless the file names a server with remote, so being signed in changes what you can read, not where a new run is written.

Next steps​