Intro
Get started with OpenSploit.
OpenSploit is an autonomous penetration testing agent. It runs as a plugin on top of OpenCode, turning it into a pentest platform — with specialized agents, security-tool orchestration, engagement state tracking, and a structured attack methodology.
Let’s get started.
Prerequisites
OpenSploit is a plugin, so you run it inside OpenCode. You’ll need:
- OpenCode
>=1.4.0— see the OpenCode install guide. - Docker — security tools run in isolated containers, pulled on demand.
- An LLM provider — configure a model in OpenCode. See providers.
Install
Add OpenSploit to your OpenCode configuration:
{ "plugin": ["@opensploit/core"]}{ "plugin": ["@opensploit/core"]}The next time you start OpenCode, the plugin loads and the default agent becomes pentest.
Run an engagement
Navigate to a working directory for your engagement and start OpenCode.
cd ~/engagements/exampleopencodeThe pentest agent orchestrates the engagement. It spawns specialized sub-agents for each phase — reconnaissance, enumeration, exploitation, and so on — discovers and runs security tools in Docker, and tracks shared engagement state (hosts, ports, credentials, findings) across every agent.
Give it a target and an objective:
Target: 10.129.1.20 — authorized lab host. Find a foothold and escalate to root.Next steps
- Penetration Testing Phases — the methodology OpenSploit follows
- Agents — the pentest agent hierarchy
- Security Tools — how tools are discovered and run
- Security & Legal — authorization, safeguards, and rules of engagement
For the underlying platform — configuration, models, keybinds, themes, and more — see the OpenCode docs.