# Self-hosting

> Run the open-source engine yourself, with Docker or on AWS, against your own Postgres.

Applies to: the Sypnia engine (open source, self-hosted).  
Source: https://data.docs.sypnia.com/self-hosting/

For agents: Self-hosting index: the engine is one binary or the image ghcr.io/sespinosav/sypnia-data; needs a Postgres 14+, a 32-byte master key (SYPNIA_DATA_MASTER_KEY) and an e-mail provider; one project or many (projects.toml). Pages: Docker, AWS (template), configuration (every setting), upgrades and backups.

The engine is free and open source. You need three things:

1. **A Postgres 14 or later** — yours, anywhere ([Any Postgres](https://data.docs.sypnia.com/data/any-postgres)).
2. **A master key** — 32 random bytes that encrypt the signing keys and stored credentials. Lose it and every session ends; keep it in a secrets manager.
3. **An e-mail provider** — unless your project uses only Google and GitHub.

- [Docker](/self-hosting/docker/): Run the engine as a container with Postgres and a mail catcher, for development or production.
- [AWS](/self-hosting/aws/): Deploy the engine in your AWS account with one template: Lambda behind CloudFront at your address, a new RDS Postgres or yours, and SES.
- [Configuration](/self-hosting/configuration/): Every setting of the engine and of a project, with its default, and every command of the engine's binary.
- [Upgrades and backups](/self-hosting/upgrades-and-backups/): How to upgrade the engine without downtime, and what to back up.

## One project or many

A self-hosted engine serves one project by default, the one in `DATABASE_URL`. To serve several, list them in `projects.toml` with their hosts and databases; each project keeps its own database, keys and settings.
