1
Create a Database
From your Bunny dashboard, click Add in the left-hand sidebar and select Database.

2
Name your database
Enter a unique name for your database. This name will be used to identify your database in the dashboard and connection URLs.

3
Select a region
Choose how you want your database deployed:
- Automatic
- Single region
- Manual
Automatic region selection: We will choose the optimal regions for your
database based on your location and best performance.

4
Create the database
Click Add Database to create your database.

5
Get your credentials
Once created, copy your connection credentials:
- Database URL: Your database endpoint
- Access Token: Choose between Full Access (read/write) or Read Only depending on your needs

6
Connect from Edge Scripting or Magic Containers (Optional)
If you have an existing Edge Script or Magic Container, you can add your database credentials directly from this page:
- Click Add Secrets to Edge Script or Add Secrets to Magic Container Apps
- Select the script or app you want to connect
- The database URL and access token will be added as environment variables automatically

7
Install an SDK and connect
Install the official SDK for your language and connect to your database:
- TypeScript
- Rust
- Go
- .NET
Install the libSQL client:Connect and run queries: