Skip to main content

Supabase

Open-source Firebase alternative with PostgreSQL.

Setup

pip install supabase
export SUPABASE_URL=your_url
export SUPABASE_KEY=your_key

Quick Start (Agent)

Use Supabase for conversation persistence with an agent:
from praisonaiagents import Agent, db
import os

agent = Agent(
    name="Assistant",
    instructions="You are a helpful assistant.",
    db=db(database_url=f"supabase://{os.getenv('SUPABASE_URL')}"),
    session_id="my-session"
)

agent.chat("Hello!")

Advanced Usage (Direct Store)

from praisonai.persistence.factory import create_conversation_store

store = create_conversation_store(
    "supabase",
    url="https://your-project.supabase.co",
    key="your_anon_key"
)