Skip to content

Documentation / Team and security

Share a project

Give other users or roles access to a project, on the whole project or only on some tables.

Grant access

Open Project settings → Access.

  1. Choose a user or a role.
  2. Choose the privileges to grant.
  3. Choose the scope: the whole project or some tables.
  4. Tick the grant option if this person should be able to share in turn.

You can only grant the privileges you hold yourself with the grant option. The creator of the project holds them all.

Examples

A read-only analyst

Grant SELECT on the whole project. The person can explore the data and talk to the agent, which stays read-only for them.

Add EXPORT so that they can export results.

Access limited to a few tables

Grant SELECT on the products and categories tables only. The other tables are out of sight for this person: they appear neither in the Tables tab, nor in the ERD schema, nor in the agent's answers.

A developer

Grant SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE and INDEX on the project. Add MANAGE PROJECT if they should be able to change the project settings.

What each person keeps to themselves

On a shared project, each user has a personal workspace in the project folder:

{project folder}/.opendb/users/{user}/

These are personal:

  • conversations with the agent;
  • the editor's SQL files and the query history;
  • query snippets;
  • the layout of the ERD diagram;
  • exports.

A user's agent only sees that user's space. Other people's files cannot be read, listed or changed.

What is shared

  • the connection to the database;
  • the project memory;
  • the tables accessible to the agent, set in the project settings;
  • the AI providers and their models, common to the whole instance.

Remove access

In Project settings → Access, revoke the privileges granted. From a terminal:

Terminal
opendb privilege:revoke camille --privilege=all --project=shop

The person loses access at once. Their MCP tokens on this project stop working: access is checked again every time the server starts.

Check who has access

Terminal
opendb privilege:show camille

The command shows the user's privileges as GRANT statements, roles included.

Who sees the connection settings

The password and the other connection settings are only sent to users who hold MANAGE PROJECT. The others use the database without seeing how OpenDB connects to it.