Documentation / Getting started
AI providers
Connect a model provider, enable the models to use and set the reasoning effort.
Who can manage providers
Providers and their API keys are shared by the whole instance. Only users who hold the MANAGE PROVIDERS privilege can connect them, disconnect them and enable models. Everyone else picks among the enabled models.
Built-in providers
| Provider | Where the model runs |
|---|---|
| Ollama | On your machine or your own server |
| Anthropic, OpenAI, Gemini | At the provider |
| DeepSeek, xAI, Groq, Mistral | At the provider |
| OpenRouter | At the provider chosen through OpenRouter |
No provider is connected after installation, and no key is read from a configuration file: everything is set up in the interface.
Connect a provider
- Open Settings → Models.
- Click Connect next to the provider.
- Enter the API key, and the URL if it differs from the default address.
A local Ollama answers without a key, at http://localhost:11434.

The key is encrypted before it is stored. It is never shown in full again.
Enable models
Once the provider is connected, OpenDB queries its API to list the available models. Enable the ones you want to offer: only enabled models appear in the selectors of the chat, the tabs and the terminal.
To see the enabled models from a terminal:
opendb ai:modelsCustom provider
Any OpenAI-compatible API can be added: a self-hosted server, a company gateway, another service.
- In Settings → Models, click Connect next to Custom provider.
- Fill in an identifier, a display name, the base URL and the key.
- Declare the models by hand: their identifier and display name.
Choose the model of an answer
The model is chosen for each message, with the selector under the input field (Ctrl + '). The provider and model names are shown under each answer.
The assistants of the Tables, SQL editor and ERD schema tabs have their own selector.
Reasoning effort
The effort tells the model how long to think before answering.
| Effort | Effect |
|---|---|
| Standard | The model's default behaviour |
| High | Longer thinking: slower and more expensive |
High effort only affects the models that support it. You set the default in Settings → AI agent, and per message with Ctrl + Shift + D.
Privacy
With a third-party provider, the text of your questions and the rows the agent reads to answer you go through its servers. Three ways to limit what leaves:
- use a local model with Ollama;
- work on an anonymized clone;
- hide tables from the agent.
Track consumption
Settings → Usage shows the tokens consumed per provider, per model and per feature. See Usage.