@omnitype-code/cli
v0.1.6
Published
OmniType CLI — editor-agnostic code provenance tracking
Readme
OmniType CLI
Know exactly who wrote every line of code — you, your AI, or a paste.
OmniType is an editor-agnostic code provenance engine. It tracks which lines were written by a human, generated by an AI model (Claude, GPT-4, Gemini, etc.), or pasted in — across every tool you use.
No vendor lock-in. Works with Claude Code, Cursor, Windsurf, VS Code, Aider, Continue, and any AI coding tool.
Install
npm install -g @omnitype-code/cliQuick Start
# Sign in
omnitype login
# Start tracking in your project
omnitype daemon
# See who wrote what
omnitype blame src/app.ts
# Check your AI vs human split
omnitype statsCommands
| Command | Description |
|---|---|
| omnitype login | Sign in to OmniType Cloud |
| omnitype logout | Sign out |
| omnitype status | Show auth, detected model, and repo info |
| omnitype whoami | Display your profile |
| omnitype daemon | Watch a directory and track provenance in real time |
| omnitype blame <file> | Enhanced git blame with AI/model attribution overlay |
| omnitype stats | Personal provenance stats across all projects |
| omnitype hooks install | Install git hooks for commit-level tracking |
| omnitype hooks uninstall | Remove git hooks |
| omnitype notes fetch | Pull attribution notes from remote |
| omnitype notes push | Push attribution notes to remote |
| omnitype setup-claude-hook | Auto-detect model in Claude Code sessions |
| omnitype setup-vscode-hook | Install into VS Code, Cursor, Windsurf, and other forks |
| omnitype signal -m <model> | Manually report the active AI model |
Editor Integrations
Claude Code
omnitype setup-claude-hookInstalls a hook into ~/.claude/settings.json that captures the active model on every file edit — automatically.
VS Code / Cursor / Windsurf / and more
omnitype setup-vscode-hookDetects every installed VS Code fork and enables the OmniType extension across all of them in one shot.
Any AI tool
omnitype signal --model gpt-4o --tool aiderWorks with any tool that doesn't have a native integration yet.
How It Works
- Daemon watches your project directory for file changes and records which AI model was active at the time of each edit.
- Git hooks capture provenance at commit time, stored as git notes so they travel with your repo.
- Blame overlays model attribution on top of standard
git blameoutput. - Stats aggregates your AI vs. human vs. paste ratios across all tracked projects.
Provenance data is stored locally and optionally synced to OmniType Cloud for team dashboards and org-level analytics.
Options
omnitype daemon --path ./src --project my-app
omnitype blame src/index.ts --stats
omnitype stats --top 20
omnitype notes push --remote upstreamLicense
MIT
