
Twenty
An open-source, code-first CRM you can customize, version, and self-host — an alternative to Salesforce and HubSpot.
Open source alternative to:
Twenty is an open-source CRM built to be customized and extended like the rest of your stack: objects, fields, views, workflows, and AI agents are defined in the product or in code, then versioned and shipped to a workspace.
Out of the box it covers the standard CRM building blocks — companies, people, opportunities, tasks and notes — with a flexible data model for custom objects and fields, saved views, Kanban pipelines, and email and calendar sync for Gmail/Google Calendar and Microsoft 365. The v2 releases add a code-first layer: the Twenty CLI (npx create-twenty-app) scaffolds apps that declare objects and fields in TypeScript, publish them to a workspace, and keep the configuration under version control alongside agents and logic functions. AI agents and chats are part of the product, and GraphQL and REST APIs plus webhooks expose the data model to other systems.
Twenty runs as a hosted cloud service with a free tier, or self-hosted with Docker Compose. A typical deployment needs at least 2 GB of RAM and runs PostgreSQL, Redis, and optional S3-compatible storage for files. Compared with Salesforce, it removes per-seat enterprise licensing and puts the schema and deployment under your control; compared with HubSpot, Pipedrive, and Zoho CRM, it trades a fixed feature set for a customizable, self-hostable codebase. Views, workflows, and permissions have to be recreated when migrating from another CRM, so plan for configuration work on top of the data import.
Categories:
Build with:
Frequently Asked Questions
Which platforms does Twenty run on?
Twenty runs as a web application in any modern browser, either on the hosted cloud at twenty.com or on your own infrastructure. The repository also ships the Twenty CLI (npx create-twenty-app) for scaffolding, publishing, and versioning workspace apps. The project does not publish separate native desktop or mobile clients.
What authentication options does Twenty support?
Workspaces support email and password sign-in plus OAuth with Google and Microsoft. Single sign-on is available on the Organization plan through SAML 2.0, Google Workspace, or Microsoft Entra ID, with just-in-time user provisioning or manual invites, and admins can disable password login to require SSO. Multi-factor authentication can be enforced at your identity provider.
Can I import data from Salesforce or HubSpot?
Yes, through the CSV/XLSX/XLS importer rather than a one-click connector. Each file holds one object type and is limited to 10,000 records; larger migrations should use the API. Import companies first, then people, then opportunities, because relations reference records that must already exist, and expect to recreate views, workflows, and permissions manually after the data lands.
Does Twenty have an API, webhooks, or a CLI?
Twenty exposes a GraphQL API and a REST API over your workspace data, and webhooks can be configured to push record changes to external systems. For customization there is a Twenty SDK and CLI: define objects, fields, and views in TypeScript with defineObject, then publish the app to a workspace and manage it under version control.
What are the requirements for self-hosting Twenty?
You need Docker and Docker Compose plus at least 2 GB of RAM. The official stack runs PostgreSQL and Redis, with S3-compatible object storage when you want files stored externally. The .env file requires a generated ENCRYPTION_KEY and a strong PostgreSQL password, and SERVER_URL must match the URL users will access.
OpenAltFinder Score
Project Details
Repository details
Updated 11/8/2026, 8:01:21 AM
View RepositoryRepository activity
Get the latest open source alternatives delivered weekly.
Discover tools that give you freedom from proprietary software.
Compare Twenty with
Similar open source alternatives

Krayin CRM
A free and open-source Laravel CRM for SMEs and enterprises with full customer lifecycle management.
HubSpot
Relaticle
Open-source CRM with native AI agent support, 30 MCP tools, REST API, and self-hosting capabilities.
Salesforce
Frappe CRM
Open source CRM with unlimited users, built by the Frappe team for lead, deal and sales pipeline management.
HubSpot
Dolibarr
A free and open-source ERP and CRM platform for businesses, foundations, and freelancers of any size.
Salesforce
EspoCRM
Free, open source CRM for managing leads, contacts, sales pipelines, email campaigns, and customer support on your own servers.
Salesforce
SuiteCRM
A fully featured open-source enterprise CRM built as a community fork of SugarCRM.
Salesforce






