Neon and AI agents, safely.
Connect AI coding agents to your Neon Postgres database through OsBase. Agents go through Neon’s pooler; the change log, approvals and undo use the direct endpoint. OsApi checks the calls agents make to Neon’s API and MCP server.
Good to know
Tested against hosted Neon
On Postgres 18: setup and verify, an agent write over the pooler with its journal entry, and undo. Postgres 15 to 18 are tested.
Pooler-aware by itself
For a Neon host, init routes agents through the -pooler endpoint, and every agent transaction starts clean of earlier session state.
Undo with a lock that holds
Undo and approvals keep the direct connection, where session locks survive; only the agent’s short connections are pooled.
Passwords stay with you
Neon accepts only plaintext role passwords, sent over TLS. They are random, 43 characters long and kept in your OS keychain.
Set it up
# 1. add the change log and the rules to your Neon database
osevel init --project myapp# 2. agents through the pooler (init turns this on for Neon)
osevel projects pooler myapp on# 3. give an agent its own key
osevel agent add claude --ide claude-code --access writePre-releaseInstall with npm i -g @osevel/cli.Install guide