Prerequisites
Before you begin, make sure you have:- A Better Auth project with an
auth.tsconfiguration file - Node.js v18 or higher installed
- A configured database (Prisma, Drizzle, or SQLite)
If you don’t have a Better Auth project yet, visit the Better Auth documentation to set one up first.
Start Studio
Run the CLI
You can run Better Auth Studio without installing it using Alternatively, if you’ve installed it as a dev dependency:
pnpx:The first run may take a moment as it downloads the necessary files.
What you’ll see
Once Studio launches, you’ll have access to:- Dashboard: Overview statistics showing user counts, teams, and organizations
- Users: Complete user management interface with search and filtering
- Organizations: Manage organizations and their teams
- Settings: View your Better Auth configuration and enabled plugins
Common use cases
Create your first user
Seed test data
Quickly generate test users for development:- Go to the Users page
- Click the “Seed Users” button
- Specify how many test users to create
- Studio will generate users with random data
View user details
Click on any user in the users table to view:- User profile information
- Linked social accounts
- Session history
- Organization memberships
- Last seen timestamp (if events are enabled)
Configuration auto-detection
Studio automatically searches for yourauth.ts configuration file in common locations:
./auth.ts./src/auth.ts./lib/auth.ts./src/lib/auth.ts./server/auth.ts
--config flag:
CLI options
Customize how Studio runs with these options:Watch mode
Enable watch mode to automatically reload Studio when yourauth.ts file changes:
Troubleshooting
Studio can't find my auth.ts file
Studio can't find my auth.ts file
Use the
--config flag to specify the exact path to your auth configuration file:Port 3000 is already in use
Port 3000 is already in use
Specify a different port using the
--port flag:Database connection errors
Database connection errors
Ensure your database is running and your
auth.ts configuration has the correct connection details. Studio uses the same database adapter configured in your Better Auth instance.Studio shows 'No users found'
Studio shows 'No users found'
This is normal for new projects. Use the “Create User” or “Seed Users” buttons to add test data.
Next steps
Now that you have Studio running:Installation guide
Learn about different installation methods
Self-hosting
Deploy Studio in production with your app
Configuration
Customize Studio for your needs
User management
Deep dive into user management features