AI assistant
The assistant is off until you save your own API key. MoleDB does not provide a key. Settings → AI is where you set it. The subtitle on that page is Bring your own provider API token.
Your key
Provider is OpenAI-compatible, Anthropic, or OpenRouter. Choosing one fills its usual base URL and model. You can edit both. The call is made from this app to the address you saved.
Save token stores the key in the same place as database passwords, the Keychain or the encrypted file. See Passwords. Clear token removes it. The token field is a password field. It does not keep the saved key visible.
Without a saved token, a request fails and tells you to open Settings → AI and save your own key.
Suggested SQL is not run. You review it and press Run yourself. See SQL console.
What is sent
A request goes from your Mac to the provider you configured. It includes:
- what you typed, and earlier turns in that chat (up to 12 turns);
- the SQL in the editor, when you are asking to edit or explain it;
- the structure of the active connection only: dialect, tables, columns, primary keys, and foreign keys.
Other connections are not included. MoleDB does not receive the request. The provider does, under that provider's own terms.
Sample rows
Include sample row values is under Privacy on the AI page. The hint is Off unless you turn this on and save.
Leave it off and no cell values are sent. Turn it on, set Sample rows, and save. Then a request may include up to 3 rows per table, from up to 8 tables, with each value shortened at 80 characters. The schema is still sent. Suggested SQL is still not run until you press Run.