Make your database
understandable to AI

A developer tool that reads your database schema and exports clean, structured JSON with business names, relationships, PII flags, and rules. Ready for any LLM, agent, or RAG pipeline.

100 Percent Local No API Keys Open Source
# Install
$ pip install sedql-cli
# Initialize with your database
$ sedql init --db "sqlite:///my.db"
# Query using templates
$ sedql query "show me all customers"
↓ SELECT * FROM users LIMIT 10;
# Export JSON for AI
$ sedql export --output context.json

What Is SeDQL?

SeDQL is a command-line tool that generates LLM-ready schema context from your database.

It reads your database schema and exports a clean, structured JSON file with business names, relationships, PII flags, and validation rules. No cloud. No API keys. No over-engineering.

01

Reads Your Schema

Tables, columns, foreign keys, constraints.

02

Maps to Business Names

users -> Customers, orders -> Orders.

03

Exports JSON

Ready for any LLM, agent, or RAG pipeline.

NO CLOUD
NO API KEYS
NO OVER-ENGINEERING

How It Works

Three simple steps. No complicated setup. No cloud.

01

Install

One command. No dependencies. Works on any system.

pip install sedql-cli
02

Initialize

Point it at your database. It reads your schema automatically.

sedql init --db "postgresql://..."
03

Query or Export

Ask questions with templates, or export JSON for your AI.

sedql export --output context.json

Where It Fits

SeDQL sits between your AI and your database, providing context and structure.

AI / LLM / Agent
SeDQL
Your Database
Context
Export schema as JSON for LLMs
Rules
Basic validation and PII labeling
Templates
Predictable query patterns
Export
JSON context for RAG and agents
KNOW YOUR DATA
TRUST YOUR QUERIES
LET AI UNDERSTAND

Honest Tradeoff

SeDQL is a semantic layer, not a full LLM.

Feature SeDQL LLM Tools
Local / Offline Yes No
No API Keys Yes No
Setup Complexity Low High
Query Accuracy Predictable Can Hallucinate
PII Handling Labeled in Export Manual
Best For 5-100 Tables Large Warehouses

Open Source

SeDQL is open source. Try it, file issues, send pull requests, and help us build something genuinely useful.

$ pip install sedql-cli Star on GitHub Report an Issue
Supports PostgreSQL, MySQL, SQLite. Open source under AGPL-3.0. Contributions welcome.