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) Try the live demo in your browser   Claude Code plugin   Add OpenLeads to Cursor [**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) 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. Real output, recorded with launch/customers.tape. The wait on live sources is cut.
## 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 customers-of competitor.com # the customers they name: logos, case studies 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) Point it at a competitor instead and it lists the customers they name on their own site: the logo wall, the case studies, the testimonials. Each one says where it was found, and a website only when the page links to it or that site's own title says the name. `openleads customers-of linear.app` finds 23, with 22 websites, in a few seconds. [Who a competitor names](./docs/customers.md#who-a-competitor-names-as-customers) A terminal running openleads customers-of linear.app: a table of the customers Linear names on its own site, such as OpenAI, Vercel, Figma, Ramp and Boom, each with its website and the case study or logo it came from. 23 named, 22 with a website. Real output, recorded with launch/customers-of.tape. 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
**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. **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.
**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. **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.
## 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.
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. 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.
Today. 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. Analytics. Sends, replies and bounces over time, and who replies by seniority, department, industry and source. Small samples are flagged, not dressed up.
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. 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.
Connections. 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. Deals. 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.
## 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. A terminal running openleads find "dentists in Austin": 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. Search, then signals, then a plan. Real output, recorded with launch/demo.tape. The minute the search spends on live sources is cut. | 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), `/openleads:customers` and `/openleads:lookalike`. In Claude Desktop, Cursor and VS Code the server's [prompts](./docs/mcp.md#prompts) give you the same in one click: ```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.
More: workflows, your own model, Python, the Commons, the nightly benchmark ### 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.28.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
picks the sources] F --> S1[OpenStreetMap] F --> S2[YC, HN, GitHub, Hugging Face,
OpenAlex, EDGAR, Wikidata, NPI] S1 & S2 --> D[People from team pages
+ real-name check] D --> E[Email checks
harvest, pattern, MX, SMTP, Gravatar] E --> L[Leads with evidence and tier] L --> W[Workspace, signals, sequences, exports] E <--> DB[(Local SQLite
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)
All the everyday commands ```bash # start openleads customers yoursite.com # who buys from you, then find them openleads lookalike bestcustomer.com # more like one customer, same city openleads customers-of competitor.com # the customers a company names, with sources 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.
## 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.