Metadata-Version: 2.4
Name: openleads
Version: 5.26.0
Summary: A free, local-first Apollo alternative: find B2B leads with honest email evidence from public sources (no API keys), then work them in a local CRM with lists, ICP scoring, multi-step sequences, tasks, a deal pipeline, a web dashboard and an MCP server for AI tools. $0.
Author-email: Samyar Shafiee <samyar.shafiee2009@gmail.com>
License: AGPL-3.0-or-later
Project-URL: Homepage, https://github.com/Samyrrrrrr990/openleads
Project-URL: Repository, https://github.com/Samyrrrrrr990/openleads
Project-URL: Issues, https://github.com/Samyrrrrrr990/openleads/issues
Project-URL: Changelog, https://github.com/Samyrrrrrr990/openleads/blob/main/CHANGELOG.md
Keywords: lead-generation,email-finder,apollo-alternative,sales,cli,prospecting,cold-email,smtp-verification,deliverability,yc,founders,osint,doctors,researchers,developers,data-enrichment,email-deliverability,cold-outreach,local-first,mcp,mcp-server,hunter-alternative,openstreetmap,crm,sales-engagement,email-sequences,sales-pipeline
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Topic :: Office/Business
Classifier: Topic :: Communications :: Email
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: chat
Requires-Dist: rich>=13.0; extra == "chat"
Requires-Dist: prompt_toolkit>=3.0; extra == "chat"
Provides-Extra: campaign
Requires-Dist: requests>=2.31.0; extra == "campaign"
Requires-Dist: python-dotenv>=1.0.0; extra == "campaign"
Provides-Extra: outreach
Requires-Dist: requests>=2.31.0; extra == "outreach"
Requires-Dist: python-dotenv>=1.0.0; extra == "outreach"
Provides-Extra: web
Requires-Dist: rich>=13.0; extra == "web"
Requires-Dist: prompt_toolkit>=3.0; extra == "web"
Provides-Extra: dev
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: ruff>=0.4.0; extra == "dev"
Requires-Dist: build>=1.0; extra == "dev"
Requires-Dist: twine>=5.0; extra == "dev"
Provides-Extra: all
Requires-Dist: rich>=13.0; extra == "all"
Requires-Dist: prompt_toolkit>=3.0; extra == "all"
Requires-Dist: requests>=2.31.0; extra == "all"
Requires-Dist: python-dotenv>=1.0.0; extra == "all"
Dynamic: license-file

<div align="center">

<img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/site/favicon.svg" width="64" height="64" alt="OpenLeads" />

# OpenLeads

### Give it your website. Get your customers, with proof.

The open-source lead workspace that runs on your laptop. It reads your site and says
who buys from you, quoting your own page. It finds those businesses and people in free
public sources, labels every email with how it was found, watches them for buying
signals, and lets an AI agent send inside limits it can't talk its way past.
**No account, no API keys, nothing to pay.**

[![PyPI](https://img.shields.io/pypi/v/openleads.svg?color=1b4ed8&label=pypi)](https://pypi.org/project/openleads/)
[![Python 3.8+](https://img.shields.io/badge/python-3.8%2B-3776AB.svg?logo=python&logoColor=white)](https://www.python.org/)
[![CI](https://github.com/Samyrrrrrr990/openleads/actions/workflows/ci.yml/badge.svg)](https://github.com/Samyrrrrrr990/openleads/actions/workflows/ci.yml)
[![Live benchmark](https://github.com/Samyrrrrrr990/openleads/actions/workflows/bench.yml/badge.svg)](./BENCHMARK.md)
[![License: AGPL v3](https://img.shields.io/badge/license-AGPL--3.0-1b4ed8.svg)](./LICENSE)
[![GitHub stars](https://img.shields.io/github/stars/Samyrrrrrr990/openleads?style=flat&color=1b4ed8)](https://github.com/Samyrrrrrr990/openleads/stargazers)

<a href="https://samyrrrrrr990.github.io/openleads/demo/"><img src="https://img.shields.io/badge/%E2%96%B6%20Try%20the%20live%20demo-in%20your%20browser-1b4ed8?style=for-the-badge" alt="Try the live demo in your browser" height="32" /></a>
&nbsp;
<a href="./plugins/openleads"><img src="https://img.shields.io/badge/Claude%20Code-plugin-D97757?style=for-the-badge&logo=claude&logoColor=white" alt="Claude Code plugin" height="32" /></a>
&nbsp;
<a href="https://cursor.com/en/install-mcp?name=openleads&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJvcGVubGVhZHMiLCJtY3AiXX0="><img src="https://cursor.com/deeplink/mcp-install-dark.svg" alt="Add OpenLeads to Cursor" height="32" /></a>

[**Live demo**](https://samyrrrrrr990.github.io/openleads/demo/) ·
[**Website**](https://samyrrrrrr990.github.io/openleads/) ·
[**Docs**](https://samyrrrrrr990.github.io/openleads/docs/) ·
[**Quickstart**](./docs/quickstart.md) ·
[**Roadmap**](./ROADMAP.md) ·
[**Changelog**](./CHANGELOG.md)

<img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/docs/assets/customers.gif" alt="A terminal running openleads customers mindbodyonline.com --in Austin: it reads the site, names gyms as the buyer with the line from Mindbody's page that says so, shows a two-step plan, and after a yes finds six gyms and yoga studios in Austin, each email labeled safe and found, saved to a list." width="100%" />

<sub>Real output, recorded with <a href="./launch/customers.tape">launch/customers.tape</a>. The wait on live sources is cut.</sub>

</div>

## Try it in 30 seconds

```bash
pipx install "openleads[all]"            # or: pip install "openleads[all]"
openleads customers yoursite.com         # who buys what you sell, and their emails
openleads lookalike bestcustomer.com     # ten more like your best customer
openleads find "dentists in Austin"      # ten leads, every email labeled
openleads web --demo                     # the app, on an invented workspace
```

Don't know who your customer is yet? Give it your website (the GIF above). It names who
buys from you with the line on your site that says so, then finds them. With your Claude
or ChatGPT subscription connected, the model reads the site instead, and any buyer whose
quote isn't really on your page is thrown out. [Start from your website](./docs/customers.md)

Or just say what you want. OpenLeads shows the plan, and nothing runs until you say yes:

```text
$ openleads "find 30 rust devs in Berlin and email them about our hiring tool"
Plan
  1. Find      30 rust devs in Berlin, deliverable emails only
  2. Skip      anyone you've already emailed
  3. Write     an email to each about our hiring tool
  4. Queue     them for you to approve in openleads today (nothing sends yet)

Run it? [Y/n]
```

## Why people use it

<table>
<tr>
<td width="50%" valign="top">

**Every claim shows its source.** Who buys from you comes with the line on your site
that says so. Each email is labeled *found*, *pattern* or *guessed*, where most free
finders call a `first.last@` guess "valid". Each signal links the page it came from.

</td>
<td width="50%" valign="top">

**Signals, free and checkable.** Hiring, a new site, a new public repo, a launch on
Hacker News, a changed tool stack, a place new on the map. Each one links to its
source, lands on Today, posts to Slack each morning, and can start a workflow.

</td>
</tr>
<tr>
<td valign="top">

**Agents that can send, safely.** Limits live in a `constitution.toml` the engine
enforces under every send, autonomy is earned from a clean record, and every action
goes in a hash-chained ledger that `openleads ledger verify` can check.

</td>
<td valign="top">

**Yours, on your machine.** Your leads sit in a SQLite file in `~/.openleads`. No
hosted backend, no telemetry, AGPL source. Use the Claude or ChatGPT subscription you
already pay for, or no model at all.

</td>
</tr>
</table>

## One tool instead of five subscriptions

| What you'd otherwise pay for | What OpenLeads does, free and on your machine |
|---|---|
| A people and email database | `find` across 12 public sources, every email labeled *found*, *pattern* or *guessed* |
| An email finder and verifier | `verify`: seven checks, most of which work without port 25 |
| A sequencer with warm-up | sequences, an approval queue, and warm-up with seed inboxes and health gates |
| Intent data | [signals](./docs/signals.md): hiring, new sites, new repos, Hacker News launches, stack changes and new places, each linked to its source |
| Workflow automation | workflows you describe in a sentence or wire on a canvas, with test runs that never send |
| A CRM for outbound | people, companies, lists, tasks, a deal pipeline and ICP fit scoring |
| An AI writer | your Claude or ChatGPT subscription, with a check that nothing in the email is invented |
| An AI SDR you have to trust | [Autopilot](./docs/autopilot.md): limits the engine enforces, autonomy earned from a clean record, a tamper-evident ledger |

## The app

`openleads web` opens it at `http://127.0.0.1:8787`. The same workspace is in the
terminal and in your AI assistant.

<table>
<tr>
<td width="50%"><img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/site/assets/app-today.webp" alt="Today in the OpenLeads app: replies waiting on you, emails to approve with a quality score and an Approve button, tasks due, and an ask box at the bottom." /></td>
<td width="50%"><img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/site/assets/app-analytics.webp" alt="Pipeline analytics: people, emails sent in 30 days, reply rate and bounce rate, each flagged when the sample is too small to judge, a chart of emails and replies per day, and reply rates by seniority." /></td>
</tr>
<tr>
<td><b>Today.</b> Replies waiting on you, emails to approve, tasks due and new signals. Type what you want at the bottom and read the plan before it runs.</td>
<td><b>Analytics.</b> Sends, replies and bounces over time, and who replies by seniority, department, industry and source. Small samples are flagged, not dressed up.</td>
</tr>
<tr>
<td><img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/site/assets/app-connections.webp" alt="Settings, Connections: built-in rules in use, Claude found on this computer with a Use Claude button, ChatGPT, Anthropic, OpenAI, Gemini, OpenRouter and Ollama, and mailboxes for Gmail, Outlook, Zoho or any provider." /></td>
<td><img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/docs/assets/dashboard-deals.png" alt="A deal pipeline board with Qualify, Meeting, Proposal, Negotiation, Won and Lost columns, each with its value, under open pipeline, weighted forecast, won and win rate." /></td>
</tr>
<tr>
<td><b>Connections.</b> Pick a model (your Claude or ChatGPT subscription, an API key, or a free one) and a mailbox. Each is tested before it's saved.</td>
<td><b>Deals.</b> A drag-and-drop pipeline with a weighted forecast. People and companies get Apollo-style filters, lists, ICP fit from A to D, tasks and CSV import.</td>
</tr>
</table>

## Find people, with the evidence

One sentence fans out across the sources that fit it. You never have to pick one, but
`-s name` pins a source.

<img src="https://raw.githubusercontent.com/Samyrrrrrr990/openleads/main/docs/assets/demo.gif" alt="A terminal running openleads find &quot;dentists in Austin&quot;: six practices come back with their emails, each labeled safe or risky and found or guessed. Then openleads signals news shows which companies in the workspace were on Hacker News this week, and a plain-English request is turned into a four-step plan that waits for a yes." width="100%" />

<sub>Search, then signals, then a plan. Real output, recorded with <a href="./launch/demo.tape">launch/demo.tape</a>. The minute the search spends on live sources is cut.</sub>

| Ask for | Searched | Example |
|---|---|---|
| Local businesses, any city | OpenStreetMap | `"accountants in Toronto"` |
| Startup founders, companies hiring | Y Combinator, Hacker News | `"AI startup founders"` |
| Companies by industry | Wikidata, SEC EDGAR | `"fintech companies"` |
| Developers and ML builders | GitHub, Hugging Face | `"rust developers in Berlin"` |
| Researchers | OpenAlex | `"machine learning researchers"` |
| Everyone at one company | the company's own site | `"emails at stripe.com"` |
| US healthcare providers | NPI Registry | `"pediatricians"` |

| Evidence | Meaning | | Tier | What happens |
|---|---|---|---|---|
| **found** | Published on the company's site, in a public commit or security.txt, or confirmed by the mail server | | **safe** | Sent by default |
| **pattern** | Built from an address format already seen at that company | | **risky** | Held for your review unless you opt in |
| **guessed** | The most common format for that name. Nothing confirms it, and the label says so | | **bad** | Dropped: no mail server, disposable, or it bounced |

Companies become named people from their team and about pages. When a search comes
back short, OpenLeads says which source failed and what to try next.
[How the scoring works](./docs/deliverability.md) · [Add a source in one Python file](./docs/sources.md)

## Know who just changed

A list tells you who exists. [Signals](./docs/signals.md) tell you who just changed,
with a link to the page or record that shows it:

```sh
openleads signals hiring        # new roles on their job boards and in HN "Who is hiring"
openleads signals news          # their launches and front-page stories on Hacker News
openleads signals new-sites     # careers.acme.com and friends, from the certificate logs
openleads signals repos         # new public repos at the GitHub org their homepage links
openleads signals stack         # "added Crisp, removed Intercom"
openleads signals digest --send # all of it, posted to Slack or Discord
```

Click **Draft emails** on any signal and the people you've saved there get an email
that opens with it ("Saw Vercel's Show HN for Vercel Board, so I'll keep this short."),
waiting for your approval. Or let a workflow do it the hour it lands: "when a company
starts hiring for sales, write an email and create a task".

## Let an agent send, within limits it can't talk its way around

Agents can find leads, write emails and read replies; almost nobody lets them send,
because the limits live in a prompt. [Autopilot](./docs/autopilot.md) puts them in a
file the engine checks under every send, whoever asked:

```toml
[budget]
emails_per_day = 40

[who]
fit_grade_at_least = "B"

[escalate]
replies_mentioning = ["price", "contract", "legal"]

[autonomy]
earn_after = { sends = 200 }       # first emails wait for you until then
lose_on = { complaints = 1 }
```

Each MCP agent gets only the tools its scope allows (`openleads mcp --as researcher`),
and every send, hold and agent action goes in a hash-chained ledger:
`openleads ledger verify` says "Ledger intact: 1,204 entries." or names the first one
that was changed.

## Use it from Claude Code, Cursor or Codex

OpenLeads is an [MCP server](./docs/mcp.md). Your assistant can find customers from your
website, find and verify leads mid-conversation, read your signals, and work your
lists, tasks and sequences.

**Claude Code plugin**: the server plus four skills Claude reaches for on its own
(find customers, prospect, a morning signals briefing, reviewing drafts) and
`/openleads:customers`:

```text
/plugin marketplace add Samyrrrrrr990/openleads
/plugin install openleads@openleads
```

**Anywhere else**: [Add to Cursor](https://cursor.com/en/install-mcp?name=openleads&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJvcGVubGVhZHMiLCJtY3AiXX0=) ·
[Install in VS Code](https://insiders.vscode.dev/redirect/mcp/install?name=openleads&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22uvx%22%2C%22args%22%3A%5B%22openleads%22%2C%22mcp%22%5D%7D) · `codex mcp add openleads -- uvx openleads mcp` ·
`claude mcp add openleads -- uvx openleads mcp`

> *"Who should I sell to? Our site is shopmonkey.io. Find 10 of them in Austin, save them to a list, and draft a first email to each."*

The one tool that sends, `approve_draft`, only sends a draft already waiting for your
approval. [![OpenLeads MCP server](https://glama.ai/mcp/servers/Samyrrrrrr990/openleads/badges/score.svg)](https://glama.ai/mcp/servers/Samyrrrrrr990/openleads)

## Cold email that respects the people getting it

- **[`outreach.txt`](./docs/outreach-txt.md).** A company can publish one text file
  saying whether it takes cold email, where it should go and what it's shopping for.
  OpenLeads reads it for every company and follows it for every send. There's no
  setting to turn that off.
- **[Glass Box](./docs/glass-box.md).** Every email ends with where the address came
  from, and "erase" really erases: everything goes except a hash, so no search adds
  them back.
- **Guardrails on by default.** Dry runs unless you add `--live`, a suppression list,
  one-click unsubscribe, warm-up caps, no tracking pixels.

<details>
<summary><b>More: workflows, your own model, Python, the Commons, the nightly benchmark</b></summary>

### Automate it

Describe a workflow in a sentence and read it back as steps, or wire it on a canvas:
triggers (schedule, new leads, a reply, a signal), find, verify, filter by tier,
write, wait, send, add to a list or sequence, create tasks, export. Test runs never
send. Sends stay inside your daily cap, warm-up ramp and business hours, and stop for
anyone who replies. [Workflows](./docs/workflows.md) · [Sending and warm-up](./docs/sending.md)

```bash
openleads workflow templates                                  # ready-made workflows
openleads workflow new dentists --from local-business-outreach
openleads workflow run dentists        # a test run: finds and writes, never sends
openleads schedule on                  # launchd, cron or Windows Task Scheduler
```

Running a web agency? **Sites** builds a lead a better website from the right
template, rewrites the words with your Claude subscription, and sends the owner the
link. [Sites](./docs/sites.md)

### Use the model you already pay for

Everything works with no model. `openleads setup ai` finds what this computer has:
your Claude or ChatGPT subscription (through the `claude` or `codex` CLI), an
Anthropic, OpenAI or Gemini key, a free OpenRouter model, or Ollama. Nothing is spent
until you pick one. [Your model](./docs/ai.md)

### Use it from Python

```python
import openleads

leads = openleads.find("gyms in Sydney", count=20)
for lead in leads:
    print(lead.email, lead.evidence, lead.tier)
leads.write("gyms.csv")            # .csv, .json or .jsonl
print(leads.report.summary())      # which sources ran, what failed, why it stopped
```

[Python API](./docs/python-api.md). There's also a GitHub Action:

```yaml
- uses: Samyrrrrrr990/openleads@v5.26.0
  with: { query: "marketing agencies in Miami", count: 50 }
```

### An open dataset, not a private database

Paid finders know `acme.com` uses `first.last@` because they've seen it.
[The Commons](./docs/commons.md) is where installs share that: an open file of
company email formats ([`commons/formats.csv`](./commons/formats.csv)) with no names
and no addresses, growing by pull request.

### Measured against live data every night

Unit tests can't tell you whether "dentists in Austin" returns dentists, so a GitHub
Action runs real searches against the live sources every night and commits what came
back to [BENCHMARK.md](./BENCHMARK.md), empty nights included. Run it with
`openleads bench`.

### How it works

```mermaid
flowchart LR
    Q["'dentists in Austin'"] --> P[Query parser]
    P --> F[Planner<br/>picks the sources]
    F --> S1[OpenStreetMap]
    F --> S2[YC, HN, GitHub, Hugging Face,<br/>OpenAlex, EDGAR, Wikidata, NPI]
    S1 & S2 --> D[People from team pages<br/>+ real-name check]
    D --> E[Email checks<br/>harvest, pattern, MX, SMTP, Gravatar]
    E --> L[Leads with evidence and tier]
    L --> W[Workspace, signals, sequences, exports]
    E <--> DB[(Local SQLite<br/>learned patterns, workspace)]
```

The engine is Python standard library only. A search returns within its time budget
with whatever finished, and every run reports which sources answered, which fell back
and why. [Architecture](./docs/architecture.md)

</details>

<details>
<summary><b>All the everyday commands</b></summary>

```bash
# start
openleads customers yoursite.com                       # who buys from you, then find them
openleads lookalike bestcustomer.com                   # more like one customer, same city
openleads "find 30 rust devs in Berlin and email them"   # see the plan, run it on a yes
openleads today                                        # what needs you
openleads web                                          # the app (--demo: invented data)

# find
openleads find "50 fintech founders, verified only" -o leads.csv
openleads find "accountants in Toronto" --explain     # the plan, each source's status
openleads company stripe.com                           # tech stack, socials, people
openleads enrich my-list.csv                           # your names and companies, emails labeled
openleads verify ada@acme.io

# signals
openleads signals                                      # what changed, with sources
openleads signals draft 12                             # emails about signal 12, for approval

# reach out (a dry run unless you add --live)
openleads write "rust developers in Berlin" --variants 2 --explain
openleads run "rust developers in Berlin"

# the workspace
openleads people --fit A --never-contacted
openleads lists | seq | tasks | deals | import | export

# set up and automate
openleads setup            # mailbox and identity
openleads doctor           # checks DNS, port 25 and your mailbox
openleads workflow | mcp | constitution | ledger
```

`openleads --help` shows the everyday commands; `openleads help all` lists every one.

</details>

## Where it's going

Five things no open-source sales tool does yet. All five have shipped a first version,
and each has an [RFC issue](https://github.com/Samyrrrrrr990/openleads/issues?q=label%3Arfc)
open for argument. The [roadmap](./ROADMAP.md) has the designs and what's next.

1. **`outreach.txt`**: robots.txt for cold email (5.7.0).
2. **Glass Box**: receipts, real erasure and a shared opt-out list that never learns who you checked (5.8.0).
3. **The Commons**: an open dataset of company email formats (5.9.0).
4. **Signals**: the public internet's changelog as free intent data (5.10.0 to 5.23.0).
5. **Autopilot**: a sales department an AI agent can run inside limits it can't argue with (5.11.0 to 5.15.0).

If you want to see these go further, **star or watch the repo**. That's also how other
founders find it. Not ready to install? [Try the live demo](https://samyrrrrrr990.github.io/openleads/demo/)
first.

[![Star history](https://api.star-history.com/svg?repos=Samyrrrrrr990/openleads&type=Date)](https://star-history.com/#Samyrrrrrr990/openleads&Date)

## Install

```bash
pipx install "openleads[all]"     # recommended
pip install openleads             # minimal: the standard-library engine and CLI
npx openleads                     # Node: sets up a private Python environment on first run
```

Python 3.8 or newer on macOS, Linux or Windows. Then `openleads doctor` checks your
setup and `openleads demo` opens the app on invented data.
[Quickstart](./docs/quickstart.md) · [Moving from Apollo](./docs/from-apollo.md)

## Responsible use

OpenLeads is for legitimate prospecting, recruiting and research. You are responsible
for anti-spam law (CAN-SPAM, GDPR, CASL) and each source's terms; it ships the
guardrails to make that easy. [Responsible use](./docs/responsible-use.md)

## License

Open source under [AGPL-3.0](./LICENSE). It's free for non-profits, solo founders and
small teams, and for any company that runs it internally to find leads and send its
own email. You don't need to ask.

If your company wants to keep its changes private, build OpenLeads into a
closed-source product, or offer it to others as a hosted service, email
samyar.shafiee2009@gmail.com about a commercial license. There's no price list; we
work out the terms by email. [Details](./COMMERCIAL-LICENSE.md)

## Contributing

The most useful contribution is a new source ([guide](./docs/sources.md)) or a new
signal; the next is a query that `openleads bench` scores badly, with the fix. See
[CONTRIBUTING.md](./CONTRIBUTING.md). Thanks to everyone who has sent a pull request,
including @xmejl, @harrisonoconnorhover and @Shalinipks, and to
@gabrielaoimevbore-beep, whose PR started the pre-send hook.

## Thanks

[OpenStreetMap](https://www.openstreetmap.org/copyright) contributors,
[OpenAlex](https://openalex.org), [`yc-oss/api`](https://github.com/yc-oss/api),
[Hugging Face](https://huggingface.co), the [NPI Registry](https://npiregistry.cms.hhs.gov/),
SEC EDGAR, Wikidata, Gravatar, Hacker News' Algolia search, SSLMate's Cert Spotter,
and the US Social Security Administration for its given-name data. The app and website
use [Atkinson Hyperlegible](https://www.brailleinstitute.org/freefont/) by the Braille
Institute.

<!-- mcp-name: io.github.Samyrrrrrr990/openleads -->
