Usage
Parameters
str | None
default:"None"
Supabase project URL. Falls back to
SUPABASE_URL.str | None
default:"None"
Supabase API key. Falls back to
SUPABASE_KEY or SUPABASE_SERVICE_ROLE_KEY.Environment variables
Use
SUPABASE_SERVICE_ROLE_KEY for server deployments where you need to bypass Row Level Security. Use SUPABASE_KEY (anon key) for client-side or restricted access.Tables created automatically
LangChat creates these tables on first run:chat_history
request_metrics
Querying your data
You can use the Supabase dashboard or the Python client directly to query these tables:Row Level Security (RLS)
If you enable RLS on Supabase tables, you must either:- Use the
service_rolekey (bypasses RLS entirely) - Add appropriate RLS policies for the
langchatoperations
SUPABASE_SERVICE_ROLE_KEY is the simplest approach.