OSINT cli tool skeleton
A universal, AI-native template for building OSINT tools.
Write one plugin file, and the same logic instantly works as a CLI, a Python library, an HTTP microservice (FastAPI) and an MCP server for AI agents — with concurrency, proxying, reports and config handled for you.
Press "Use this template" to start your own tool, then see INSTALL.md.
Why this skeleton
- Universal — plugins return arbitrary fields; nothing is hardcoded to one data shape. Build a username checker, a domain enricher, a leak lookup, anything.
- Easy to customize — add a capability by dropping one file in
plugins/. You never touch the engine, CLI, server or reports. - Embeddable — clean sync (
run_tool) and async (arun_tool) library API, plus a FastAPI app factory for microservices and pipelines. - AI-native — every plugin is auto-exposed as an MCP tool, and AGENTS.md is a ready brief: point an agent at the repo and say "build a tool based on this".
Architecture
your plugins/ (subclass Plugin, implement run())
│ auto-discovered & registered
▼
CLI ─┐ ┌─────────┐
lib ─┼──> Settings ──> │ Engine │ ──> Reporters (plain/csv/txt/json)
HTTP ─┤ (file/env/CLI) │ +Context│ Result / ResultSet (any fields)
MCP ─┘ └─────────┘
Quickstart
pip install -e .
python -m my_new_tool --list-plugins
python -m my_new_tool --plugin http_title example.com reddit.com
Target: example.com
Results found: 1
1) Value: Example Domain
Code: 200
------------------------------
Total found: 1
Write a tool (the only thing you edit)
python -m my_new_tool --new-plugin my_tool
# my_new_tool/plugins/my_tool.py
from my_new_tool import InputData, Plugin, Result
class MyTool(Plugin):
name = "my_tool"
description = "Look up something for a target."
async def run(self, target: InputData) -> Result:
status, data = await self.ctx.fetch_json(f"https://api.example/{target.value}")
return Result(found=data.get("found"), code=status)
That's it — my_tool now works on the CLI, as a library call, over HTTP and as
an MCP tool. Full contract in AGENTS.md.
Inputs — args, file, or stdin
my_new_tool a.com b.com c.com # positional
my_new_tool --target-list targets.txt # from a file
cat list.txt | my_new_tool --targets-from-stdin
Reports — console, CSV, TXT, JSON
my_new_tool a.com b.com -oC out.csv -oJ out.json -oT out.txt
my_new_tool a.com --format json # JSON to stdout
Reports are schema-driven: columns/fields adapt to whatever your plugin emits.
$ cat out.json | jq '.[0]'
{ "input": { "value": "a.com" }, "results": [ { "value": "Site A", "code": 200 } ] }
Library — embed in your own code / pipeline
from my_new_tool import run_tool # sync
results = run_tool("http_title", ["example.com"], proxy="socks5://127.0.0.1:1080")
for rs in results:
print(rs.input_data, [r.fields for r in rs.results])
# inside an existing event loop:
from my_new_tool import arun_tool
results = await arun_tool("http_title", ["example.com"])
HTTP microservice — FastAPI + OpenAPI
pip install -e '.[server]'
my_new_tool --server 0.0.0.0:8080 # docs at /docs
curl localhost:8080/plugins/http_title/run \
-d '{"targets": ["google.com", "yahoo.com"]}' -s | jq
Endpoints: GET /plugins, GET /plugins/{name}/schema,
POST /plugins/{name}/run, POST /run. For your own ASGI deployment:
from my_new_tool.server import create_app; app = create_app().
Or run it in Docker:
docker build -t osint-tool . && docker run -p 8080:8080 osint-tool
MCP server — for AI agents
pip install -e '.[mcp]'
my_new_tool --mcp # stdio MCP server
Every plugin becomes an MCP tool named after it, taking targets and optional
options. Register it with your agent/host as the command
my_new_tool --mcp.
Configuration — file / env / CLI
Precedence: defaults < config file < OSINT_* env < CLI flags.
# osint.toml (auto-detected in cwd, or pass --config)
[osint]
plugin = "http_title"
proxy = "socks5://127.0.0.1:1080"
concurrency = 20
[osint.options]
api_key = "..."
OSINT_PROXY=socks5://127.0.0.1:1080 my_new_tool example.com
my_new_tool --plugin my_tool --option api_key=XXX --concurrency 20 t
Installation
Requires Python ≥ 3.10.
pip install my_new_tool # from PyPI (core)
pip install 'my_new_tool[all]' # + server, mcp, yaml
…or clone and pip install -e '.[all,dev]'. Details in INSTALL.md.
Development
make install-dev # editable install with dev tools
make test # pytest + coverage
make lint # flake8 + mypy
make format # black
License
MIT
Metadata
Release files for my-new-tool 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| my_new_tool-0.2.1.tar.gz | 28.4 kB | Without provenance | Details for my_new_tool-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| my_new_tool-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for my_new_tool-0.2.1-py3-none-any.whl |
Total release size: 58.1 kB
Release files / my_new_tool-0.2.1.tar.gz
| Download URL | my_new_tool-0.2.1.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
250ff0cc4bea82d3af00686e9a764f1b33a8149894faf4c7db882fb3de8664df
|
|
BLAKE2b-256 checksum How to use checksums |
c5f4aa30915b400cb097264772b26061fbc75ad5a11a2a76c05f47a34cf67b0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / my_new_tool-0.2.1-py3-none-any.whl
| Download URL | my_new_tool-0.2.1-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
193b1c3b6483a9084d516311a279f83b21fc00001278d2cb0cca433a832f5d7a
|
|
BLAKE2b-256 checksum How to use checksums |
f6d0366f6eccad0425d212314268f2c2667940896d0c5dadeb0f0a1d67179b51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for my-new-tool 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.