Built-in AI for writing, explaining, optimizing, and fixing SQL. One active provider drives every AI feature: chat, inline suggestions, editor actions, and fix-error.
Open Settings (Cmd+,) > AI. The tab is modeled on Xcode’s Intelligence settings: a single Active Provider picker at the top, a list of configured providers below, and a detail sheet when you drill into one.
Add Copilot like any other provider. The detail sheet runs GitHub’s device-flow sign-in: enter the displayed code on github.com to authorize. The Copilot language server starts when you add a Copilot provider and stops when you remove it.
Press Cmd+Shift+L, click the AI toolbar button, or use View > Toggle AI Chat.
Type a question and press Return. The AI receives your database type, schema, and current query. Code blocks have Copy and Insert to Editor buttons. Token counts show below each response.
Conversations auto-save and auto-title from your first message. Browse, clear, or start a new one from the panel header.
Failed responses show Retry. Successful ones show Regenerate. Click Stop to cancel a streaming response.
Toggle Enable inline suggestions while typing in the AI tab. The active provider drives suggestions. Press Tab to accept, Esc to dismiss.With Copilot active, suggestions come from Copilot’s inline-completion model. With any other active provider, suggestions come from chat completions.