This repository packages the custom OpenCode VAPT agent so it can be installed on another computer.
- OpenCode installed
- Bun available
- Kali Linux if you want execution mode to work
The included installer copies the agent files into your OpenCode config directory.
git clone https://github.com/mustosoft/opencode-vapt-agent
cd opencode-vapt-agent
./scripts/install.shThis installs:
agents/vapt-pentest.md→~/.config/opencode/agents/vapt-pentest.mdagents/vapt-network.md→~/.config/opencode/agents/vapt-network.mdagents/vapt-content.md→~/.config/opencode/agents/vapt-content.mdagents/vapt-analysis.md→~/.config/opencode/agents/vapt-analysis.mdplugins/vapt-tooling.js→~/.config/opencode/plugins/vapt-tooling.js- ensures
~/.config/opencode/package.jsoncontains:
{
"dependencies": {
"@opencode-ai/plugin": "1.3.17"
}
}Restart OpenCode after installation so the local plugin is loaded.
You can override the target config directory:
OPENCODE_CONFIG_DIR=/path/to/opencode-config ./scripts/install.sh./scripts/uninstall.shOr with a custom config directory:
OPENCODE_CONFIG_DIR=/path/to/opencode-config ./scripts/uninstall.shThe uninstaller removes only the VAPT-owned agent/plugin files. It intentionally does not try to remove @opencode-ai/plugin from package.json.
- OpenCode auto-loads local plugins from the config plugin directory, so no
opencode.jsonediting is required. - If you want to continue an existing engagement, copy your existing
vapt_plan.todoandfindings_summary.mdinto the working directory where the agent will run. - Execution mode is blocked unless:
- the environment is Kali Linux
- authorization has been recorded
- a
vapt_plan.todoexists
- Authorization required before execution mode
- Kali-only execution enforcement
- Allowlisted scanner commands only
- Logged command execution to
vapt_execution.log - No built-in
bashaccess for the agent