Get Better Auth Studio up and running in your project.
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.
pnpm add -g better-auth-studio@beta
Note: The beta version may include experimental features.
Stable version:
pnpm add -g better-auth-studio
Beta version (recommended):
pnpm add -g better-auth-studio@beta
Or use pnpx to run it without installation:
pnpx better-auth-studio@beta
1. Navigate to your Better Auth project directory
cd your-better-auth-project
2. Start the studio
pnpx better-auth-studio start
3. Open your browser
http://localhost:3000
Before 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)// auth.ts
import { betterAuth } from "better-auth";
import { prismaAdapter } from "better-auth/adapters/prisma";
import { PrismaClient } from "@prisma/client";
const prisma = new PrismaClient();
export const auth = betterAuth({
database: prismaAdapter(prisma, {
provider: "postgresql", // or "mysql", "sqlite"
}),
// ... other config
});
// auth.ts
import { betterAuth } from "better-auth";
import { drizzleAdapter } from "better-auth/adapters/drizzle";
import { db } from "./database";
export const auth = betterAuth({
database: drizzleAdapter(db, {
provider: "pg", // or "mysql", "sqlite"
}),
// ... other config
});
// auth.ts
import { betterAuth } from "better-auth";
import Database from "better-sqlite3";
export const auth = betterAuth({
database: new Database("./better-auth.db"),
// ... other config
});
pnpx better-auth-studio start [options]
--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)Start on custom port:
pnpx better-auth-studio start --port 3001
Start without opening browser:
pnpx better-auth-studio start --no-open
Use custom config file:
pnpx better-auth-studio start --config ./custom-auth.ts
Check version:
pnpx better-auth-studio --version
Show help:
pnpx better-auth-studio --help
Clone the repository:
git clone https://github.com/better-auth/better-auth-studio.git
cd better-auth-studio
Install dependencies:
pnpm install
Build the project:
pnpm run build
Start development server:
pnpm run dev
If you encounter any issues or have questions: