Assistance & preferences
Use AI with explicit context and review
Configure an approved provider, inspect what will be disclosed, and review explanations or SQL drafts before using them.
What this feature does
The workspace assistant can explain structures and errors, draft queries/CRUD/test data, compare mentioned structures and suggest JOINs. Provider access, data disclosure, text insertion and database execution have separate boundaries.
When to use it
Use it for an advisory draft with approved nonsensitive context. You can explore the controls with an unsent fictional prompt; no AI call or database write is needed for that walkthrough.

Before you start
Check the actual provider/endpoint, required authentication, model and consent. SqlOtter Official needs a confirmed supported location, account access, an available offering and sufficient available prepaid AI wallet credit; the service denies Official AI in mainland China and when location is unknown. Hong Kong, Macao and Taiwan are outside this location restriction. A desktop subscription or trial grants no AI wallet credit. Privacy-level labels are not uniformly enforced across the reviewed chat/table paths, so inspect and minimize actual context.
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.
| Action | Windows / Linux | macOS | Focus, scope and effect |
|---|---|---|---|
| Show / hide the AI panel | Ctrl+F1 | ⌘+F1 | Current workspace; first opening may require consent. Hiding is not cancellation. |
| Find in the focused AI view | Ctrl+F | ⌘+F | AI focus: history/default view searches saved chats; a conversation uses Search chat. |
| Open AI Settings | Visible control; no dedicated default | Visible control; no dedicated default | Tools → Settings → AI Settings, or the panel settings button. |
| Accept or cancel the agreement | Visible control; no dedicated default | Visible control; no dedicated default | Check the agreement box before Accept and Continue; Cancel leaves it unaccepted. |
| Withdraw AI Consent | Visible control; no dedicated default | Visible control; no dedicated default | AI Settings: blocks later AI tasks until accepted again; does not cancel active work. |
| Enable AI features / Provider | Visible control; no dedicated default | Visible control; no dedicated default | Configuration controls; verify the actual route and use consent withdrawal for blocking new tasks. |
| Base URL / Full URL / Wire API / API Key | Visible control; no dedicated default | Visible control; no dedicated default | Direct providers; exact endpoint and Chat Completions/Responses payload must agree. |
| Add / Remove / Set Default | Visible control; no dedicated default | Visible control; no dedicated default | Custom provider list; Models is one name per line, not an automatic cross-provider failover list. |
| Get Models / official Effort | Visible control; no dedicated default | Visible control; no dedicated default | Discover the current catalog; cached choices are not live availability proof. |
| Composer Model / Reasoning Effort | Visible control; no dedicated default | Visible control; no dedicated default | Saves provider/model/effort for future requests; active workers retain their snapshot. |
| Language / Stream / Request Timeout / Max Tokens / Temperature / Top P | Visible control; no dedicated default | Visible control; no dedicated default | Generation settings; output limits and sampling support depend on the service. |
| Privacy Level | Visible control; no dedicated default | Visible control; no dedicated default | Schema only / Ask each time / Full data / Local only are not uniformly enforced across chat/table paths. |
| Daily Token Limit | Visible control; no dedicated default | Visible control; no dedicated default | Local estimate, initially 100000; 0 = Unlimited. Not the wallet ledger or a strict spending cap. |
| Advanced Settings proxy / Extra Headers JSON | Visible control; no dedicated default | Visible control; no dedicated default | Remote AI uses application proxy; loopback bypasses it. Official ignores client extra headers. |
| Search object mentions | Type @ + name | Type @ + name | Connection/database/table/field metadata; broad mentions expand more context. |
| Choose a command or skill | Type / or $ | Type / or $ | Composer picker; selection adds a command/skill, then review before sending. |
| Navigate and select a popup candidate | Up / Down, Enter | Up / Down, Enter | Mention/command/skill popup consumes Enter for selection, not chat submission. |
| Dismiss a suggestion popup | Esc | Esc | Closes that picker; does not cancel an active AI request. |
| Remove an adjacent mention / empty command chip | Backspace / Delete | ⌫ / forward Delete | No modifiers: removes adjacent mention; an empty composer can clear its selected command chip. |
| Attach file | Visible control; no dedicated default | Visible control; no dedicated default | PNG/JPG/JPEG/GIF/BMP/WebP, SQL/JSON/TXT only; PDF/Office/CSV/archives are unsupported. |
| Paste an image or local paths | Ctrl+V | ⌘+V | Composer: supported files attach; unsupported paths become text. File names and paths can be sent. |
| Remove a file from the pending message | Visible control; no dedicated default | Visible control; no dedicated default | Delete its file_N.ext token, then recheck the composer; this is not file erasure. |
| Send a message | Enter / Send | Enter / Send | Composer without an active popup; may start a billable request and an ordinary-chat title request. |
| Insert a newline | Shift+Enter | Shift+Enter | Composer text entry; suggestion popup handling takes precedence. |
| Queue steer message / Remove queued message | Visible control; no dedicated default | Visible control; no dedicated default | During a response, nonempty submit queues a follow-up that can send automatically afterward. |
| Stop | Visible control; no dedicated default | Visible control; no dedicated default | Visible when the current conversation is running and composer is empty; cancels active panel tasks, not the queue or server settlement. |
| Recall recent user inputs | Up / Down | Up / Down | Empty composer or already browsing input history; up to 100 entries, no automatic resend. |
| Force input-history browsing | Ctrl+Alt+Up / Down | ⌘+⌥+Up / Down | Composer; restores a previous input/draft. Verify chips and files before resending. |
| Table → AI action / User Request / Skills / OK | Visible control; no dedicated default | Visible control; no dedicated default | Choose at least one skill; action-dialog OK can immediately send, while Cancel leaves it unsent. |
| SQL editor AI menu | Visible control; no dedicated default | Visible control; no dedicated default | Selected SQL first, otherwise full text plus recognized structure; menu action can dispatch directly. |
| Generate Test Data → Rows | Visible control; no dedicated default | Visible control; no dedicated default | Initially 10, range 1–1000; requests a draft count, does not insert records. |
| Copy / Copy answer | Visible control; no dedicated default | Visible control; no dedicated default | Copies one code block or raw answer to the clipboard; no SQL execution. |
| Send to SqlEditor | Visible control; no dedicated default | Visible control; no dedicated default | Inserts recognized code at the editor cursor; check the resulting target and text. |
| Replace SqlEditor content | Visible control; no dedicated default | Visible control; no dedicated default | Replaces regular editor text or the editable Terminal Mode command; no execution. |
| Review AI SQL / High-Risk AI SQL | Visible control; no dedicated default | Visible control; no dedicated default | Conditional confirmation for dangerous workspace templates and classified risk; not a universal insert preview. |
| History / Rename / Delete | Visible control; no dedicated default | Visible control; no dedicated default | Local saved chats; Delete asks for confirmation and does not erase provider records or attached files. |
| New Chat / Close Panel | Visible control; no dedicated default | Visible control; no dedicated default | New Chat cancels active work by default; recheck pending text/chips/files. Close Panel hides and retains history. |
| Compact Context / Auto Compact Keep Recent Messages | Visible control; no dedicated default | Visible control; no dedicated default | Local abbreviated memory; initial recent-message setting 4. Compaction is not deletion or anonymization. |
| Restore AI dialog when application launches | Visible control; no dedicated default | Visible control; no dedicated default | Initially off; can restore history ID, draft and scroll when the saved session had AI open. |
| Run AI Service Benchmark / Regenerate | Visible control; no dedicated default | Visible control; no dedicated default | Can 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.
How to use it
- Open AI Settings and verify Provider, model/effort, endpoint protocol, output/network options and local limits; distinguish official account/wallet access from direct or local providers.
- Read the global AI agreement. Inspect messages, prior history, SQL, mentions, sample rows/statistics, file contents and original names/paths before approving external processing.
- Choose a specific table/field or minimal SQL instead of broad connection context. Table action OK and editor AI menu actions can submit immediately after consent.
- Compose a focused request. Enter sends, Shift+Enter inserts a newline, and a suggestion popup consumes Enter for selection. During generation a nonempty submit queues a follow-up.
- Review the complete answer and any failure/cancellation note. Use Copy, Send to SqlEditor or Replace SqlEditor content deliberately, then check the editor target.
- Keep generation and insertion separate from execution. For the safe fictional walkthrough, stop before Send/OK, benchmark/regeneration or any SQL run action.
Open the workspace AI panel
Use the title toolbar AI button or the default Ctrl+F1 / ⌘+F1 binding. The panel sits beside the current workspace.

- On first use, opening the panel can show AI Data Processing Agreement. Read it before deciding whether to continue.
- Identify History, New Chat, AI Settings and Close Panel in the header. The AI Assistant title returns to the chat view.
- Check the context chip and the model selector before entering a question. Toolbar toggling hides or shows the panel.
- Opening or hiding the panel is not a SQL execution action. Hiding the panel or switching history is not a reliable way to stop an in-flight request.
- Bindings can be customized in Settings → Shortcuts. Function keys may require Fn; the source review is not a physical-keyboard acceptance test.
Configure AI Settings before sending
Open Tools → Settings → AI Settings, or use the panel’s AI Settings button.

- Check Enable AI features and choose the intended Provider. Fresh preferences select SqlOtter Official; an existing explicit provider choice is retained.
- For a direct provider, review Base URL, Full URL, Wire API, API Key and Model. Enter a key only in the approved local configuration and keep it hidden.
- Review Generation and Safety and Limits, then save settings only when you intend the change. Saving settings does not test a chat response.
- Preset provider/model names are configuration suggestions, not proof of access, current availability, price or image support.
- Settings changes apply to subsequent tasks. Running workers and their retries keep the configuration captured when they started; use Stop if they must end.
Use SqlOtter Official and its separate AI wallet
Official chat requires a server-confirmed supported location, a signed-in SqlOtter account, an available configured offering, a working service and sufficient available AI wallet credit. Mainland China and unknown locations are denied; Hong Kong, Macao and Taiwan are outside this restriction.
- Choose SqlOtter Official. Its service endpoint and account authentication are supplied by the application; the official form hides custom URL, API key, Wire API and fallback controls.
- Choose a model and an Effort offered by the current service catalog. Launch and opening settings check Official AI availability in the background, even before sign-in. Retry Initial Request repeats that check; Get Models retries discovery. Official choices are hidden while unavailable or unverified, and saved configuration is retained.
- For a credit error, open Account → AI wallet recharge or the response’s Recharge AI credit link and inspect the same account’s wallet and request status.
- Available credit excludes reservations. The service reserves against its configured input cap and requested output limit before forwarding, then settles under the selected model’s pricing.
- Desktop subscriptions and free trials grant no AI wallet credit. AI wallet recharge adds prepaid credit; it does not create or extend a desktop subscription or an AI subscription. No free AI quota or fixed model list is promised.
- The server returns HTTP 403 before catalog, wallet or upstream work when Official AI location is restricted or unknown; new AI-credit checkout is also denied. The gate applies to SqlOtter Official, not direct/custom providers. Existing payment callbacks/reconciliation continue. An empty catalog, unavailable effort, unconfigured upstream or insufficient reservation capacity can also block a request.
- A failed availability check, restart or API-origin change prevents old model caches from authorizing Official requests. The server independently checks each Official request. The location reflects the request exit IP, which can differ from physical location when a proxy or VPN is used.
Configure a custom or local endpoint
Direct providers use their own endpoint, authentication and billing. Ollama can address an existing local OpenAI-compatible service.
- For a normal Chat Completions API root, leave Full URL off. When supplying the complete endpoint, enable Full URL and choose the matching Wire API.
- For Responses API, prefer a verified complete endpoint ending in /v1/responses with Full URL enabled. Full URL does not change the payload protocol; Wire API must still be Responses API.
- Under Custom OpenAI Compatible, use Add / Remove and the provider detail form for Name, Base URL, Full URL, Wire API, API Key and Models. Enter one model per line and use the default-provider control deliberately.
- For an already running local service, verify the exact loopback endpoint and installed model. Local endpoint configuration does not install or start a model server.
- Custom provider entries need a nonempty endpoint and model list. The active custom route uses the selected/default provider and chosen model; multiple entries are not an automatic cross-provider failover pool.
- Direct/local requests do not use the SqlOtter Official wallet. A “local” label or the Local only preference alone does not prove that no data leaves the machine; check the actual endpoint and its operator.
Choose a model and reasoning effort
The composer Model menu groups configured providers and models. Its selection is saved for later requests.
- Open Model and inspect the provider group as well as the model name. Selecting a different group can also switch the provider, endpoint and default custom entry.
- Use Reasoning Effort only when supported. Official choices come from the service catalog; direct providers can expose Provider default, None, Minimal, Low, Medium, High and Extra high or a configured custom value.
- After changing a model or effort, check the displayed selection. New tasks use it; already running requests keep their original snapshot.
- A selected value does not prove that a provider honors it. Official model/effort combinations are validated by the service; direct-provider capabilities and errors remain provider-specific.
- Run AI Service Benchmark sends actual test requests to configured targets and can incur charges. It is optional and must not be run merely to obtain documentation images.
Review output, timeout, network and daily limits
Generation exposes response language, streaming, timeout, output limit and sampling controls; their effect depends on the chosen service.
- Check Language, Stream responses while generating, Request Timeout, Max Tokens, Temperature and Top P. Max Tokens limits generated output, not all input or total billing.
- For remote requests, review the application-wide proxy in Advanced Settings. Loopback AI endpoints bypass that proxy; system proxy environment settings are not automatically inherited by this client.
- Extra Headers JSON is for approved direct-provider HTTP headers. Official requests ignore these client headers and use managed authentication.
- Review Daily Token Limit. The initial preference is 100000; 0 displays Unlimited. The local estimate can warn and still admit a request that would exceed the remaining limit.
- The local usage counter is an estimate based on message/history/response text and is not the official wallet ledger or an exact provider token meter. It blocks later work once the recorded daily limit is reached; it is not a strict per-request spending cap.
- Official upstream settings can omit Temperature or Top P; official forwarding can also wait longer than the editable desktop timeout. Large limits and streaming do not guarantee a complete answer or successful settlement.
Check actual context instead of relying on privacy labels
Safety and Limits shows Schema only, Ask each time, Full data and Local only. These settings do not provide uniform enforcement across the reviewed chat and table workflows.
- Treat every prompt, SQL selection, file, mention and retained conversation turn as potentially disclosed to the configured endpoint.
- Review the table action’s actual sample/statistics scope and object metadata before accepting its dialog. Schema only is not a dependable sample-row exclusion switch for these actions.
- Do not rely on Ask each time to show a per-message confirmation, Full data to redact every secret, Local only to block remote traffic, or Enable AI features as a security boundary.
- Use only approved nonsensitive context and an approved endpoint. Start a clean conversation when older turns contain material that must not be sent again; withdraw consent to block new AI tasks.
- No all-path anonymization or guaranteed offline mode is established. Hiding columns can reduce visible sample values but does not remove their metadata or earlier conversation content.
- Never include passwords, API keys, tokens, customer schemas or personal/business data without authorization. Inspect errors, file names and local paths as well as SQL literals.
Understand table action context and sample rows
Table AI actions build context from the table widget, its metadata and loaded cells. The compact context chip is a summary, not a full payload preview.
- Verify the table/connection/database/Schema and action before opening Table → AI. A tree-target action can open that table’s content widget.
- For most table actions, up to 20 selected rows are sampled; without a selection the first loaded rows are used. Explain Table uses up to 10; Generate Test Data uses no sample rows.
- Samples contain displayed text from visible columns, with the configured NULL display converted to null. All column names, types, comments, keys and hidden-column markers can still appear in metadata.
- For workflows that include statistics, the summary considers at most 100 selected or first loaded rows and the first 24 visible columns. It describes the loaded view, not the whole database.
- Selecting no rows does not mean no data is sent. Selection/sample counts and LOW/HIGH risk labels are descriptive; they are not a guarantee of safe disclosure.
- The test-data-specific prompt uses structure and generation rules rather than sampled records. Other skills and manually added context can have a wider scope.
Add an explicit object mention with @
Type @ followed by a name to search known connections, databases, tables or fields. A bare @ shows a usage tip.
- Search by names/comments, dotted context, Pinyin or ordered scattered characters where available. Check the full connection/database/Schema path in the result.
- Use Up/Down then Enter, or click a result, to insert its mention chip. Esc dismisses the popup. While a picker is open, Enter chooses its item instead of sending chat.
- Prefer a specific table over a whole database or connection. Database mentions can expand known table structures; connection mentions can include multiple databases and their comments/metadata.
- Remove unwanted chips before sending. In the composer, unmodified Backspace/Delete can remove an adjacent mention as a unit; recheck the resulting text.
- Suggestions combine current-window information and local indexes; they are not a complete live inventory. Resolving context can use cached metadata or read live metadata if available.
- Omitted Schema components and same-named objects can be ambiguous. A resolved mention is not independent confirmation of the intended live target or its freshness.
A field mention can include its parent table
A field chip identifies the focus field, but the request can contain the parent table’s broader column context.
- Choose the exact table/field candidate and inspect its full path. An illustrative path such as @demo.demo_db.demo_orders.order_id is fictional; use the actual picker only in an approved demo.
- Assume parent-table column names, types, null/default/key/identity information and comments can accompany the focus field.
- When a table is already open, the richer table workflow metadata can be reused without sample rows for the mention itself.
- Selecting one field is not a one-column disclosure filter. A separate table action, explicit file or earlier history can still add samples or other context.
Use selected SQL or the full editor text
The SQL editor AI actions prefer selected SQL; with no usable selection they use the full editor text.
- Select only the intended text before using SQL Optimization, SQL Syntax Checking, SQL Explain, SQL Generation or SQL Fix With Error Message in the editor’s AI menu.
- Use SQL Explain /Explain Code for an explanation, SQL Optimization /Optimize SQL for proposed rewrites, and SQL Syntax Checking /Check SQL Syntax for advisory syntax feedback. Compare the original and proposed query for changed predicates, NULL handling, joins and ordering; an optimization claim is not a measured speedup.
- Review literals and comments. Related table structure can be appended when the application recognizes names in the text; that recognition is a heuristic.
- Treat an editor AI menu action as a send action: it opens or creates the chat command flow and can submit immediately after consent.
- Selecting SQL is not an execution-target switch. The metadata helper is not a full SQL parser and does not prove complete CTE, quoted-name or cross-schema resolution.
- AI syntax feedback is a model response, not a server parse, EXPLAIN plan or benchmark. It does not establish schema compatibility, permissions, correctness or execution. Do not run a query or benchmark to create documentation evidence.
Send, add a newline or queue a follow-up
The composer’s button changes between Send, Stop and Queue steer message according to the visible conversation and input.

- Without a suggestion popup, Enter sends and Shift+Enter adds a newline. The visible input counter limits the composer to 10000 characters; it is not a token or full-request counter.
- During a response, submitting nonempty text or an active command queues a steer message. Inspect its strip and use Remove queued message if it must not be sent.
- Queued messages dispatch in order after the current response ends. Their mention/file context is prepared when queued; do not assume changing the selection later removes it.
- Enter while a command, skill or mention picker is open selects its candidate. Inspect the chip and message before pressing Enter again.
- Submitting a message can also start an automatic title-generation request for a new ordinary chat. The title is another AI request and can consume provider or wallet usage.
- The supplied test-data frame shows Generating · 2s elapsed, an empty composer and the red Stop control. It shows no queued message, Stop click, cancellation result or billing outcome; the elapsed label is a captured UI value, not a benchmark.
Stop processing and interpret request failures
A streamed partial answer is incomplete. Stop is best effort and is distinct from clearing queued work or reversing billing.
- To expose Stop during a response, leave the composer without text or an active command, then click Stop. The current handler cancels active panel requests, which can include work in another conversation.
- Remove queued steer messages separately before stopping if they must not run. Stop can schedule the next queued message; it does not automatically clear the queue.
- Read Request failed, the cancellation note and any partial answer separately. AI service not available. Your message… is local fallback text, not a provider-generated answer.
- For official uncertain failures, inspect wallet/request status before manually retrying. Client cancellation does not cancel service settlement, and uncertain usage can remain reserved for review.
- Official forwarding has no automatic retry or replay. Direct-provider workers can retry certain failures or try configured candidate models; authorization/bad-request/read-timeout failures are treated differently.
- Changing settings, hiding the panel or switching history is not proof of cancellation. Keep incomplete or failed output out of execution.
Ask AI to explain a table structure
Use Table → AI → AI Explain Table for an approved demonstration table.
- Verify the intended table, then review User Request and checked Skills in the action dialog. Explain Table can include up to 10 visible sample rows and a statistics summary.
- Ask a focused question, such as “Explain the purpose of fictional demo_orders and list uncertain relationships.” Cancel leaves the request unsent.
- Only accept OK when approved to send. It dispatches the selected skill request to chat; it is not a review-only preview button.
- Interpretation comes from supplied names, comments, keys and samples. It does not prove business meaning, enforced constraints or complete schema coverage.
Draft a focused query
AI Generate Query uses table context; /Generate SQL and the editor’s SQL Generation use the request and available context.
- Specify the intended dialect, exact table, output fields, filter and row bound using fictional names. Prefer a read-only question such as “Draft a SELECT for demo_orders with a parameter for order_id.”
- Inspect the chosen skill and context before sending. Table Query can include up to 20 visible sample rows and statistics even when you did not select records.
- Review the returned command and parameter handling manually. A prompt asking for SELECT/WITH is an instruction to the model, not an executable-code allowlist.
- No server validation, permission check, result completeness or performance guarantee is established by an AI reply. MongoDB and Redis need their actual document/native syntax rather than an assumed SQL translation.
Review CRUD drafts before any write
AI Generate CRUD SQL creates suggested commands for review; it does not apply database changes.

- Confirm the table, selected rows and checked Skills. State required key predicates and use fictional values; the workflow can include up to 20 visible sample rows and statistics.
- Review each INSERT, UPDATE and DELETE independently. Check qualification, identity/default fields, WHERE clauses, row bounds and parameter binding.
- Keep the result as a draft until the normal editor target and execution review is complete. A skill labeled safe CRUD or low risk is not proof that a statement is harmless.
- A generated transaction or rollback suggestion does not guarantee atomicity, rollback support or reversal of committed work on the target engine.
- The supplied screenshot is a partial answer view for d1.new_table. The request is clipped to its ending; SQL lines are horizontally truncated, and a Replace SqlEditor tooltip covers part of the code. Readable visible text labels the draft HIGH risk, says the statements run in order in one session, and explicitly says SQL generated only; not executed. It is evidence of displayed draft text, not complete SQL, correctness or execution.
Draft test data without inserting it
AI Generate Test Data opens a request/skill form with a Rows control; the first default is 10 and the range is 1–1000.


- Use an already approved fictional table and review Rows, User Request and checked Skills. Saved per-skill choices can change the next form’s initial values.
- The dedicated test-data prompt uses column definitions, exact target, insertable-column rules and requested count, without sending sample rows. Generated/key/default columns are omitted by its rules where recognized.
- Review a SQL INSERT or MongoDB insertMany draft for actual columns, types, uniqueness, foreign keys and requested row count. Do not press an editor run command just to illustrate the feature.
- Rows is a generation request, not proof that the model returns that many valid records or that anything was inserted. Custom skills or extra messages can add other context.
- In the supplied form, Rows is 2, Generate English test data [Test Data] is checked and Generate Chinese test data [Test Data] is unchecked. User Request asks for two fictional rows with an acceptance prefix and forbids execution. These are captured selections, not defaults; the form does not identify the target table. The skill-description pane is only partly visible.
- The supplied answer view shows an INSERT / SELECT / UNION ALL draft with visible acceptance_order_review and acceptance_stock_check labels. The prompt identifies TEST2.MENU_ACCEPT_20261028_R, requests 2 rows, lists ID/LABEL/NOTE and marks ID for omission by the test-insert rule. Oracle is stated in the prompt, not independently verified from the server. SQL is horizontally truncated and earlier prompt context is above the viewport; do not reconstruct the hidden columns or values.
- The response is labeled AI-generated, for reference only. The request forbids execution, but this is an instruction, not an execution audit. No copy, insertion, execution, successful two-row insert, risk rating or server readback is established by these supplied frames.
Explain a SQL error with minimal context
Use SQL Fix With Error Message or /Analyze Error for an approved error excerpt and the relevant SQL.
- Remove credentials, account names, hostnames, paths and sensitive literals from the excerpt. Include only the statement and target dialect needed to explain the error.
- With an editor selection, the AI action uses the selection; otherwise it uses the full text and may append recognized table structure.
- Compare the proposed cause and fix with actual server documentation and metadata. A successful AI response is not a successful retry of the original database operation.
- Do not manufacture a database error or rerun a failed write for a screenshot. A stored safe error is enough for a draft explanation; unavailable evidence stays pending.
Ask for JOIN suggestions with both table contexts
JOIN advice is a focused question through chat or SQL Generation, not a separate confirmed JOIN wizard.
- In an approved demo, mention both exact tables and relevant key fields, or provide minimal fictional definitions. Identify expected one-to-one/one-to-many behavior and how unmatched rows should be treated.
- Ask for a read-only JOIN draft and an explanation of its ON conditions, duplicate-row risk and NULL behavior. Avoid a whole-connection mention merely to find two tables.
- Review actual key uniqueness, enforced relations, namespace qualification and desired cardinality yourself before using the suggestion.
- Similar field names are not relationship evidence. The model can invent joins or cause duplicated/lost rows; no complete metadata discovery or correct join result is promised.
Analyze rows, draft comments or compare structures
Additional commands use the same consent, provider and human-review boundaries.
- Analyze Selected Rows uses the selection or the first loaded rows and builds a limited sample/statistics request. It does not scan the entire database for data-quality guarantees.
- AI Generate Field Comment SQL returns comment-change drafts. Comments, samples and metadata can be disclosed; receiving a draft does not update field comments.
- Use /Compare Structures or /Compare Mentioned Tables with carefully selected demo objects for advisory differences. Supplied context may be cached or incomplete.
- AI comparison does not synchronize schemas or establish environment equivalence. These outputs are not accepted migrations, integrity checks or database readback.
Select slash commands and reusable AI skills
Type / for the command picker or $ for skills. These are application prompt tools, not system-shell commands.
- Use Up/Down and Enter to choose a candidate, or click it; Esc dismisses the popup. Inspect the selected command chip and add a focused request before sending.
- The command list includes Explain Code, Optimize SQL, Check SQL Syntax, Generate SQL, Analyze Error, table workflows and Compact Context. Labels/triggers can follow the UI language.
- Table action dialogs let you check one or more Skills; at least one is required. Open Skills Manager to review built-in/custom instructions and their action/type before reuse.
- A skill is a prompt template with declared actions/risk, not a sandbox or verified SQL policy. Do not put credentials in a custom instruction.
- With an empty composer and a selected command chip, Backspace/Delete clears that chip. Selecting a command and sending it are distinct in the composer; editor menu actions can dispatch directly.
Review the answer and every code block
AI-generated, for reference only is the panel’s reminder. The response is a draft even when it looks complete.
- Wait for generation to end and inspect any failure/cancellation note. Compare the answer with the disclosed objects, files, target summary and your intended question.
- Review identifiers, qualification, dialect, parameters, filters, row counts, permissions, ordering and possible data changes in every code block.
- Treat model claims such as “valid”, “safe”, “executed” or an exact result count as unverified text unless separate real evidence supports them.
- Response rendering, a LOW risk badge, syntax highlighting or a local parser check is not server acceptance, data validation or a security review.
- Regenerate or editing/resending a prior request can make another billable AI request. Do not use those controls to create evidence during this documentation pass.
Copy, insert or replace text deliberately
Copy answer copies raw response text. Supported SQL code blocks can expose Send to SqlEditor and Replace SqlEditor content.
- Use the code block’s copy control for a single block or Copy answer for the whole response. Inspect copied text before pasting elsewhere.
- Send to SqlEditor inserts at the current cursor, opening the editor when needed. Response-level SQL controls can combine recognized SQL blocks; inspect all of them first.
- Replace SqlEditor content overwrites the regular editor text. In Terminal Mode it replaces the current editable command; preserve text you need before using it.
- Recheck the editor target after insertion or replacement. Code fencing/language recognition determines which SQL controls appear; use manual copy if the desired control is absent.
- These controls edit text and do not run SQL. Extra AI SQL risk confirmation applies only for dangerous workspace templates when the local risk classifier requires it; it is not a universal preview for every insert or replacement.
- The insertion target can follow the currently active database context rather than the object originally mentioned to AI. A target label or confirmation does not establish SQL correctness.
Keep AI generation separate from database execution
An AI request, a received answer and an editor insertion are separate from SQL execution.
- Check connection, database, Schema, environment/template, editor-owned target and any target mismatch before using the normal SQL editor execution controls.
- Review parameters, permissions, affected scope, transactions and backup/rollback needs under the actual engine’s rules. Use the separate execution guide for that process.
- For this documentation walkthrough, stop with an unsent fictional prompt or an already existing safe draft. Do not execute generated SQL, recharge credit or trigger a benchmark to obtain proof.
- SqlOtter does not automatically execute AI-generated SQL or system commands. A human execution action can still write immediately under the normal editor flow; AI review is not a replacement for that review.
Find a chat or search the current conversation
History opens saved conversations. Ctrl+F / ⌘+F focuses the search appropriate to the focused AI view.
- On the default new-chat page or History view, use the visible history search and previous/next page controls to find a saved conversation.
- Inside a conversation, use Search chat to find message text. With AI focus, Ctrl+F / ⌘+F selects the relevant visible search input; it is not database object search.
- The composer recalls up to 100 recent user inputs with Up/Down when empty or already browsing history. Ctrl+Alt+Up/Down / ⌘+⌥+Up/Down forces input-history browsing; Shift+Enter remains newline.
- Use History’s Rename or Delete and its confirmation deliberately. New Chat starts a new conversation; closing the panel is not deletion.
- Loading another saved conversation can leave earlier AI work running in the background. Stop active work explicitly when required; search/input recall does not itself resend text.
- After New Chat, inspect and remove any pending composer text, mention/file tokens and attachments; do not assume the new conversation clears them.
Understand local history and retained context
The application stores AI sessions/messages in a dedicated local SQLite history database; this is distinct from SQL execution history.
- Assume saved messages can include user and assistant text, augmented object context, attachment metadata/captured text, command/skill metadata, summaries and usage information.
- The history store is application-level rather than an independently isolated per-workspace SQL library. Check the actual conversation before continuing from another workspace.
- Restore AI dialog when application launches defaults off. When enabled and the saved session had AI open, session restore can reopen the history ID, draft input and scroll position.
- Delete an unwanted conversation through History. Starting New Chat or deleting a token does not erase earlier local messages or recall external submissions.
- Do not assume encrypted storage, secure erasure, attachment-file deletion or a retention deadline from the UI. Protect the local preferences/history and temporary files under your organization’s policy.
- Official billing/request records and the upstream provider’s own retention are separate from local chat deletion. Removing local history does not delete either external record.
Compact earlier context without treating it as deletion
Compact Context builds a local abbreviated conversation memory for later requests; it is not another model summary request.
- Use /Compact Context for manual compaction when there is enough history. Automatic compaction is triggered by conversation length; the current thresholds are 24 user/assistant messages or 12000 text characters.
- Review Auto Compact Keep Recent Messages in AI Settings. The initial choice is 4; manual compaction uses no protected recent-message tail.
- A later request can include the compacted memory plus uncompressed earlier turns and their augmented metadata. Use a clean New Chat when previous context must not be reused.
- Compaction truncates/combines text; it can lose facts or preserve sensitive fragments. It does not delete saved messages, guarantee full-history recall or anonymize data.
Walk through an unsent fictional example
A useful documentation example can stop before any AI request or database write.
- Use an already available fictional demo context, or type a plain fictional definition such as demo_orders(order_id, amount). Do not connect to customer systems or create objects for the example.
- Compose “Draft a read-only SELECT for fictional demo_orders filtered by an order_id parameter; explain assumptions.” Check model/provider, mentions, files and earlier history.
- Stop before Send, Enter, action-dialog OK, Run AI Service Benchmark or any editor run action. An already existing safe answer may be inspected without regenerating, inserting or executing it.
- If no safe existing result is available, keep result imagery pending. An unsent prompt proves only the visible configuration/context controls, not model output, billing, cancellation or workflow/release acceptance.
What to expect
You can identify the provider, likely disclosure scope, queue/cancellation behavior and manual review controls. A draft or copied/inserted code is not evidence of a database change or correct SQL.
Limits and safety
- Schema only, Ask each time, Full data, Local only and Enable AI features are not a uniform security boundary in the reviewed flows. No guaranteed all-path redaction, per-message confirmation or offline mode is established.
- Table actions can include visible sample rows and statistics; a field mention can include parent-table metadata. Whole-database/connection mentions can be much broader, and cached context may be incomplete or stale.
- Attachments are images plus SQL/JSON/TXT only; text is captured/truncated, original names/paths can be sent, and model image support is not guaranteed. Unsupported pasted paths can still become prompt text.
- Official wallet credit is separate from desktop access. The service reserves before forwarding; Stop does not guarantee a refund or release of an uncertain reservation. Local daily estimates are not a strict billing cap.
- AI replies, safety/risk labels, requested row counts and read-only prompt rules are advisory. SQL may be wrong or unsafe; generated SQL/system commands are not automatically executed.
- Extra insert/replace risk confirmation is conditional on dangerous workspace templates and the local classifier. It is not a universal preview or permission check.
- Local application history can retain augmented context and file metadata; previous turns or compacted memory can be sent again. Local deletion does not erase external records or guarantee secure erasure.
- Six supplied images cover AI Settings, an empty welcome panel, a partial HIGH-risk CRUD answer, the test-data request form, generation in progress and a partial test-data answer. Both answer screenshots have incomplete prompt/SQL coverage; they do not establish execution or correctness. Consent, queue/cancellation outcomes, other task results and history states remain text-only. Keyboard/workflow/provider/engine acceptance and an identified release remain pending.
If something goes wrong
- Panel or service unavailable: check agreement acceptance, actual provider/endpoint/model/authentication, current catalog status and network. A local “AI service not available. Your message…” echo is not a model answer.
- Official credit or model error: check the same signed-in account, available versus reserved wallet credit, current model/effort and service status. A trial or desktop recharge does not fund AI usage.
- Custom endpoint 404 or protocol error: verify Base/Full URL and Wire API together; prefer an exact Full URL for Responses. Confirm the selected custom provider and installed local model.
- Unexpected context: remove broad mentions, selected rows, SQL literals and attachments; inspect parent-table metadata and old turns. Start a clean chat rather than assuming a privacy label removes that content.
- Attachment rejected or stale: check the supported extension, nonempty readable file, captured text truncation and provider image/payload limits. Reattach changed text; inspect pasted paths.
- Stop seems ineffective: clear/remove queued messages separately, empty the composer to expose Stop, and inspect other active conversations. Official settlement can continue after client cancellation.
- Answer or generated code is wrong: retain the draft, check dialect/metadata/keys/parameters manually, and do not run it to repair the documentation example.