I'm building AI agents that need database access. Problem is, one bad prompt and it's DELETE FROM users WHERE 1=1.
So I built AXP - a proxy that sits between your agent and Postgres.
## What it does
- Agent sees
j***@gmail.cominstead of real emails -
DROP TABLEgets blocked before it reaches the DB - Rate limits to prevent runaway queries
- Full audit log of everything
## Demo
## How it works
Your agent connects to AXP instead of Postgres directly. Define permissions in YAML:
yaml
spec:
permissions:
- resource: database/postgres/mydb
actions: [READ]
tables: [users, orders]
mask:
- column: email
pattern: partial
safety:
blocked_patterns:
- "DROP TABLE"
Zero code changes. Any Postgres client works.
[Github](https://github.com/AXP-Core/axp)
Would love feedback!

Top comments (0)