# osintversehq/otinstaller architecture

> Architecture diagram of the GitHub repository osintversehq/otinstaller, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/osintversehq/otinstaller
- Repository: https://github.com/osintversehq/otinstaller

## Overview

OTinstaller provides a unified CLI for installing, running, updating, and removing OSINT tools in isolated virtual environments. The main workflow loads tool definitions, installs a selected tool, translates typed inputs and launches it, then saves output and run metadata. The graph also shows supporting configuration, key handling, state, and result-comparison capabilities. Relationships are limited to those supported by the README or shown in the excerpts and SOURCE INDEX; unsampled CLI behavior is not inferred beyond those references.

Main entry points: [`src/otinstaller/cli.py`](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/cli.py) (Command interface), [`src/otinstaller/runner.py`](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/runner.py) (Tool execution), [`src/otinstaller/installer/core.py`](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/core.py) (Install orchestration), [`src/otinstaller/state.py`](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/state.py) (Installed and job state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_cli["Command interface<br/>[cli.py]"]
  node_banner["CLI banner<br/>[banner.py]"]
  node_playbooks["Playbooks"]
end

subgraph group_catalog["Tool catalog"]
  node_registry["Tool registry<br/>[registry.py]"]
  node_catalog_data["Bundled catalog<br/>[registry.yaml]"]
  node_compat["Compatibility checks<br/>[compat.py]"]
  node_detect["System checks<br/>[detect.py]"]
  node_extract["Typed input mapping<br/>[extract.py]"]
end

subgraph group_lifecycle["Tool lifecycle"]
  node_installer["Install orchestration<br/>[core.py]"]
  node_git_install["Git installation<br/>[git_install.py]"]
  node_pip_install["Pip installation<br/>[pip_install.py]"]
  node_venv["Virtual environments<br/>[venv.py]"]
  node_process["Install processes<br/>[process.py]"]
  node_runner["Tool execution<br/>[runner.py]"]
end

subgraph group_support["Run support"]
  node_state[("Installed and job state<br/>[state.py]")]
  node_results["Run results<br/>[results.py]"]
  node_keys["API key handling<br/>[keys.py]"]
  node_config["Local configuration<br/>[config.py]"]
  node_diff["Result comparison<br/>[diff.py]"]
  node_notice["Responsible-use notice<br/>[notice.py]"]
end

node_user(("Operator"))
node_managed_tools["Managed OSINT tools"]

node_user -->|"invokes"| node_cli
node_cli -->|"loads tools"| node_registry
node_registry -->|"loads catalog"| node_catalog_data
node_cli -->|"installs tools"| node_installer
node_installer -->|"checks compatibility"| node_compat
node_installer -->|"records installation"| node_state
node_installer -->|"delegates git"| node_git_install
node_installer -->|"delegates pip"| node_pip_install
node_git_install -->|"creates environment"| node_venv
node_pip_install -->|"creates environment"| node_venv
node_git_install -->|"runs commands"| node_process
node_pip_install -->|"runs commands"| node_process
node_venv -->|"creates environment"| node_process
node_cli -->|"checks system"| node_detect
node_cli -->|"maps typed inputs"| node_extract
node_cli -->|"runs tools"| node_runner
node_runner -->|"launches tools"| node_managed_tools
node_runner -->|"loads tool keys"| node_keys
node_runner -->|"tracks jobs"| node_state
node_runner -->|"writes run results"| node_results
node_cli -->|"reads installation state"| node_state
node_cli -->|"compares results"| node_results
node_diff -->|"reads results"| node_results
node_cli -->|"loads playbooks"| node_playbooks
node_cli -->|"shows notice"| node_notice
node_cli -->|"shows banner"| node_banner
node_runner -->|"gets run paths"| node_config
node_results -->|"gets result path"| node_config
node_state -->|"gets state path"| node_config
node_keys -->|"gets key-file path"| node_config

click node_cli "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/cli.py"
click node_banner "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/banner.py"
click node_playbooks "https://github.com/osintversehq/otinstaller/tree/main/playbooks"
click node_registry "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/registry.py"
click node_catalog_data "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/data/registry.yaml"
click node_compat "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/compat.py"
click node_detect "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/detect.py"
click node_extract "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/extract.py"
click node_installer "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/core.py"
click node_git_install "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/git_install.py"
click node_pip_install "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/pip_install.py"
click node_venv "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/venv.py"
click node_process "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/process.py"
click node_runner "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/runner.py"
click node_state "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/state.py"
click node_results "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/results.py"
click node_keys "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/keys.py"
click node_config "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/config.py"
click node_diff "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/diff.py"
click node_notice "https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/notice.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cli,node_banner,node_playbooks toneBlue
class node_registry,node_catalog_data,node_compat,node_detect,node_extract toneAmber
class node_installer,node_git_install,node_pip_install,node_venv,node_process,node_runner toneMint
class node_state,node_results,node_keys,node_config,node_diff,node_notice toneRose
class node_user,node_managed_tools toneIndigo
```

## Components

### User interface

- [Command interface](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/cli.py): `src/otinstaller/cli.py`
- [CLI banner](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/banner.py): `src/otinstaller/banner.py`
- [Playbooks](https://github.com/osintversehq/otinstaller/tree/main/playbooks): `playbooks`

### Tool catalog

- [Tool registry](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/registry.py): `src/otinstaller/registry.py`
- [Bundled catalog](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/data/registry.yaml): `src/otinstaller/data/registry.yaml`
- [Compatibility checks](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/compat.py): `src/otinstaller/compat.py`
- [System checks](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/detect.py): `src/otinstaller/detect.py`
- [Typed input mapping](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/extract.py): `src/otinstaller/extract.py`

### Tool lifecycle

- [Install orchestration](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/core.py): `src/otinstaller/installer/core.py`
- [Git installation](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/git_install.py): `src/otinstaller/installer/git_install.py`
- [Pip installation](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/pip_install.py): `src/otinstaller/installer/pip_install.py`
- [Virtual environments](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/venv.py): `src/otinstaller/installer/venv.py`
- [Install processes](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/installer/process.py): `src/otinstaller/installer/process.py`
- [Tool execution](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/runner.py): `src/otinstaller/runner.py`

### Run support

- [Installed and job state](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/state.py): `src/otinstaller/state.py`
- [Run results](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/results.py): `src/otinstaller/results.py`
- [API key handling](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/keys.py): `src/otinstaller/keys.py`
- [Local configuration](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/config.py): `src/otinstaller/config.py`
- [Result comparison](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/diff.py): `src/otinstaller/diff.py`
- [Responsible-use notice](https://github.com/osintversehq/otinstaller/blob/main/src/otinstaller/notice.py): `src/otinstaller/notice.py`

### Other components

- **Operator**
- **Managed OSINT tools**

## Connections

- Operator → Command interface: invokes (evidence: `README.md`)
- Command interface → Tool registry: loads tools (evidence: `src/otinstaller/cli.py`)
- Tool registry → Bundled catalog: loads catalog (evidence: `README.md`)
- Command interface → Install orchestration: installs tools (evidence: `src/otinstaller/cli.py`)
- Install orchestration → Compatibility checks: checks compatibility (evidence: `src/otinstaller/installer/core.py`)
- Install orchestration → Installed and job state: records installation (evidence: `src/otinstaller/installer/core.py`)
- Install orchestration → Git installation: delegates git (evidence: `src/otinstaller/installer/core.py`)
- Install orchestration → Pip installation: delegates pip (evidence: `src/otinstaller/installer/core.py`)
- Git installation → Virtual environments: creates environment (evidence: `src/otinstaller/installer/git_install.py`)
- Pip installation → Virtual environments: creates environment (evidence: `src/otinstaller/installer/pip_install.py`)
- Git installation → Install processes: runs commands (evidence: `src/otinstaller/installer/git_install.py`)
- Pip installation → Install processes: runs commands (evidence: `src/otinstaller/installer/pip_install.py`)
- Virtual environments → Install processes: creates environment (evidence: `src/otinstaller/installer/venv.py`)
- Command interface → System checks: checks system (evidence: `src/otinstaller/cli.py`)
- Command interface → Typed input mapping: maps typed inputs (evidence: `src/otinstaller/cli.py`)
- Command interface → Tool execution: runs tools (evidence: `src/otinstaller/cli.py`)
- Tool execution → Managed OSINT tools: launches tools (evidence: `README.md`)
- Tool execution → API key handling: loads tool keys (evidence: `src/otinstaller/runner.py`)
- Tool execution → Installed and job state: tracks jobs (evidence: `src/otinstaller/runner.py`)
- Tool execution → Run results: writes run results (evidence: `src/otinstaller/runner.py`)
- Command interface → Installed and job state: reads installation state (evidence: `src/otinstaller/cli.py`)
- Command interface → Run results: compares results (evidence: `src/otinstaller/cli.py`)
- Result comparison → Run results: reads results (evidence: `src/otinstaller/diff.py`)
- Command interface → Playbooks: loads playbooks (evidence: `src/otinstaller/cli.py`)
- Command interface → Responsible-use notice: shows notice (evidence: `src/otinstaller/cli.py`)
- Command interface → CLI banner: shows banner (evidence: `src/otinstaller/cli.py`)
- Tool execution → Local configuration: gets run paths (evidence: `src/otinstaller/runner.py`)
- Run results → Local configuration: gets result path (evidence: `src/otinstaller/results.py`)
- Installed and job state → Local configuration: gets state path (evidence: `src/otinstaller/state.py`)
- API key handling → Local configuration: gets key-file path (evidence: `src/otinstaller/keys.py`)
