How Supabase works with osModa
1
Cloud or self-host

Connect to Supabase Cloud or self-host on your server.

2
Vector search

pgvector for RAG, embeddings, and semantic search.

3
Watchdog monitored

osmoda-watch supervises all Supabase services.

Deploy with SupabaseFrom $14.99/mo · full root SSH

Supabase with osModa

Use Supabase as the database layer for your AI agents running on osModa. Connect to Supabase Cloud as a client or self-host the entire Supabase stack on your dedicated NixOS server. Supabase provides PostgreSQL with pgvector for embeddings and semantic search, real-time subscriptions for event-driven agents, row-level security for multi-tenant apps, and built-in authentication. osmoda-watch monitors all services. Plans start at $14.99/month.

Supabase is an open-source Firebase alternative built on PostgreSQL. It provides instant APIs, real-time subscriptions, authentication, storage, and edge functions. For AI agents, Supabase is valuable because it combines structured data storage (PostgreSQL tables for conversation history, user data, configurations) with vector search (pgvector for RAG embeddings and semantic retrieval) in a single platform. osModa complements Supabase by providing the dedicated server infrastructure where your agents run, with watchdog supervision, egress security, and NixOS atomic rollbacks.

TL;DR

  • • Connect to Supabase Cloud or self-host the full stack on your dedicated osModa NixOS server
  • • pgvector for embedding storage and semantic search — combine structured data with RAG
  • • Real-time subscriptions let agents react to database changes instantly via WebSocket
  • • osmoda-watch monitors all Supabase services independently; NixOS provides atomic rollbacks

Set Up Supabase with osModa

Two approaches depending on your needs.

Option A: Connect to Supabase Cloud

  1. 1

    Create a Supabase project

    Go to supabase.com, create a project, and note your project URL, anon key, and service role key.

  2. 2

    SSH into your osModa server

    Install your agent's runtime (Python, Node.js) and the Supabase client library (supabase-py or @supabase/supabase-js).

  3. 3

    Configure egress and credentials

    Set Supabase credentials as environment variables. Configure osmoda-egress to allowlist your Supabase project URL. Deploy your agent and osmoda-watch monitors it.

Option B: Self-Host Supabase

  1. 1

    Provision a Pro server or higher

    Self-hosting Supabase runs multiple services. The Pro plan ($34.99/mo, 4 CPU, 8 GB) or Team ($62.99/mo, 8 CPU, 16 GB) is recommended.

  2. 2

    Install Supabase services

    SSH in and set up PostgreSQL with pgvector, PostgREST, GoTrue (auth), Realtime, and Storage via NixOS configuration or Docker Compose. Configure as systemd services for osmoda-watch monitoring.

  3. 3

    Deploy agents on the same server

    Your agents connect to localhost PostgreSQL with zero network latency. All data stays on your server — complete data sovereignty. osmoda-watch monitors both Supabase services and agent processes independently.

Supabase Use Cases for AI Agents

How teams use Supabase with osModa agents.

Agent Memory

Store conversation history, user preferences, and context in PostgreSQL tables. Use pgvector to store and retrieve embedding vectors for semantic search. Your agent recalls past conversations and retrieves relevant context for personalized responses.

RAG Knowledge Base

Supabase with pgvector serves as a vector database for RAG (Retrieval Augmented Generation). Store document embeddings, perform similarity searches, and retrieve relevant chunks for your LLM context. Combine with structured metadata filters for precise retrieval.

Real-Time Event Agents

Supabase real-time subscriptions notify agents when data changes. An agent can subscribe to new rows in an orders table and process each order automatically. Or subscribe to a support_tickets table and respond to new tickets in real-time.

Multi-Tenant Auth

Supabase GoTrue provides authentication and row-level security (RLS). Build multi-tenant AI applications where each user's data is isolated at the database level. Agents operate within the context of an authenticated user session.

Frequently Asked Questions

How does Supabase work with osModa?

There are two approaches. First, your osModa agents can connect to Supabase Cloud as a client — install the Supabase SDK on your server, configure the project URL and anon/service key, and your agents read/write to Supabase tables, use vector search, and authenticate users. Second, since osModa gives you a dedicated NixOS server with root access, you can self-host the entire Supabase stack (PostgreSQL, PostgREST, GoTrue auth, Realtime, Storage) on the same server where your agents run.

Can I use Supabase for AI agent memory?

Yes. Supabase with pgvector provides both structured storage (PostgreSQL tables) and vector search (pgvector embeddings). Your agents can store conversation history in tables, save embedding vectors for RAG retrieval, and query both structured and semantic data. The Supabase client libraries make this straightforward from Python, Node.js, or any language.

Should I use Supabase Cloud or self-host on osModa?

Supabase Cloud is easier to start with — your agents simply connect as clients. Self-hosting on osModa gives you complete data sovereignty, no usage limits, and lower latency since the database runs on the same server as your agents. Self-hosting requires more setup but gives you full control. Both approaches work well on osModa.

How does osmoda-watch help with self-hosted Supabase?

Self-hosted Supabase runs multiple services: PostgreSQL, PostgREST, GoTrue (auth), Realtime (WebSocket), and Storage. osmoda-watch monitors each service independently. If PostgreSQL crashes, only PostgreSQL restarts. If the Realtime service dies, only it restarts. This per-service supervision prevents cascading failures.

Can I use Supabase real-time subscriptions with osModa agents?

Yes. Supabase provides real-time subscriptions via WebSocket connections that notify your agents when database rows change. Your osModa agents can subscribe to table changes and react in real-time — for example, processing new orders, responding to support tickets, or updating dashboards. The always-on dedicated server maintains persistent WebSocket connections without cold starts.

How much does running Supabase on osModa cost?

If connecting to Supabase Cloud, you pay Supabase for their hosted service (free tier available, Pro at $25/mo) plus osModa for the server (from $14.99/mo). If self-hosting, you only pay osModa — the Pro plan ($34.99/mo, 4 CPU, 8 GB RAM) or higher is recommended since Supabase runs multiple services alongside your agents.

Give Your Agents a Real Database

Supabase + osModa = structured storage, vector search, real-time subscriptions, and auth for your AI agents. Cloud or self-hosted. Watchdog monitored. From $14.99/month.

Last updated: March 2026