LaunchKit · 2026
Back to Skills

supabase

Connect to Supabase for database operations, vector search, and storage.

0
0 downloads
by @stopmoclay

Setup & Installation

openclaw skills install @stopmoclay/supabase

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install supabase

What This Skill Does

Connects to a Supabase project to run SQL queries, perform CRUD operations on tables, and execute vector similarity search using pgvector. The service role key grants full database access; an anon key can be used for restricted access.

Handles raw SQL, CRUD, and vector similarity search through one CLI without needing separate database clients or a custom embedding pipeline.

When to use it

  • Query user records filtered by status or date range
  • Insert rows collected from a form or API response
  • Find semantically similar documents using pgvector embeddings
  • Inspect table schemas before writing migration SQL
  • Delete expired session rows matching a condition

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Find the top 5 documents related to 'setting up authentication'

AGENT
  1. 1Calls vector-search on the documents table with the query string
  2. 2Generates an embedding for the query using OpenAI text-embedding-ada-002
  3. 3Passes the embedding to the match_documents RPC function in Supabase
  4. 4Retrieves rows ranked by cosine similarity above the configured threshold
  5. 5Returns the top 5 matching records with content and similarity scores
OUTPUT

A ranked list of 5 document records with content fields and similarity scores

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

SUPABASE_URL environment variableSUPABASE_SERVICE_KEY environment variableSupabase account and projectOPENAI_API_KEY environment variable (required for vector search embeddings)