# How it works · Osevel

> Every Osevel product runs through one program on your machine: AI agents reach databases, keys, cloud APIs and tools through it, never directly. Risky moves wait for a person, and what is done is recorded.

Source: https://osevel.com/how-it-works/

How it works

## One small program in between.

Your agents work through a program that runs on your computer or your team’s server. It holds your database passwords and API keys; the agents never get them.

### One program, every product.

Install it once with `npm i -g @osevel/cli`. Each product uses the same program and the same dashboard.

- **[OsBase](https://osevel.com/products/osbase/)**: Agents reach your database through the program over MCP. It holds the database password, checks every statement and records every write in your own database.
- **[OsVault](https://osevel.com/products/osvault/)**: A program started with osevel vault run gets its secrets as environment variables. A locked key reaches it as a stand-in; a local proxy puts the real key in only on requests to the address the key belongs to.
- **[OsApi](https://osevel.com/products/osapi/)**: Calls to Railway, Neon, Supabase, GitHub and others go through that same proxy and are checked against a catalogue. Dangerous ones wait until a person approves them, in the terminal or the dashboard.
- **[OsBox](https://osevel.com/products/osbox/)**: Each AI tool gets one osbox entry, written after your yes, with a backup. Your MCP servers are pinned and run in the operating system’s sandbox on macOS and Linux.
- **[OsMemory](https://osevel.com/products/osmemory/)**: Notes are kept on your machine and served to every tool through OsBox. Copies sync through our cloud sealed, so we cannot read them.
- **[OsBrain](https://osevel.com/products/osbrain/)**: Database moves, API calls and tool calls held by any product land in one list, decided by one set of rules. Every decision goes into a record on your machine.

The rest of this page follows one product, OsBase, all the way into your database.

OsBase

### Where each piece runs.

OsBase

### The path of one statement.

1. **The agent sends one statement** Through the execute tool of its MCP server. BEGIN and COMMIT are refused: each call is one statement in its own transaction.
2. **The bridge checks it** Is it the right tool, and does the agent’s access level allow it? A statement sent to the wrong tool is not run.
3. **A trial run measures it** The write runs once and is rolled back, to count the rows it would touch in each table.
4. **The rules decide** The first matching rule says: run it, ask a person, or refuse it.
5. **It runs, and is recorded** Committed under the agent’s own login; a trigger keeps every row before and after. Or it waits for a person, and runs only as approved.

Statements time out after 30 seconds, lock waits after 5. Reads run in a read-only transaction that is always rolled back.

OsBase

### Inside your database: one role per job.

The installer creates these logins in your database. The database itself refuses what a role may not do, so a rule holds even if the bridge were bypassed.

- **`ar_agent`**: Your agents’ login. Reads and writes the tables you manage, within its limits; cannot change the schema, switch triggers off or touch the change log.
- **`ar_migrator`**: Schema changes, and only through an approved, unexpired, single-use request.
- **`ar_approver`**: Records decisions. No access to your tables.
- **`ar_undo`**: Applies undo. Its writes are recorded too.
- **`ar_remote`**: The dashboard. It may revoke an agent or lower its access, never raise it.
- **`ar_auditor`**: Reads the change log for an auditor agent: counts and names, not rows.
- **`ar_owner`**: Owns the change log. Nobody logs in as it.

### What stays with you, and what reaches us.

| Data | Where it lives | Our cloud sees it |
| --- | --- | --- |
| Rows, SQL, approvals, the change log | Your database | Never; the dashboard reads them end-to-end encrypted |
| Database password | Your machine or your team’s bridge | Never |
| Secrets and their names (OsVault) | Your devices; our cloud keeps copies sealed with your key | Never in the clear |
| Memory notes (OsMemory) | Your machine; synced sealed | Never the text: only sealed items, how many, and when they change |
| Box requests (OsBox) | Your machines and the dashboard | Never in the clear: sealed end to end |
| Decisions on held moves (OsBrain) | A record on your machine | Only a seal of its latest line, so lines cannot be removed unseen |
| Who may do what | Records signed on your team’s devices | Stores them; any change is detected |
| Account, organizations, invites | Our cloud | Yes |
| Which bridges are online, traffic timing and size | Our cloud | Yes, as metadata |

[Start free](https://app.osevel.com/) [The security page](https://osevel.com/security/) [OsBase in depth](https://osevel.com/product/)
