
Comp AI CRM
Open source agentic CRM with a durable research agent
Replaces Attio, Salesforce, Hubspot Crm

Who it's for
Run your whole pipeline on your own Postgres, and let the research agent keep contacts and companies current from your inbox rather than asking reps to do data entry.
Skip if you need multi team permissions, a mature mobile app, or a large third party app marketplace on day one.
Keep customer records and email derived evidence on infrastructure you control, with an agent sandbox that has no network egress and no database credentials.
Skip if you would rather a vendor carry the operational and compliance burden of running the system for you.
The problem
A CRM is only as good as the facts inside it, and those facts arrive by hand. Reps are asked to look somebody up, decide who they are, and type it into a form, so the pipeline fills with blank fields. The AI CRMs bolt a chat box onto that same form, leaving the actual research to a person, and the ones that do automate it guess, producing confidently wrong records nobody can spot.
How it works
The research agent is its own deployment built on eve, Vercel's filesystem first framework for durable agents, with 18 authored tools and 4 markdown skills versioned like code. It runs on its own schedule against its own work queue, so it keeps going after you close the browser.
No tool accepts a confidence score. Tools report what they observed, such as a signature block in your own email history or a matched GitHub account identity, and a ledger prices the evidence. Strong evidence writes to the record; weak evidence becomes a suggestion a human settles.
Every contact, company, and deal has an Agent tab showing the steps as they are taken, the leads discarded and why, and questions answered in place when the agent cannot decide between two people. Conversations are durable and survive a reload.
The agent gets bash, grep, glob, and a workspace so it can keep a dossier and diff profiles over time. The sandbox is never given DATABASE_URL and has no network, so a customer's email body has no path out through a shell command.
Gmail and Calendar sync make your own threads, meetings, and signature blocks the primary evidence, which is free and hard to beat. Web research with citations, LinkedIn identity lookups, and company brand data are each optional keys layered on top.
A Turborepo monorepo on Bun: Next.js App Router with shadcn/ui, a NestJS API exposing tRPC so the front end is type safe from the Prisma row to the table cell, and Postgres with optional Redis. Four environment values get a local install running.
Features
- The agent is the product
- Evidence ledger, no confidence scores
- An Agent tab on every record
- Sandbox with deny all egress
- Your inbox is the first data source
- Self-hosted on a modern TypeScript stack
How to install
git clone https://github.com/trycompai/crm.git && cd crm cp .env.example .env # set BETTER_AUTH_SECRET, ALLOWED_SIGN_IN, Google OAuth bun install docker compose up -d # Postgres on :5432 bun run db:deploy # apply migrations bun run dev # app on :3000, API on :3001
Recommended for this setup
Strengths
- Enrichment you can audit: Because the agent separates what it observed from what it inferred and shows its working on every record, a blank field stays blank rather than becoming a plausible guess. A confidently wrong fact about a customer is worse than a missing one, and the design takes that seriously.
- MIT licensed and fully self-hosted: The whole system is MIT licensed with no open core holdback, and it runs on your own Postgres and your own deployments. Customer records, email derived evidence, and agent reasoning all stay on infrastructure you control.
- Works with no API keys at all: Every outside data source is optional. With no keys configured the agent still reads your own threads, meetings, and signature blocks, and it is told at session start which sources this install has so it plans around what it actually has.
Trade-offs
- Very young project: The repository was created at the end of July 2026 and v1.0.0 was cut days later, with a small core contributor group. It has drawn attention quickly, but it has not yet been run in production by many teams, and there is no hosted option to fall back on.
- Single tenant, Google-first sign-in: There are no organizations; the design is deliberately one install per company. Sign-in is Google only out of the box, governed entirely by an ALLOWED_SIGN_IN allow list, with other identity providers added through Settings and SSO afterwards.
- Built around Vercel infrastructure: Production leans on Vercel Sandbox for the agent's shell, the Vercel AI Gateway for model access, and Vercel Blob for mirrored profile pictures. Running it elsewhere is possible, Docker or microsandbox works locally, but you take on substituting those pieces yourself.
Tech stack
FAQ
Yes. Comp AI CRM is MIT licensed and the full source is on GitHub at github.com/trycompai/crm.
Yes, and self-hosting is the only way to run it today. Locally you need Bun and Docker: clone the repo, bring up Postgres with Docker Compose, apply migrations, and set four values in the root .env file. In production it is three independent deployments, the Next.js app, the NestJS API, and the agent, plus a Postgres database.
The agent is a separate deployment with its own schedule and work queue, not a chat box on a form. It decides what to look at next, books its own follow ups, spends a research budget, and keeps running after you close the browser. Records fill themselves in as a result of that work.
No tool accepts a confidence score, because a model asked to grade its own certainty will do so in whichever direction makes it look useful. Tools report only what they observed, and an evidence ledger prices those observations. Strong evidence writes to the record, weak evidence becomes a suggestion for a human to settle.
No. Every outside source is optional and it is designed to run with none of them. Without any keys the agent reads your own threads, meetings, and signature blocks through Gmail and Calendar sync. Optional keys add web research with citations, LinkedIn identity lookups, and company brand data.
It is an open source alternative to Salesforce and HubSpot CRM for small technical teams who want to self-host their pipeline and audit how every enriched field was arrived at, without a per seat bill.
It is built by Comp AI, the team behind trycomp.ai, and developed in the open at github.com/trycompai/crm.