Create an AI agent that can interact with your Supabase database
Install the CLI
Login to Magma
magma init
command to create a new agent using the supabase-db
templateUse the Supabase Template
Access Supabase Dashboard
Find Connection Details
Copy Connection String
postgresql://
)Set Environment Variable
.env
file:Update database password
[YOUR-PASSWORD]
with your database’s master password in the POSTGRES_URL environment variable.Local Testing
Deploy
Database Connection Issues
Deployment Errors
tsconfig.json
"skipLibCheck": true
to the compilerOptions
sectionmagma deploy
again