AgentSDR
OfficialUses Cloudflare R2 as the storage bucket for call recordings and other attachments that stay on infrastructure you control.
Connects your own Gmail/Google Workspace mailboxes as sending accounts so email sequences are sent from your own inbox, with merge fields, sending windows and daily limits to keep inboxes healthy.
Uses your own Google Workspace accounts to send outreach email from your own mailboxes and to receive lead replies into the shared inbox queue.
Runs WhatsApp message campaigns and dials WhatsApp calls from the workspace, recording them to your own bucket and transcribing them into the lead's record.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Why AgentSDR
Outbound usually means stitching together a lead database, an enrichment tool, an email sequencer, a LinkedIn tool, a dialer and a CRM, each with its own seats, its own copy of your leads and its own idea of who replied. Most of them are thin layers over APIs you could call yourself.
One workspace instead of six tools. One record per person and company, so a reply on LinkedIn shows up in the same queue and pipeline as an email reply.
The AI does the tracking. Every reply, on every channel, is read, classified and given a drafted answer. You approve what goes out.
Work it from a chat. Connect Claude, Claude Code or any MCP client and work the Action required queue from there (AI assistants).
You own it. A single Next.js app and one PostgreSQL database on your own server. Your leads, conversations and recordings never leave infrastructure you control.
Your keys, no seats. Connect your own Google Workspace, Unipile, storage and any AI model on OpenRouter. No per-seat or per-contact fees: you pay your server and your providers.
Related MCP server: pipedriver
Everything in one workspace
Also inside: a lead database with custom fields, CSV and XLSX import with merge fields, Do Not Contact across every channel, organizations with roles, teams and invitations, and per-organization sending rules with safe defaults.
Works with
Service | Powers | Setup guide |
Google Workspace | Sending and reading Gmail, through a service account | Google Workspace (with a 2-minute video) |
LinkedIn and WhatsApp accounts, messaging and calling | ||
Call recordings and contact photos | ||
Every AI feature, on your own key and any model | ||
15 enrichment providers | Tables columns | |
Sign-up, password-reset and invitation email |
Get started
You need a machine with Docker.
mkdir agentsdr && cd agentsdr
curl -O https://raw.githubusercontent.com/Kandid-ai/AgentSDR/main/docker-compose.yml
docker compose up -d # PostgreSQL, the app on :3000 (it creates the schema and runs the scheduled jobs)Open http://localhost:3000: the setup page creates your admin account and organization. Then connect your services in Settings. For a server, replace the # CHANGEME values in docker-compose.yml (or a .env beside it) first; openssl rand -hex 32 makes a secret.
The Docker Compose guide walks through every setting and every service. There are also guides for running from source, deploying on a VPS with Dokploy and going to production.
You need Bun 1.2+ and PostgreSQL 16+.
git clone https://github.com/Kandid-ai/AgentSDR.git && cd AgentSDR
bun install
createdb agentsdr
cp .env.example .env.local # set DATABASE_URL, BETTER_AUTH_SECRET, INTEGRATION_CREDENTIALS_KEY
bun run db:setup # create the schema in the empty database
bun run db:seed:demo # optional: a fictional demo organization
bun run dev # http://localhost:3000With the demo seed, sign in as demo@example.com / demo-password-123.
Environment variables cover only what the app needs before it can read its database. Everything else is per organization, in the app.
Variable | Required | Purpose |
| yes | PostgreSQL 16+ connection string |
| yes | Signs sessions |
| yes | Public URL, read at runtime |
| yes | Encrypts integration credentials (AES-256-GCM) |
| for email | Signs unsubscribe links |
| no | Only to call the job endpoints from an external cron |
| in production | Auth email through Resend |
| no |
|
| no | "Continue with Google" |
| no | Connection pool size (default 8) |
Every variable, with how to generate it and where it is read: Configuration reference.
How it works
flowchart LR
A["Leads<br/>import or build a list"] --> B["Tables<br/>enrich with 15 providers and AI"]
B --> C{"Reach out"}
C --> D["Email<br/>your mailboxes"]
C --> E["LinkedIn<br/>invites and messages"]
C --> F["WhatsApp<br/>messages and calls"]
D --> G["Every reply<br/>one queue"]
E --> G
F --> G
G --> H["AI CRM<br/>classify and draft"]
H --> I["You approve<br/>one click"]
H --> J["Pipeline and analytics"]One Next.js app and one PostgreSQL database: pages, API routes and background workers run in a single process, with no queue server or Redis. Every request, job and webhook runs inside one organization's scope, and code that forgets fails closed. Integration credentials are encrypted per organization and verified with a live call before they are saved. More in How it works and the architecture guide.
flowchart TB
subgraph You["Your infrastructure"]
App["AgentSDR (Next.js)<br/>pages, API, in-process workers and scheduled jobs"]
DB[("PostgreSQL 16+")]
Ext["Call Recorder<br/>Chrome extension"]
end
App <--> DB
Ext -- "recordings" --> App
App <--> Unipile["Unipile<br/>LinkedIn, WhatsApp"]
App <--> Gmail["Google Workspace<br/>Gmail"]
App <--> R2["Cloudflare R2<br/>recordings"]
App <--> OR["OpenRouter<br/>AI models"]
App <--> Enr["Enrichment providers"]
Unipile -- "webhooks" --> App
Gmail -- "Pub/Sub push" --> Appsrc/app/ Pages (App Router) and API routes
src/lib/<domain>/ Business logic, schema and queries per domain
src/components/ React components, one folder per domain
src/jobs, src/functions LinkedIn sending engine (run by the in-app scheduled jobs)
src/services/ Unipile API clients
db/ schema.sql (generated snapshot) and seed.sql
scripts/ Migration history, audits, database tooling, e2e checks
extensions/whatsapp-recorder/ Chrome extension that dials and records WhatsApp calls
docker/, docker-compose.yml Self-hosting
docs/ Documentation (published at docs.agentsdr.ai)Command | What it does |
| Start the app at http://localhost:3000 |
| 600+ unit tests |
| Must pass before every commit |
| Create the schema / a fictional demo organization |
| Audit that every table is organization-scoped |
CI runs typecheck, lint, tests, a secret scan, the production build, the extension build and a fresh install on PostgreSQL 16, 17 and 18. See the development guide.
Built with Next.js 16 and React 19, TypeScript, Drizzle ORM, Better Auth, Tailwind CSS with AlignUI, and Bun.
Security and privacy
Your data stays with you. Leads, conversations and analytics live in your PostgreSQL; call recordings in your own R2 bucket, reached only through short-lived signed links.
Encrypted credentials. Every saved API key and token is encrypted with AES-256-GCM.
Tenant isolation, tested. An end-to-end suite signs in as a second organization and proves it can see, change and count nothing of the first.
Humans approve outbound replies. AI drafts wait for a person, and outbound work can be paused instantly.
Report vulnerabilities privately through GitHub security advisories. See SECURITY.md.
Responsible use
AgentSDR contacts people on your behalf, so how it is used is your responsibility. LinkedIn's terms do not allow automation and accounts can be restricted; WhatsApp bans numbers that send unsolicited bulk messages; cold email is regulated by laws such as CAN-SPAM, GDPR and CASL; and many places require consent before a call is recorded. Sending limits, unsubscribe links and Do Not Contact reduce the risk but do not make any use compliant. Read Responsible use before you start.
How it compares
AgentSDR replaces several tools at once, so the honest comparison depends on which one you are leaving. Each page below states only what the other product says about itself on its own site.
Cold email: Instantly, Smartlead, lemlist, and the best cold email software compared
LinkedIn: HeyReach, Expandi, Waalaxy, and the best LinkedIn automation tools
AI SDRs: 11x, Artisan, and the best AI SDR tools
CRMs: Salesforce, HubSpot, Twenty, and the best open-source CRMs
More on the website: the open-source CRM, the AI CRM, the AI calling agent that phones leads over WhatsApp, the WhatsApp CRM, all comparisons and the guides.
FAQ
Yes. It is open source and you host it yourself, so there are no seats, tiers or per-contact fees. You pay for your server, the accounts you connect (Google Workspace, Unipile) and your own AI usage. It is MIT-licensed, so you can also use, change and build on it commercially.
Google Workspace mailboxes, connected once through a service account with domain-wide delegation. Each mailbox has its own daily limit (30 by default), sending hours and signature. Microsoft 365 is not supported yet.
No tool can promise that, but AgentSDR stays well inside LinkedIn's limits: 30 invitations a day on premium accounts and 5 on free, a random 30 to 60 second gap between invitations, optional working hours per account, and an account that hits LinkedIn's own limit pauses for the day.
You link your number through Unipile and install the AgentSDR Call Recorder Chrome extension. When you call a lead from AgentSDR, the extension dials inside WhatsApp Web and records both sides; the recording goes to your storage bucket and your chosen model transcribes it. It relies on WhatsApp Web's English interface.
Any model on OpenRouter, with your own key. Each call is pinned to the provider you picked, with fallbacks turned off, so your data only goes where you chose.
Not by default. Drafts, including follow-up sequence steps, wait in Action required until someone sends them, as written or edited. A sequence can be set to send its follow-ups automatically, and separately its first reply after a 15-minute hold; both are off by default and stay inside each account's sending hours and gaps. The AI can move a lead forward in the pipeline when it is confident; anything else is held for a person.
Yes. Invite teammates from Settings → Members with the owner, admin or member role. One deployment can also hold several organizations, each fully separate.
Community and support
Where | Best for |
Setup guides, every feature, troubleshooting | |
Guides and comparisons with other sales tools | |
Questions, ideas, and showing what you built | |
Bugs and feature requests (in the app: Help → Report a bug) | |
Vulnerabilities, reported privately |
Contributing
Contributions are welcome: bug reports, fixes, enrichment providers, docs. Start with CONTRIBUTING.md for the development setup, the checks a pull request must pass and the commit conventions; issues labelled good first issue are a good way in. Also see the Code of Conduct, how the project is run and what changed.
License
AgentSDR is open source under the MIT License:
You may use, copy, modify, self-host, distribute and sell AgentSDR, including in commercial products and as a hosted service.
You don't have to publish your changes, though contributions back are always welcome.
Keep the copyright and license notice in copies you distribute.
The LICENSE file is the binding text.
The sign-in page photograph is by Marek Piwnicki on Unsplash.
Built on Next.js, Drizzle, Better Auth, AlignUI and Remix Icon.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Sales MCP server for AI agents: find, enrich, score and reach leads on LinkedIn, track replies.
API-first CRM for LLMs - contacts, companies, deals and activities over a native MCP server.
LinkedIn outreach MCP server — 19 tools for AI agents to prospect, sequence, and manage contacts.
A CRM you talk to: leads, deals and a pipeline board inside ChatGPT, Grok and other MCP clients.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server for qualifying and responding to inbound leads in seconds using a multi-agent AI pipeline.1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Pipedrive API v2, enabling management of deals, persons, organizations, products, activities, and pipelines through natural language in MCP clients like Cursor and Claude Desktop.14 npm2MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that turns an AI lead management system into a conversational tool any MCP-compatible AI client can control directly, with tools, resources, and prompts for lead classification, tracking, and weekly reviews.1MIT
- AlicenseAqualityDmaintenanceMCP server that connects to a sales CRM database, enabling AI agents to search prospects, view pipeline status, manage follow-ups, and update records using natural language commands.5MIT