Complete guide to integrating your Supabase project with the CodeX desktop app. Get up and running in 5 minutes with our quick start guide.
Go to Project Settings β API, copy:
Go to Authentication β URL Configuration β Add redirect URL(s):
In CodeX, open Settings β Integrations/Providers β Supabase and paste:
codexsupabase-oauth-return| Variable | Where to find in Supabase | Notes |
|---|---|---|
| SUPABASE_URL | Project Settings β API β Project URL | REST base URL |
| SUPABASE_ANON_KEY | Project Settings β API β anon public key | Safe for client use with RLS |
| SUPABASE_SERVICE_ROLE_KEY | Project Settings β API β service_role | Server-side only, never in CodeX |
create table if not exists codex_apps ( id uuid primary key default gen_random_uuid(), name text not null, created_at timestamp with time zone default now() ); alter table codex_apps enable row level security; create policy "Authenticated can read" on codex_apps for select using (auth.uid() is not null);
Click "Test Connection" in the Supabase integration settings.
codex://supabase-oauth-return is added in Auth β URL Configuration.Not for basic read flows with RLS; anon key is sufficient. Use server-side functions for privileged operations.
Use separate Supabase projects/keys and keep perβenv profiles in CodeX.
You can rotate anon/service_role in Supabase and update CodeX settings.