Enrich a leads CSV with firmographics, tech stack, and contact validation from pluggable providers, caching results to avoid duplicate API spend.
Part of the Cognis Neural Suite.
pip install cognis-enrichr
enrichr scan . # β prioritized findings in secondsReal, reproducible output from the tool β runs offline:
$ enrichr-emit --version
enrichr 0.1.0$ enrichr-emit --help
usage: enrichr [-h] [--version] [--format {table,json}] command ...
Enrich a leads CSV with firmographics from pluggable providers, with a local cache.
positional arguments:
command
enrich enrich a leads CSV
options:
-h, --help show this help message and exit
--version show program's version number and exit
--format {table,json}
output format (default: table; json for piping/CI)
examples:
# Enrich a leads CSV with the offline heuristic provider, print a table
enrichr enrich demos/01-basic/leads.csv
# Use a known-firmographics dataset first, then fall back to heuristics
enrichr enrich leads.csv --mapping crm.json --cache .enrichr_cache.json
# JSON out for piping into jq / CI
enrichr enrich leads.csv --format json | jq '.results[] | select(.status=="ok")'
# Write enriched rows back to a CSV
enrichr enrich leads.csv -o enriched.csv
exit codes:
0 every lead was enriched (status == ok)
1 one or more leads could not be enriched (use for CI gates)
2 usage / input errorBlocks above are real
enrichroutput β reproduce them from a clone.
Sample result format (illustrative values β run on your own data for real findings):
{
"results": [
{
"id": "123456",
"title": "Suspicious Activity Detected",
"description": "An unknown actor has accessed our network.",
"type": "indicator",
"score": 0.8,
"tags": ["malware", "ransomware"],
"references": [
{"href": "https://example.com/ threatintel"}
]
}
]
}
-
Install the CLI:
pipx install "git+https://github.com/cognis-digital/enrichr.git" -
Enrich a leads CSV with firmographics β the primary command:
enrichr enrich leads.csv
-
Bring your own data and cache β provide a domainβfirmographics mapping (tried before heuristics) and a JSON cache to avoid duplicate lookups:
enrichr enrich leads.csv --mapping firmographics.json --cache cache.json -o enriched.csv
-
Read the output β write enriched rows to a CSV, or emit JSON for piping; disable the offline heuristic provider if you only want mapped data:
enrichr enrich leads.csv --format json > enriched.json enrichr enrich leads.csv --no-heuristic -o enriched.csv -
Automate in a pipeline β by default a partially-unenriched run exits non-zero so CI can catch coverage gaps:
enrichr enrich leads.csv -o enriched.csv # non-zero exit => some leads could not be enriched
- Why enrichr? Β· Features Β· Quick start Β· Example Β· Architecture Β· AI stack Β· How it compares Β· Integrations Β· Install anywhere Β· Related Β· Contributing
Provider-agnostic enrichment you self-host β swap Clearbit for a free source via config, and a local cache means CI reruns never re-bill you for the same record.
enrichr is single-purpose, scriptable, and self-hostable: point it at a target, get prioritized results in the format your workflow already speaks (table Β· JSON Β· SARIF), gate CI on it, and let agents drive it over MCP.
- β Normalize Domain
- β Domain From Email
- β Is Free Email Domain
- β Company Size Bucket
- β Read Leads Csv
- β Write Results Csv
- β Enrich Leads
- β Runs on Linux/macOS/Windows Β· Docker Β· devcontainer
- β
Ports in Python, JavaScript, Go, and Rust (
ports/)
pip install cognis-enrichr
enrichr --version
enrichr scan . # scan current project
enrichr scan . --format json # machine-readable
enrichr scan . --fail-on high # CI gate (non-zero exit)$ enrichr scan .
[HIGH ] ENR-001 example finding (./src/app.py)
[MEDIUM ] ENR-002 another signal (./config.yaml)
2 findings Β· risk score 5 Β· 38ms
flowchart LR
IN[capture / scan] --> P[enrichr<br/>parse + map]
P --> OUT[report]
enrichr is interoperable with every popular way of using AI:
- MCP server β
enrichr mcp(Claude Desktop, Cursor, Cognis.Studio, uncensored-fleet) - OpenAI-compatible / JSON β pipe
enrichr scan . --format jsoninto any agent or LLM - LangChain Β· CrewAI Β· AutoGen Β· LlamaIndex β wrap the CLI/JSON as a tool in one line
- CI / scripts β exit codes + SARIF for non-AI pipelines
| Cognis enrichr | Clearbit | |
|---|---|---|
| Self-hostable, no account | β | varies |
| Single command, zero config | β | |
| JSON + SARIF for CI | β | varies |
| MCP-native (AI agents) | β | β |
| Polyglot ports (JS/Go/Rust) | β | β |
| Open license | β COCL | varies |
Built in the spirit of Clearbit/Apollo enrichment, with a Singer-style pluggable provider interface, re-framed the Cognis way. Missing a credit? Open a PR.
Pipes into your stack: SARIF for code-scanning, JSON for anything, an MCP server (enrichr mcp) for AI agents, and a webhook forwarder for SIEM/Slack/Jira. See docs/INTEGRATIONS.md.
pip install "git+https://github.com/cognis-digital/enrichr.git" # pip (works today)
pipx install "git+https://github.com/cognis-digital/enrichr.git" # isolated CLI
uv tool install "git+https://github.com/cognis-digital/enrichr.git" # uv
pip install cognis-enrichr # PyPI (when published)
docker run --rm ghcr.io/cognis-digital/enrichr:latest --help # Docker
brew install cognis-digital/tap/enrichr # Homebrew tap
curl -fsSL https://raw.githubusercontent.com/cognis-digital/enrichr/main/install.sh | sh| Linux | macOS | Windows | Docker | Cloud |
|---|---|---|---|---|
scripts/setup-linux.sh |
scripts/setup-macos.sh |
scripts/setup-windows.ps1 |
docker run ghcr.io/cognis-digital/enrichr |
DEPLOY.md (AWS/Azure/GCP/k8s) |
warmlineβ Score and rank inbound/outbound leads from a YAML rulebook, emitting a ranked queue as JSON/CSV for your SDRs and CI gates.coldforgeβ Render personalized cold-outreach sequences from Markdown templates + a contacts CSV, with spam-score linting and per-send dry-run preview.pactgenβ Generate branded sales proposals and SOWs from a YAML scope file + pricing table into PDF/HTML, with a deterministic line-item math check.crmsyncβ Bidirectional, idempotent sync of contacts/deals between a local SQLite source-of-truth and CRM APIs (HubSpot/Pipedrive/Salesforce) via one config.dripcheckβ Lint email sequences and drip campaigns for deliverability: SPF/DKIM/DMARC, link health, unsubscribe presence, and CAN-SPAM/GDPR compliance.dealflowβ Model your sales pipeline as a YAML state machine and compute conversion rates, stage velocity, and weighted forecast straight from CRM exports.
Explore the suite β ποΈ all 170+ tools Β· β awesome-cognis Β· π cognis-sources Β· π€ uncensored-fleet Β· π§ engram
PRs, new rules, and demo scenarios are welcome under the collaboration-pull model β see CONTRIBUTING.md and SECURITY.md.
{} composes with the 300+ tool Cognis suite β JSON in/out and a shared
OpenAI-compatible /v1 backbone. See INTEROP.md for the
suite map, composition patterns, and reference stacks.
Source-available under the Cognis Open Collaboration License (COCL) v1.0 β free for personal, internal-evaluation, research, and educational use; commercial / production use requires a license (licensing@cognis.digital). See LICENSE.