Queries and tags
Favorites, tags and soft delete. Nothing is erased at once: items go to the trash and can be restored.
Store, version and reuse PostgreSQL queries and routines in your own interface. Save straight from VS Code, search with Cmd+K and run everything on your own machine or server.
Favorites, tags and soft delete. Nothing is erased at once: items go to the trash and can be restored.
Functions, procedures, triggers and views kept together with their parameters.
Every SQL change creates a snapshot. Compare versions side by side in Monaco Editor.
Export as JSON (v1 and v2) or .sql, and import them back when you need to.
Cmd+K to jump between queries, tags and settings without leaving the keyboard.
OpenAI, Anthropic, Gemini or Ollama, with a searchable model picker. Keys are encrypted at rest.
Search your vault and save SQL straight from the editor, without switching windows. The extension uses a personal API key, shown only once when it is created.
Docker Compose starts the app and PostgreSQL 17. Migrations run before the app starts. In production, Caddy handles HTTPS.
Keep AI_ENCRYPTION_KEY as safe as AUTH_SECRET. Without it, saved AI credentials cannot be decrypted.
Clone the repository and create .env
git clone https://github.com/mateusarcedev/sql-vault.git && cd sql-vault && cp .env.example .envSet AUTH_SECRET and AI_ENCRYPTION_KEY in .env
Start the containers
docker compose up --build -dOpen http://localhost:3000
Queries, routines and tags belong to one user, and every read filters by owner.
The token is shown only once. The database stores only its hash.
Provider keys are encrypted with AES-256-GCM before they reach the database.
Web sign-in with NextAuth v5 (JWT session) and personal API keys for external integrations.
Search for a command to run...