Skip to content

Plugin Development

LizardPope1101 edited this page Jul 28, 2026 · 5 revisions

Plugin Development

A plugin is a directory whose name matches the id in its manifest.

plugins/example/
├── manifest.json
├── install.sh
├── update.sh
├── remove.sh
└── doctor.sh

Start from the template:

cp -a docs/plugin-template plugins/new-tool

Manifest responsibilities

Declare schema/version, ID, name, description, category, tags, homepage, upstream licensing, installed commands, supported targets, batch eligibility, lifecycle scripts, root requirements, argument-array adapters, and operational notes.

Adapter example

"adapters": {
  "username": {
    "command": ["example", "--json", "results.json", "{target}"]
  }
}

Never represent an adapter as an interpolated shell string. Keep every option and value in its own array element.

Lifecycle scripts

Lifecycle scripts source scripts/plugin-common.sh and receive OSINT_FORGE_PLUGIN_ID, OSINT_FORGE_PLUGIN_DIR, OSINT_FORGE_ROOT, OSINT_FORGE_STATE, OSINT_FORGE_DRY_RUN, and OSINT_FORGE_ASSUME_YES.

Wrap every system-changing command with the common run helper so dry-run mode remains accurate.

Local validation

export OSINT_FORGE_ROOT="$PWD"
export OSINT_FORGE_STATE="$(mktemp -d)"
./bin/osint forge info new-tool
./bin/osint forge install new-tool --dry-run
bash -n plugins/new-tool/*.sh
python3 -m json.tool plugins/new-tool/manifest.json

Follow CONTRIBUTING.md and the complete Plugin API.

Clone this wiki locally