Connections
PostgreSQL servers available in the explorer
| Name | Host | Database | User | Environment | SSL | Actions |
|---|
No connections yet
Add a server manually or import one from a workspace .env file.
AI Configuration
Configure API keys for any provider — set your default model at the bottom
Notebook & Dashboard AI
SQL assistant cells, explanation outputs, and dashboard helper tools.
SQL Assistant Chat BETA
Interactive chat sidebar, generating code queries, and explanation dialogues.
opencode auth login — no API key needed here.
opencode serve (recommended)
Preferences
Editor and explorer behavior
DDL Viewer
Generated DDL preview for tables, views, functions and other objects.
Query History
Maximum number of query history entries to retain. Older entries are removed once the limit is reached.
SQL Assistant Agentic Loop
Maximum tool-loop steps per agentic run before pausing with a continue prompt. Longer exploratory tasks need a higher limit.
Model Context Protocol (MCP) BETA
Spawn the standalone nexql-mcp binary over stdio so Copilot and other MCP clients can use NexQL's schema-aware tools. Shares the same on-disk database index as the in-chat assistant.
Binary not found on PATH. Install once, then hit Detect — no window reload needed.
Other install methods
# one-off, no install
npx -y nexql-mcp postgres://dev@localhost:5432/appdb
# or pin the printed path in "Binary path" below after either install
After installing (or downloading via curl below), click "Re-check installed version" to re-probe PATH and pick up the new binary — no window reload needed.
Or download directly from GitHub Releases
-
stdio
-
-
Connection Guides
With MCP enabled above, Cursor can use VS Code's MCP registry automatically. For a standalone Cursor config, run nexql-mcp init cursor and paste the generated block.
-
GitHub Copilot integrates natively with VS Code's MCP registry. Enable MCP above — Copilot Chat discovers NexQL via stdio spawn (no URL or bearer token).
For Claude Desktop outside VS Code, run nexql-mcp init claude-desktop and merge the JSON into claude_desktop_config.json.
-
External agents should spawn the binary directly (not the old HTTP SSE endpoint):
nexql-mcp init <client>
# or: nexql-mcp --stdio postgres://…
Sentinel
Ambient environment signaling — know when you are on production without changing your syntax theme
Environment preview
How production, staging, and development accents appear when Sentinel is on.
Visibility
Control where environment signals appear across the workbench.
Optional pair with theme swap.
Advanced — full theme swap
Off by default. Swaps the entire VS Code color theme for maximum visual separation.
Cloud Sync
Encrypted sync of connections, saved queries and notebooks
Cloud Sync is not available on this plan
Free includes manual backup to your own Postgres. Sponsor adds automatic multi-device sync via Gist, OneDrive and Google Drive; Teams adds NexQL Cloud and team sharing.
NexQL Cloud Sync
Encrypted, automatic multi-device sync for your connections, saved queries, and notebooks — included with a NexQL license.
- 🔒 End-to-end encrypted vault — only you hold the key
- ⚡ Auto-push on save, auto-pull on schedule
- 🖥️ Sync across unlimited devices
- 👥 Team workspaces with shared encrypted vaults
- ☁️ Hosted NexQL Cloud — no infra to manage
Single-device manual backup to your own Postgres database
Cloud Sync is not set up
Run the guided wizard to pick a storage backend and create or unlock your encrypted vault.
Sync status
Last sync: —
⚠️ WARNING: Do not run this script on critical or production databases.
This sync backend requires Postgres. Other databases are not supported.
Execute the following SQL on your sync database to create the required schema:
CREATE SCHEMA IF NOT EXISTS nexql_sync;
CREATE TABLE IF NOT EXISTS nexql_sync.sync_items (
account_id TEXT NOT NULL,
item_id TEXT NOT NULL,
kind TEXT NOT NULL,
blob BYTEA NOT NULL,
content_hash TEXT NOT NULL,
revision INTEGER NOT NULL,
device_id TEXT NOT NULL,
deleted BOOLEAN NOT NULL,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
PRIMARY KEY (account_id, item_id)
);
CREATE TABLE IF NOT EXISTS nexql_sync.sync_meta (
account_id TEXT PRIMARY KEY,
bound_device_id TEXT,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
What to sync
Choose what gets encrypted and uploaded to your sync backend.
Passwords and SSH/SSL key paths stay on this device and are never uploaded.
Shared Postgres connection
Connection used for Postgres sync data storage.
Database setup instructions & SQL script
⚠️ WARNING: Do not run this script on critical or production databases.
This sync backend requires Postgres.
CREATE SCHEMA IF NOT EXISTS nexql_sync;
CREATE TABLE IF NOT EXISTS nexql_sync.sync_items (
account_id TEXT NOT NULL,
item_id TEXT NOT NULL,
kind TEXT NOT NULL,
blob BYTEA NOT NULL,
content_hash TEXT NOT NULL,
revision INTEGER NOT NULL,
device_id TEXT NOT NULL,
deleted BOOLEAN NOT NULL,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
PRIMARY KEY (account_id, item_id)
);
CREATE TABLE IF NOT EXISTS nexql_sync.sync_meta (
account_id TEXT PRIMARY KEY,
bound_device_id TEXT,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now()
);
Automatic sync
Control when changes are pushed and how often to pull from the cloud.
Manual sync
Force a one-way sync without applying the full merge.
Pending changes
Local changes queued for the next sync.
| Action | Item | Type | Queued |
|---|---|---|---|
| No pending changes. | |||
On this device & cloud
Items on this device and cloud-only entries not present locally.
| Item | Type | Detail | Updated | Location | Status | |
|---|---|---|---|---|---|---|
| Loading… | ||||||
Sync preview
Dry-run — review outgoing/incoming changes before applying.
Outgoing
Incoming
Conflicts
Conflicts
Resolve items changed on multiple devices.
Inbound history
Recent items received from other devices.
| Item | From device | When |
|---|---|---|
| No inbound history yet. | ||
This device
Friendly name shown in sync history and the device list. The device ID stays unique in the cloud.
Synced devices
Devices connected to your sync account.
Advanced
Destructive sync operations and diagnostics.
Use a different backend (Advanced)
Gist, OneDrive, Google Drive, or Shared Postgres — run setup again after signing out.
License
Subscription status, devices, and usage
Subscription
- License key
- —
- Subscription
- —
- Billing
- —
- Renews / expires
- —
- —
- Member since
- —
- Renewals
- —
- Offline grace
- —
Activate a license
Verify email
Enter the email on your subscription to view devices and license history.
Devices
Friendly names appear here and in Cloud Sync → Devices.
| Device | Last seen |
|---|
History
Free usage remaining
| Feature | Remaining | Resets |
|---|
Database Indexing
Local knowledge catalogs that feed AI prompt grounding and agent tool loops offline
General Configuration
Embed tables and columns using active model keys (OpenAI, Gemini, Ollama, etc.) for semantic search.