Database

Give your agent a managed Postgres database

Run SQL, use PostgREST-style CRUD, and apply migrations on databases attached to your apps — scoped per project.

Read the launch post →
Run in your agent

Paste and ship

Drop this prompt into Cursor, Claude Code, or any coding agent. It reads the skill manifest and wires up Database for you.

Agent prompt

Read https://usenaive.ai/skill.md and use the Naïve Database primitive in my project. Start with: naive apps db tables <app-id>

Drop into any agent

In action

Managed Postgres — SQL, CRUD, and migrations.

  • Raw SQLFull Postgres access.
  • CRUD APITable-level operations.
  • MigrationsVersion schema changes.
  • Per-app isolationDedicated projects.
Exact code

One call to database

Same primitive from the CLI, SDK, or REST — one bearer token, one credit balance.

CLI

Database

Run SQL, use PostgREST-style CRUD, and apply migrations on databases attached to your apps — scoped per project.

Raw SQL
Full Postgres access.
CRUD API
Table-level operations.
Migrations
Version schema changes.
Per-app isolation
Dedicated projects.
# Run with your API key exported
$ naive apps db tables <app-id>

Related primitives

Start building with Database

Get your API key and add database to any agent in minutes — no infrastructure to run.