Documentation / Getting started
Quick start
From installation to the agent's first answer in three steps: an AI provider, a project, a question.
This guide assumes OpenDB is installed and that you are logged in.
1. Connect an AI provider
OpenDB has no default model. Until a provider is connected and a model is enabled, the agent cannot answer.
- Open Settings → Models (
Ctrl+,). - Click Connect next to a provider.
- Enter your API key. For a local Ollama, no key is required.
- Enable the models you want to use.

To keep everything on your machine, choose Ollama. The AI providers page covers every case.
2. Create a project
A project brings together a database connection and a working folder.
- On the home screen, click Create a project (
Ctrl+Shift+N). - Name the project and choose its working folder.
- Fill in the connection: engine, host, port, database, username, password.
- Click Test the connection.
- Choose the tables the agent may read, then save.
If the database holds personal data and you use a third-party provider, choose Clone at the last step. See Cloning and anonymization.
The wizard is detailed in Create a project.
3. Ask a question
The project opens on the Chat tab. Write your request in plain language:
Which tables does this database contain?The agent lists the tables, and you can carry on:
Show me the 10 best-selling products this monthYou see every tool the agent uses, the query it writes and the result in an interactive table.

Read-only by default
The agent starts in Read-only mode: it has no tool able to change the database. To let it write, switch to Read-write with the selector under the input field (Ctrl + .).
Even in read-write mode, sensitive operations stop on an approval request. See Modes and approvals.
Going further
- Conversations: attach files, switch models, stop an answer.
- Table explorer: browse and edit data without writing SQL.
- SQL editor: write your own queries with help from the AI.
- Chat in the terminal: the same conversation with
opendb chat.