Twenty logo

Twenty

✓ Verified FOSSAGPL-3.0
Top open-source alternative to Salesforce / HubSpot

The open alternative to Salesforce, designed for AI.

Tech StackTypeScript, NestJS, React, PostgreSQL
Self-Host DifficultyMedium
License ModelAGPL-3.0
GitHub Repositorytwentyhq/twenty

Recommended VPS & Hardware Sizing

Estimated Hosting: $10 - $15/mo (e.g. Hetzner CPX21 or Linode)
Min RAM:2 GB
Rec RAM:4 GB
Compute:2 vCPU
Disk Space:25 GB SSD

Twenty vs Salesforce / HubSpot Comparison Matrix

Evaluation CriteriaTwenty (Open Source)Salesforce / HubSpot (Proprietary)
Per-User Pricing$0 (Unlimited seats on your VPS)$25 - $300 / user / month
Data Sovereignty100% Owned on self-hosted PostgreSQLLocked into proprietary Salesforce/HubSpot cloud
ExtensibilityOpen TypeScript / GraphQL codebaseRestricted proprietary Apex / HubL
INTERACTIVE TCO MODELEstimated Rate: $163/user/mo

Financial Impact: Migrating from Salesforce / HubSpot to Self-Hosted Twenty

Detailed Stack Calculator →
5 Users (Early Startup)50 Users (Scaleup)200 Users (Enterprise Org)
Salesforce / HubSpot (Cloud SaaS)Per-Seat Tax
$48,900per year ($4,075/mo)
3-Year Spend:$146,700

* Excludes enterprise SSO add-ons & usage overages

Twenty (Self-Hosted)Zero Per-Seat Fee
$120per year ($10/mo Linux VPS)
3-Year Compute:$360

* Commodity Hetzner / DigitalOcean compute instance

Cumulative 3-Year ROI+$146,340Net savings across 36 months (100% reduction)
Annual Free Cash:+$48,780/yr
Need C-Level Buy-In? Generate an instant ROI proposal memo to present to your CTO or CFO.

Core Capabilities & Features

✓Custom Data Objects & Fields
✓Native PostgreSQL & GraphQL APIs
✓Visual Pipelines & Kanban Views
✓Zero Per-Seat License Charges

Self-Host Twenty with Docker Compose

Tweak configuration ports, secrets, and volumes live. Download or copy your ready-to-run container file:

1-Click Docker Compose Generator

Generate production-ready container definitions with customizable ports and volumes.

TwentyAGPL-3.0

The open source CRM designed for modern teams with full AI agent support

Difficulty: Medium58,250 ⭐
Configure Parameters
docker-compose.twenty.yml
version: '3.8'

services:
  server:
    image: twentycrm/twenty:latest
    restart: unless-stopped
    ports:
      - "${SERVER_PORT:-3000}:3000"
    environment:
      - PORT=3000
      - PG_DATABASE_URL=postgresql://${DB_USER:-twenty}:${DB_PASSWORD:-twenty_secret_pass}@db:5432/${DB_NAME:-twenty}
      - SERVER_URL=http://localhost:${SERVER_PORT:-3000}
    depends_on:
      - db

  db:
    image: postgres:15-alpine
    restart: unless-stopped
    volumes:
      - twenty_pgdata:/var/lib/postgresql/data
    environment:
      - POSTGRES_USER=${DB_USER:-twenty}
      - POSTGRES_PASSWORD=${DB_PASSWORD:-twenty_secret_pass}
      - POSTGRES_DB=${DB_NAME:-twenty}

volumes:
  twenty_pgdata:

Frequently Asked Questions: Self-Hosting Twenty

How do I self-host Twenty using Docker Compose?

You can deploy Twenty (twentyhq/twenty) on any Linux server by copying the docker-compose.yml template on this page, configuring your desired host port and persistent volume directory, and running 'docker compose up -d'.

How does Twenty compare to Salesforce / HubSpot?

Twenty is an open-source, self-hosted alternative to Salesforce / HubSpot built with TypeScript, NestJS, React, PostgreSQL. Unlike Salesforce / HubSpot ($25 - $300+ / user / month + mandatory onboarding), Twenty has zero per-user licensing fees and keeps 100% of your data on your own infrastructure.

What are the minimum VPS RAM and CPU requirements for Twenty?

For production self-hosting (Medium difficulty tier), we recommend at least 4 GB RAM (minimum 2 GB), 2 vCPU, and 25 GB SSD storage, which typically costs $10 - $15/mo (e.g. Hetzner CPX21 or Linode).

Is Twenty free for commercial business use under the AGPL-3.0 license?

Yes. Distributed under the AGPL-3.0 license, Twenty can be self-hosted internally by businesses and engineering teams of any size without per-seat royalties.

README INTEGRATION // REPO EMBED

Embed Official Twenty Badge in GitHub README

Served locally from OSSMatrix with Cloudflare global edge caching. Real-time verified alternative status, zero third-party dependencies, sub-5ms load time.

Live Preview:Twenty Badge
Markdown Embed (GitHub / GitLab)
[![OSSMatrix Alternative](https://ossmatrix.com/api/badge/twenty)](https://ossmatrix.com/project/twenty)
HTML Embed (Docs / Landing Pages)
<a href="https://ossmatrix.com/project/twenty" target="_blank" rel="noopener noreferrer"><img src="https://ossmatrix.com/api/badge/twenty" alt="Twenty on OSSMatrix" /></a>
SIMILAR REPOSITORIES // PEER COMPARISON

Compare Twenty with Other Self-Hosted Alternatives

All Salesforce / HubSpot Alternatives →