OsBase
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.
- What it protects against
- Which databases
- Set up
- How it works
- What an agent sees
- With the other Os products
- Limits
- All OsBase pages
What it protects against
Section titled “What it protects against”- One wrong statement. A
DELETEwithout aWHERE, or anUPDATEon 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.
Which databases
Section titled “Which databases”| 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.
Set up
Section titled “Set up”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.
How it works
Section titled “How it works”- Agents connect through Osevel. You register each agent by name with an access level:
read,writeorschema. It gets only the tools of its level. See agents. - 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.
- Every write is journaled. The journal keeps each row a change touched, before and after.
- Undo.
osevel undotakes 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).
What an agent sees
Section titled “What an agent sees”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.
With the other Os products
Section titled “With the other Os products”- 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.
Limits
Section titled “Limits”- 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.
All OsBase pages
Section titled “All OsBase pages”- Getting started: from install to a first undo.
- Using osevel: the commands, day to day.
- Agents: access levels, sight, handoffs, notes.
- Capabilities: named operations instead of raw SQL.
- Rule-based agents and the sandbox for local agents.
- Team bridge: one bridge for a team.
- Supabase, Neon, Cloudflare D1, hosted Postgres.
- Schema changes and finding slow queries.
- Security model and limitations.