Brainbox is in development. Its packages have not been published, so this page describes the design and there is nothing to install yet. The source is on GitHub.
Overview
Brainbox is an AI operations platform. It collects logs from a customer's systems, has AI agents analyse them, helps locate the code involved and lets those agents query the database through a read-only, audited gateway.
Architecture
Customer infrastructure
├── CLI service collects logs on a schedule
├── Application SDKs Python, Node.js, React
└── Customer database reached through the database SDK
│ HTTPS
▼
Brainbox backend
├── API gateway authentication and validation
├── Ingestion pipeline processes what was collected
├── AI agents analyse and explain
├── Database stores results and the audit log
└── Dashboard shows findingsThe five SDKs
| SDK | Runs in | Purpose |
|---|---|---|
| Python SDK | Python applications | Send events and call Brainbox from Python |
| Node.js SDK | Node.js back ends | The same for Node.js services |
| React SDK | React front ends | Bring Brainbox into a web interface |
| CLI service | The server | Collects logs automatically in the background |
| Database SDK | Next to the database | Runs safe, read-only queries |
What the collector gathers
- Docker container logs
- System logs
- Database logs
- Nginx logs
- SSL certificate information
The collector is designed to run as a background service and send what it gathers every few minutes over HTTPS.
Backend endpoints for database access
| Endpoint | Purpose |
|---|---|
/api/db/test-connection | Check that the database can be reached |
/api/db/schema | List tables and columns |
/api/db/query | Run a read-only query |
/api/db/audit-log | Read the history of queries |
Safety rules
- Read-only enforcement: DELETE, DROP and ALTER are blocked.
- Parameterised queries to prevent SQL injection.
- Row limits to prevent large exports.
- Query auditing: every query is logged.
- Tenant isolation: data is separated by tenant.
- Rate limiting and API key validation on every request.
- HTTPS for all data in transit.
The reasoning behind these rules is explained in Designing safe database access for AI agents.
Planned installation methods
Brainbox is designed to install the way operations teams already install tools: through pip, npm, apt, rpm, snap or Docker. None of these packages has been published yet.