SqlOtter
← All featuresAssistance & preferences

Assistance & preferences

Understand your database and review AI drafts with explicit context.

Explain structures, SQL or errors, review optimization/syntax suggestions, draft SQL/CRUD/test data and ask for JOIN advice with carefully chosen context.

Current development implementation: Official AI requires a server-confirmed supported location, and provider, account, model and context access vary. Six authentic images illustrate configuration, controls and partial drafts; desktop and release acceptance remain pending.

How it works

Use the workspace AI panel, Table → AI, the SQL editor AI menu, @mentions, /commands and $skills with an approved provider. Inspect the actual request scope and review the answer before copying or inserting it.

A quick walkthrough

  1. Configure AI Settings: Provider, Base URL/Full URL, Chat Completions or Responses Wire API, model/Reasoning Effort, output language, streaming, timeout, proxy and local daily limit. Custom providers use Add/Remove/Set Default; Ollama needs an existing local endpoint/model.
  2. For SqlOtter Official, sign in, choose a current model/Effort and check available AI wallet credit. Get Models refreshes discovery; cached choices are not proof of availability. Desktop subscriptions/trials and AI wallet recharge remain separate.
  3. Official AI requires a server-confirmed supported location; mainland China and unknown locations are denied with HTTP 403 before catalog, wallet or upstream work. Hong Kong, Macao and Taiwan are outside this restriction. Retry Initial Request repeats the check; direct/custom providers are not covered by this Official-only gate.
  4. Read AI Data Processing Agreement and minimize conversation, SQL, connection/database/table/field mentions, sample rows/statistics and attachments. A field mention can include parent-table context; broad mentions can expand many objects.
  5. Ask a focused question or choose Explain Table, Generate Query, Generate CRUD SQL, Generate Test Data, Analyze Rows, Generate Field Comments or structure comparison. The editor also offers SQL Explain, Optimization, Syntax Checking, Generation and Fix With Error Message. These are AI drafts, not server parsing, EXPLAIN plans or benchmarks; table dialog OK and editor AI actions can send directly.
  6. Use Enter to send, Shift+Enter for a newline and picker Up/Down/Enter/Esc to choose or dismiss. During a response, nonempty input queues a follow-up that can send automatically; remove queued messages separately before Stop.
  7. Review each complete answer and code block. Copy answer copies text; Send to SqlEditor inserts at the cursor and Replace SqlEditor content replaces editor text/current Terminal Mode command. Check target/dialect/parameters before a separate execution decision.
  8. Use History/Search chat, Rename/Delete, New Chat and local Compact Context deliberately. Restore AI dialog when application launches is initially off. A safe fictional walkthrough can stop before Send/OK without generating anything. After New Chat, recheck pending composer text, chips and files.
Complete AI Settings window showing provider URL and protocol, models, Generation, and Safety and Limits.
Complete AI Settings with the API key field showing a placeholder. Model names, Unlimited and the checked restore option are captured selections. The linked Docs guide includes the welcome panel, a partial CRUD draft and test-data form/generating/partial-answer images. Historical screenshot; UI icons have been updated.

Default shortcuts and visible controls

Bindings below distinguish workspace actions, composer keys and visible controls. Docs and Features render these same rows. Check focus, popup state and configured bindings before using them.

Default shortcuts and visible controls
ActionWindows / LinuxmacOSFocus, scope and effect
Show / hide the AI panelCtrl+F1⌘+F1Current workspace; first opening may require consent. Hiding is not cancellation.
Find in the focused AI viewCtrl+F⌘+FAI focus: history/default view searches saved chats; a conversation uses Search chat.
Open AI SettingsVisible control; no dedicated defaultVisible control; no dedicated defaultTools → Settings → AI Settings, or the panel settings button.
Accept or cancel the agreementVisible control; no dedicated defaultVisible control; no dedicated defaultCheck the agreement box before Accept and Continue; Cancel leaves it unaccepted.
Withdraw AI ConsentVisible control; no dedicated defaultVisible control; no dedicated defaultAI Settings: blocks later AI tasks until accepted again; does not cancel active work.
Enable AI features / ProviderVisible control; no dedicated defaultVisible control; no dedicated defaultConfiguration controls; verify the actual route and use consent withdrawal for blocking new tasks.
Base URL / Full URL / Wire API / API KeyVisible control; no dedicated defaultVisible control; no dedicated defaultDirect providers; exact endpoint and Chat Completions/Responses payload must agree.
Add / Remove / Set DefaultVisible control; no dedicated defaultVisible control; no dedicated defaultCustom provider list; Models is one name per line, not an automatic cross-provider failover list.
Get Models / official EffortVisible control; no dedicated defaultVisible control; no dedicated defaultDiscover the current catalog; cached choices are not live availability proof.
Composer Model / Reasoning EffortVisible control; no dedicated defaultVisible control; no dedicated defaultSaves provider/model/effort for future requests; active workers retain their snapshot.
Language / Stream / Request Timeout / Max Tokens / Temperature / Top PVisible control; no dedicated defaultVisible control; no dedicated defaultGeneration settings; output limits and sampling support depend on the service.
Privacy LevelVisible control; no dedicated defaultVisible control; no dedicated defaultSchema only / Ask each time / Full data / Local only are not uniformly enforced across chat/table paths.
Daily Token LimitVisible control; no dedicated defaultVisible control; no dedicated defaultLocal estimate, initially 100000; 0 = Unlimited. Not the wallet ledger or a strict spending cap.
Advanced Settings proxy / Extra Headers JSONVisible control; no dedicated defaultVisible control; no dedicated defaultRemote AI uses application proxy; loopback bypasses it. Official ignores client extra headers.
Search object mentionsType @ + nameType @ + nameConnection/database/table/field metadata; broad mentions expand more context.
Choose a command or skillType / or $Type / or $Composer picker; selection adds a command/skill, then review before sending.
Navigate and select a popup candidateUp / Down, EnterUp / Down, EnterMention/command/skill popup consumes Enter for selection, not chat submission.
Dismiss a suggestion popupEscEscCloses that picker; does not cancel an active AI request.
Remove an adjacent mention / empty command chipBackspace / Delete⌫ / forward DeleteNo modifiers: removes adjacent mention; an empty composer can clear its selected command chip.
Attach fileVisible control; no dedicated defaultVisible control; no dedicated defaultPNG/JPG/JPEG/GIF/BMP/WebP, SQL/JSON/TXT only; PDF/Office/CSV/archives are unsupported.
Paste an image or local pathsCtrl+V⌘+VComposer: supported files attach; unsupported paths become text. File names and paths can be sent.
Remove a file from the pending messageVisible control; no dedicated defaultVisible control; no dedicated defaultDelete its file_N.ext token, then recheck the composer; this is not file erasure.
Send a messageEnter / SendEnter / SendComposer without an active popup; may start a billable request and an ordinary-chat title request.
Insert a newlineShift+EnterShift+EnterComposer text entry; suggestion popup handling takes precedence.
Queue steer message / Remove queued messageVisible control; no dedicated defaultVisible control; no dedicated defaultDuring a response, nonempty submit queues a follow-up that can send automatically afterward.
StopVisible control; no dedicated defaultVisible control; no dedicated defaultVisible when the current conversation is running and composer is empty; cancels active panel tasks, not the queue or server settlement.
Recall recent user inputsUp / DownUp / DownEmpty composer or already browsing input history; up to 100 entries, no automatic resend.
Force input-history browsingCtrl+Alt+Up / Down⌘+⌥+Up / DownComposer; restores a previous input/draft. Verify chips and files before resending.
Table → AI action / User Request / Skills / OKVisible control; no dedicated defaultVisible control; no dedicated defaultChoose at least one skill; action-dialog OK can immediately send, while Cancel leaves it unsent.
SQL editor AI menuVisible control; no dedicated defaultVisible control; no dedicated defaultSelected SQL first, otherwise full text plus recognized structure; menu action can dispatch directly.
Generate Test Data → RowsVisible control; no dedicated defaultVisible control; no dedicated defaultInitially 10, range 1–1000; requests a draft count, does not insert records.
Copy / Copy answerVisible control; no dedicated defaultVisible control; no dedicated defaultCopies one code block or raw answer to the clipboard; no SQL execution.
Send to SqlEditorVisible control; no dedicated defaultVisible control; no dedicated defaultInserts recognized code at the editor cursor; check the resulting target and text.
Replace SqlEditor contentVisible control; no dedicated defaultVisible control; no dedicated defaultReplaces regular editor text or the editable Terminal Mode command; no execution.
Review AI SQL / High-Risk AI SQLVisible control; no dedicated defaultVisible control; no dedicated defaultConditional confirmation for dangerous workspace templates and classified risk; not a universal insert preview.
History / Rename / DeleteVisible control; no dedicated defaultVisible control; no dedicated defaultLocal saved chats; Delete asks for confirmation and does not erase provider records or attached files.
New Chat / Close PanelVisible control; no dedicated defaultVisible control; no dedicated defaultNew Chat cancels active work by default; recheck pending text/chips/files. Close Panel hides and retains history.
Compact Context / Auto Compact Keep Recent MessagesVisible control; no dedicated defaultVisible control; no dedicated defaultLocal abbreviated memory; initial recent-message setting 4. Compaction is not deletion or anonymization.
Restore AI dialog when application launchesVisible control; no dedicated defaultVisible control; no dedicated defaultInitially off; can restore history ID, draft and scroll when the saved session had AI open.
Run AI Service Benchmark / RegenerateVisible control; no dedicated defaultVisible control; no dedicated defaultCan make real AI requests and consume usage; optional and excluded from the safe screenshot walkthrough.
  • Settings → Shortcuts shows configurable application bindings. Composer/popup keys are handled by their own controls and may not be remappable there.
  • On macOS, ⌘ means Command and ⌥ means Option; the composer history chord uses Qt Control/Alt, which maps to Command/Option. Function keys may require Fn, and forward Delete may require Fn+⌫.
  • These are current implementation defaults, not recorded desktop-keyboard acceptance. No dedicated shortcut is established for every AI task, and insertion is separate from execution.

Objects in this workflow

  • Database
  • Table
  • Field
  • SQL query
  • Attachment

What to know

  • Schema only, Ask each time, Full data, Local only and Enable AI features are not uniformly enforced disclosure/network barriers across current chat/table paths. Review actual context; no all-path anonymization, guaranteed offline mode or per-message confirmation is established.
  • Table actions can send up to 20 selected/first loaded visible sample rows (Explain Table: 10; dedicated test data: 0), plus applicable limited statistics. Hidden columns can retain metadata. These are loaded-view observations, not whole-database analysis.
  • Attach file accepts PNG/JPG/JPEG/GIF/BMP/WebP and SQL/JSON/TXT, not PDF/Office/CSV/archives. Text is capped at 60000 captured characters; original names/paths can be disclosed. Image support depends on the model, and unsupported pasted paths become ordinary text.
  • Official access needs an available service offering, authenticated account and sufficient available prepaid wallet credit. No free AI allowance or fixed model list is promised. Stop is best effort; uncertain official usage can remain reserved, and the local daily estimate is not the wallet ledger or a strict spending cap.
  • Model/effort/settings changes affect future tasks; active requests and direct-provider retries keep their initial configuration. Custom routing uses the selected/default provider and model. Run AI Service Benchmark, Regenerate and ordinary-chat title generation can make additional chargeable requests.
  • SQL/CRUD/test-data counts, error fixes, JOIN conditions, comments and compare-structure results are advisory. A skill prompt, LOW risk, VALID text or syntax highlighting does not prove server correctness or a completed database change.
  • Copy/insert/replace does not execute SQL or system commands. Extra Review AI SQL / High-Risk AI SQL confirmation is conditional on dangerous workspace templates and classified risk; it is not a universal insertion preview. The editor target can differ from the mentioned object.
  • Local application-level history retains messages, augmented context and file metadata; compacted memory can be sent again. New Chat, token removal or local deletion does not erase provider records or guarantee secure erasure. Withdraw AI Consent blocks new tasks but does not recall submitted data.
  • The primary Settings still illustrates provider controls. The linked Docs guide also shows the empty panel, partial HIGH-risk CRUD draft, test-data request form, generation in progress and a partial test-data answer. Both answer views have incomplete prompt/SQL coverage. Generating and Stop controls do not prove cancellation; no copy/insert/execution outcome or SQL correctness is established. Physical-key, provider/engine workflow and named-release acceptance remain pending.

Try it now

Put database work back into one focused workspace.

Start a Personal trial ↗