# Self-hosting

> Run a private registry for your company: what it gives you, what you need, and how projects use it.

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

For agents: Self-hosted registry: one container (ghcr.io/sespinosav/sypnia-registry, port 8096) + Postgres 14+ + S3-compatible storage (or a local folder) + a CDN optional; sign-in through a Sypnia Data engine or any OpenID Connect provider; signing key file (Ed25519); optional AI review endpoint (OpenAI-compatible); optional mirror of chosen public skills from skills.sypnia.com (kept with their original signatures); human review optional (SYPNIA_SKILLS_REVIEW). Projects point a publisher or every skill at it in the [skills.registries] table of sypnia.toml or skills registry add.

A company runs its own registry to keep its skills inside, review them its own way and choose which public skills its agents may use.

## What you need

|               |                                                                          |
| ------------- | ------------------------------------------------------------------------ |
| The engine    | one container, `ghcr.io/sespinosav/sypnia-registry`                      |
| A database    | Postgres 14 or newer                                                     |
| Storage       | any S3-compatible storage, or a folder on disk for a small team          |
| Sign-in       | a Sypnia Data engine, or any OpenID Connect provider your company uses   |
| A signing key | an Ed25519 key file the engine creates on first start                    |
| Optional      | a CDN in front of downloads; a model endpoint for the instructions check |

## Using it from a project

```bash
npx @sypnia/skills registry add acme https://skills.acme.internal --publisher acme
```

From then on, skills of the publisher `acme` come from your registry and everything else from skills.sypnia.com. Leave out `--publisher` to use your registry for every skill.

## Public skills, under your rules

Set `SYPNIA_SKILLS_MIRROR` to a list of public skills (or `official` for every Sypnia skill). The registry copies them from skills.sypnia.com with their original signatures, so your projects install them from you and the CLI still verifies Sypnia's signature.

- [Docker](/self-hosting/docker/): The registry's image, and a compose file with Postgres and MinIO for your machine.
- [Configuration](/self-hosting/configuration/): Every setting of the registry engine.
- [Upgrades and backups](/self-hosting/upgrades/): Upgrading the registry, and the three things to back up.
