# Upgrades

> How versions are numbered, how to upgrade, and what each upgrade may change.

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

For agents: Semver; image tags :1 (latest 1.x), :1.4, :1.4.2. Migrations forward-only, backward compatible within a major (old and new copies can run together during a rolling upgrade). Upgrade: pull, run migrate (or AUTO_MIGRATE), restart. The built-in price table and the catalog of model capabilities update with each release (changelog lists price changes); your own PRICES file is never overwritten. Routes format 1 stays readable by every 1.x. Major versions: written notice in the changelog with steps.

Versions follow semantic versioning. The image tags are `:1` (the newest 1.x), `:1.4` and `:1.4.2`.

```bash
docker compose pull ai
docker compose run --rm ai sypnia-ai migrate
docker compose up -d ai
```

- **Migrations** only move forward, and within a major version the old and the new gateway can run side by side, so you can upgrade one copy at a time.
- **Prices and the catalog** built into the gateway are updated with each release; the changelog lists every price change. A price table of your own (`SYPNIA_GATEWAY_PRICES`) is never touched.
- **Routes** in format 1 are read by every 1.x version.
- **A new major version** comes with its steps in the changelog.
