# OsBase

> A database your AI agents can work on without seeing private data, where every change can be undone.

Source: https://osevel.com/products/osbase/

## The problem: A database URL gives an agent everything.

- It can read every customer's name and email.
- One wrong DELETE and the data is gone.
- Afterwards, nobody can say exactly what it changed.

## How it works

1. **Create or connect.** A hosted Postgres from us, or your own Postgres, Supabase or Neon.
2. **Agents connect through Osevel.** With a short-lived user, never with your database password.
3. **Rules decide each change.** Risky ones wait for your passkey; the rest go through.
4. **Every write is recorded.** Row by row, before and after, so it can be undone.

## What it does

- **Masked columns.** Agents see the shape of your data, not the people in it.
- **Before and after.** Every row a change touched, kept in the change log.
- **Undo.** One change, or a whole agent session.
- **Rules in order.** The first rule that matches decides.
- **Approval with a passkey.** From the dashboard, for the changes you want to see first.
- **Levels per agent.** Each agent gets only the tools of its level.

## Example: orders · production

An example, not real data.

- users.email: email_9f3c1a (hidden)
- UPDATE orders: 3 rows (allowed)
- DELETE orders: 1,284 rows (held)

## Limits

- Masking hides values from agents, not from you or your own app.
- Undo covers the changes that went through Osevel.
- Hosted databases are not open yet; today OsBase works on your own Postgres, Supabase, Neon or Cloudflare D1.

## Works with

- [OsBrain](https://osevel.com/products/osbrain.md): Checks what your AI agents do to databases, cloud APIs and tools, and holds the risky moves until you approve them.
- [OsApi](https://osevel.com/products/osapi.md): Lets agents call services like GitHub or Neon, and holds the dangerous calls until you approve them.
- [OsVault](https://osevel.com/products/osvault.md): Keeps your API keys locked on your computer and gives them to agents only while they run.

Docs: [OsBase](https://osevel.com/docs/products/osbase.md)
