Self-hosted app·Business software
Twenty CRM hosting
on a VPS in Panama City.
Twenty hosting on a 4 vCPU / 4 GB VPS in PTY1, Panama City, for $12.99/mo: Docker Compose for v2.55.0, sizing, private setup, backups and limits.
- Twenty
- TypeScript
- PostgreSQL
- Redis
PTY1·Panama City
In stockRecommended for this use case
- 1 Gbps port15 TB of transfer a monthIncluded
- Debian 13preinstalled with the orderIncluded
- DDoS protection, 1 IPv4VNC console and full rootIncluded
Optional: daily backups +20% · extra IPv4 $2 · priority support $10
Pay yearly: $116.99 a year, about 25% less
- No KYC
- Crypto only
- Panama jurisdiction
- 4 vCPU, 4 GB RAM
- 160 GB NVMe local storage
- 15 TB transfer on a 1 Gbps port
- DDoS protection included
- Panamanian law
01/06
Short answer.
Yes, Twenty runs on our Cloud VPS Standard plan in PTY1, Panama City: 4 vCPU, 4 GB of RAM, 160 GB of NVMe and 15 TB of monthly transfer for 12.99 USD a month, installed from the project's own Docker Compose file on Debian 13. Twenty's documentation puts the floor at 2 GB of RAM, and Standard gives you twice that, which is the margin Postgres, Redis, the background worker and the upgrade migrations need when they all ask for memory at the same moment. The plan is the easy decision. What deserves your attention is exposure: the stock compose file publishes port 3000 on every interface, and a fresh single-workspace instance makes the first person who signs up its administrator. Bind Twenty to localhost and put an IP allowlist in front of it before the first docker compose up.
02/06
What Twenty is
and who runs it.
Twenty is an open-source CRM developed by Twenty.com, PBC, with its code on GitHub under twentyhq/twenty. The back end is TypeScript on NestJS, with BullMQ job queues, PostgreSQL for the data and Redis for queues and cache; the same server process also delivers the React front end. Beyond the standard people, companies and opportunities, you can define your own objects and fields, build workflows, sync Google or Microsoft 365 mailboxes and calendars, and reach everything through REST and GraphQL APIs generated from your workspace schema. Most of the work in recent releases has gone into AI chat, an MCP server and a framework for writing CRM extensions as TypeScript apps.
The licence is mixed and worth reading before you build on it. Most of the repository is AGPLv3; the SDK packages, the UI library and the bundled apps are MIT; files headed @license Enterprise fall under Twenty's commercial licence, which requires a paid Enterprise subscription for production use. Running Twenty unmodified for your own team creates no duty to publish anything. Modify the core and let people outside your organisation use it, and section 13 of the AGPL applies to your changes.
The people who self-host Twenty are mostly small technical teams that want to version their CRM like the rest of their stack and keep customer data on hardware they chose. The fact to plan around is the release cadence: v2.52.0 shipped on 27 October 2026, v2.53.1 and v2.54.0 on 30 October, and v2.55.0 on 3 November with five breaking API changes. This page was written against v2.55.0.
Our servers are in Panama City and answer to Panamanian law. A US DMCA notice has no legal effect here, and we act only on valid orders from competent Panamanian authorities.
03/06
Requirements and sizing.
The official compose file starts four containers:
| Service | Image | What it does |
|---|---|---|
server | twentycrm/twenty:${TAG} | API and front end on port 3000, database migrations, cron registration |
worker | same image, yarn worker:prod | Imports, mailbox and calendar sync, workflow runs |
db | postgres:16 | All CRM data, synced messages included |
redis | redis (no version tag) | Job queues and cache, set to noeviction |
Two Node.js processes, Postgres and Redis on 2 GB is the documented minimum, and our Starter plan has exactly that. It boots, and it will do for an afternoon of evaluation, but it leaves Postgres almost no page cache and no headroom for the jobs that briefly push memory up: a large CSV import, a first mailbox sync, or the backfill commands a new version runs on its first start. Twenty's own guide warns that running short of memory crashes processes, and on a small Twenty VPS that is the failure you will see first. Standard is where we start a team. Move to Cloud VPS Pro (6 vCPU, 8 GB, 320 GB NVMe, 20 TB, $22.99) once many people sync full mailboxes or workflows fire on every record change; the step up buys RAM, which is the resource Twenty exhausts before CPU.
We have not published a measurement of our own. The only public figure we found comes from a third-party test of v2.1.0 in May 2026 on a 4 vCPU / 8 GB machine, which reported about 1.2 GB at idle and 1.8 GB during a 5,000-contact import.
The 160 GB disk is rarely the constraint. Records are small; what grows is attachments, which land in the server-local-data Docker volume unless you send them to S3, and synced email, which is stored in Postgres. Keep at least as much free space as the database occupies, because the nightly dump is written locally before it leaves the machine. Transfer is even less of a concern: as a theoretical upper bound, 20 users each moving 1 GB a day, far more than a CRM interface does, comes to 600 GB a month, about 4 % of Standard's 15 TB. It is still an allowance and not unmetered, so the case to watch is an integration that re-downloads attachments in a loop.
Inside the VPS, Twenty listens on 3000. From the internet you need 443, port 80 for certificate challenges and the HTTPS redirect, and SSH. Postgres and Redis are not published by the compose file and must stay that way. One Docker detail catches people: Docker writes its own iptables rules, so a port it publishes is reachable even when ufw reports it closed, which is why step 5 below changes the port binding. Outbound, Twenty sends invitations and password resets through an SMTP relay on 465 or 587. Port 25 is open on every one of our VPS plans, but you only need it if you run your own mail server next to the CRM.
04/06
How to deploy it
with us.
- 01Order Cloud VPS Standard with Debian 13 from the link above. An email address is enough to open the account (no-KYC hosting), and the server boots with your SSH key in place. Point an A record, say
crm.example.com, at the IPv4 address it receives. The plan itself is described on the Cloud VPS page.
- 02Install Docker and Caddy:
apt update && apt install -y caddy curl openssl
curl -fsSL https://get.docker.com | sh- 03Fetch the compose file and the example environment from the release tag rather than from
main, so the file matches the image you will run:
mkdir -p /opt/twenty && cd /opt/twenty
BASE=https://raw.githubusercontent.com/twentyhq/twenty/refs/tags/twenty/v2.55.0/packages/twenty-docker
curl -fsSL -o docker-compose.yml "$BASE/docker-compose.yml"
curl -fsSL -o .env "$BASE/.env.example"- 04Fill in
.env. PinTAGto an exact image tag from Docker Hub; the file ships withlatest, which is the wrong default for a system your sales team depends on. Generate the Postgres password in hex, because Twenty inserts it unencoded into the connection URL and an@,/or#breaks the string.
TAG=v2.55.0
SERVER_URL=https://crm.example.com
ENCRYPTION_KEY=<output of: openssl rand -base64 32>
PG_DATABASE_PASSWORD=<output of: openssl rand -hex 32>
STORAGE_TYPE=localCopy ENCRYPTION_KEY somewhere off the server. Twenty encrypts OAuth tokens, TOTP secrets and app variables with it, and if the key is lost those secrets are unrecoverable even from an intact database backup.
- 05Edit
docker-compose.yml: change the server'sportsentry from"3000:3000"to"127.0.0.1:3000:3000", and give theredisimage a major-version tag instead of the bare name, so that a routinedocker compose pullcannot move you to a new Redis major without your noticing.
- 06Write
/etc/caddy/Caddyfile, replacing the documentation range with your office or VPN addresses, then runsystemctl reload caddy:
crm.example.com {
# Open these only for features you use: workflow webhooks, app routes, campaigns
# @public path /webhooks/* /s/* /emailing/*
# handle @public {
# reverse_proxy 127.0.0.1:3000
# }
@team remote_ip 203.0.113.0/24
handle @team {
reverse_proxy 127.0.0.1:3000
}
handle {
respond 403
}
}- 07Start the stack and wait for the health check to pass:
docker compose up -d
docker compose ps
curl -fsS http://127.0.0.1:3000/healthzThe server applies its database migrations on the first start. Open https://crm.example.com from an allowed address and create your workspace straight away: in the default single-workspace mode the first account receives full admin rights and sign-ups close once that workspace exists, which is the reason the allowlist goes in before this step. SMTP, Google and Microsoft OAuth and storage are configured afterwards under Settings → Admin Panel → Configuration Variables.
Caddy is our default because it obtains and renews certificates by itself. If you already run nginx, our nginx guide covers the proxy; forward Host and X-Forwarded-Proto, which Twenty uses to build its OAuth and MCP URLs. Twenty's documentation also describes Tailscale and Cloudflare Tunnel setups. Both work, but a Cloudflare tunnel terminates every CRM request at a US company, an odd arrangement if Panama was part of the reason you came here, and WireGuard on the VPS itself gives the same private-by-default result with no third party involved.
- 01
Backups
The backup line in Twenty's Docker guide addresses a container called
twenty-postgresand a database calledtwenty. The current compose file creates neither: the container istwenty-db-1and the database is nameddefault. Going through Compose by service name avoids the problem entirely:#!/bin/sh # /etc/cron.daily/twenty-backup set -eu . /root/restic.env # RESTIC_REPOSITORY, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, RESTIC_PASSWORD_FILE cd /opt/twenty mkdir -p /var/backups/twenty docker compose exec -T db pg_dump -U postgres -Fc default > "/var/backups/twenty/twenty-$(date +%F).dump" restic backup /var/backups/twenty /opt/twenty/.env find /var/backups/twenty -name '*.dump' -mtime +7 -deletePoint
RESTIC_REPOSITORYat a bucket in our object storage (s3:https://<endpoint>/<bucket>/twenty, with the endpoint and access key shown for the bucket in your panel and the secret key from the ticket we send at delivery). Restic encrypts the repository, so the copy of.envinside it is protected by the restic password, which belongs somewhere other than this VPS. If attachments stay on local storage, add thetwenty_server-local-datavolume to the backup. The daily-backup option on the VPS is a reasonable second layer for the system as a whole, but an image of a disk under a running Postgres is not what you want to restore a database from; the dump is. Run a test restore withpg_restorebefore the day you need one.To keep attachments off the VPS disk, set
STORAGE_TYPE=S_3withSTORAGE_S3_ENDPOINT,STORAGE_S3_NAMEand the bucket's access keys. Twenty's documentation describes no tool for moving files already in the local volume, so make this choice before anyone uploads. - 02
Upgrades
Since v1.23 Twenty upgrades across any number of versions in one step, and the server runs the required migrations when it starts. Take a dump, read the breaking-changes section of every release between your version and the target, change
TAGin.env, then rundocker compose pull && docker compose up -d;docker compose exec server yarn command:prod upgrade:statustells you whether each workspace caught up. The notes are not optional reading. v2.55.0, for example, makes every webhook require a role, which breaks any script that creates webhooks through the API. Security fixes make the case for upgrading quickly: once a fix is public, its diff tells attackers what to probe on instances that have not moved, and the allowlist is what covers you in the days between a release and your upgrade.
05/06
Cost.
| Item | Per month |
|---|---|
| Cloud VPS Standard: 4 vCPU, 4 GB RAM, 160 GB NVMe, 15 TB transfer, 1 Gbps, 1 IPv4 | $12.99 |
| Daily backups option (+20 %) | $2.60 (theoretical: 20 % of $12.99, rounded) |
| Object storage, 250 GB bucket for dumps and attachments | $1.99 |
| Total | $17.58 |
Every VPS includes DDoS protection, full root access and open outbound port 25, and yearly billing takes about 25 % off. If you outgrow Standard, Pro at $22.99 replaces it. Twenty's AGPL edition costs nothing; anything under its Enterprise licence is billed by Twenty.com, PBC, not by us.
We take cryptocurrency only (BTC, XMR, ETH, USDT, USDC, LTC and six other coins), and balances are kept in US dollars. Top-ups run from $25 to $5,000 and carry a bonus of 5 % from $50, 10 % from $100, 15 % from $250 and 20 % from $500, so a $100 top-up becomes $110 of balance, roughly six months of the setup above (theoretical: 110 ÷ 17.58 ≈ 6.3). The unused paid part of a top-up is refundable within 14 days, and business customers paying in crypto are welcome. The terms are on the pricing page.
06/06
Limits and acceptable
use.
Transfer on a VPS is included, not unmetered: 15 TB a month on Standard. Two rules bear directly on Twenty. Since v2.54 the email-campaign module is switched on for every workspace, and port 25 is open on our VPS plans; neither makes it acceptable to mail purchased or scraped lists. That is spam, which our acceptable use policy excludes along with phishing, fraud and malware, and a CRM filled with harvested personal data for any of those purposes is not something we host. Separately, logic functions and the AI code interpreter are disabled by default in production, and the only driver that runs them without an outside service executes code on the host with no sandbox. Leave them off unless everyone who can write a function is someone you would trust with a shell.
The data in the CRM is yours to answer for. Personal data processed from Panama falls under Law 81 of 26 March 2019, implemented by Executive Decree 285 of 28 May 2021 (our summary of Panama's data protection law). If the records include people in the EU, Panama has no EU adequacy decision, so the transfer needs appropriate safeguards under Article 46 of the GDPR, usually the 2021 standard contractual clauses. Law 51 of 2009 requires telecommunications companies, internet cafés and other communication networks that provide or sell the service to keep certain user data for six months; whether that reaches a hosting provider is a question for Panamanian counsel. AGPL compliance for any modified Twenty you expose to outside users is yours as well.
What offshore hosting in Panama changes is the route a foreign request takes, not whether one can arrive. Article 29 of Panama's Constitution allows private communications to be intercepted or recorded only on the order of a judicial authority, and private documents to be examined only on the order of a competent authority for specific purposes. As of 31 October 2026 the US Department of Justice lists CLOUD Act executive agreements only with the United Kingdom and Australia, none with Panama, but the mutual legal assistance treaty signed in 1991 and in force since 6 September 1995 gives US prosecutors a path through Panamanian authorities. A DMCA notice has no legal effect on servers in Panama. We forward copyright complaints to the customer and act on a decision of a competent Panamanian authority, or where the content is manifestly unlawful.
If you are comparing self-hosted business applications, our Decidim guide covers another Postgres-backed platform on the same VPS family, with the same approach to sizing and backups.
Catalogue·Options
Every configuration, every option, every price.
Six cloud VPS plans on AMD EPYC with local NVMe. Transfer is included on every plan, from 10 TB to 100 TB a month.
| Plan | vCPU | Memory | NVMe | Transfer | Port | Price | Deploy |
|---|---|---|---|---|---|---|---|
| StarterStaging, dev | 2 | 2 GB | 80 GB | 10 TB / month | 1 Gbps | $6.99/mo | Deploy Starter |
| StandardRecommendedSmall apps | 4 | 4 GB | 160 GB | 15 TB / month | 1 Gbps | $12.99/mo | Deploy Standard |
| ProProduction | 6 | 8 GB | 320 GB | 20 TB / month | 1 Gbps | $22.99/mo | Deploy Pro |
| PowerHeavy workloads | 12 | 16 GB | 640 GB | 40 TB / month | 2 Gbps | $42.99/mo | Deploy Power |
| UltraDatabases | 16 | 32 GB | 1000 GB | 60 TB / month | 2 Gbps | $65.99/mo | Deploy Ultra |
| TitanDense hosts | 32 | 64 GB | 2000 GB | 100 TB / month | 5 Gbps | $119.99/mo | Deploy Titan |
Every plan runs on AMD EPYC with local NVMe. Yearly billing costs about 25% less.
Every plan
- AMD EPYCon every host
- Local NVMenot network storage
- DDoS protectionalways on
- 1 IPv4 addressmore at $2 each
- VNC consoleand full root access
FAQ
Questions
people ask first.
Short answers about running this in PTY1. If yours is not here, open a ticket from your panel.
Can I run Twenty on the $6.99 Starter VPS?
For a trial, yes. Starter's 2 GB of RAM equals Twenty's documented minimum and leaves nothing for imports, mailbox sync or the migrations of an upgrade, which are exactly the moments a short-of-memory process gets killed. For a CRM people rely on, start on Standard at $12.99.
Does a self-hosted Twenty need a domain and HTTPS?
In production, yes. Several browser features, the copy buttons among them, require a secure context, and SERVER_URL must match the address users type, because Twenty uses it for links in emails, OAuth callbacks and the secure-cookie decision. A subdomain pointing at the VPS, with Caddy issuing the certificate, covers it.
Can I keep Twenty's attachments in your object storage?
Yes, through Twenty's own S3 driver: STORAGE_TYPE=S_3 plus the bucket's endpoint, name and access keys. The bucket is used over the S3 API; it is not a disk you format or mount on the VPS, and it should never sit under the Postgres data directory. Our buckets are billed by size only, with no request fees and unlimited traffic, so heavy attachment use does not change the bill.
Can I sync Gmail or Microsoft 365 mailboxes?
Yes, with your own OAuth application registered at Google or Microsoft and redirect URIs on your domain. By default Twenty polls mailboxes, so Google and Microsoft never need to reach your server and the allowlist can stay closed to them. Keep in mind that syncing a copy into PTY1 leaves the original on Google's or Microsoft's servers.
What happens if an upgrade fails halfway?
The server stops at the failing step and retries from there on the next docker compose up -d. upgrade:status --failed-only lists the workspaces that are behind, with the error for each. Keep the pre-upgrade dump until the new version has run cleanly for a few days.
Does hosting Twenty in Panama keep my CRM away from US authorities?
Not as a blanket matter. There is no CLOUD Act agreement with Panama, so a US request has to travel through the 1995 treaty to Panamanian authorities, and Article 29 of the Constitution puts a judicial or competent-authority order in the way. That is a slower, supervised route, not immunity.
Sources
Every fact on this page, with its source
Verified 31 Oct 2026 unless noted.
Panamanian law and authorities
- Law 81 of 26 March 2019 on personal data protection, implemented by Executive Decree 285 of 28 May 2021Gaceta Oficial 28743-A
- Law 51 of 2009, art. 6, six-month retention for telecommunications companies, internet cafés and other communication networksGaceta Oficial 26374
- Constitution of Panama, art. 29, interception of communications and examination of private documentsG.O. 25176 (Legispan)
EU and other countries
Industry, providers and software
- docker-compose.yml and .env.example, packages/twenty-docker in twentyhq/twenty: services, images, port mapping, database name default, TAG=latestdocker-compose.yml
- Twenty releases: v2.52.0 (27 Oct 2026), v2.53.1 and v2.54.0 (30 Oct 2026, campaign feature flag removed), v2.55.0 (3 Nov 2026, five breaking changes including webhook roles)github.com/twentyhq/twenty/releases
- Twenty licence: AGPLv3, MIT packages, Enterprise-marked files under the Twenty.com commercial licenceLICENSE
Other references
- Twenty documentation, Docker Compose: 2 GB RAM minimum, installation, SERVER_URL, SSL requirement, backup commandsdocs.twenty.com
- Twenty documentation, Securing your instance: private and public paths, localhost binding, Docker bypassing ufw, pinned TAGdocs.twenty.com
- Twenty documentation, Upgrade guide: cross-version upgrades since v1.23, migrations on startup, PostgreSQL 15 minimum from v2.34, upgrade:statusdocs.twenty.com
- Twenty documentation, Setup: single-workspace mode, S3 variables and path-style addressing, logic function and code interpreter defaults, encryption keysdocs.twenty.com
- Third-party resource test of Twenty v2.1.0, tested 1 May 2026: about 1.2 GB idle, 1.8 GB peak on a 5,000-contact importuse-apify.com
- US–Panama mutual legal assistance treaty in criminal matters, signed 1991, in force 6 September 1995US Department of State
Your server in Panama,
ready when you are.
Cloud VPS start at $6.99 a month and are ready 60 to 120 seconds after you order.