Overview
The sovseal edge replication backend —v2-agent-state — is open-source, Deno + Hono, and self-hostable on your own Supabase project. There is no separate server process to run and no additional service to operate: the function is the backend.
There is no Docker Compose stack, no local dashboard server, and no LLM API key requirement. Embeddings run on-device inside the MCP server and the extension — the edge function only ever stores and serves ciphertext. If you’ve seen documentation describing a
server/ directory, a make up command, or an OPENAI_API_KEY secret for this deployment, that describes a different project’s architecture and does not apply here.Prerequisites
- Supabase CLI installed locally (
brew install supabase/tap/supabaseon Mac). - A Supabase project created in the Supabase dashboard.
- PostgreSQL 15+ (Standard Supabase Postgres instance — no vector extensions or extra plugins required).
Step 1: Link your project
Step 2: Apply database migrations
Migrations are plain SQL files undersupabase/migrations/, applied in order:
agent_state_snapshots, the sovseal-rom storage bucket, and the Row-Level Security policies that scope every row to its owning account.
Step 3: Deploy the edge function
SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY as function secrets — these are the only two environment values the function reads at startup. You do not need to set them yourself.