Skip to content

Connections and Instances

rafageist edited this page Nov 30, 2026 · 1 revision

Connections and Instances

A workspace may name several Odoo instances (a deployment and its database); each one can be reached by several routes, each with its own credential: the JSON-2 API, an odoo-bin shell on this machine, docker (docker exec or docker compose exec) or ssh. A route never borrows another's privileges, and a refused operation never moves to another route.

Manage connections

Instances > Manage connections adds, edits, removes and tests instances and their routes, and chooses where each is saved (the workspace, shared with the folder; or your global settings, private) and where its secret comes from:

  • this session only: asked without echo, kept in memory until Turbodoo exits;
  • the OS secure store: install turbodoo[keyring]; without it, or with only an insecure backend, Turbodoo says so and never falls back to a file;
  • an environment variable you name, for automation;
  • system for shell routes: docker's permissions, your ssh agent.

Secrets never go into settings, messages or logs. An encrypted vault is planned.

Instances > Manage connections

Inspect an instance

Instances > Inspect instance (and turbodoo instance) reads metadata of a running Odoo 19 or 20, read-only: through JSON-2 and an API key, the version, the database and the key's user, then the models, a model's fields and the modules, a bounded page at a time. Errors say what happened (authentication, access_denied, api_unavailable, network, unsupported...), never with the key. No record is ever written.

turbodoo instance info staging [--json]      # version, database and user of each route, and whether they agree
turbodoo instance models staging --limit 50
turbodoo instance fields staging res.partner
turbodoo instance modules staging --route shell

Through the shell, docker and ssh routes (BatchMode, never a password prompt), instance info reports each route's version, database and user and whether they agree, and instance modules lists the modules. These routes run programs that the settings name, so they run only in a workspace you trusted, or for your own global instances.

Tried on a local Odoo 19.0 (JSON-2 and the local shell); Odoo 20 is implemented from its source; docker and ssh are tested with stand-ins. The JSON-2 API needs an Odoo plan that includes it.

Clone this wiki locally