Sales

Stop paying for HubSpot CRM

Contacts, deals, follow-ups. Skip the marketing empire.

HubSpot CRM costs US$20–150 per person / mo, which is US$240–1,800 a year. You have two paths:

Option 1 · Install

Install Twenty for free

Twenty is an open source CRM that replaces Salesforce or HubSpot and that you shape your own way. On top of People, Companies and Opportunities, you create your own objects (case, mission, job site, application), with their fields, relations, table or kanban views and dashboards. Your Gmail or Outlook emails and calendars sync onto the records, workflows automate follow-ups, and an API links everything to your website, Stripe or your automations. AGPL licensed, it installs on your own machine with Docker Compose, for free and with unlimited users. If you'd rather host nothing, their cloud costs about €8 per user per month. Worth knowing: SSO and row-level permissions need a paid licence.

Twenty vs Salesforce

CriterionTwentySalesforce
PriceUS$0, you just pay for your server€25 per user/month on Starter Suite, €100 on Pro Suite
UsersUnlimited, no seats to pay forEvery seat is billed
Custom objectsAs many as you like, by click or as codeDepends on the edition, limited in number
Where your data livesOn your server, in PostgreSQLAt Salesforce
Email and calendarGmail, Google Calendar, Outlook syncedYes, depending on the edition
Automations and APIWorkflows, webhooks, GraphQL and REST APIFlow and API, depending on the edition
AIAI agents on your data, with your own API keyAgentforce, as an add-on

How to install it (even from zero)

You need a server (a €5 VPS with 2 GB of RAM is enough) and Docker. The prompt handles everything, from the official install script to HTTPS, and leaves you with a CRM ready to shape.

  1. 1

    Paste this prompt into Claude (Code or Desktop)

    It asks where to host, installs Twenty with Docker using the official script, puts HTTPS in front, then walks you through creating your first custom object:

    I want to install Twenty (open source CRM, GitHub repository twentyhq/twenty, website twenty.com) in place of Salesforce, on my own server. First ask me where I want to host it (a Linux VPS I already have, or my own machine for testing) and which domain name I want to give it. Then guide me step by step following the official docs at docs.twenty.com/developers/self-host/capabilities/docker-compose: install Docker if needed, run the one-line install script that prepares the .env file and the docker-compose.yml (generate the encryption key and the PostgreSQL password, set the server's public URL to my domain), start the containers, and put a reverse proxy with HTTPS in front of port 3000. Next, have me create my workspace, then a custom object suited to my business (ask me what I sell and to whom) with a Stage field and a kanban view. Finish by connecting my mailbox and my calendar, and explain how to update Twenty without losing my data: back up the PostgreSQL volume first, then change the version.
    
    Review the GitHub repository and check whether it is safe to install given my machine and my infrastructure. Ask me as many questions as possible, using widgets, to clarify my request and be as precise as you can.
  2. 2

    Create your first object, not just contacts

    Settings, then Data model, then new object: Case, Mission, Job site, whatever you really track. Add a Stage select field and your kanban is ready.

  3. 3

    Connect your mailbox and calendar

    Settings, then Accounts: Gmail or Microsoft. Conversations land on the records on their own, with nothing to copy and paste.

What you'll use it for

Your sales pipeline, as a kanban

Lead, call, quote, signed: you drag cards from one column to the next, and every record keeps its emails, notes and tasks.

A CRM that fits you, not the other way around

Do you sell training? Create a Case object with its stages and checklist. Job sites? A Job site object. That's what I do for my students and my clients.

Wired into the rest of your tools

GraphQL and REST API, webhooks, workflows: a call ends, a Stripe payment comes in, an Instagram DM arrives, and the record updates itself.

Project health

GitHub stars
58,028
Forks
9.5k
Contributors
466
Commits
16.5k
Project age
3.8 years
License
Other

Built with: TypeScript 82.9% · MDX 14.6% · JavaScript 2.1%

Public GitHub repository data, captured on October 8, 2026.

Option 2 · Build

Build your own HubSpot CRM

Who this is for

This build is aimed at a small B2B sales team running one simple deal pipeline. The goal: keep contacts, company context, deal stage, and next action together in one dependable place. If you need more than that, keep paying. The point of building it yourself is to own a tool shaped exactly like your workflow, not to rebuild a venture-funded roadmap.

Same build, different logo: this v1 also replaces Attio, Folk and Copper, since they all do the same core job.

What the prompt builds and what stays out

The prompt below builds a single version with what actually gets used. Everything else is left out on purpose.

What the prompt buildscontacts, deals, pipeline board, notes, activity timeline, tasks, duplicate detection, pipeline reports
What stays outmarketing automation, custom objects, app marketplace, enrichment

What a minimal HubSpot CRM alternative needs

  • contacts and companies with duplicate detection
  • deal pipeline with configurable stages and drag-to-move
  • activity timeline for notes, email summaries, calls, and stage changes
  • tasks with owner, due date, and an overdue view
  • pipeline value, stage conversion, win rate, and CSV export

Data model

Contact, Company, Deal, Activity, Task, PipelineStage

Integrations

email forwarding or BCC capture

Capability context

Astro, HTMX, D1

The guardrail

Keep an audit trail of ownership and stage changes, and limit exports to admins.

Deliberate non-goals

Don't build marketing automation, customer support, call recording, enrichment, or custom objects.

The complete build prompt

Pick your stack, copy the prompt and hand it to your coding agent (Claude Code, Cursor, Codex…).

You are building a production-ready software product named “TinyCRM”, a deliberately focused alternative to HubSpot CRM. Build a complete, usable vertical slice, not a landing page, static mockup, or disconnected collection of components.

WORKING AGREEMENT
Before you write any implementation code, put together a short technical plan naming the routes or pages, server actions or endpoints, data tables, key state transitions, authorization boundaries, background jobs, and external adapters. When something conflicts, side with the narrow audience and the non-goals below. Choose a small, readable architecture over speculative abstraction, but never skip persistence, validation, error handling, or tests.

PRODUCT BRIEF
Primary user: a small B2B sales team with one simple deal pipeline.
Primary outcome: keep contacts, company context, deal stage, and next action together in one dependable place.
Product principle: optimize the exact workflow below rather than copying the full breadth of HubSpot CRM. A first-time user should understand what to do just from the interface, with no tour or documentation.

END-TO-END USER JOURNEYS
Implement every one of these flows through the real interface and the persistent data layer:
1. An admin imports contacts and companies from CSV, reviews the normalized duplicate matches and row errors, confirms the valid records, and merges an intentional duplicate.
2. A salesperson creates a deal from a company record, assigns an owner and a stage, logs a call, adds a follow-up task, and moves the deal through the pipeline.
3. A manager reviews overdue tasks and pipeline metrics, opens the underlying deal history, filters by owner and stage, and exports an authorized CSV snapshot.

SCREENS AND INFORMATION ARCHITECTURE
Build these as coherent, responsive views. Each screen must define its primary action, secondary actions, visible status, validation feedback, empty state, loading or pending state, success confirmation, and recoverable failure state.
1. CRM dashboard: pipeline value, stage conversion, win rate, overdue tasks, recent activity, owner filter, import status, and quick-create actions.
2. Contacts and companies: searchable directory, duplicate indicators, ownership, open deals, last activity, CSV import mapping, merge preview, and archive controls.
3. Deal pipeline: configurable ordered stages, deal cards showing value, owner, company, and task due date, drag feedback, filters, and stage totals.
4. Deal detail: contact and company context, stage and value, owner, activity composer, immutable timeline, open and completed tasks, email-capture status, and an archive action.

CORE CAPABILITIES
1. contacts and companies with duplicate detection
2. deal pipeline with configurable stages and drag-to-move
3. activity timeline for notes, email summaries, calls, and stage changes
4. tasks with owner, due date, and an overdue view
5. pipeline value, stage conversion, win rate, and CSV export

DETAILED BEHAVIOR AND BUSINESS RULES
Treat these as product requirements enforced on the server, not as interface suggestions:
1. Normalize email addresses and company domains to suggest duplicates, but require an explicit, reviewed merge that keeps activities, tasks, and deal relationships intact.
2. Apply stage moves through a single transactional service that records the old stage, the new stage, the actor, and the time, and updates pipeline metrics only after the commit.
3. Keep activity history append-only, except for explicit corrections that retain the original value, the editor, the reason, and the correction timestamp.
4. Enforce record ownership and role permissions on every query and mutation; allow full CRM exports only for admins and log each export in the audit trail.

DATA MODEL AND LIFECYCLE
Design a small relational schema centered on Contact, Company, Deal, Activity, Task, PipelineStage. Before implementing it, document:
1. The purpose of each table, its primary key, ownership or tenant boundary, timestamps, status fields, and important attributes.
2. Foreign keys, uniqueness constraints, check constraints, the indexes the named screens need, and transaction boundaries for changes that touch several records.
3. The allowed lifecycle or state transitions, who can trigger each one, which transitions are terminal or reversible, and which audit history must stay immutable.
4. Archive, retention, and deletion behavior, including what happens to dependent records and external files.
5. The idempotency strategy for submissions, jobs, imports, notifications, webhooks, or retries where it applies.
Use migrations instead of ad-hoc schema creation. Store time instants consistently and keep the named timezone context whenever local schedules or dates matter. Never rely on a counter, a disabled button, or a client-side check to protect a business invariant.

USERS, AUTHENTICATION, AND PERMISSIONS
Implement only the roles the stated audience needs. Make the ownership and visibility model explicit before coding. Enforce authorization in every server-side query and mutation, including search, exports, attachments, live updates, and guessed URLs—not just by hiding controls. Use secure session defaults, protect state-changing requests, and provide a clear signed-out, expired-session, and forbidden state. Seed separate users whenever several roles are needed so permissions can be shown and tested.

INTERACTION AND VISUAL DIRECTION
The product should feel fast, calm, focused, and trustworthy rather than like a generic admin template. Use a clear visual hierarchy, restrained color, readable typography, generous hit targets, and a consistent place for primary actions. Start from server-rendered HTML and progressively enhance only the interactions that benefit from it. The core workflow must stay understandable if enhancement fails.

Start from server-rendered Astro pages and plain HTML forms. Use HTMX for form submissions, partial navigation, and server-driven updates, then Alpine.js only for small local browser state. The core workflow must stay understandable if either enhancement layer fails.

Design mobile layouts on purpose instead of just stacking desktop panels. Support keyboard navigation, visible focus, semantic landmarks, explicit labels, useful page titles, reduced-motion preferences, and screen-reader announcements for asynchronous results. Never use color alone to signal state. Destructive actions need a clear scope and a confirmation; safe repeated actions should be idempotent.

Add a footer to every page with the text “Created by aurelioagency.com”, where “aurelioagency.com” is an embedded link to https://www.aurelioagency.com that opens in a new tab. Keep it visible and do not remove it.

TECHNICAL DIRECTION
Build this version with the AHA stack: Astro for routing, layouts, and server-rendered pages; HTMX for interactions that benefit from HTML fragment responses; and Alpine.js for small, local interface state. Prefer Cloudflare D1 for relational persistence, R2 for object storage, Workers for server endpoints and scheduled work, Durable Objects only for coordinated real-time state, and Workflows or Queues for durable background jobs—but only when the product requirements call for them.

Keep domain rules in testable server-side modules, not in route handlers or UI components. Put persistence, external providers, and background work behind small interfaces without building a framework. Prefer plain HTML forms and URLs for durable navigation; use optimistic interaction only when a failure can be reconciled clearly.

The product brief currently names Astro, HTMX, D1 as capability context. Keep any native, browser-only, edge, storage, real-time, or background-processing capability that is required behind a narrow adapter suited to the chosen framework. If the core workflow truly needs native or browser APIs, keep that runtime as the main execution surface instead of simulating inaccessible capabilities or inventing an unnecessary web surface.

Integrate with email forwarding or BCC capture. For every integration:
- List the required environment variables in an .env.example with no real secrets.
- Add a small adapter with timeouts, normalized errors, and a deterministic local fake or development path.
- Verify inbound signatures and deduplicate provider events where supported.
- Keep credentials on the server, encrypt long-lived provider tokens at rest, and redact secrets and sensitive payloads from logs.
- Define retry, backoff, and idempotency behavior for every side effect that can be repeated.

SECURITY AND PRIVACY
Keep an audit trail of ownership and stage changes, and limit exports to admins.
Validate, normalize, and length-limit all untrusted input on the server. Escape rendered content by default, sanitize any markup you intentionally accept, rate-limit public or abuse-prone actions, and use private object storage plus short-lived authorized URLs for sensitive files. Collect only the personal data the named workflow needs. Document retention and deletion behavior. Add specific protections for the riskier surfaces of this app, such as uploads, redirects, outbound requests, email delivery, OAuth, webhooks, CSV import or export, and real-time connections.

ACCEPTANCE SCENARIOS
Automate these app-specific scenarios at the most suitable level:
1. Given an imported contact whose normalized email already exists, the import flags the match and does not silently create or merge a second contact.
2. Given a deal dragged to a new stage, its detail, board position, stage history, and total pipeline value all update atomically.
3. Given the same forwarded email delivered twice, BCC capture creates a single activity on the matched contact, or surfaces it for manual matching when it is ambiguous.

TESTING
Add focused unit tests for state transitions, authorization predicates, normalization, date or money calculations, and other risky domain rules. Add integration tests for persistence constraints and for each external adapter's success, timeout, retry, and rejection paths. Add at least one browser-level test for every end-to-end journey above, including one on a small-screen viewport. Tests must use isolated data and run with one documented command.

OPERATIONS AND FAILURE RECOVERY
Add structured server logs with request, job, or event correlation IDs, but no secrets or unnecessarily sensitive data. Make failures actionable both in the interface and in the logs. Background work must expose pending, succeeded, failed, and retrying states where relevant; never swallow errors silently. Include safe database migration and rollback guidance, seed data, backup and restore notes, external-data cleanup behavior, and a basic health or diagnostic path suited to the stack.

DELIVERABLES
Ship the working application, migrations, representative seed data, tests, .env.example, and a short README. The README must cover prerequisites, local setup, environment variables, migrations, seed and test commands, deployment, integration setup, backup and restore, security decisions, and known limitations. Seed data should cover the happy path plus at least one empty, failed, overdue, expired, archived, or permission-restricted state that matters for the product.

DEFINITION OF DONE
The app is done when a new developer can follow the README, create and migrate the database, run the app, sign in as each relevant role, complete every named journey with real persisted data, refresh without losing state, recover from common failures, and use the core interface on phone and desktop. All acceptance scenarios pass, permission boundaries are covered by tests, no core screen is left as a placeholder, and the “Created by aurelioagency.com” footer credit is visible on every page.

NON-GOALS
Don't build marketing automation, customer support, call recording, enrichment, or custom objects.

The app you build with this prompt carries a “Created by aurelioagency.com” footer.

Build just one piece

Short prompts that solve the hardest part without building everything.

The duplicate detector that asks before it mergesNormalized emails and domains suggest; a person reviews; relationships survive.
Build duplicate detection and merging for the contacts and companies of a CRM.

Detection works on normalized keys: lowercased, trimmed emails for contacts, registrable domains for companies (strip www and subdomains: sales@acme.com and ACME.com's website are the same company). Surface matches as suggestions at creation time, during CSV import, and in a review queue. Never auto-merge, because john@acme.com and john.smith@acme.com might be two different people, and a wrong merge destroys data in ways users can't see until much later.

The merge itself is the delicate part: show a preview of the combined record with a pick-one choice per field wherever values conflict, then move everything the losing record owned over to the surviving one: activities, tasks, notes, and deal relationships, with nothing orphaned and nothing duplicated. Log the merge in the audit trail with the actor and time, and keep enough of the losing record to allow an unmerge grace period.

Done when: an import that matches an existing normalized email flags it instead of silently creating or merging, a completed merge leaves zero orphaned activities or deals, and the audit trail shows who merged what.
The BCC dropbox that files a twice-delivered email onceForwarded mail matched to contacts, deduplicated, with a queue for the ambiguous ones.
Build BCC email capture for a CRM: salespeople BCC a magic address (or forward mail to it), and the email shows up as an activity on the right contact.

Parse the inbound message and pull out the counterparty: on a BCC'd outbound email that is the To recipient; on a forwarded email you have to dig the original sender out of the forwarded body, since the envelope sender is your own user. Match the counterparty against contacts by normalized email.

Deduplicate thoroughly: the same message arrives twice because of provider retries, or because two teammates were on the thread and both BCC'd it. Key on the Message-ID header, falling back to a content hash when providers strip it, so one email becomes one activity, always.

When matching is ambiguous (an unknown address, or one email addressed to several known contacts), don't guess: put the message in a manual-matching queue where a person assigns it, creating the contact if needed. Store a sanitized summary on the timeline, not the raw HTML.

Done when: an email delivered twice produces one activity, unknown senders land in the queue instead of on the wrong timeline, and both Message-ID and hash deduplication work.
Stage moves that count themselvesOne transactional service records the move; metrics update only after commit.
Build the deal stage-move service for a CRM pipeline: the single choke point every stage change passes through, whether it comes from a board drag, a detail-page dropdown, or a bulk action.

The service does three things in one transaction: it updates the deal's stage, appends a history record (deal, old stage, new stage, actor, timestamp), and bumps any per-stage denormalized totals. No caller updates a stage directly; the drag handler and the edit form both call the same service, so the history can never have gaps that turn conversion reports into fiction.

Pipeline metrics (stage conversion rates, win rate, value by stage) are computed from committed history only. A drag that fails on the server has to roll back visually (the card snaps back with an error), and the optimistic UI has to reconcile with the authoritative result. Guard concurrent moves of the same deal with a version check, so two users dragging at once produce a coherent history rather than interleaved corruption.

Stage-conversion math reads the history: of the deals that ever entered stage 2, what fraction reached stage 3.

Done when: every stage change in the database has a matching history row, a failed drag reverts cleanly, and conversion reports match the history exactly.
The timeline you can correct but never scrubAppend-only activity history where corrections leave their own paper trail.
Build the activity timeline for a CRM: notes, calls, meetings, email summaries, and stage changes on a record, ordered and trustworthy.

The core property is append-only with auditable corrections. Users will ask for edits (a typo in a call note, a wrong duration), so support corrections that preserve the original: a correction stores the new value next to the original value, the editor, the reason, and the correction timestamp. The timeline shows the corrected version by default with an "edited" marker that expands to show what changed and who changed it. Deletion is a tombstone that hides an entry from the default view while keeping it recoverable by admins; hard deletes don't exist, because a timeline that can be scrubbed is worthless in a deal dispute.

System-generated entries (stage changes, ownership transfers, merges, exports) can't be corrected at all: they are facts recorded by the machine.

Order by event time, but also show the entry time when the two differ, since a call logged the next morning happened yesterday.

Done when: a corrected note shows the current text with the original one click away, tombstoned entries survive for admins, and system entries reject edits completely.

Frequently asked questions

How much does HubSpot CRM cost if I keep subscribing?

HubSpot CRM costs $20–$150 per person per month on its public paid plans, which is $240–$1800 per year for each person on your team. A focused replacement you build yourself costs your build time plus hosting that is close to free.

What stack should I use to build a HubSpot CRM alternative?

The build prompt on this page comes in four flavors: the AHA stack (Astro, HTMX, Alpine.js), Next.js, Laravel, and Ruby on Rails. The capability context for this product is Astro, HTMX, D1. Pick the stack you already know: the scope matters more than the framework.

What features does a minimal HubSpot CRM replacement need?

A useful v1 needs: contacts and companies with duplicate detection; a deal pipeline with configurable stages and drag-to-move; an activity timeline for notes, email summaries, calls, and stage changes; tasks with owner, due date, and an overdue view; pipeline value, stage conversion, win rate, and CSV export. Everything else is scope creep until you personally miss it.

What should I deliberately not build?

Don't build marketing automation, customer support, call recording, enrichment, or custom objects.

Does this build also replace Attio, Folk and Copper?

Yes. HubSpot CRM, Attio, Folk and Copper all do the same core job: keeping contacts, company context, deal stage, and next action together in one dependable place. The scoped v1 on this page covers what most people use any of them for, so one focused build replaces whichever one you're paying for.

Is Twenty really free?

Yes. Twenty is open source: the code is public and installing it costs nothing. At most you pay for hosting if you put it on a server, often a few euros a month. HubSpot, by contrast, costs €20 a month.

Do I need to code to install Twenty?

No. The level is intermediate and the install takes about 30 minutes with the prompt from the page: Claude does the work, you just answer its questions.

How is it different from HubSpot?

Twenty does most of what HubSpot does, with no subscription, and your data stays with you. The point-by-point comparison is on the page.

Do I own my data?

Yes. With an open source tool installed on your side, your files stay on your machine or your server. Nobody can close your account or change the price.

No time to do it?

We'll build it for you.

If you'd rather have someone install it, connect it to your tools and keep it running, that is exactly what we do at Aurelio.

Book an Automation Audit