# Codex on your database, with a safety net.

> Connect OpenAI Codex to Postgres, Supabase, Neon or D1 through Osevel: its own key and access level, every change recorded, risky ones held for approval.

Source: https://osevel.com/integrations/codex/

Connect Codex to your Postgres, Supabase, Neon or Cloudflare D1 database through OsBase. It gets its own key and access level; risky changes wait for you, and any change can be undone. OsBox can give it the rest of your MCP servers too, pinned, with their keys in OsVault.

## Good to know

- **Tried with the real Codex.** Registered at read, it read the database; an UPDATE it was asked for was refused, because execute is not offered at that level.
- **Its configuration, out of git.** Osevel prints the entry for your user-level ~/.codex/config.toml, so the token stays out of the repository.
- **More access, on purpose.** Raising Codex to write needs a typed confirmation at the terminal; lowering it or revoking it takes effect at once.
- **It cannot approve itself.** Approvals come from a person: in the terminal, or in the dashboard with a passkey.

## Set it up

```sh
# 1. give Codex its own key (prints its config.toml entry)
osevel agent add codex --ide codex
# 2. let it write, when you decide to
osevel agent access codex write
# 3. see only its changes
osevel log --agent codex
```

Pre-release (0.2). Install: `npm i -g @osevel/cli` (the command is `osevel`).

More: [The agents guide](https://osevel.com/docs/guides/agents/)
