---
title: Run in production
project: OpenSync
version: 1.0
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/opensync/1-0/guides/production/
updated: 2026-11-19T09:22:08.629Z
---

# Run in production

> Start OpenSync in release mode and keep it safe on a public server.

`npm start` runs OpenSync in debug mode. On a server, start it in release mode.

## Start in release mode

```bash
node index.js 8000 --release
```

The start log then shows `release` as the `Mode`. Keep OpenSync running with the process manager you use for your other Node.js apps, or run the [Docker image](../install-docker/).

## Keep it safe

- **Save the first setup at once.** Until the first setup is saved, anyone who opens the address can set the setup token. See [First setup](../first-setup/).
- **Use HTTPS.** Tokens travel in the address. Put OpenSync behind a web server with HTTPS, and let clients connect with `wss://` and `https://`.
- **Decide who can send.** `/sync/{channel}/` takes requests without a token, so anyone who can reach it can send messages to your clients. Let only your apps and the services you trust reach it, for example with a firewall or rules in your web server.
- **Give each app its own token,** limited to the channels it needs. See [Access tokens](../access-tokens/) and [Limit a token to channels](../token-channels/).
- **Lock the setup interface** when you do not need it: [Disconnect the setup interface](../disconnect-setup/).
- **Back up the data folder.** See [The data folder](../../reference/data-folder/).
