Operation
Self-hosted team chat with Cipher Chat
Cipher Chat is an end-to-end encrypted team chat that you run as one Docker image with a SQLite database on your own server. LiveKit and coturn are added for calls; it needs no database cluster and no message broker.
Architecture: three services and an optional fourth
- cipher Server and web app
- livekit Media server for calls
- coturn TURN for connections behind firewalls
- ollama Language model for summaries optional
The cipher container holds the server and the web app. The database is a SQLite file, and uploaded files are stored encrypted in a directory next to it. Both live in one Docker volume.
LiveKit is the media server for calls and meetings, and coturn helps devices behind strict firewalls to connect. A language model such as Ollama is only added if you want call summaries.
In front of it all stands a reverse proxy that terminates TLS; the sample configuration that ships with it uses nginx. The chat server itself is only reachable locally.
What you need
- A Linux server with Docker and Docker Compose.
- Three DNS names: for the app, for LiveKit’s signalling and for the TURN server.
- TLS certificates for the first two; the sample configuration is laid out for Let’s Encrypt.
- Open ports: 80 and 443 (TCP) for the reverse proxy, 7881 (TCP) and 7882–7892 (UDP) for LiveKit, 3478 and 49152–49200 (UDP) for coturn.
- An identity provider that speaks OpenID Connect.
Installation at a glance
- 1
Set up DNS and TLS
Create the three DNS names and set up the reverse proxy with certificates.
- 2
Create a client in the identity provider
Cipher Chat signs in there as an OIDC client. You enter the redirect address and receive a client ID and secret.
- 3
Configure the environment
A
.envfile holds the addresses, the OIDC client’s credentials and the secrets for sessions, files, LiveKit and coturn. - 4
Start
Docker Compose starts cipher, LiveKit and coturn. The server creates the database itself on first start.
- 5
Optional: summaries
If you want call summaries, you also start the language model and enter its address.
Sign-in through OpenID Connect
OpenID Connect (OIDC) is a standard by which an application hands sign-in over to a central service – your identity provider. Cipher Chat manages no passwords of its own and knows only an account’s name, email address and identifier.
Who may sign in is decided by the identity provider: every account it lets through is created in Cipher Chat. The server keeps checking open sessions against it. A blocked account loses access as soon as its token expires.
Backup and updates
What you have to back up is the data volume – the SQLite file and the directory with the encrypted files – and the .env file with the secrets. Private keys are not on the server but in the users’ browsers.
Someone who loses a device restores their history with the recovery phrase. Without the phrase and without a signed-in device, that person’s history cannot be restored – not from your backup either.
An update means: pull the new image, restart the container. The server applies changes to the database itself on start. Before restarting it tells the connected devices; they reconnect by themselves afterwards and offer to load the new version.
Operating effort compared
| Cipher Chat | Matrix (Synapse, Element) | Mattermost | |
|---|---|---|---|
| Services | cipher, LiveKit, coturn | Synapse, Matrix Authentication Service, Element Web, RTC backend and more[1] | Mattermost server and database, optionally NGINX[2] |
| Database | SQLite, one file | PostgreSQL; per the documentation SQLite is for testing only[3] | PostgreSQL 15 or later[4] |
| Deployment | Docker Compose | Element Server Suite: Helm chart on Kubernetes[1] | Kubernetes recommended; per the documentation Docker Compose is not for production[2] |
| Calls | LiveKit and coturn, end-to-end encrypted | Element Call: LiveKit and an authorisation service, end-to-end encrypted[5] | Calls plugin; from about 50 users a separate RTCD service (Enterprise), not end-to-end encrypted[6][7] |
| Several servers | No, one process | Scaling through workers with PostgreSQL and Redis[8] | High availability with an Enterprise licence[9] |
More services are not a flaw: they stand for federation, scaling and high availability, which Cipher Chat does not offer. Cipher Chat is kept small on purpose – for organisations that want to run a closed team chat without a platform team of their own.
The comparisons in detail: Cipher Chat or Mattermost and Cipher Chat or Element/Matrix.
Operated by 4eBusiness if you like
You can run Cipher Chat on your own. If you like, 4eBusiness GmbH supports you with setup and operation. Where that gives us access to your system, it takes a data processing agreement – more under Cipher Chat and the GDPR.
To be honest: the limits
- One server, one process. There is no cluster operation. A restart is a short interruption.
- No admin console. You manage users in the identity provider; Cipher Chat has no administration interface.
- Files are stored locally. Storage is a directory on the server; there is no connection to object storage.
- A browser, not an app. Cipher Chat runs in the browser. Notifications arrive while a tab is open; there are no native apps and no push notifications.
- Backup is your job. Cipher Chat has no built-in backup.
Frequent questions
Do we need Kubernetes to run Cipher Chat?
No. Cipher Chat runs with Docker Compose on a single Linux server. The Compose file that ships with it starts the chat server, LiveKit and coturn.
Which database does Cipher Chat use?
SQLite. The database is one file in the container’s data volume; you do not have to run a database server. That keeps operation small, but it assumes a single server.
Which identity providers work?
Any that speaks OpenID Connect with the authorization code flow and PKCE. Cipher Chat does not support local password sign-in, LDAP or SAML.
Can we run Cipher Chat without calls?
Yes. Calls and meetings only exist when LiveKit is set up. Without LiveKit and coturn, Cipher Chat runs as a chat with files.
What happens during an update?
You pull the new image and restart the container. The server applies any changes to the database on start. Connected devices reconnect afterwards and offer to load the new version.
Is Cipher Chat open source?
No. Cipher Chat is self-hosted, but its source code is not public. You get the image from 4eBusiness GmbH.
Sources
Statements about other vendors come from their own publications, accessed on November 21, 2026. Products change; the source itself is what counts.
- Element Server Suite Community: components, editions, requirements – Element on GitHub
- Deploy Mattermost server: deployment methods – Mattermost documentation
- Synapse installation: database and reverse proxy – Synapse documentation
- Software and hardware requirements – Mattermost documentation
- Self-hosting Element Call – Element on GitHub
- Calls deployment guide – Mattermost documentation
- Make calls: how call media is encrypted – Mattermost documentation
- Scaling Synapse via workers – Synapse documentation
- High availability cluster-based deployment – Mattermost documentation
See Cipher Chat in your environment?
We show you installation and operation in a live demo and work out how Cipher Chat fits your infrastructure.