MiniPWN is an autonomous pentesting agent designed for security professionals. It provides a terminal-based interface (TUI) to interact with AI models that can execute tools locally or via remote workers to assist in security assessments.
- Multi-provider support (OpenAI, OpenRouter, Custom endpoints).
- Modular tool execution framework.
- Remote worker support for distributed tasks.
- Advanced TUI with markdown rendering and theme support.
- Configurable agentic loops with safety/weaponized modes.
The easiest way to install MiniPWN is via cargo:
cargo install minipwnTo build and install MiniPWN from the source code, follow these steps:
- Clone the repository:
git clone https://github.com/sammwyy/minipwn.git
cd minipwn- Build and install:
cargo install --path .While you can edit the configuration files manually in your user config folder (e.g., ~/.config/minipwn on Linux), it is recommended to configure MiniPWN directly from the TUI:
- Run
minipwn. - Use
/providerto select your preferred AI provider. - Use
/apikey <your-key>to set the secret key for the currently selected provider. - Use
/modelto select the specific model you wish to use.
Alternatively, you can manually configure secrets.env:
OPENAI_SECRETKEY="your-key-here"
OPENROUTER_SECRETKEY="your-key-here"And customize behavior in config.toml:
provider = "openai"
theme = "dracula"
max_iterations = 25
[tui]
max_history_display = 10Simply run the binary to start the interactive TUI:
minipwnInside the TUI, you can use commands by pressing /:
/help: Show available commands./mode: Toggle between Safe and Weaponized modes./provider: Change the current AI provider./apikey: Set the API key for the current provider./model: Change the current AI model./theme: Change the UI theme.
This project is licensed under the MIT License.