Skip to content

Latest commit

 

History

History
888 lines (730 loc) · 123 KB

README.en.md

File metadata and controls

888 lines (730 loc) · 123 KB

🇧🇷 Português · 🇺🇸 English · 🇪🇸 Español

Deskcomm CRM

🛠️ DeskcommCRM — The open-source AI Sales OS for WhatsApp

AI agents that answer, qualify and sell on WhatsApp — inside an open-source CRM running on your own server. No subscription, no gated features, your data stays yours. The open alternative to Kommo, Octadesk and Intercom.

Next.js 16 TypeScript Supabase Self-hosted CI License: MIT

Sponsor

All Contributors

⚡ Install · 🔄 Update · 🧭 Vision · 🏗️ Architecture · 🤝 Contributing · 🗺️ Roadmap

DeskcommCRM demo: AI agents, sales pipeline and prospecting

☁️ Run this CRM in production with one command

DeskcommCRM is developed in partnership with HostGator: the hostgator-setup-kit/ installs the full CRM (app + WhatsApp + database) on a VPS with a single command, and the production runbook assumes that environment.

👉 Get the HostGator VPS with the partnership discount — São Paulo datacenter, ideal for WhatsApp running 24/7. (partner link — subscribing through it supports the project and costs you less)

No server yet? Run this on your own computer (macOS, Linux or WSL). It tells you which plan to buy — with the runbook's real numbers, not a "it depends" — and hands you the exact command for your case:

curl -fsSL https://raw.githubusercontent.com/melgarafael/DeskcommCRM/main/hostgator-setup-kit/comecar.sh | bash

(prefer to read before executing? clone the repo and run bash hostgator-setup-kit/comecar.sh — it installs nothing without your confirmation.)


⚡ Install on your VPS (the main path)

1. Connect to your VPS

Open a Terminal on your computer (PowerShell on Windows; Terminal on macOS or Linux) and connect using the IP and port your host emailed you:

ssh -p PORT root@YOUR_IP

Replace PORT and YOUR_IP with yours. If your host never mentioned a port, it's the default (22) and you can omit it: ssh root@YOUR_IP.

It will ask for your password. As you type, nothing appears on screen — not even asterisks. That is not a freeze: the terminal is hiding your password. Type (or paste) it and press Enter.

On the first connection it asks Are you sure you want to continue connecting? — answer yes. That's the server introducing itself for the first time.

2. Run the installer

Once inside the VPS:

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

That's it. You don't install Node, or pnpm, or compile anything — the app image is prebuilt. If Docker is missing, the installer asks and installs it for you.

What you need on hand

Item Where to get it
VPS with Docker HostGator (partnership) — or any VPS with Docker. 4 GB RAM recommended
Domain An A record pointing to your VPS IP (e.g. crm.yourcompany.com)
Database Free account at supabase.com — 3 keys + the Session pooler connection string
AI An OpenRouter, Anthropic or OpenAI key — the installer asks which one you want
WhatsApp Your number, connected via QR code during onboarding (or Meta's official channel)

💡 Supabase can be created by the installer itself. Export a SUPABASE_ACCESS_TOKEN before running and it creates the project, waits for the database to become healthy, fetches all 4 credentials and discovers the pooler host by testing a real connection — no copy-paste.

What the installer does for you

It only asks for what's yours (domain, keys, admin password), validates every answer before moving on — a wrong key is rejected right there, not three steps later — and handles the rest:

  1. Generates every technical secret itself (you invent no passwords).
  2. Creates the Postgres extensions and applies the full schema (supabase/baseline.sql).
  3. Creates the first admin with the email and password you chose.
  4. Brings the whole stack up with automatic HTTPS and checks its health at the end.
  5. Installs the automations cron (without it, WHEN/IF/THEN rules pile up in the queue) and the update agent, which is what makes the "Update now" button exist on screen.

Running it again breaks nothing — install.sh is idempotent: it doesn't duplicate the cron, doesn't recreate the user, and resumes where it stopped.

Non-interactive mode: copy .env.hostgator.example to .env, fill it in and run bash hostgator-setup-kit/install.sh --yes.

Another host? (Hostinger, Coolify, Dokploy, CapRover…)

It works. If your VPS already ships with its own reverse proxy occupying ports 80/443, the installer detects that on its own and publishes the CRM through it, instead of trying to start a Caddy that wouldn't fit. In one specific case — a proxy on --network host, as Hostinger does — it asks instead of guessing, because publishing behind the wrong proxy "successfully" installs a mute website. Details in hostgator-setup-kit/README.md.

First access

Open https://<your-domain> (the padlock takes ~1 min to appear), sign in as the admin, and have Google Authenticator or Authy at hand if you want to turn on two-step verification — it is optional and lives in Settings › Security; the first login does not require it. During onboarding, scan the QR code with your WhatsApp number.

Didn't set a password? Find the initial password under OWNER_PASSWORD in the .env file in your CRM folder.

🤖 Rather have an AI install it for you?

The repository ships assistant guides that load on their own in Claude Code, Codex, Cursor, OpenCode or Antigravity: install, set up a client per niche, analyze metrics, tune the agent prompt and contribute. To have them in any folder — including before cloning, on your own machine — run once:

curl -fsSL https://raw.githubusercontent.com/melgarafael/DeskcommCRM/main/scripts/instalar-guias.sh | bash

Then open a new session of your assistant and say "I want to install the CRM on my VPS": asking for the subject in Portuguese triggers the right guide in any of the five. To call a guide by name, each one has its own way — /deskcomm-instalar in Claude Code, Cursor and Antigravity; $deskcomm-instalar in Codex; in OpenCode, ask for it by name, in natural language.

The guides do not update themselves: running the same command again brings the new version. To undo:

curl -fsSL https://raw.githubusercontent.com/melgarafael/DeskcommCRM/main/scripts/instalar-guias.sh | bash -s -- --remover

With the repository already cloned, the guides come inside it (.agents/skills/) and none of that is needed. If you ran the command anyway, know that in Claude Code the installed guide wins over the one in the clone — and stays on the version of the day you ran it, until you run it again (or undo). The old way still works too: drop just the hostgator-setup-kit/ folder into the Claude Code chat inside the VPS — it reads the kit's CLAUDE.md and walks you through everything, in Portuguese.


🔄 Updating

New version out? There are two paths, and the first one needs no terminal.

From the screen (recommended)

When a new version exists, the sidebar footer lights up "Nova versão" — only for the server owner, because alerting someone who can't update is noise. Click it and you land on Settings → Update, which shows what changed, takes a database backup by itself and follows every phase (backup → code → database → live) to the end. No SSH.

If the new version comes up broken, the agent rolls back to the previous image on its own and records that rollback in .env — without it, the next restart would silently bring the broken app back.

Under the hood: the app only records the request; the executor is the agent install.sh left on your VPS, on a cron that checks every 5 minutes — so the update starts within 5 minutes of the click. If that agent is down, the screen says "Atualização automática indisponível" and shows the command below — it never pretends it worked.

From the terminal

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

In order, the command: (1) checks whether there really is a new version — if not, it exits immediately; (2) backs up the database before touching anything; (3) pulls the new code; (4) updates the database by re-applying baseline.sql, which is idempotent and self-healing (it repairs data left inconsistent by older versions); (5) pulls the new app image; (6) checks health at the end.

The target is the latest published release (v1.2.3), not the tip of main — updating always lands on a tagged version described in CHANGELOG.md, never on an untested commit. It refuses to go back to a version older than the installed one (that would turn off things you already have); --force exists for that, deliberately.

Normal things you will see: a pile of already exists / multiple primary keys during the database step — expected and harmless, those are things that already existed. The script filters that noise and prints ✓ banco atualizado. If the database is busy with the CRM serving customers, it applies again on its own (up to 3 passes) and says so — this holds from the update after the one that installs this fix. If you see ⚠ Apareceram avisos no banco que NÃO são os esperados, that one is worth keeping: the end of the output tells you what to do in each case (repeat with --force when the database was busy, declare SUPABASE_DB_ADMIN_URL when it was permissions).

Something went wrong? Keep the message and ask for help. restore.sh does not put the backup back over the database in use: it only restores into an empty database (see hostgator-setup-kit/README.md). Just want a diagnosis? bash hostgator-setup-kit/healthcheck.sh.

⚠️ On an older install that doesn't have the screen agent yet, run update.sh twice: the first run is still the old script (which downloads the new one); the second installs the agent and turns the button on.

Other kit commands

Script What it does
install.sh Installs everything (idempotent — safe to re-run)
update.sh Updates to a new version, with automatic backup
backup.sh Backs up the database + WhatsApp sessions
restore.sh Restores a backup
reset-password.sh Resets a user's password
reset-mfa.sh Removes MFA for someone who lost their phone
healthcheck.sh Diagnoses every service at once

Backups matter: Supabase's free plan does not back up on its own. Schedule backup.sh daily via cron. update.sh already takes one before every update.

🧹 Uninstall (take this application out of Docker)

To stop and delete only the Docker resources of this installation, from the repository root:

bash desinstalar_docker.sh

It finds the project through the label Docker Compose writes and removes only the containers, volumes and internal networks of this project. Other applications on the same server, images, build cache, the reverse proxy's external network, the code, the .env, the backups and an external Supabase are left untouched.

The interactive mode shows how many resources it found and requires the confirmation REMOVER-<project-name> before removing anything. For throwing an environment away, bash desinstalar_docker.sh --force skips the question. Use --project-name NAME only when the installation has a custom COMPOSE_PROJECT_NAME that is no longer in the .env.

The volumes go with it — local WhatsApp sessions included. Run backup.sh before if you need to keep them.


✨ What is it

Deskcomm comes from Desk + comm (commerce): your entire sales operation on a single desk, run by people and AI agents working together.

The project was born as an e-commerce CRM — and the open-source community took it much further: today it runs in clinics, real-estate agencies, info-product businesses, agencies, stores and service providers — any business that sells over WhatsApp. The product followed that shift and became a sales operating system: AI agents with per-tenant RAG answer customers, qualify leads, move them through the pipeline, trigger automations and know when to hand off to a human — with the whole CRM exposed via MCP so agents can truly operate it. The full story is in VISION.md.

Why it's different

  • 🤖 AI agents that operate the CRM — per-tenant RAG, skills the agent executes on its own mid-conversation, operational memory, sentiment analysis, audited AI→human handoff, AI as a first-class assignee and per-org spending caps. Not a decorative chatbot: the agent answers, qualifies and moves the funnel.
  • 🔁 Nothing dies in silence — follow-up that revives a cold conversation (with adaptive timing and per-stage triggers), a radar of what's at risk of dying unanswered, and a notice center for what needs a human decision.
  • 🧠 Self-improving agents — resolved conversations become new knowledge; the AI Evolution screen shows whether the agent is improving, where it fails and what's left to teach; Proposals are improvements the AI suggests for itself, applicable as a new version — always human-gated.
  • 🧩 Multi-niche by design — configurable vocabulary per pipeline: a lead becomes a Customer, Patient or Buyer; "won" becomes Paid, Booked or Closed. The same core serves e-commerce (our birthplace, with native Nuvemshop integration), clinics, real estate or info-products.
  • 💬 WhatsApp two ways — via QR code (WAHA, multi-number, with anti-ban: throttle + jitter + time windows) or through Meta's official channel (Cloud API, with approved templates kept in sync). Media via Storage, STOP detection.
  • 🔀 Choose your AI — OpenRouter, Anthropic or OpenAI, decided at install time and switchable later from the screen, per part of the system (whatever talks doesn't have to be whatever indexes).
  • 👥 Support governance — real server-side RBAC, audited assignment/transfer, round-robin queue, automatic intent routing and per-role visibility scopes.
  • 🏢 Multi-tenant + privacy by design (LGPD) — RLS on every tenant-aware table with an isolation test as a CI gate; anonymization preferred over deletion; append-only audit log with 5-year retention.
  • 🖥️ Truly self-hosted — your data on your VPS; install and update with one command (or one click); no paid tier, no gated features.

🔌 Webhooks & Automations

Every tenant can create capture sources: a public endpoint (/api/v1/webhooks/in/<token>) that receives leads from landing pages, custom forms or tools like Zapier/n8n via POST (JSON or application/x-www-form-urlencoded) and drops them straight into the chosen pipeline/stage — no code, no per-tenant custom integration. On top of those sources (and the other CRM events — lead changed stage, got a tag, WhatsApp message arrived), tenants build automations: WHEN/IF/THEN rules that add tags, move leads, assign agents, send WhatsApp messages or notify external systems via outgoing webhooks.

In the UI everything lives under Webhooks in the sidebar (visible only to manager/admin roles). Three tabs: Receive data (create a source, copy the ready-made endpoint/form, fire a test lead, see recent deliveries), Automations (build rules, which are always born paused until reviewed and enabled) and Activity (a timeline of each run, with per-action results and manual retry when an external webhook call fails).

Under the hood, every event becomes a row in event_log — no database trigger ever makes an HTTP call. The /api/v1/cron/event-log-drain route drains the queue every minute. install.sh/update.sh configure that cron automatically — without it, automations get created normally but never run.


🖥️ What you operate (the screens)

Group Screens
Support Inbox (WhatsApp conversations, you and the AI side by side) · Radar (who went cold and is still open) · Quick replies
CRM Kanban (where each deal sits in the funnel) · Contacts · Pipelines (stages, business vocabulary and loss reasons)
AI Agent Agents · Follow-ups · Routers · Providers and Credentials · Knowledge (RAG) · Memory · Skills · Cases · Alerts · Proposals · Runs · Usage & budget
Channels Connections (QR or Meta's official channel, with health, reconnect and templates) · Nuvemshop · Webhooks
Analytics Performance (funnel and per-agent metrics) · AI Evolution · Audit Log
Organization Team · Support distribution · Organization · LGPD · API Tokens · Security (MFA, recovery codes, sessions) · Profile, Notifications, Billing

Every screen has a door in the navigation — CI fails a screen that exists but can only be reached by typing its URL.


🧱 Stack

Layer Choice Why
Frontend Next.js 16 App Router (Turbopack) + React 19 + strict TypeScript 6 Server Components + Route Handlers in one repo
Styling Tailwind + shadcn/ui (new-york, neutral) Customizable without lock-in
DB Supabase (Postgres + RLS + vector) Native multi-tenancy, embeddings for RAG
Auth Supabase Auth via @supabase/ssr SameSite=Strict, HttpOnly cookies
Realtime Supabase Realtime postgres_changes + broadcast
Storage Supabase Storage (signed URLs) Private whatsapp-media bucket
WhatsApp WAHA Plus (NOWEB engine) + Meta Cloud API QR to start fast; official channel to scale
Queues event_log table + workers (cron) A database trigger never makes HTTP calls
Rate limit Upstash Redis (sliding window) Serverless, free tier is enough
AI Vercel AI SDK v7 — OpenRouter, Requesty, Anthropic, OpenAI and Google The installer asks which; switch later from the screen
Validation Zod External input, env, payloads
Observability Sentry (scrubbed in errors, transactions, spans and breadcrumbs) Opt-in telemetry at install time
Hosting Any VPS with Docker (HostGator/SP in the partnership) App + WhatsApp + workers on your own box

Details: ARCHITECTURE.md.


🧑‍💻 Development (only to contribute to the code)

⚠️ If you want to USE the CRM, this is not it — use the VPS installer. This section is for people who will change the code.

git clone https://github.com/melgarafael/DeskcommCRM.git
cd DeskcommCRM

nvm use                     # Node 22
npm install -g pnpm && pnpm install

cp .env.example .env.local  # full guide in docs/SETUP.md

docker compose up -d        # local WAHA (optional in dev without WhatsApp)

# Schema: apply the baseline, NOT the migrations.
# Migrations 0001-0009 and 0013 are `SELECT 1;` stubs — the chain does not build from zero.
# The real schema lives in baseline.sql, the same one install.sh applies on the VPS.
# `supabase db push` "succeeds" and leaves you with an empty database.
supabase link --project-ref <your-ref>

# On a NEW Supabase project, first enable the extensions the schema uses —
# without them the baseline stops at `type public.vector does not exist`.
psql "$SUPABASE_DB_URL" -v ON_ERROR_STOP=1 -c \
  'create extension if not exists vector with schema public;
   create extension if not exists citext with schema public;
   create extension if not exists pg_trgm with schema public;'

psql "$SUPABASE_DB_URL" -v ON_ERROR_STOP=1 -f supabase/baseline.sql

pnpm dev

App: http://localhost:3000 · Health check: http://localhost:3000/api/v1/health

docs/SETUP.md is the complete tutorial for every integration (Supabase, WAHA, AI providers, Upstash, Sentry, Resend, Nuvemshop) — ~60–90 min from zero to a running app. (Docs are in Brazilian Portuguese; translations welcome!)


📁 Structure

DeskcommCRM/
├── app/                    # Next.js App Router
│   ├── (admin)/            # super-admin routes (impersonate, tenants)
│   ├── (public)/           # Login, recovery
│   ├── app/                # Authenticated routes: inbox, radar, kanban, contacts,
│   │                       #   connections, ai/*, integrations, metrics, lgpd,
│   │                       #   audit, team, settings
│   └── api/v1/             # Canonical REST API
├── components/             # React (ui/, inbox/, kanban/, shell/, ...)
├── lib/                    # supabase/, waha/, channels/, ai/, agent-engine/,
│                           #   api/, routing/, navigation/, env.ts
├── workers/                # event_log consumers (AI, RAG, LGPD, media, routines)
├── supabase/migrations/    # Versioned SQL (+ baseline.sql for self-host)
├── tests/{e2e,unit,invariants,shell}/
├── scripts/                # seeds, qa-waves, maintenance
├── docs/                   # PRDs, specs, runbooks, SETUP.md, ATUALIZANDO.md
└── hostgator-setup-kit/    # self-host install and update

🧪 Tests

pnpm typecheck     # tsc --noEmit (strict)
pnpm lint          # eslint next/core-web-vitals
pnpm test:unit     # Vitest (does NOT include tests/invariants/**)
pnpm test:db       # ephemeral Postgres + baseline install/update + invariants
pnpm test:e2e      # Playwright (requires dev server)

These checks are required to merge into main. This list has already said "four" and then "five" — measure, don't trust it:

gh api repos/melgarafael/DeskcommCRM/branches/main/protection \
  --jq '.required_status_checks.contexts|join(", ")'
# on 2026-08-14: verify, build-and-size, invariants, e2e, imagens-ok
Check What it does
verify typecheck + lint + lint:channels + test:unit + test:shell
invariants boots a clean Postgres, applies baseline.sql in install mode (ON_ERROR_STOP=1) and then in update mode (proving idempotency), and runs the invariants for RBAC, assignment, scoping, routing, follow-up, webhooks and automations
build-and-size pnpm build on Node 22
e2e boots a local Supabase, applies baseline.sql and runs through the frontend every Playwright spec except the ones FORA_DO_CI declares
imagens-ok fails when any of the three Docker images (app, worker, scheduler) does not build — it is the artifact the self-hoster installs

Which specs stay out is a question for a command, not for reading — this line used to claim the only one was vps-fresh-onboarding, and since PR #983 it runs in CI:

git show origin/main:.github/workflows/e2e.yml | python3 -c "import sys,re; y=sys.stdin.read(); print(sorted({s for _,c in re.findall(r'(FORA_DO_CI):\s*>-\n((?:[ ]{8,}.*\n)+)',y) for s in re.findall(r'[a-z0-9-]+\.spec\.ts',c)}))"

vps-fresh-onboarding is still the P0 of our visual-QA doctrine, because the fresh install is the product we sell. Having a gate does not replace proving it on screen: a gate proves it did not regress, not that the experience is good.

Among the invariants is the RLS isolation test: it creates 2 organizations, simulates JWT claims through the same auth.uid() / fn_user_org_ids() path production policies use, and proves a user of org A sees zero rows of org B in conversations, messages, contacts and crm_leads. A control case first proves org B's rows actually exist — without it, the test would pass against an empty table.


📚 Documentation

Doc What's in it
hostgator-setup-kit/README.md Self-host installation — the kit, the scripts, hosts with their own proxy
docs/ATUALIZANDO.md How to update your installation, in plain language
VISION.md Vision & positioning — what the project is, what it believes, where it's going
CHANGELOG.md What changed in each version — read your target version's section before updating
docs/SETUP.md Development setup, step by step, for every integration
docs/white-label.en.md Installing for clients — rebranding, one-install-per-client vs shared, reseller operations
docs/runbooks/waha-hostgator.md Production runbook for WAHA (sizing, recovery)
CLAUDE.md Non-negotiable conventions (required reading to contribute)
ARCHITECTURE.md One-page architecture overview
docs/index.md Index of all 157 documents, with a precedence rule
docs/prd/ · docs/specs/ PRDs and technical specs (SQL schema, payloads, MCP, governance)

Most docs are written in Brazilian Portuguese — our primary community. Translation contributions are very welcome.


🤝 Contributing

This project is open source for the community. Every contribution is welcome — from doc typo fixes to new features.

  1. Read CLAUDE.md (~5 min) — non-negotiable conventions (multi-tenancy, RLS, audit, privacy).
  2. Read CONTRIBUTING.en.md — branch flow, commits.
  3. Follow the Code of Conduct.

Short flow:

git checkout -b feat/short-slug
# implement + tests
pnpm typecheck && pnpm lint && pnpm lint:channels && pnpm test:unit && pnpm test:shell && pnpm build
pnpm test:db   # needs Docker — this is the `invariants` job, required to merge
git commit -m "feat(scope): description"

Those two lines are everything you can run on your machine, on purpose: running half of them and discovering the rest as a red surprise after hours of waiting is the worst first experience this repository knows how to deliver.

Two required gates do not fit there and only run in CI: e2e (needs a local Supabase) and imagens-ok (builds the three Docker images). Green on your machine is not green at merge time.

Definition of Done: zero typecheck errors, zero lint errors, relevant tests green, RLS tested if a tenant-aware table is touched, audit log emitted on mutations, versioned migration + an idempotent appendix in baseline.sql if the schema changes (otherwise the change never reaches self-hosters).


🙌 Who builds DeskcommCRM

Thanks to everyone who has contributed code, a well-reported bug, an idea, docs or a translation. To join this list, see how to contribute (emoji key).

Want to support the project another way? Sponsor it on GitHub Sponsors.

Rafael Melgaço
Rafael Melgaço

💻 🚧 🤔
webtecnica
webtecnica

💻 📖 🐛
Paulo Lima Jr
Paulo Lima Jr

💻
Marcelo Pompa
Marcelo Pompa

💻
ordinary being
ordinary being

💻
Jowani Orantes
Jowani Orantes

💻
João Paulo
João Paulo

💻
Ian Couto
Ian Couto

💻
rafaelbatistazz
rafaelbatistazz

💻
423313
423313

💻
vitorlacerdadigital
vitorlacerdadigital

💻
maugarciasa
maugarciasa

💻
ozzure
ozzure

💻
hiro-nikaitou
hiro-nikaitou

💻
Mac Silva
Mac Silva

💻
bossprt
bossprt

💻
Gustavo Rodrigues
Gustavo Rodrigues

💻
Lucas Brito
Lucas Brito

💻
Fabio Kortex
Fabio Kortex

💻
automatikpg-ux
automatikpg-ux

💻
Leandro Nogueira de Souza Bastos
Leandro Nogueira de Souza Bastos

💻
VANDER GUSTAVO ALVES
VANDER GUSTAVO ALVES

💻
Rafael César
Rafael César

💻
SnoopyHuman
SnoopyHuman

💻
Saraiva
Saraiva

💻
Valter
Valter

💻
Mayk Lourenço
Mayk Lourenço

💻
Eric Azevedo
Eric Azevedo

💻
Gervànno
Gervànno

💻
Felipe Oliveira
Felipe Oliveira

💻
flaviosiq
flaviosiq

💻
Bruno Jakowatz
Bruno Jakowatz

💻
fillipe-felix
fillipe-felix

💻
Claude
Claude

💻
sprakashsurya-debug
sprakashsurya-debug

💻
luka1601
luka1601

💻
Samir Hanna Verza
Samir Hanna Verza

💻 🐛
advglauberpires
advglauberpires

💻
Tanderakkkj
Tanderakkkj

💻
vagnerrm122
vagnerrm122

💻
Humberto Moura Neto DEV
Humberto Moura Neto DEV

💻
Ítalo Pablo Ferreira
Ítalo Pablo Ferreira

💻
Wyllams Bione
Wyllams Bione

💻
opp4s
opp4s

💻
nusretbayindir-stack
nusretbayindir-stack

💻
thiagobaltuilhe
thiagobaltuilhe

💻
Fabian Martinelli
Fabian Martinelli

💻
Elevstudio-Dev
Elevstudio-Dev

💻
felipedelvan
felipedelvan

💻
Luan Oliveira Dos Santos
Luan Oliveira Dos Santos

💻
mauriciobera1990-droid
mauriciobera1990-droid

💻
SerusoNakamoto
SerusoNakamoto

💻
josuetoz
josuetoz

💻
Drmachado0
Drmachado0

💻
Roger Campel
Roger Campel

💻
Raphael Martins
Raphael Martins

💻
matheuspedro360
matheuspedro360

💻
Lucas Falqueto Zandonadi
Lucas Falqueto Zandonadi

💻
leonardo marcelo santana da paz
leonardo marcelo santana da paz

💻
João Ferreira
João Ferreira

💻
Claudio Ghirelli Filho
Claudio Ghirelli Filho

💻
xxfabioxx12
xxfabioxx12

💻
Renan Rafaesky
Renan Rafaesky

💻
andersontomazi-ctrl
andersontomazi-ctrl

💻
agencyspeedagend-del
agencyspeedagend-del

💻
vanksestevao
vanksestevao

💻
URNOTKRYSTALXU
URNOTKRYSTALXU

💻
Emre K.
Emre K.

💻
arthurbarreto07
arthurbarreto07

💻
Dilnei
Dilnei

💻
resdasilva
resdasilva

💻
Diego Galvez
Diego Galvez

💻
Vanderson Andrade
Vanderson Andrade

💻
Thibault Jaigu
Thibault Jaigu

💻
Rodrigo Martins
Rodrigo Martins

💻
Giovane Bueno
Giovane Bueno

💻
erikyudi
erikyudi

💻
Daniel Henrique
Daniel Henrique

💻
Clalber Pereira
Clalber Pereira

💻
Allison FABRA Software
Allison FABRA Software

💻
Allison Willian
Allison Willian

💻
Alencaf
Alencaf

💻
Sanderson Palmeira de Oliveira
Sanderson Palmeira de Oliveira

💻
victor-will
victor-will

💻
salomaobatistamkt
salomaobatistamkt

💻
gaberaldo-svg
gaberaldo-svg

💻
vinicoretecnologia-svg
vinicoretecnologia-svg

💻
RafaelBarbosaBR
RafaelBarbosaBR

💻
pedroscharrff
pedroscharrff

💻
Luigi Matheus
Luigi Matheus

💻
tatarevick
tatarevick

💻
Junio de Almeida Vitorino
Junio de Almeida Vitorino

💻
Jonathas Micael de Paulo
Jonathas Micael de Paulo

💻
jack
jack

💻
CristianoFF43
CristianoFF43

💻
Bruno Gonzaga Santos
Bruno Gonzaga Santos

💻
José Oliveira
José Oliveira

💻
Alecsander Abreu
Alecsander Abreu

💻
careis-junior
careis-junior

💻
Wu Shuwen
Wu Shuwen

💻
lauropilatti-c01
lauropilatti-c01

💻
AngelaHelloKittyBaby
AngelaHelloKittyBaby

💻
mbiero
mbiero

💻
Peter Keussen de Souza
Peter Keussen de Souza

💻
profpeque
profpeque

💻
Scavio AI
Scavio AI

💻
Wellington Ribeiro
Wellington Ribeiro

💻
Ygor E O Silva
Ygor E O Silva

💻
Anderson Simão
Anderson Simão

💻
Carlos Lima
Carlos Lima

💻
lucasa15
lucasa15

💻
ajsaranetaeu
ajsaranetaeu

💻
Fábio Páscoa
Fábio Páscoa

💻
felpzGondim
felpzGondim

💻
HigorLira
HigorLira

💻
joaoalexsandroed
joaoalexsandroed

💻
lucasprestes1
lucasprestes1

💻
Matheus Santos
Matheus Santos

💻
Renan Alves
Renan Alves

💻
Romin Parekh
Romin Parekh

💻
xxgamesxx14
xxgamesxx14

💻
Vladimir Babin
Vladimir Babin

💻
Aleshan-dev
Aleshan-dev

💻
faxa marketing
faxa marketing

💻
Mentita
Mentita

💻
luiscgc91
luiscgc91

💻
lucivan212
lucivan212

💻
leadframeassessoria-lab
leadframeassessoria-lab

💻
GABRIEL MORAIS GURGEL
GABRIEL MORAIS GURGEL

💻
actions-user
actions-user

💻
fillipeagra-cyber
fillipeagra-cyber

💻
Carlos Paiva
Carlos Paiva

💻
caiofacchinato
caiofacchinato

💻
Lazaros Avramidis
Lazaros Avramidis

💻
Ademir Santos
Ademir Santos

💻
patronotech
patronotech

💻
rabbitkleber
rabbitkleber

💻
rafaelbatistak
rafaelbatistak

💻
ragaspaleilao
ragaspaleilao

💻
Logan-Luo
Logan-Luo

💻
renatofortal
renatofortal

💻
rgisjr
rgisjr

💻
stivanellidrop-dotcom
stivanellidrop-dotcom

💻
tratham-oficial
tratham-oficial

💻
vitor-licassali
vitor-licassali

💻
w4rlockem
w4rlockem

💻
William
William

💻 🤔
Agência Tektus
Agência Tektus

💻
Codex
Codex

💻
Eduardo Almeida
Eduardo Almeida

💻
edaben
edaben

💻
Gau·Beo
Gau·Beo

💻
Gyanu Mayank
Gyanu Mayank

💻
hamiltonviana
hamiltonviana

💻
Hefesto25
Hefesto25

💻
holive
holive

💻
oianmaxdev
oianmaxdev

💻
Kauã Amaral
Kauã Amaral

💻
kristhianlumai-lgtm
kristhianlumai-lgtm

💻 🐛
Monisat
Monisat

💻
Luiz Carlos Silvestrini
Luiz Carlos Silvestrini

💻
Marcelo
Marcelo

💻
marcelovolei15
marcelovolei15

💻 🐛
Murillo Alves
Murillo Alves

💻
pljrcombr
pljrcombr

💻
Teowfb
Teowfb

💻
Terceiro Régis
Terceiro Régis

💻
Valdecir Neumann
Valdecir Neumann

💻
Victor H Correa
Victor H Correa

💻
ygorl
ygorl

💻
zgy
zgy

💻
Ricardo Mendes
Ricardo Mendes

💻
ZvisionAutomations
ZvisionAutomations

💻
jhometal
jhometal

🐛 🤔
juniorpagedown
juniorpagedown

🐛
nemyasalmeida
nemyasalmeida

🐛
hudson-souza-mkt
hudson-souza-mkt

💻 🐛
Nero Sued
Nero Sued

🤔
Danilo Costa
Danilo Costa

🤔 🐛
Frank Johann
Frank Johann

🤔
tec7alex
tec7alex

🤔 💻
Shu Chen
Shu Chen

💻
Renato Prado
Renato Prado

💻 🤔
Villa-Nova-Cont
Villa-Nova-Cont

💻
Seax
Seax

💻
routeti
routeti

💻
Ricardo Souza
Ricardo Souza

💻 🐛
rglucchini-ai
rglucchini-ai

💻 🤔
Asish Kumar
Asish Kumar

💻
mindflowai1
mindflowai1

💻 🐛
Jay
Jay

💻
Hanbin Tan
Hanbin Tan

💻
Felipe Henrique
Felipe Henrique

💻
betoloko1970
betoloko1970

💻
berrub00
berrub00

💻
Zero AI
Zero AI

💻
World2576
World2576

💻
Kratos
Kratos

💻
Denis pereira dos santos Araújo
Denis pereira dos santos Araújo

💻
gabriel-lima-git-hub
gabriel-lima-git-hub

💻
Lucas
Lucas

🐛
WaldineyGodoy
WaldineyGodoy

🤔 🐛
brunno-soaress
brunno-soaress

🐛
Gleison Neves
Gleison Neves

🐛
amexgestao
amexgestao

🤔
InvestidorDiversificado
InvestidorDiversificado

🐛
Taba Terral
Taba Terral

💻 🤔
lebaneseforas-byte
lebaneseforas-byte

💻
yunshu0909
yunshu0909

💻
Aymane El Homaïdi
Aymane El Homaïdi

💻
Jorge Luis Ordoñez
Jorge Luis Ordoñez

💻
a0001f
a0001f

💻
MINHA TRIBO DIGITAL
MINHA TRIBO DIGITAL

💻 🐛
mindtech111
mindtech111

💻
VinhoAbencoado
VinhoAbencoado

💻
🄂ʏᴇᴅ 🄰ʙᴅᴜʟ 🄰ᴍᴀ🄝 ✧
🄂ʏᴇᴅ 🄰ʙᴅᴜʟ 🄰ᴍᴀ🄝 ✧

💻
Fernando Barbosa
Fernando Barbosa

💻
Feli
Feli

💻
Veeramanikandan R
Veeramanikandan R

💻
Alyandher
Alyandher

💻
Cuasare
Cuasare

💻
atendimentoreload-boop
atendimentoreload-boop

💻
Dpalmer
Dpalmer

💻 🐛
Tejesh
Tejesh

💻
guptasp82-jpg
guptasp82-jpg

💻
donramon77
donramon77

💻
Alysson Daniel Nascimento
Alysson Daniel Nascimento

💻
Lucas Brito
Lucas Brito

💻
CRYSCWK-code
CRYSCWK-code

💻
vinigaspare
vinigaspare

💻
kahue
kahue

💻
Archon
Archon

💻
bestbill
bestbill

💻
DIOGRO83
DIOGRO83

💻 🐛
MICAEL A CARVALHO
MICAEL A CARVALHO

💻
Ricardo Tarijon
Ricardo Tarijon

💻
aleflores35
aleflores35

🐛
alziromoraes
alziromoraes

🐛 🤔
estevaoantuness
estevaoantuness

🐛
hayslam
hayslam

🐛
Sergio
Sergio

🐛
hubmorada
hubmorada

🐛
Weslei Müller
Weslei Müller

🐛
Caico.ia
Caico.ia

🐛
fbraintech-stack
fbraintech-stack

🐛
hebervalverde
hebervalverde

🐛
cleytonantonio1987-web
cleytonantonio1987-web

🤔
vinicasagranda
vinicasagranda

🤔
sPY dEEP
sPY dEEP

🤔
franceschini-lucas
franceschini-lucas

🤔

🐛 Reporting bugs

Open an issue — the template asks for what we need (environment, /api/v1/health, steps). Running bash hostgator-setup-kit/healthcheck.sh and pasting the output helps a lot.

For security vulnerabilities, do NOT open a public issue — use private vulnerability reporting. Details in SECURITY.md.


🗺️ Roadmap

✅ Shipped

  • Foundation & platform — auth (MFA for admins), multi-tenancy with RLS + isolation test, 4-role RBAC, append-only audit log, tenant onboarding.
  • WhatsApp support — real-time 3-pane inbox, multi-number connections via QR (WAHA) or Meta's official channel (approved templates kept in sync), media via Storage, anti-ban (throttle + jitter + time windows), STOP detection.
  • CRM & orders — kanban with per-niche configurable vocabulary (fractional indexing), pipeline management from the screen, customer 360, contacts, tags, Nuvemshop integration.
  • Native AI — agents with per-tenant RAG (pgvector), skills the agent runs by itself, organization memory, per-number intent router, sentiment analysis, AI→human handoff, per-org spending caps, internal MCP server.
  • AI provider choice — OpenRouter, Anthropic or OpenAI, decided at install time and switchable per part of the system from the screen.
  • Living follow-up — reviving cold conversations with adaptive timing, per-stage and per-case triggers, round-robin queue, and the Radar of what risks dying unanswered.
  • Privacy (LGPD) — export and redact via workers, cascading anonymization, audited consent.
  • Self-host — hostgator-setup-kit (app + WhatsApp + database with one command), self-healing baseline.sql, updating from the screen with automatic backup, production runbook.
  • Webhooks & automation — capture sources + WHEN/IF/THEN rules + triggers for external systems.
  • Support governance — server-side RBAC across the API, audited assignment/transfer (AI as a first-class assignee), per-role visibility (RLS) + per-agent metrics, automatic routing with queue and management panel, and a governance contract for external AI agents (docs/specs/14).
  • Visible operation — anti-ban hold reasons translated in the conversation, a notice center with severities, stuck-message alerts, send-protection controls (window/pace/cap), declared agent capabilities and flywheel proposals applicable as a new version (human-gated).

🔮 Next

  • Public MCP — CRM capabilities exposed to the agent ecosystem: plug in any agent and it operates Deskcomm.
  • Niche templates — ready-made pipelines and vocabularies for clinics, real estate, info-products and services (e-commerce already shipped).
  • Integrations — VTEX and Shopify via the adapter pattern (Nuvemshop already shipped).
  • Probabilistic identity — contact unification across channels.

💬 Community


📜 License

Distributed under the MIT license — see LICENSE. You may use, modify and distribute freely, including commercially. The software is provided "as is", without warranties.


🛟 Support & responsibilities (self-host)

This is a self-hosted project: each person runs the CRM on their own infrastructure (own VPS, Supabase database and AI key). That means:

  • Support is community-based and "as-is". No SLA — it's open source maintained by goodwill.
  • You are responsible for your installation. Updates are not automatic (you click, or run update.sh, when you want), and keeping/backing up your server is on you.
  • Data protection: whoever hosts the instance is the controller of the personal data processed there (customers, conversations, orders), with the legal obligations that follow. The project maintainers are neither controllers nor processors of your instance, and have no access to your database, your WhatsApp or your storage.
  • Telemetry (Sentry): install.sh asks during installation and respects your answer; in non-interactive mode, with no SENTRY_DSN set, telemetry is off. If you accept the community Sentry, what gets sent are error reports (stack traces) with national IDs, phone numbers and emails replaced, sensitive headers stripped, and webhook/invite tokens redacted from URLs — no performance tracing and no session replay, both pinned to 0 on that path. To turn it off at any time: SENTRY_DSN=off in .env. To send to your Sentry (there, with performance and replay): SENTRY_DSN=<your-dsn>. What is redacted, and why, lives in lib/sentry/scrub.ts; DSN resolution in lib/sentry/dsn.ts.

🙏 Acknowledgements

  • WAHA (devlikeapro) — WhatsApp engine.
  • Supabase — Postgres + Auth + Storage + Realtime in one stack.
  • HostGator — the infrastructure partnership that made one-command self-hosting possible.
  • Anthropic, OpenAI and OpenRouter — the AI providers the CRM knows how to use.
  • shadcn/ui — component base.
  • The community that took Deskcomm from e-commerce to clinics, real estate, info-products and beyond — you defined what this project is.

Built with ☕ in Brasil · Made for the community