Postgres for your app and your AI agent
Create a database, give your app an API, sign-in and file storage, and let Claude, ChatGPT, Cursor and any other AI client use your tables. Step by step.
How to give your AI agent a Postgres database
Give Claude, ChatGPT, Cursor or your own agent a Postgres database it can use: where to create it, how your app and the agent each connect, and how to keep the agent from changing data.
How to create a Postgres database for a Claude Code or Cursor project
Set up Postgres for a project you build with Claude Code or Cursor: create the database, keep its URL in .env, run migrations, and let the agent read your schema and data.
How to give your Postgres tables a REST API your front end can call
Read and write Postgres from your app's front end over HTTPS, with no backend code: what to run, how to filter, sort and page, and how each table decides who may read or change it.
How to add sign-in to your app with email codes, Google and GitHub
Let people sign in to your app with a code by email, their Google account or their GitHub account, keep them signed in with tokens, and show each person only their own rows.
How to store your app's files with upload and download links
Store the files your app's users upload, such as photos, documents and exports, and hand them back: a private bucket, short-lived upload and download links from your server, and each file's path kept in Postgres.
How to restore a Postgres database to an earlier point in time
Put a Postgres database back as it was just before a bad migration, a wrong delete or an AI agent's change: what to do first, how point-in-time restore works, and how to keep what was written since.
Connecting a database you already have, on Supabase, Neon or anywhere else? See the Kaiva Bridge guides.