> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ondb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> OnDB - The missing infrastructure between proprietary data and AI agents

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

<Steps>
  <Step title="Connect">
    Wrap any HTTP API, REST endpoint, or database with our open-source connectors. No data migration required.
  </Step>

  <Step title="Discover">
    AI agents find your data automatically through standardized `skills.md` definitions.
  </Step>

  <Step title="Monetize">
    Earn revenue from every AI query. Automatic per-query payments via x402 and Stripe's Machine Payments Protocol (MPP).
  </Step>

  <Step title="Join">
    Cross-provider data joins with automatic revenue splitting between providers.
  </Step>
</Steps>

## HTTP API

All interactions go through the OnDB REST API. SDKs are available as optional wrappers.

```bash theme={null}
# 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

<CardGroup cols={2}>
  <Card title="HTTP API" icon="globe">
    Simple REST endpoints for storing and querying data. SDKs available in TypeScript, Go, PHP, and Python.
  </Card>

  <Card title="HTTP 402 Payments" icon="money-bill">
    Native pay-per-query monetization with automatic revenue sharing via USDC payments and Stripe MPP.
  </Card>

  <Card title="Open-Source Connectors" icon="plug">
    Wrap any HTTP API, REST endpoint, or database. No data migration required.
  </Card>

  <Card title="Advanced Queries" icon="magnifying-glass">
    Query builder with cross-provider JOINs, aggregations, materialized views, and blob storage.
  </Card>
</CardGroup>

## Get Started

<CardGroup cols={2}>
  <Card title="Quickstart" icon="rocket" href="/quickstart">
    Get up and running in 5 minutes
  </Card>

  <Card title="Authentication" icon="key" href="/concepts/authentication">
    Set up API keys and wallet auth
  </Card>

  <Card title="Immutability" icon="lock" href="/concepts/immutability">
    Understand the append-only data model
  </Card>

  <Card title="API Reference" icon="terminal" href="/api-reference/introduction">
    Full SDK and API reference
  </Card>
</CardGroup>
