SaaS Alternative
Julius AI Databricks Genie Snowflake Cortex Analyst ThoughtSpot Spotter AskYourDatabaseCategories
Self-Hosted LLM Data Visualization Business Intelligence Text-to-SQL Database Assistant AI Data Analyst Natural Language QueryStars
Forks
Watchers
Developer links
Euron Open SQLAgent
Every plain-English question put to Euron Open SQLAgent becomes one SELECT that is parsed, shown, and run on a read-only connection, answered with an explanation, a table, and a chart. Connect PostgreSQL or MySQL by host or upload a SQLite file, and tables, columns, keys, indexes, and row counts are discovered and refreshed daily. A parser for each database's dialect accepts only a single SELECT, the session itself is opened read-only, and per-connection scan, timeout, and row limits stop runaway queries. Follow-up questions keep the conversation's context, and results page in the browser, export as CSV, and show a bar, line, or pie chart when the shape fits. Paste any query into Explain SQL to read what it does without running it, and save good questions as templates that run again with one click. Each project picks its model provider (Anthropic, OpenAI, Gemini, Ollama, or any OpenAI-compatible endpoint) and a conversation can choose another. History lists every conversation and query, and an append-only audit trail records who asked what and which SQL ran or was refused. Admin, editor, and viewer roles per project and API keys with read, query, and manage scopes control who can ask, run SQL, or change connections. A Python SDK and CLI ask questions from scripts, and the CLI exits non-zero when a query fails. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Two locks keep writes out
- Each query must parse as exactly one read-only SELECT in the database's own dialect, and the session is opened read-only, so either lock alone stops an INSERT, UPDATE, or DELETE.
- Every answer shows its SQL
- Each answer displays the query that ran with a plain-language explanation, and an append-only record shows who asked, which SQL ran, and how many rows it returned, so nothing is hidden.
- Runaway queries are stopped early
- The planner's row estimate is checked against a scan limit before a query runs, the database enforces the timeout, and a row cap trims results, all set per connection.
- Answers grounded in your real schema
- Tables, columns, keys, indexes, and row counts are read from the database itself, so the model writes against what exists, and each project can use any supported model provider.
Features
- FastAPI and PostgreSQL Backend
- One Python package runs the FastAPI API, question worker, and scheduler; workers claim queued questions from a PostgreSQL queue with leases, so a slow model never holds a request.
- sqlglot SQL Guard
- sqlglot parses every query in the connection's dialect and refuses anything but one read-only query, including data-modifying CTEs, locks, side-effect functions, and table functions, with the reason shown.
- Next.js Dashboard
- A Next.js 15 and React 19 app with Recharts offers an ask workspace, schema explorer, history, templates, audit log, and settings, in light and dark themes.
- Providers and Mock Model
- Adapters cover OpenAI, Anthropic, Gemini, Ollama, and OpenAI-compatible endpoints, and a deterministic mock model answers demo questions without a key until a real provider is added.
- Python SDK and CLI
- The euron-sqlagent package offers sync and async Python clients to ask, explain, validate, and execute SQL, and sqlagent-cli exits non-zero when a query stops working.
- Docker Compose and Terraform
- make up starts the API, worker, scheduler, and web app with Redis, Mailpit, demo databases, and a Floci AWS emulator provisioned by Terraform; make demo seeds sample conversations.