The self-hosted
AI SQL engine.
Connect your database — PostgreSQL, MySQL, SQL Server, ClickHouse, and more — bring your own AI key, and ask questions in plain English. No SQL knowledge needed, and no data ever leaves your infrastructure.
Free tier included · No credit card · Self-hosted
FROM orders
WHERE created_at >= DATE_TRUNC('month', NOW() - INTERVAL '1 month')
AND created_at < DATE_TRUNC('month', NOW());
docker compose up to your first answerHow it works
Three steps from zero to answers
No complex setup. No managed cloud. One Docker command and you're querying in minutes.
Provide your host, credentials, and the tables you want to expose. Credentials are encrypted at rest. Only you can decrypt them.
Type your question like you'd ask a colleague. Ottoch builds a schema-aware prompt and sends it to your chosen AI provider.
The AI generates SQL, we validate it's a pure SELECT, execute it safely on your database, and translate the result back to plain English.
Features
Built for production, not demos
Every design decision is about safety and practicality. Not just making a flashy prototype.
All queries are SELECT only. Hard blocked at the code level before execution — not just trusted from the AI output.
Use OpenAI, Anthropic, Gemini, or any compatible API. You control the cost. Keys are encrypted and never leave your server.
One Docker command. Your data never leaves your infrastructure. No SaaS pricing, no vendor lock-in, no call-home.
The AI only sees the tables you activate. Nothing else is exposed. Fine-grained control over what the model can query.
If a query fails, the AI corrects itself — passing the error back to the model and trying again, up to 3 times before giving up cleanly.
Named chat sessions per database connection. Your questions and SQL are saved so you can review, share, or re-run them later.
Enterprise edition ships with RBAC (Admin, Developer, Guest roles) and LDAP/Active Directory integration — users are provisioned automatically on first login.
Supported databases
Quick start
Up in two commands
Docker Compose starts the app and Redis together. Data persists in a named volume.
docker compose up -d
Then open http://localhost and check the logs for your login credentials:
docker compose logs app
Ready to connect your database?
Free tier included. No credit card. Runs on your own server.