# Supabase and AI agents, without the risk.

> Let Claude Code, Cursor or Codex work on your Supabase database safely: every agent change recorded, risky ones held for approval, any change undone.

Source: https://osevel.com/integrations/supabase/

Let Claude Code, Cursor or Codex work on your Supabase database. OsBase records every change an agent makes, holds risky ones for your approval and can undo them, while your app’s own writes stay untouched. OsApi checks the calls agents make to Supabase’s Management API and MCP server.

## Good to know

- **Tested on Supabase Postgres 15 and 17.** The installer test suite runs on both Supabase Postgres images, as the non-superuser postgres role Supabase gives you. Hosted Supabase projects are not tested yet.
- **Row Level Security, on your terms.** For tables with RLS you choose how the agent passes it: a bypass for its role or a policy per table. Nothing is installed until you choose.
- **No privileged extensions for agents.** A DDL guard stops the agent’s role before Supabase would create pg_net, http, dblink or pg_cron for it.
- **Only agent writes are journaled.** Your application keeps writing as before; its changes are neither recorded nor held back.

## Set it up

```sh
# 1. add the change log and the rules to your Supabase database
osevel init --project myapp
# 2. give an agent its own key
osevel agent add cursor-main --ide cursor --access write
# 3. see what waits for you
osevel approvals
```

Pre-release (0.2). Install: `npm i -g @osevel/cli` (the command is `osevel`).

More: [The Supabase guide](https://osevel.com/docs/guides/supabase/)
