Build Your Own Custom CRM with Claude Code
What this gives you: Tell Claude Code what your business needs and it builds you a complete CRM - contacts, pipelines, deals, follow-ups, dashboards. No monthly SaaS fees. No feature bloat. Just the exact system your business needs, owned by you.
Why Build Your Own
GoHighLevel costs $97-497/month. Salesforce starts at $25/user/month and scales fast. HubSpot gets expensive the moment you need real features. For most small businesses, 90% of those features go unused.
Claude Code can build you a CRM that does exactly what you need, hosted on Vercel for free, with a database that costs pennies. Total ongoing cost: under $5/month.
You own it entirely. No vendor lock-in. No price hikes. No support tickets. When you need a new feature, you ask Claude Code and it is done in minutes.
The Stack
Minimal by design. Every choice optimises for speed to build and zero infrastructure to manage.
| Technology | Role |
|---|---|
| Next.js | App Router, TypeScript. Server components handle data fetching. API routes give you CRUD endpoints. |
| Tailwind CSS | Utility classes, dark theme. No CSS files to maintain. |
| Prisma v5 + SQLite | Simple file-based database. Migrate to Supabase Postgres when you need multi-device or team access. |
| Vercel | Push to git, auto-deploys. Zero config. HTTPS automatic. |
Project Structure
Step 1: Define Your Pipeline
Before you build anything, write down your sales stages. Claude Code needs this to build the pipeline view correctly. Here is an example for a service business:
- New Lead
- Contacted
- Discovery Call Booked
- Proposal Sent
- Negotiation
- Won
- Lost
Think about your actual sales process. What happens between first contact and closed deal? Each distinct handoff is a stage. Keep it to 5-8 stages maximum - more than that and the pipeline becomes noise.
Once you have your stages written down, drop them into the build prompt in the next step.
Step 2: The Build Prompt
This is the single prompt you give Claude Code to scaffold the entire project. Replace the pipeline stages with your own:
Claude Code will scaffold the entire project, install dependencies, write every component, set up the database schema, and wire up the API routes. You will have a working CRM in a single session.
Step 3: Contact Management
Claude Code builds you a searchable contact list with filters, individual contact pages with notes and activity timeline, CSV import/export, and tag-based segmentation.
The contacts API route handles all CRUD operations:
Step 4: Deal Pipeline
The kanban board is the core of the CRM. Each deal card shows: contact name, deal value, last activity, and days in stage. Drag and drop between stages updates the deal immediately. The deal detail view shows full history, notes, and linked tasks.
The Prisma schema for deals:
Step 5: Follow-Up System
Tasks with due dates attached to contacts or deals. Claude Code builds task creation from deal pages, overdue task highlighting in red, and a daily digest of tasks due today pinned to the top of the dashboard.
To add email reminders, give Claude Code this follow-up prompt:
Claude Code will add the Resend package, create an API route, and set up a cron job via Vercel's cron configuration. No external scheduler needed.
Step 6: Analytics Dashboard
Real-time metrics calculated from your database: deals won this month, total pipeline value, average deal size, conversion rate by stage, and revenue forecast based on weighted pipeline.
To add specific charts, prompt Claude Code with exactly what you want:
Claude Code generates the chart components, wires them to the database queries, and drops them into the analytics page. The whole thing takes one prompt.
Step 7: Deploy
- Push your project to a GitHub repository
- Import it at vercel.com
- Add environment variables in Project Settings (database URL, auth secret)
- Deploy - first build takes about 60 seconds
If the auto-deploy does not trigger, use vercel --prod from the project directory as a fallback.
Adding AI Features
This is where Claude Code really shines. Once the base CRM is running, add AI features one at a time. Each is a single prompt to Claude Code.
| Feature | Prompt to Claude Code |
|---|---|
| Auto-generate follow-up emails | "Add a button on each deal page that drafts a follow-up email using Claude, based on the deal notes and last activity." |
| Summarise meeting notes | "Add a text area on contact pages where I can paste meeting notes. Claude summarises them into bullet-point action items and saves them." |
| Lead scoring | "Score each contact 1-10 based on email opens, deal activity, and days since last contact. Show the score as a badge on the contact list." |
| Draft proposals | "Add a Generate Proposal button on deal pages. Claude reads the deal data and contact info, then outputs a structured proposal I can copy." |
Connecting External Tools
Use Claude Code MCP servers to connect your CRM to other tools in your stack. Each integration is a single conversation.
Cost Comparison
| Item | GoHighLevel | Your CRM |
|---|---|---|
| Hosting | $97-497/mo | $0 (Vercel free) |
| Database | Included | ~$5/mo (Supabase) or free (SQLite) |
| Customization | Limited | Unlimited |
| AI features | Extra cost | Built-in (Claude) |
| Total per year | $1,164-5,964 | ~$60 |