Get Better Auth Studio up and running in your project.
For the hosted version, please join the waitlist: better-auth.build
Better Auth Studio is currently in beta and in early development. You may encounter bugs or incomplete features. Please report any issues you find on our GitHub repository to help us improve the project. Your feedback is greatly appreciated!
Experience the latest features, patches, and improvements by installing the beta version. The beta includes recent bug fixes, performance enhancements, and new functionality that may not be available in the stable release yet.
As dev dependency (recommended):
Or globally:
Note: The beta version may include experimental features.
Recommended: Install as dev dependency (for project-specific versions):
This keeps the studio version consistent across your team and project.
Stable version (global):
Beta version (recommended, global):
Or use pnpx to run it without installation:
1. Navigate to your Better Auth project directory
2. Start the studio
If installed as dev dependency:
Or with pnpx:
3. Open your browser
http://localhost:3000Before using Better Auth Studio, ensure you have:
auth.ts configuration fileBetter Auth Studio automatically detects and works with:
prismaAdapter)drizzleAdapter)new Database() from better-sqlite3)If installed as dev dependency:
Or with pnpx:
--port <number> - Specify port (default: 3000)--host <string> - Specify host (default: localhost)--no-open - Don't automatically open browser--config <path> - Path to auth config file (default: auto-detect)--watch - Watch for changes in auth config file and reload server automaticallyStart on custom port:
Or: pnpx better-auth-studio start --port 3001
Start without opening browser:
Use custom config file:
Enable watch mode for auto-reload on config changes:
Combine multiple options:
--config OptionSpecify a custom path to your auth config file when it's in a non-standard location or auto-detection fails.
Relative or absolute paths:
Note: TypeScript path aliases (like $lib, $app/*) are automatically resolved based on your tsconfig.json.
--watch OptionAutomatically reload the server when your auth.ts file changes. Ideal for development when iterating on your auth configuration.
Enable watch mode:
How it works: Monitors your auth config file for changes, automatically restarts the server, and updates the browser UI via WebSocket - no manual refresh needed.
Check version:
Show help:
Clone the repository:
Install dependencies:
Build the project:
Start development server:
If you encounter any issues or have questions: