Skip to main content
The missing infrastructure between proprietary data and AI agents. Proprietary data is what makes the difference between an agent and a smart agent. OnDB is the single API to discover, query, and pay for it — any provider, automatic settlement, zero migration.

How It Works

1

Connect

Wrap any HTTP API, REST endpoint, or database with our open-source connectors. No data migration required.
2

Discover

AI agents find your data automatically through standardized skills.md definitions.
3

Monetize

Earn revenue from every AI query. Automatic per-query payments via x402 and Stripe’s Machine Payments Protocol (MPP).
4

Join

Cross-provider data joins with automatic revenue splitting between providers.

HTTP API

All interactions go through the OnDB REST API. SDKs are available as optional wrappers.
# Store data
curl -X POST https://api.ondb.io/store \
  -H "Content-Type: application/json" \
  -H "X-App-Key: your-app-key" \
  -d '{
    "collection": "users",
    "data": [{ "email": "alice@example.com", "name": "Alice" }]
  }'

# Query data
curl -X POST https://api.ondb.io/query \
  -H "Content-Type: application/json" \
  -H "X-App-Key: your-app-key" \
  -d '{
    "collection": "users",
    "filters": { "email": "alice@example.com" },
    "limit": 10
  }'
Write operations that require payment return an HTTP 402 Payment Required response with a quote. Your application completes the payment and retries with the proof attached.

Key Features

HTTP API

Simple REST endpoints for storing and querying data. SDKs available in TypeScript, Go, PHP, and Python.

HTTP 402 Payments

Native pay-per-query monetization with automatic revenue sharing via USDC payments and Stripe MPP.

Open-Source Connectors

Wrap any HTTP API, REST endpoint, or database. No data migration required.

Advanced Queries

Query builder with cross-provider JOINs, aggregations, materialized views, and blob storage.

Get Started

Quickstart

Get up and running in 5 minutes

Authentication

Set up API keys and wallet auth

Immutability

Understand the append-only data model

API Reference

Full SDK and API reference