Skip to content

Packs / crm-public

self-host-twenty-crm

Self-host Twenty CRM (server, worker, Postgres, Valkey) behind localhost, ready for a tunnel

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-crm-public

Install

logicpacks pack use crm-public/self-host-twenty-crm
get_pack crm-public/self-host-twenty-crm

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

  • TWENTY_PG_URL
  • TWENTY_SERVER_URL
  • TWENTY_APP_SECRET
  • TWENTY_PG_PASSWORD

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: self-host-docker
  • Checks: 3 in outcome/checks.yaml
  • Code: boot_check.shcompose_lint.pydocker-compose.yml
  • Tools: python3, docker

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Self-host Twenty CRM (server, worker, Postgres, Valkey) behind localhost, ready for a tunnel

Goal

A working Twenty CRM on our machine where we can create a company/person, see it in the list and export CSV.

Steps

  1. Copy code/docker-compose.yml to the host; write .env with the env names (values from lp key).
  2. bash code/boot_check.sh -> BOOT OK.
  3. Open http://127.0.0.1:3000, create the workspace, add one person, export the People view to CSV.
  4. Expose via Cloudflare Tunnel + Access (cloudflare space) if needed.

Edge cases

  • Twenty upgrades run DB migrations: back up Postgres first.
  • AGPL: if we modify Twenty and serve it to others we must publish the changes.

Don'ts

  • Don't use :latest.
  • Don't expose Postgres/Valkey ports.