ScriptsApr 9, 2026·2 min read

Twenty — Open-Source AI CRM (Salesforce Alternative)

Modern open-source CRM with AI features. Custom objects, kanban views, email sync, workflow automation. NestJS + React + PostgreSQL. AGPL-3.0, 43,700+ stars.

TL;DR
Open-source CRM with custom objects, kanban views, email sync, and workflow automation. Self-hostable Salesforce alternative.
§01

What it is

Twenty is a modern open-source CRM built with NestJS, React, and PostgreSQL. It provides custom objects, kanban views, email synchronization, and workflow automation in a clean interface that prioritizes developer experience. The project is released under AGPL-3.0 and has 43,700+ GitHub stars.

Twenty targets teams that need CRM functionality without the complexity and cost of Salesforce. It is self-hostable, giving you full control over your data, and offers a hosted version at app.twenty.com for teams that prefer managed infrastructure.

§02

How it saves time or tokens

Twenty eliminates CRM licensing costs while providing the core features most sales teams actually use. Custom objects let you model your data without paying for schema extensions. The built-in workflow automation handles follow-up sequences, deal stage transitions, and notification triggers without third-party integration tools. Self-hosting on your own PostgreSQL instance means your customer data stays within your infrastructure boundary.

§03

How to use

  1. Try the hosted version at app.twenty.com or self-host with Docker:
git clone https://github.com/twentyhq/twenty.git
cd twenty
docker compose up -d
  1. Access the web interface and create your workspace.
  1. Set up your pipeline stages, import contacts from CSV or existing CRM exports, and configure email sync to start managing relationships.
§04

Example

Custom object creation through the Twenty API:

// Create a custom object for tracking partnerships
const response = await fetch('http://localhost:3000/api/objects', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    name: 'Partnership',
    fields: [
      { name: 'company', type: 'text' },
      { name: 'status', type: 'select', options: ['active', 'pending', 'closed'] },
      { name: 'revenue_share', type: 'number' }
    ]
  })
});

This creates a new entity type in your CRM with custom fields, immediately available in the UI with filtering, sorting, and kanban views.

§05

Related on TokRepo

§06

Common pitfalls

  • Docker Compose deployment requires adequate resources. Allocate at least 4GB RAM for the full stack including PostgreSQL, Redis, and the application servers.
  • Email sync requires IMAP/SMTP credentials and proper DNS configuration. Verify your email provider supports app-specific passwords if MFA is enabled.
  • Migrating from Salesforce requires mapping custom objects to Twenty's schema. Plan the field mapping before starting data import to avoid duplication.
  • Always check the official documentation for the latest version-specific changes and migration guides before upgrading in production environments.

Frequently Asked Questions

How does Twenty compare to Salesforce?+

Twenty provides core CRM features like custom objects, pipeline management, email sync, and workflow automation. It lacks Salesforce's enterprise ecosystem (AppExchange, advanced analytics), but offers lower cost, full data ownership, and a modern developer-friendly architecture.

Is Twenty free to use?+

Yes. Twenty is open-source under AGPL-3.0. You can self-host for free. The hosted version at app.twenty.com offers a free tier with paid plans for additional features and support.

What tech stack does Twenty use?+

Twenty is built with NestJS (backend), React (frontend), and PostgreSQL (database). It uses GraphQL for its API layer and Redis for caching and background job processing.

Can I import data from my existing CRM?+

Yes. Twenty supports CSV import for contacts, companies, and deals. For migration from specific CRMs like Salesforce or HubSpot, you export to CSV and map fields during the import process.

Does Twenty support workflow automation?+

Yes. Twenty includes built-in workflow automation for common CRM actions like sending follow-up emails on deal stage changes, creating tasks when contacts are added, and triggering notifications based on custom conditions.

Citations (3)
🙏

Source & Thanks

Created by Twenty. Licensed under AGPL-3.0.

Twenty — ⭐ 43,700+

Thanks to the Twenty community for building a CRM that belongs to everyone.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets