AgentDB

Give your agent a managed Postgres database

Managed Postgres — SQL, CRUD, and migrations.

Read the launch post →
acme-web / dbschema
users
  • PK NNiduuid
  • AK NNemailtext
  • NNnametext
  • NNcreated_attimestamptz
api_keys
  • PK NNiduuid
  • FK NNuser_iduuid
  • NNkey_hashtext
  • NNscopestext[]
  • last_usedtimestamptz
  • expires_attimestamptz
workspaces
  • PK NNiduuid
  • AK NNslugtext
  • NNnametext
  • NNplantext
  • FK NNowner_iduuid
  • NNseatsint
  • billing_emailtext
  • NNcreated_attimestamptz
  • updated_attimestamptz
  • archivedboolean
projects
  • PK NNiduuid
  • FK NNworkspace_iduuid
  • NNnametext
  • repotext
  • NNdefault_branchtext
  • FK NNregion_iduuid
  • frameworktext
  • NNcreated_attimestamptz
  • updated_attimestamptz
members
  • PF NNuser_iduuid
  • PF NNworkspace_iduuid
  • NNroletext
deploys
  • PK NNiduuid
  • FK NNapp_iduuid
  • FK NNenv_iduuid
  • NNstatusdeploy_status
envs
  • PK NNiduuid
  • FK NNproject_iduuid
  • NNnametext
  • urltext
regions
  • PK NNiduuid
  • AK NNcodetext
  • FK NNprovider_iduuid
  • NNactiveboolean
apps
  • PK NNiduuid
  • AK NNslugtext
  • NNnametext
  • FK NNproject_iduuid
  • FK NNruntime_iduuid
  • frameworktext
  • git_shachar(40)
  • domaintext
  • build_cmdtext
  • start_cmdtext
  • env_varsjsonb
  • NNstatusdeploy_status
  • versionsemver
  • NNcreated_attimestamptz
  • updated_attimestamptz
runtimes
  • PK NNiduuid
  • NNnametext
  • NNversionsemver
providers
  • PK NNiduuid
  • NNnametext
  • NNregion_codetext
DOMAIN
ENUM

Paste and ship

Drop this into Cursor, Claude Code, or any 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>

What you get

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

One call to AgentDB

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>

Start building with AgentDB

One API key. One credit balance. Every primitive.

Related primitives