Skip to content

CLI Commands

The Omnodex CLI is the primary interface for running tracing, detection, and reporting.

Terminal window
npx omnodex <command> [options]

Install the Omnodex hook into an agent runtime.

Terminal window
npx omnodex install <target>
TargetDescription
claude-codeInstall as a Claude Code hook
codexInstall as an OpenAI Codex hook
antigravityInstall as a Google Antigravity hook

Remove the Omnodex hook.

Terminal window
npx omnodex uninstall [--purge]
FlagDescription
--purgeAlso delete all event data and configuration

Show current Omnodex status: which hooks are installed, event count, last activity.

Terminal window
npx omnodex status

Run risk detection on all unanalyzed events.

Terminal window
npx omnodex detect

Detection is idempotent - running it multiple times on the same events produces identical results.

Start the local web dashboard with real-time updates.

Terminal window
npx omnodex dashboard [port] [--roots <path> ...] [--no-detect]
OptionDefaultDescription
[port]7890Port for the dashboard web server
--roots(none)Additional OMNODEX_HOME roots to tail. Space-separated paths. The default root is always included.
--no-detect(off)Skip the historical detection pass on startup

The dashboard automatically runs detection, replays events from all configured roots, and opens an SSE connection for live updates. See Using the Dashboard for multi-source aggregation details.

Generate a text-based summary report of findings.

Terminal window
npx omnodex report

Replay the event log to rebuild the read model (SQLite database).

Terminal window
npx omnodex replay

Useful if the database becomes corrupted or you want to apply updated rules to historical events.

Run a mock pipeline that generates sample events for testing. Useful for verifying your installation works.

Terminal window
npx omnodex spike
VariableDefaultDescription
OMNODEX_HOME~/.omnodexDirectory for event logs, database, and config