Skip to content

↑↓ to move · Enter to open · Esc to close

OsBase is the database product of Osevel, and the first one. It puts a bridge between your AI agents and your database: agents connect through Osevel, never with your database password. Every write is recorded row by row so it can be undone, risky changes wait for your approval, and each agent sees only as much of your data as you allow.

This page is the overview. Each part has its own page, linked below.

  • One wrong statement. A DELETE without a WHERE, or an UPDATE on the wrong table, is recorded with the rows as they were before and after. You undo one change or a whole agent session.
  • Changes nobody looked at. Your policy decides which writes go through and which wait for a person. Schema changes always wait.
  • An agent reading your customers. By default an agent gets answers about rows without the values in them.
  • Not knowing who did what. Each agent has its own name and token; the change journal says which agent made each change.
Database Page
Your own PostgreSQL Getting started
Supabase Supabase
Neon Neon
Cloudflare D1 Cloudflare D1
A Postgres hosted by Osevel (beta) Hosted Postgres

The exact versions that were tested are on each page.

npm i -g @osevel/cli
osevel init

init asks for the admin connection, the schemas agents may use and a confirmation code, then installs the journal and the agent roles in one transaction. Getting started walks through every prompt, connecting your MCP client, and a first approval and undo.

  1. Agents connect through Osevel. You register each agent by name with an access level: read, write or schema. It gets only the tools of its level. See agents.
  2. Policy decides each write. A write goes through, waits for approval or is refused. You approve at the terminal with a typed code, or in the dashboard with your passkey. See usage.
  3. Every write is journaled. The journal keeps each row a change touched, before and after.
  4. Undo. osevel undo takes back one change or a whole session. Schema changes have their own undo classes; see schema changes.

Beyond raw SQL, you can give agents named operations with typed arguments (capabilities), run agents that decide by rules without a model (rules), and run local agents in a container that reaches only its model provider (sandbox). A team shares one bridge that holds the credentials (team bridge).

Every agent has a level of sight:

Sight What the agent gets
structure Tables and columns only.
shape Answers about rows without their values. The default.
masked Rows, with private columns replaced by stand-ins such as email_9f3c1a.
clear May ask for a timed reveal, which a person grants.
osevel agent sight cursor-main masked

Raising sight asks for the confirmation code. Lowering needs none. Details, column classes and reveals are in agents.

  • OsBrain judges every agent write and schema change once more against your cross-product rules, and lists database approvals next to held API calls.
  • OsApi covers what OsBase cannot: calls to your database provider’s own API (delete a Neon branch, a Supabase project), which never pass through SQL.
  • OsVault keeps the other keys your agents use. OsBase’s own database credentials are held by the bridge, not by a vault.
  • Undo covers what went through Osevel. A change made by your app, or by anyone connecting directly, is not in the journal. The foreign connection watch can cut clients that are not declared.
  • Masking hides values from agents, not from you or your own application.
  • Against an agent with a shell as your OS user, the default mode does not protect the stored role passwords. Daemon mode does; see the security model.
  • Hosted Postgres is a beta with its own limits; see hosted Postgres.
  • The full lists: limitations and security model.