Moving a project out of Crios¶
A project is never locked in. The two things that make your app yours — the code and the data — both leave in standard formats: the code is a plain Git repository, and the data is a regular database dump (PostgreSQL or MySQL, whichever the project runs on). Everything below works with stock tools; nothing needs Crios installed on the other side.
What moves, what stays¶
| Where it lives | How it leaves | |
|---|---|---|
| Code, config, migrations, seeds | The project's Git repository | git clone |
| Application data | The project's default database | Data-export download (a pg_dump archive, or a SQL dump for MySQL) |
| Named databases, if the app uses them | The project's named databases | Data-export download from the database's own row, in a session that has used it |
| Key-value and document data, if the app uses them | The project's key-value or document store | Data-export download (an RDB snapshot or a ZIP of BSON dumps) |
| Files the app's users uploaded, if the app keeps any | The published app's uploads volume (see Storage) | A copy from whoever operates your Crios installation; there is no download for them |
| Knowledge, workflows, discussions, tasks, skills | The Crios platform | These are platform features, not part of the app — they stay |
If you bound your own database to the project (bring-your-own), the data never lived in Crios to begin with: skip the export step, the database is already on your server. The Data view then offers no download of that database.
1. Clone the repository¶
Every project is backed by a Git repository you can clone — see Repositories:
A built-in repository opens on crios/main, the branch agents merge their work into. An externally linked repository (GitHub or GitLab) is already outside Crios; the agents' work is on its crios/main branch — see how agents use the repository.
2. Download the data dump¶
On any of the project's sessions, open Data (a view of the session's App tab; under Activity when the session has no app), open the ⋮ menu of the Database row (Database (sandbox) on installations that keep a development copy), and pick a download under Download: Published data is the published app's database, and Sandbox data, where there is a development copy, is the copy your sessions build against. Downloading the sandbox data takes editor access to the project, and the published data manage access; with view access you can still browse the rows in Data. For a project on PostgreSQL the download is a custom-format archive named like proj_1a2b3c4d-20260905.dump, taken with pg_dump --format=custom — the same file pg_restore consumes anywhere. For a project on MySQL it is a plain SQL dump named like proj_1a2b3c4d-20260905.sql, taken with mysqldump — readable by any MySQL or MariaDB server.
A sleeping database is woken automatically first. Where sessions and the published app share one database, as on app.crios.ai, that database is Published data, and it holds what your sessions work against too. On installations that keep development copies, the two drift apart once the app is published: the live app writes to its own database and your sessions to their copy. To move the app, download Published data.
A named database has a row of its own, Database: name, in a session that has used it, with the same downloads in its ⋮. Otherwise, ask whoever operates your Crios installation for a dump in the same formats as the downloads (pg_dump --format=custom for PostgreSQL, mysqldump for MySQL).
If the project also has a key-value store, its download is an RDB snapshot that loads into any Redis-compatible server: Sandbox data or Published data in the ⋮ of its Key-value store row or, while it has no row of its own, Sandbox key-value snapshot or Published key-value snapshot in the Database row's. A document store has no row; its download, Sandbox document archive or Published document archive in the Database row's ⋮, is a ZIP of BSON dumps: unzip it and restore with mongorestore on any MongoDB-compatible server.
3. Restore it on the new server¶
On any PostgreSQL server (managed cloud instances included):
--no-owner --no-privileges keeps the restore independent of Crios-internal role names — tables end up owned by the user you connect as.
For a MySQL project, on any MySQL or MariaDB server:
The dump deliberately contains no CREATE DATABASE statement, so it lands in whichever database you point it at.
4. Point the app at the new database¶
The app reads its database connection from the DATABASE_URL environment variable — the same contract it had inside Crios — and each named database's from its own DATABASE_URL_<NAME>. Set them wherever the app now runs:
export DATABASE_URL="postgres://user:password@db.example.com:5432/myapp"
# or, for a MySQL project:
export DATABASE_URL="mysql://user:password@db.example.com:3306/myapp"
Any other settings the app needs are listed under the project's environment variables. Sensitive values cannot be read back there, so take them from their source, such as your payment provider's dashboard. The app's owner sign-in (APP_OWNER_EMAIL and APP_OWNER_PASSWORD) can be read under Your app's sign-in. SESSION_SECRET and the signing keys Crios derived from it at publish (JWT_SECRET and the like) cannot, so give the app new random values. The variables Crios provides without listing them, such as the AI endpoint and UPLOADS_DIR, need replacements of your own (see Variables Crios provides).
5. Run it¶
The schema arrives with the dump, so migrations have already been applied; the repository's migration files remain the source of truth for future changes.