Skip to content

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:

  1. OpenCode >=1.4.0 — see the OpenCode install guide.
  2. Docker — security tools run in isolated containers, pulled on demand.
  3. An LLM provider — configure a model in OpenCode. See providers.

Install

Add OpenSploit to your OpenCode configuration:

.opencode/opencode.jsonc
{
"plugin": ["@opensploit/core"]
}
.opencode/tui.json
{
"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.

Terminal window
cd ~/engagements/example
opencode

The 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

For the underlying platform — configuration, models, keybinds, themes, and more — see the OpenCode docs.