OpenPanel
Self-hosting

Migrating from Clerk

This is a simple guide how to migrate from Clerk to OpenPanel.

As of version 0.0.5, we have removed Clerk.com from OpenPanel. This means that if you are upgrading from a previous version, you will need to export your users from Clerk and import them into OpenPanel. Here is how you can do it.

Before we start lets get the users from Clerk. Go to Clerk > Configure > Settings > Export all users and download the CSV file. This file will be used to import the users into OpenPanel.

Copy the csv file we downloaded from Clerk to your server:

scp ./path/to/your/clerk-users.csv user@your-ip:users-dump.csv

SSH into your server:

ssh user@your-ip

Pull the latest images, and restart the containers:

docker compose pull
docker compose down
docker compose up -d

SSH into your server:

ssh user@your-ip

Run the following command to copy the file to the OpenPanel container:

docker compose cp ./users-dump.csv op-api:/app/packages/db/code-migrations/users-dump.csv

Run the migration:

docker compose exec -it op-api bash -c "cd /app/packages/db && pnpm migrate:deploy:db:code 2-accounts.ts"

On this page

No Headings