NexQL Settings

Connections

PostgreSQL servers available in the explorer

DATABASE_URL candidates found in workspace .env files
    Loading connections…
    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.

    🟢 OpenAI ○
    Get API key
    🟤 Anthropic (Claude) ○
    Get API key
    🔵 Google Gemini ○
    Get API key
    🐋 DeepSeek ○
    Get API key
    🌙 Moonshot / Kimi ○
    Get API key
    🌀 Mistral AI ○
    Get API key
    💠 VS Code Language Model
    Install Copilot
    ℹ️ Uses GitHub Copilot or other VS Code language model extensions. No API key required.
    🐙 GitHub Models ○
    Browse models
    🔐 Not connected — click Connect to sign in with your GitHub account.
    ⚙️ Cursor SDK ○
    Get API key
    🧠 OpenCode
    opencode.ai
    ℹ️ Uses the OpenCode CLI on your machine. Configure providers with opencode auth login — no API key needed here.
    Auto-start opencode serve (recommended)
    Show OpenCode log output (View → Output → OpenCode)
    Headless mode — auto-allow tool permissions
    Auto-approve server permission prompts
    🦙 Ollama
    ollama.com
    ℹ️ Runs models locally. Make sure Ollama is running before testing.
    🖥️ LM Studio
    lmstudio.ai
    ℹ️ Runs models locally via LM Studio's built-in server. Start the server first.
    🔧 Custom Endpoint ○
    ⚠️ For self-hosted or alternative providers with OpenAI-compatible APIs.

    Preferences

    Editor and explorer behavior

    Loading preferences…

    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.

    MCP restart required — connection or binary settings changed. Disable and re-enable MCP, or reload the window.
    Install nexql-mcp

    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
    Connecting...
    nexql-mcp update available

    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
    -
    Skipped connections (SSH not supported for MCP)
    Transport: stdio
    Binary: -
    Source: -

    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

    Loading Sentinel settings…

    Environment preview

    How production, staging, and development accents appear when Sentinel is on.

    PROD
    STG
    DEV

    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

    Loading sync status…
    ☁️🔒

    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.

    ActionItemTypeQueued
    No pending changes.

    On this device & cloud

    Items on this device and cloud-only entries not present locally.

    ItemTypeDetailUpdatedLocationStatus
    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.

    ItemFrom deviceWhen
    No inbound history yet.

    Sharing

    Share synced items with team members.

    Outgoing shares

    Incoming shares

    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.

    Set Up Cloud Sync

    License

    Subscription status, devices, and usage

    Loading license…

    Subscription

    Free offline — using cached license
    License key
    —
    Subscription
    —
    Billing
    —
    Renews / expires
    —
    Email
    —
    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.

    DeviceLast seen

    History

      Free usage remaining

      FeatureRemainingResets

      Database Indexing

      Local knowledge catalogs that feed AI prompt grounding and agent tool loops offline

      Loading indexes…

      General Configuration

      Embed tables and columns using active model keys (OpenAI, Gemini, Ollama, etc.) for semantic search.

      New Connection

      Pre-fills SSL and port for hosted Postgres providers (PostgreSQL 12+)

      Paste postgresql://… to autofill host, port, database, and SSL
      Leave empty to use the default (postgres)
      Leave empty to use your OS username
      Stored in VS Code secret storage
      Tag for AWS RDS IAM, Entra ID, or GCP IAM — token-based IAM is planned.

      Tags this connection for Sentinel safety signals.

      Force all transactions to be read-only
      ⚠️
      Production Database Connection
      Enable Read-Only Mode to prevent accidental modifications. Enable Read-Only Mode
      SSH Tunnel
      Advanced Options
      Shown in pg_stat_activity
      Seconds (default: 15)
      Milliseconds (0 = no limit)
      Raw connection parameters (e.g., -c search_path=myschema)

      Setup Database Indexing

      Choose which schemas you want to catalog.
      Value profiling on a Production database indexes pg_stats information. Common PII fields are filtered out, but other user data columns could still leak details.
      Optional. Comma-separated column paths (e.g. public.users.age, billing.orders.amount) to exclude.