Skip to main content Switch to mobile version openleads 5.22.0 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.
pip install openleads==5.22.0 Copy PIP instructions
Describe a customer. Get the people, with every email labeled by how we know it.
OpenLeads searches free public sources for the businesses and people you describe, finds their work emails, and marks each one found, pattern or guessed. Then it works them like Apollo does: lists, ICP scoring, sequences, tasks and a deal pipeline. It runs on your machine, with no API keys and nothing to pay.
Website | Docs | Live benchmark | Roadmap | Changelog
New: Signals tell you who just changed (new roles, a new tool on their site, a place new on the map) and can start a workflow. Autopilot lets an AI agent send inside a constitution it can't talk its way past, with autonomy it earns and a ledger that proves what it did.
pipx install "openleads[all]" # or: pip install "openleads[all]", or: npx openleads openleads "find 30 rust devs in Berlin and email them about our hiring tool" openleads today # replies, emails to approve, tasks due openleads find "dentists in Austin" # ten leads, every email labeled openleads web # the app at http://127.0.0.1:8787 Say what you want and OpenLeads shows the plan before anything runs:
$ openleads "email 5 fintech founders about our tool" Plan 1. Find 5 fintech founders, deliverable emails only 2. Write an email to each about our tool 3. Queue them for you to approve in openleads today (nothing sends yet) Run it? [Y/n] Emails wait for your yes in Today unless you add --live.
The app (openleads web) on the demo workspace (openleads demo, invented data): the plan comes first, and nothing runs until you say so.
One tool instead of five subscriptions
No account, no API keys and no telemetry. Your leads stay in a SQLite file in ~/.openleads.
Every email says how we know it
Most free finders call a first.last@ guess "valid". OpenLeads labels each address with where it came from, then decides separately whether it is safe to send:
Seven checks decide the tier, and most of them work without port 25, which home internet providers block: two DNS-over-HTTPS resolvers that must agree on the mail server, SPF and DMARC, disposable/role/free-mail lists, Gravatar, published addresses, learned company patterns, and SMTP with catch-all detection when port 25 is open. How the scoring works.
Companies can say no, and it listens
A company can publish an outreach.txt: one text file that says whether it takes cold email, where cold email should go, and what it's shopping for. OpenLeads reads it for every company it finds and follows it for every email it sends. There's no setting to turn that off.
# acme.com/.well-known/outreach.txt Policy: ask-first Contact: mailto:vendors@acme.com Wanted: payroll software Unwanted: SEO Email to jane@acme.com is held and the panel offers vendors@acme.com instead. If your pitch is payroll software, Acme ranks higher and the draft may say they're looking. Write one for your company or check one with openleads outreach-txt check acme.com.
Measured against live data every night
Unit tests can't tell you whether "dentists in Austin" returns dentists, so a GitHub Action runs the same real searches against the live sources every night, asks for ten leads each, and commits what came back to BENCHMARK.md, empty nights included. Run it yourself with openleads bench.
An open dataset, not a private database
Paid finders know acme.com uses first.last@ because they've seen it. So does OpenLeads, and the Commons is where installs share it: an open file of company email formats in this repository (commons/formats.csv). A row is a domain, a format and a count. No names, no addresses, never a free-mail domain, and never a format seen for fewer than three different people. It starts small and grows by pull request (openleads commons export shows what you could add). Searches refresh it once a week, and when OpenLeads has seen nobody at a company it builds the address from the Commons format instead of guessing.
Who just changed, with the evidence
A list tells you who exists. Signals tell you who just changed: a company in your workspace added or removed a tool on its website ("added Crisp, removed Intercom"), posted new roles on its job board ("hiring for sales: Account Executive, SDR"), or a business was newly added to the map in your city. Each one links to the page or record it came from, shows up on Today, and is free to check.
openleads signals openings "dentists in Austin" # places new on the map this week openleads signals stack # your companies' websites, re-checked openleads signals hiring # new roles on their job boards A workflow can act on one the hour it lands. Describe it in the workflow editor, "when a company starts hiring for sales, write an email and create a task", and each draft opens with what happened: "Saw Acme is hiring for an Account Executive, so I'll keep this short." Drafts wait for your approval on Today.
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 puts them in a constitution.toml that the engine checks under every send, whoever asked: a daily budget, who a first email may go to, phrases that hold an email, and reply words that hand a conversation back to you. Autonomy is earned: first emails from schedules, workflows and sequences wait for your approval until 200 clean sends (by default), and one complaint puts them back. Each agent gets only the tools its scope allows (openleads mcp --as researcher). Every send, hold and agent action goes in a hash-chained ledger, so nothing in it can be edited or removed without openleads ledger verify saying where.
openleads constitution init # a starter file to edit openleads ledger verify # "Ledger intact: 1,204 entries." Every email says how you found them
Every cold email ends with where the address came from and why the person is getting it, with "stop" and "erase" one reply away:
-- Why you're getting this: you're VP of Finance at Acme, and your address is published on acme.com/team. Reply "stop" and I won't write again, or "erase" and I'll delete everything I have about you. "Erase" removes them from every table and keeps only a hash, so no search adds them back. "Where did you get my email?" gets their receipt as a ready answer (openleads receipt jane@acme.com --reply). Teams can share one opt-out list that's checked by hash prefix, so it never learns who you were about to email (openleads optout publish). How Glass Box works.
One sentence fans out across the sources that fit it. You never have to pick one, but -s name pins a source.
Companies are turned into named people from their team and about pages. When a search comes back short, OpenLeads says which source failed or ran out of time and what to try next. Need a source we don't have? A source is one Python file.
Everything you find lands in a local workspace: the same data in the dashboard, the terminal and your AI assistant.
openleads people --fit A --never-contacted # best untouched leads openleads lists add "Q4 dentists" --where dental openleads seq enroll "Q4 outbound" --list "Q4 dentists" openleads tasks --bucket today openleads import apollo-export.csv --list "Imported" Workspace guide | Sequences guide | Moving from Apollo
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
Use it from Claude, Cursor or Claude Code
OpenLeads is an MCP server. Your assistant can find and verify leads mid-conversation, and work your lists, tasks and sequences:
claude mcp add openleads -- openleads mcp { "mcpServers": { "openleads": { "command": "openleads", "args": ["mcp"] } } } "Find 10 law firms in London with emails we can actually send to, save them to a list called London law, and give me a call task for each partner."
The assistant can search and edit your workspace and run your morning from Today. The one tool that sends, approve_draft, only sends a draft already waiting for your approval.
On Glama you can browse the server's tools, see its quality score, and try it in the MCP Inspector before installing anything.
Use the model you already pay for
Everything works with no model. Connect one and it reads your requests, writes the drafts and sorts your replies:
openleads setup ai It 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, and the model never decides on its own that something goes out. Your model
Describe a workflow in a sentence and read it back as steps, or wire it on a canvas: triggers (schedule, new leads, a reply), find, verify, filter and split by tier, write email, wait, send, add to a list or sequence, create tasks, and export. Test runs never send; every run shows what each step did. Sends stay inside your daily cap, warm-up ramp and business hours, and stop for anyone who replies. Warm-up sends to seed inboxes, checks inbox placement and holds the ramp when health slips. Sending and warm-up
Running a web agency? Pick a lead in Sites and it builds them a better website: the right template, their name, phone and city, and the words written for them by your Claude subscription. Ask for changes in plain words, preview it, and send the owner the link. Sites
openleads workflow templates # 7 ready-made workflows openleads workflow new dentists --from local-business-outreach # arrives paused openleads workflow run dentists # a test run: finds and writes, never sends openleads recipe add miami "marketing agencies in Miami" --every "weekdays 9am" --send openleads watch add new-dentists "dentists in Austin" # tell me only about new matches openleads schedule on # one agent: launchd, cron or Windows Task Scheduler openleads runs # what ran, what it found, what failed Workflows | Writing emails | Timed runs. Exports go to CSV, Google Sheets, Notion, Airtable, HubSpot or any webhook. There is also a GitHub Action:
- uses: Samyrrrrrr990/openleads@v5.22.0 with: { query: "marketing agencies in Miami", count: 50 } Where it's going
Five things no open-source tool does yet, in the order we plan to build them. The roadmap has the design for each, and every one has an RFC issue open for argument.
outreach.txt (shipped in 5.7.0). A file at /.well-known/outreach.txt where a company says how it wants to be contacted and what it's shopping for. OpenLeads honors it by default.
Glass Box (shipped in 5.8.0). Every email says how the address was found, "erase" means erase, and a shared opt-out list that never learns who you checked.
The Commons (first half shipped in 5.9.0). An open dataset of company email formats with no names or addresses, checked in CI and refreshed weekly. Next: anonymous contributions, and real cold-email outcomes with differential privacy.
Signals (stack changes and new places in 5.10.0, hiring in 5.12.0, workflow triggers in 5.13.0, Hacker News hiring posts in 5.16.0, one-click drafts in 5.17.0, new sites from certificate logs in 5.18.0, new GitHub repos in 5.19.0, Hacker News launches in 5.22.0). The public internet's changelog as free intent data; filings next.
Autopilot with a constitution (shipped in 5.11.0, earned autonomy in 5.14.0, agent scopes in 5.15.0). A sales department an AI agent can run, inside limits the engine enforces and a tamper-evident ledger proves.
If you want to see these land, star or watch the repo. That's also how other people find it.
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 openleads doctor # checks your setup: DNS, port 25, mailbox openleads demo # the dashboard on an invented workspace openleads # chat: type what you want Python 3.8 or newer on macOS, Linux or Windows. Full walkthrough: quickstart.
# start 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 dashboard (--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, hints openleads company stripe.com # tech stack, socials, phones, people openleads enrich my-list.csv # your names and companies, emails labeled openleads verify ada@acme.io # reach out (a dry run unless you add --live) openleads write "rust developers in Berlin" --variants 2 --explain # drafts, scored, with the brief openleads run "rust developers in Berlin" # the workspace openleads people | companies | lists | seq | tasks | deals openleads import | export | dedupe | stats | backup # set up and automate openleads setup # mailbox and identity (also: setup doctor, setup config) openleads workflow | mcp openleads --help shows the ten everyday commands; openleads help all lists every command. Older ones (recipe, watch, drip, crm, campaign...) all still work.
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, sequences, exports] E <--> DB[(Local SQLite
learned patterns, workspace)] The engine is Python standard library only. Requests that fail transiently are retried, a search returns within its time budget with whatever finished, and every run produces a report of which sources answered, which fell back and why. Your leads, drafts, mailbox credentials, learned patterns and the whole workspace live in ~/.openleads. There is no hosted backend, no account and no telemetry. Architecture.
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: dry runs by default, a suppression list, one-click unsubscribe, warmup caps and no tracking pixels. Responsible use.
Open source under AGPL-3.0.
Using OpenLeads at a company?
Go ahead. 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.
Email samyar.shafiee2009@gmail.com if your company wants to keep its changes to OpenLeads private, build it into a closed-source product, or offer it to other people as a hosted service. The AGPL asks you to publish your source in those cases. A commercial license is the other way, and we work out the terms by email. There's no price list. If you host it for others and do publish your source, I'd still like a short note. Details.
The most useful contribution is a new source (guide); the next is a query that openleads bench scores badly, with the fix. See 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.
OpenStreetMap contributors, OpenAlex, yc-oss/api, Hugging Face, the NPI Registry, SEC EDGAR, Wikidata, Gravatar, and the US Social Security Administration for its given-name data. The dashboard and website use Atkinson Hyperlegible by the Braille Institute.
Released: Dec 2, 2026
Author: Samyar Shafiee
GNU Affero General Public License v3 or later (AGPLv3+) (AGPL-3.0-or-later)
chat campaign outreach web dev all
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
Development Status 5 - Production/Stable
Intended Audience Developers
License OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Operating System OS Independent
Programming Language Python :: 3
Topic Communications :: Email
Release files for openleads 5.22.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 3.5 MB
Release files / openleads-5.22.0.tar.gz
Release files / openleads-5.22.0-py3-none-any.whl
Security for openleads 5.22.0
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 2, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Nov 4, 2026 2 release files No provenance
Oct 30, 2026 2 release files No provenance
Oct 15, 2026 2 release files No provenance
Oct 13, 2026 2 release files No provenance
Oct 7, 2026 2 release files No provenance
Jun 13, 2026 2 release files No provenance
Jun 12, 2026 2 release files No provenance
Jun 11, 2026 2 release files No provenance
Jun 9, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 6571ef3











