Start the migration
Agent migrations should always run in a new task. You can start the migration in either of these ways:Start from Agent
Create a new task

Plan a new task: describe what you want and Agent creates a plan for you.
Use Agent to migrate
Start from the Auth pane
Open Tools

The Tools tab opens the tool list alongside the active tool.
Select Users & Auth

Users & Auth in the tool list.
Select Update now

The Users & Auth tool shows the Introducing a new Replit Auth banner and its Update now action.
Ask agent to migrate

The migration overview dialog explains the Clerk Auth update and offers Ask agent to migrate.
Review the migration plan
Whichever way you start, Agent creates the Migrate from Replit Auth to Clerk task and prepares the migration plan. Select View plan and review the plan before the task proceeds.
The Migrate from Replit Auth to Clerk task starts with a View plan action so you can review the migration playbook.
What Agent does
Agent completes the migration in this order:- It moves your Replit Auth user data to Clerk, including account identity details and supported sign-in credentials.
- It waits for the data migration to finish before changing your app.
- It updates your app’s sign-in and session logic, restarts the app, and runs available automated checks.
Your app data stays in place
Agent changes only your app’s authentication code. It does not update your app’s existing database data or schema. Your tables and relationships remain intact. Your existing users remain connected to the records they already own, such as profiles, saved work, and permissions.How long it takes
Expect Agent to work for 10 minutes to an hour. The data migration itself can take several minutes for smaller apps and up to a couple of hours for apps with many users. Agent does not begin changing your app’s code until that migration completes.After the migration
Before publishing, test the updated app in Development:- Sign in with an existing account and confirm its saved data is available.
- Sign out and sign back in.
- Create a new test account and confirm it can use the app as expected.
Additional resources
- Clerk Auth overview — How Clerk Auth works on Replit
- Plan a custom auth migration — Plan a migration from a custom authentication system