The Open-Source CRM That Runs Itself With AI

Nov 9, 2026

What it does, what it costs, and how to set it up

This is the open-source CRM from the reel: Comp AI's CRM, free on GitHub, built from the ground up for an AI agent to do the work.

It keeps your contacts, companies and deals, and an agent fills in the records for you in the background.

Below is what it actually does (and what it doesn't), what it really costs to run, how it stacks up against HubSpot, and the exact steps to set it up, including a prompt that has Claude Code do most of it for you.

Find 5 ways AI automation can make your business more money, ranked by revenue. Get your plan.

What it is

Comp AI CRM is an open-source CRM made by Comp AI. The code is on GitHub under the MIT licence, which means you can use it, change it and run it for your business for free.

The big difference from most CRMs: the AI isn't a chat box added on later. The CRM is built around an agent that runs on its own schedule, decides what to look at next, and writes what it finds into your records. Close the browser and it keeps going.

It went up on GitHub on July 31, 2026 and had 11,915 stars when I checked on November 9, so almost 12,000 in a little over three months.

Link: github.com/trycompai/crm

What the AI actually does

  • Fills in your records. It reads your own email threads, meetings and email signatures (connected through Google or Microsoft) and fills in names, titles and companies from what it finds. Add a key for Context and it also pulls company logos, industry and LinkedIn details. Add a Perplexity key and it can search the web for news about a person before a call.
  • Books its own follow-ups. When it wants another look at a contact, it schedules a recheck and tells you why ("checking back in 14 days because..."). To be clear, this is the agent scheduling its own research, not booking meetings with your leads.
  • Keeps working without you. It runs on a schedule, every minute, and works through a queue. You don't have to be logged in.
  • Never guesses a fact about a customer. This is its main rule. Strong evidence gets written to the record. Weak evidence becomes a suggestion for you to approve. If it can't back something up, it doesn't write it down.
  • Lets you talk to it. Every contact, company and deal has an Agent tab where you can see what it did, why it threw out a lead, and ask it questions.
  • Turns website forms into contacts. There's a small tracking script for your own site. When someone fills out a form, they become a contact, with the pages they looked at attached.

What it doesn't do

So you know before you spend a weekend on it:

  • It doesn't send email. Its Gmail and Outlook access is read-only. For follow-up emails you'd still use your email tool or an automation tool like n8n or Zapier.
  • It's not click-to-install. There's no hosted version to sign up for. You (or someone technical) set it up and run it.
  • It's built for one company. One install is one business. It's not set up for an agency to run many clients from one account.
  • It's still young. Filtering and saved list views are basic right now (the project's own roadmap says so), so it's better at researching and filling in records than at building big prospect lists.

What it costs

The software is free. Running it isn't quite free, but it's cheap compared to most paid CRMs:

  • Hosting. The app is built to run on Vercel. Vercel's free Hobby plan is for personal, non-commercial use only, so for a business you'd want Pro at $20 a month. You can also run it on your own server with Docker.
  • Database. It uses Postgres. Neon (which it's set up for) has a free plan with 1 GB of storage per project, and paid usage after that with no monthly minimum.
  • The AI. The agent calls the AI model through Vercel's AI Gateway. You pay the model's list price per use, with no markup from Vercel. The default model is a small, cheap one on purpose: the rules stop it from writing wrong facts, not the model's size.
  • Optional keys. Context (company and LinkedIn data) and Perplexity (web search) are pay-as-you-go and only needed if you want those extras.

For comparison, HubSpot: the free CRM is free for up to 2 users. Sales Hub Professional starts at $90 a seat a month, plus a required one-time $1,500 onboarding fee. Enterprise starts at $150 a seat a month plus $3,500 onboarding. That's where "I'm looking at you, HubSpot" comes from.

Who it's for

It's a good fit if:

  • You or someone on your team is comfortable with a terminal, or you're happy to let Claude Code drive.
  • You want to own your CRM and your data, not rent it.
  • Most of your sales happen over email and calls, and you're tired of typing contact details in by hand.

If you need built-in email sequences, a phone dialer or a no-setup tool today, stick with a hosted CRM for now and keep an eye on this one.

How to set it up

What you need first

  • Bun (the runtime it uses) and Docker (for the local database) installed.
  • A Google account you can create a sign-in app in (Google Cloud console), or a Microsoft 365 account. This is how you log in, and it's how the CRM reads your email and calendar.
  • About an hour the first time.

The fast way: let Claude Code do it

Open Claude Code in an empty folder and paste this:

Set up the open-source Comp AI CRM on this computer for me.

1. Clone https://github.com/trycompai/crm and read README.md and docs/setup.md first.
2. Check I have Bun and Docker installed. If not, tell me how to install them
   and wait.
3. Copy .env.example to .env. Generate BETTER_AUTH_SECRET with openssl.
   Set ALLOWED_SIGN_IN to my email: [your email].
4. Walk me through creating the Google OAuth client step by step
   (redirect URI http://localhost:3001/api/auth/callback/google, Gmail API and
   Calendar API turned on). I'll paste the client ID and secret into .env
   myself. Never ask me to paste secrets into this chat.
5. Start Postgres with docker compose, run the migrations and the seed,
   then start the app with bun run dev.
6. Tell me when http://localhost:3000 is ready and what to check first.

It does the commands and tells you what to click. The only parts you do yourself are the Google console clicks and pasting your keys into the .env file.

The manual way

If you'd rather run it yourself, these are the commands from the project's README:

git clone https://github.com/trycompai/crm.git && cd crm
cp .env.example .env
bun install

docker compose up -d
bun run db:deploy
bun run db:seed
bun run dev

db:seed is optional. It adds a sample pipeline so you can see how it looks before your real data is in.

Before bun run dev, open .env and fill in:

  • BETTER_AUTH_SECRET: run openssl rand -base64 32 and paste the result.
  • ALLOWED_SIGN_IN: your email or your company's domain, like yourcompany.com. Nobody else can sign in.
  • GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET (or the Microsoft pair).

The app opens at localhost:3000.

Getting the Google sign-in keys

  1. Go to the Google Cloud console, Credentials, then Create credentials, OAuth client ID, Web application.
  2. Under Authorised redirect URIs, add http://localhost:3001/api/auth/callback/google.
  3. Turn on the Gmail API and the Google Calendar API for the project.
  4. Copy the client ID and secret into .env.

If you're on Google Workspace, set the consent screen to Internal so only people in your company can sign in.

Turning on the extras

All optional. The agent works with none of them and tells you at startup which ones are on.

  • Company and LinkedIn data: sign up for Context and paste the key in Settings, General.
  • Web research: add PERPLEXITY_API_KEY to .env.
  • Talking to the agent from a contact: set AGENT_BRIDGE_SECRET to the same random value for both the app and the agent (another openssl rand -base64 32).
  • Turning off usage stats: it sends one anonymous count a day (no names, emails or deal amounts). Set CRM_TELEMETRY_DISABLED="1" if you'd rather it didn't.

Putting it online

Running it on your laptop is fine for a test. For real use it needs to be online all the time, because the agent works on a schedule. The project is set up to deploy as three parts (the app, the API and the agent) plus a Postgres database, and it's built for Vercel. Ask Claude Code to "follow the Deploying section of the README and deploy this to Vercel, then tell me which environment variables I need to set." Remember to add your live address to the Google redirect URIs.

Your first week with it

  1. Sign in and connect your inbox. With Outlook, reading starts from the day you connect, so it won't dump years of old mail in.
  2. Add your contacts. Start with your 20 most active leads so you can check its work. If you're moving a big list over from another CRM, ask Claude Code to check what import options your version has before you start.
  3. Watch the Agent tab on a few contacts for a few days. Approve or reject its suggestions, so you see what it's confident about and what it's not.
  4. Add the tracking script to your website so form fills turn into contacts.
  5. Keep your follow-up emails in your existing tool for now, and only switch fully once you trust the records.

Find 5 ways AI automation can make your business more money, ranked by revenue. Get your plan.