█

AI/TLDR

Buy me a coffee
Buy me a coffee

DeskcommCRM

A self-hosted CRM whose AI agents answer, qualify and sell to customers on WhatsApp, and hand off to a human when they should

Assistants & ChatbotsOpen source
Language
TypeScript
License
MIT
IN SHORT

What is DeskcommCRM?

DeskcommCRM describes itself as an open-source AI sales operating system for businesses that sell over WhatsApp. It sits in the Assistants & Chatbots category of the Agents & Automation tools and is open-source, written in TypeScript and licensed MIT. To get started: connect to your server.

Overview

DeskcommCRM describes itself as an open-source AI sales operating system for businesses that sell over WhatsApp. It combines a shared inbox, a kanban sales pipeline and contact management with AI agents that answer customers, qualify leads, move deals between pipeline stages, trigger automations and hand the conversation to a person when a human decision is needed. The project positions itself as an open alternative to Kommo, Octadesk and Intercom, and it is built for self-hosting: the data stays on your own server and database, and the project states there is no paid tier and no gated features.

DeskcommCRM inbox with the conversation list, a WhatsApp thread with text and audio messages, and the contact panel
The inbox: conversations on the left, the WhatsApp thread in the middle, contact, tags and leads on the rightDeskcommCRM repository ↗

It started as a CRM for e-commerce (with a native Nuvemshop integration) and, according to the README, is used by clinics, real-estate agencies, info-product businesses, agencies, stores and service providers. Pipeline vocabulary is configurable per pipeline, so a lead can become a Customer, Patient or Buyer and "won" can read Paid, Booked or Closed. WhatsApp is connected either by QR code through WAHA (multiple numbers, with throttling, jitter and time windows to reduce ban risk) or through Meta's official Cloud API with approved templates.

Under the hood it is a Next.js and strict TypeScript app on Supabase (Postgres with row-level security and pgvector for retrieval, plus Auth, Realtime and Storage), with the Vercel AI SDK talking to OpenRouter, Anthropic or OpenAI — chosen at install time and switchable per part of the system later. It is multi-tenant, with an RLS isolation test run as a CI gate, an append-only audit log and privacy tooling aimed at Brazil's LGPD. The CRM is also exposed through an internal MCP server so agents can operate it. Most of the project's documentation is written in Brazilian Portuguese, with English and Spanish versions of the README.

What it does

  • AI agents that operate the CRM: per-tenant RAG over your knowledge, skills the agent runs by itself mid-conversation, operational memory, sentiment analysis and per-organization spending caps
The Cases screen in DeskcommCRM listing an open case waiting for a human reply
Cases: where the AI parks what only a human can resolveDeskcommCRM repository ↗
  • Audited AI-to-human handoff: when the agent is stuck on something only a person can resolve it opens a case and keeps talking to the customer while it waits
  • Follow-ups that revive cold conversations with adaptive timing and per-stage triggers, plus a Radar of open conversations at risk of going unanswered
  • Self-improvement loop: resolved conversations become new knowledge, an AI Evolution screen shows where the agent fails, and the AI proposes improvements that a human must approve
  • WhatsApp two ways — QR code via WAHA with anti-ban controls, or Meta's official Cloud API with templates kept in sync
  • Webhook capture sources and WHEN/IF/THEN automations that tag and move leads, assign agents, send WhatsApp messages or call external systems
  • Support governance: server-side role-based access, round-robin queues, automatic intent routing and per-role visibility scopes

Getting started

The main path is a one-command install on a VPS with Docker (4 GB of RAM recommended), a domain whose A record points at the server, a free Supabase project and an OpenRouter, Anthropic or OpenAI key. The app image is prebuilt, so there is no Node or pnpm to install on the server.

Connect to your server

Open a terminal on your computer and SSH into the VPS with the IP (and port, if your host gave one) from your hosting provider. No server yet? The project's helper script, run on your own machine, recommends a plan and prints the exact install command for your case — it installs nothing without confirmation.

bashbash
ssh -p PORT root@YOUR_IP

# optional, on your own computer, before you have a server:
curl -fsSL https://raw.githubusercontent.com/melgarafael/DeskcommCRM/main/hostgator-setup-kit/comecar.sh | bash

Run the installer

The installer asks only for your domain, keys and admin password, validates each answer, generates the technical secrets, applies the database schema, creates the first admin, brings the stack up with automatic HTTPS and installs the automations cron and the update agent. It is idempotent, so re-running it is safe. Export SUPABASE_ACCESS_TOKEN first and it creates the Supabase project for you; for a non-interactive run, fill in a .env from .env.hostgator.example and add --yes.

bashbash
git clone https://github.com/melgarafael/DeskcommCRM.git
cd DeskcommCRM
bash hostgator-setup-kit/install.sh

Sign in and connect WhatsApp

Open https://<your-domain>, sign in as the admin you created and, during onboarding, scan the QR code with your business WhatsApp number (or use Meta's official channel). Two-step verification is optional and lives under Settings › Security.

DeskcommCRM Connections screen with tabs for QR-code numbers and Meta's official API and a button to connect a new WhatsApp number
Connections: link a number by QR code or through Meta's official APIDeskcommCRM repository ↗

Update from the screen or the terminal

When a new release exists, the sidebar offers an update that backs up the database, applies the new version and rolls back on its own if the new image comes up broken. From the terminal, update.sh does the same and only ever lands on a tagged release, never an untested commit; backup.sh, restore.sh and healthcheck.sh cover the rest. Supabase's free plan does not back up on its own, so schedule backup.sh daily.

bashbash
cd /path/to/DeskcommCRM
bash hostgator-setup-kit/update.sh

Hacking on the code (contributors only)

For local development the README applies the schema from supabase/baseline.sql rather than the migrations, then starts the Next.js dev server on http://localhost:3000. docs/SETUP.md walks through every integration.

bashbash
git clone https://github.com/melgarafael/DeskcommCRM.git
cd DeskcommCRM
nvm use
npm install -g pnpm && pnpm install
cp .env.example .env.local
docker compose up -d
supabase link --project-ref <your-ref>
psql "$SUPABASE_DB_URL" -v ON_ERROR_STOP=1 -f supabase/baseline.sql
pnpm dev

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • A clinic, real-estate agency or online store that sells over WhatsApp and wants an AI agent to answer and qualify leads around the clock, with staff taking over from the same inbox
  • Replacing a hosted WhatsApp CRM subscription with a self-hosted one where customer conversations and data stay on your own server and database
  • Capturing leads from landing pages, forms, Zapier or n8n into a pipeline stage and running WHEN/IF/THEN rules that tag, assign and message them automatically
  • Agencies installing a rebranded instance per client, following the project's white-label guide

How DeskcommCRM compares

DeskcommCRM alongside other open-source assistants & chatbots tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
OpenClaw★ 395kOpenClaw is a self-hosted personal AI assistant that answers you on WhatsApp, Telegram, Slack, Discord, and many other channels, with voice and a live visual canvas.
Hermes Agent★ 267kA self-improving personal AI agent from Nous Research that builds skills from experience, remembers across sessions, and reaches you on Telegram, Discord, Slack, and more.
Odysseus★ 96.1kA self-hosted AI workspace that puts chat, agents, deep research, documents, email, notes, tasks and calendar behind one Docker Compose stack, over local or API models.
CowAgent★ 48.2kA self-hosted assistant that plans and executes tasks with built-in file, terminal, browser and search tools, and answers across a web console plus a dozen messaging platforms.
AstrBot★ 47.8kAn all-in-one agent chatbot platform that puts LLM conversations, tools, knowledge bases and a plugin marketplace inside messaging apps like Telegram, Slack, Discord, QQ and Feishu.
OpenHuman★ 43kA local-first desktop personal AI for macOS, Windows and Linux that keeps a compressed memory tree on your machine and orchestrates checkpointed research and automation workflows.
MindsHub★ 39.9kAn agent workspace for knowledge work and software development that runs swappable open-source agent harnesses against your choice of frontier or open models.
DeskcommCRM★ 5.6kA self-hosted CRM whose AI agents answer, qualify and sell to customers on WhatsApp, and hand off to a human when they should