All blocks

AI

AI chat

Chats, projects and a branching message tree in the canonical AI message format, with runs (and the id of a durable engine's run), run steps for progress, a compare-and-set stream claim, harness sessions, tool approvals and policies, pending inputs, cited sources, feedback, hashed share links, a model catalog per plan, moderation events and private Realtime topics per chat and per user.

DocsModes:managedcustom
terminal
npx better-supabase sql add ai-chat
better-supabase.config.ts
import { defineConfig } from "better-supabase/config";

export default defineConfig({
  sql: {
    modules: {
      // Required by ai-chat; sql add installs them too.
      "updated-at": {},
      tenant: {},
      access: {},
      streams: {},
      // Modes: "managed", "custom". The default is "managed".
      "ai-chat": { mode: "managed" },
    },
  },
});