SerenAI
SerenAI

Start Monetizing Your Database Today

Replicate your data to SerenAI and earn revenues for every AI agent query. No migration required.

Works with any PostgreSQL, MySQL/MariaDB, SQLite, MongoDB database provider. Choose what to share, set your pricing, and start earning in minutes.

Works with any database

PostgreSQL
MySQL
MariaDB
Neon
Supabase
AWS RDS
Hetzner
Tiger Data
SQLite
MongoDB
PostgreSQL
MySQL
MariaDB
Neon
Supabase
AWS RDS
Hetzner
Tiger Data
SQLite
MongoDB

How It Works

Get started in three simple steps—no migration required

1

Sign Up & Replicate

Create a SerenDB account, get your connection string, and use our replicator tool to selectively copy data from your existing PostgreSQL database—no migration required.

2

Register & Price

Register as a data provider via the x402 API, configure your pricing model (per row, per query, or complexity-based), and set your wallet address for USDC payments.

3

Earn

AI agents discover and query your data via x402.serendb.com, pay in USDC on Base network, and you receive automatic micropayments for every successful query.

Getting Started

Follow these steps to start monetizing your PostgreSQL database

1

Create Your SerenDB Account

Sign up for a free SerenDB account and create a new database instance. You'll receive a connection string that looks like:

postgresql://serendb_owner@ep-example-a1b2c3.us-east-1.dev.serendb.com:5432/serendb?sslmode=require&channel_binding=require
2

Download & Run the Replicator

Download the seren-replicator for your platform and replicate your data selectively:

# Download from GitHub releases
chmod +x seren-replicator-*-binary
# Interactive mode - select databases/tables in terminal UI
./seren-replicator init \
--source "postgresql://user:pass@neon.tech/mydb" \
--target "postgresql://serendb_owner@ep-example-a1b2c3.us-east-1.dev.serendb.com:5432/serendb?sslmode=require&channel_binding=require"

The replicator supports selective replication, WHERE clause filtering, schema-only tables, and continuous sync via logical replication.

3

Register as a Data Provider

Register your database with the x402 payment gateway to enable AI agent access:

curl -X POST https://x402.serendb.com/api/providers/register \
-H "Content-Type: application/json" \
-d '{
"name": "My Database",
"email": "you@example.com",
"walletAddress": "0xYourWalletAddress",
"connectionString": "postgresql://..."
}'
# Returns your API key and provider ID
{ "provider": { "id": "...", "name": "..." }, "apiKey": "sk_live_..." }
4

Configure Pricing & Start Earning

Set your pricing model and start accepting USDC payments from AI agents:

curl -X POST https://x402.serendb.com/api/providers/:id/pricing \
-H "X-API-Key: sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"basePricePer1000Rows": 1.0,
"markupMultiplier": 2.0
}'

Agents can now query your data via x402.serendb.com/api/query. You'll receive USDC payments on Base network automatically for every successful query.

Need help getting started? Check out our documentation or join our Discord community.

Why Data Providers Choose SerenAI

Zero Migration

Replicate, don't migrate. Keep your existing PostgreSQL infrastructure (Neon, AWS RDS, Hetzner, self-hosted) while making data available to AI agents.

Selective Replication

Choose exactly what to share—specific databases, tables, schemas, or even filtered rows. Interactive mode makes selection easy.

Flexible Pricing

Configure pricing models that fit your data: per row, per query complexity, per MB transferred, or time-based. Set your own rates.

Automatic Payments

Receive USDC payments on Base network for every query. Cryptographic verification, no payment processors, immutable audit trails.

Complete Platform Features

  • Zero-downtime logical replication from any PostgreSQL provider
  • Selective replication: filter by database, table, schema, or WHERE clause
  • Interactive terminal UI for easy table selection
  • Flexible pricing models: row-based, complexity, data transfer, or time-based
  • USDC payments on Base network via x402 protocol
  • EIP-3009 transferWithAuthorization for secure settlement
  • Automatic failed-query credits and partial payment support
  • Real-time replication monitoring and data integrity verification

Flexible Pricing Models

Configure pricing that works for your data. You control the rates, you receive the payments.

Available Pricing Models:

  • Row-Based: Cost per 1,000 rows returned (e.g., $1.00 per 1K rows)
  • Complexity-Based: Charges based on PostgreSQL query plan cost
  • Data Transfer: Cost per MB of data transferred
  • Time-Based: Cost per millisecond of execution time

Payment Settlement

Receive USDC payments on Base network via EIP-3009 transferWithAuthorization. Automatic settlement with failed-query credits and partial payment support.

SerenDB Hosting

Pay standard SerenDB compute rates (~$0.10/CU-hour). 85% cost reduction vs traditional hosting for typical workloads.

Real-World Implementation

Yearn Finance

DeFi Protocol · Kong Indexer Data

Yearn Finance uses Kong indexer updating every 15 minutes with 24-hour data retention. After migrating from Neon to SerenDB and listing data via x402, they transformed their database from a cost center into a revenue stream.

85%
Cost Reduction
~$30
Monthly Hosting
24hr
Data Retention
15min
Update Frequency

Implementation Highlights:

  • Used seren-replicator to migrate from Neon with zero downtime
  • Configured row-based pricing for DeFi vault metrics
  • AI agents pay USDC per query on Base network via x402 protocol
  • Automatic micropayment settlement with cryptographic verification

Ready to Start Earning?

Create your free SerenDB account and start monetizing your PostgreSQL data in minutes