---
title: "Your database"
description: "Your database as a MainSDK driver for apikeys, calendar, feeds, memory, meter, entitlements and more. Pick it in main.yaml; your calls stay the same."
section: "integrations"
canonical: "https://mainsdk.dev/docs/integrations/db"
updated: "2026-10-28"
---

# Your database

> Your database as a MainSDK driver for apikeys, calendar, feeds, memory, meter, entitlements and more. Pick it in main.yaml; your calls stay the same.

Canonical: https://mainsdk.dev/docs/integrations/db · Updated: 2026-10-28

Your database as a MainSDK driver for apikeys, calendar, feeds, memory, meter, entitlements and more. Pick it in main.yaml; your calls stay the same.

## Interfaces it serves

### API keys for your customers (`apikeys`)

- Status: Building for 0.3 · ships as a beta API
- Driver: `db` (Your database (the tenant's region store), default)
- Docs: https://mainsdk.dev/docs/interfaces/apikeys.md

```yaml
apikeys:
  driver: db
```

Swap to another provider: `local`.

### Calendars (`calendar`)

- Status: Building for 1.2 · ships as a experimental API
- Driver: `db` (Your database (the tenant's region store), default)
- Docs: https://mainsdk.dev/docs/interfaces/calendar.md

```yaml
calendar:
  driver: db
```

Swap to another provider: `local`, `caldav`.

### Feeds and timelines (`feeds`)

- Status: Building for 0.4 · ships as a experimental API
- Driver: `db` (Built in on db, default)
- Docs: https://mainsdk.dev/docs/interfaces/feeds.md

```yaml
feeds:
  driver: db
```

Swap to another provider: `local`.

### Agent memory (`memory`)

- Status: Building for 0.4 · ships as a experimental API
- Driver: `db` (Your database (Postgres with pgvector, default)
- Docs: https://mainsdk.dev/docs/interfaces/memory.md

```yaml
memory:
  driver: db
```

Swap to another provider: `local`, `mem0`, `zep`, `letta`, `pinecone`, `mcp`.

### Usage metering (`meter`)

- Status: Building for 0.3 · ships as a beta API
- Driver: `db` (Your database (the tenant's region store), default)
- Docs: https://mainsdk.dev/docs/interfaces/meter.md

```yaml
meter:
  driver: db
```

Swap to another provider: `redis`, `local`, `stripe-meters`, `lago`.

### Plans and entitlements (`entitlements`)

- Status: Building for 0.3 · ships as a beta API
- Driver: `db` (Your database (the tenant's region store), default)
- Docs: https://mainsdk.dev/docs/interfaces/entitlements.md

```yaml
entitlements:
  driver: db
```

Swap to another provider: `local`.

### Durable workflows (`workflows`)

- Status: Preview · ships as a beta API
- Driver: `db` (Built on the app's database, default)
- Docs: https://mainsdk.dev/docs/interfaces/workflows.md

```yaml
workflows:
  driver: db
```

Swap to another provider: `local`, `inngest`, `temporal`, `vercel-workflow`.

### Events and background jobs (`jobs`)

- Status: Building for 0.3 · ships as a stable API
- Driver: `db` (The app's database, default). built; the default when the app has a database, otherwise local
- Docs: https://mainsdk.dev/docs/interfaces/jobs.md

```yaml
jobs:
  driver: db
```

Swap to another provider: `local`, `inngest`, `vercel-queues`, `trigger-dev`, `sqs`.
