Skip to main content

odoobuddy

PyPI Python CI License: MIT

odoobuddy demo

📖 Documentation: https://niyasraphy.github.io/odoobuddy/

Install and manage many Odoo instances, of any version, on your laptop or on production servers, with one command.

sudo apt install pipx        # if you don't have it yet
pipx install odoobuddy
pipx ensurepath && source ~/.bashrc   # first time only: puts ~/.local/bin on your PATH
odoobuddy install

On a server, install it for all users with sudo PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install odoobuddy (see Production and test servers).

The wizard shows what your machine has, explains how it works, asks a few questions (each answer decides the next ones), and lets you review everything before anything is installed:

✓ Ubuntu 24.04 LTS
✓ 8 CPUs, 16.0 GB RAM (11.2 GB free)
✓ 180 GB free disk space

? What is this Odoo for?   Development - write and debug modules, on this computer ← detected
[2/5] Which Odoo version?   Odoo 19.0
[3/5] Which edition?   Enterprise
[3/5] GitHub token with access to odoo/enterprise (input hidden): ****
  ✓ access to odoo/enterprise confirmed
[4/5] Instance name:   shop
[5/5] How do you want to run Odoo?   In PyCharm (opens automatically, Odoo runs inside it) - ✓ installed

╭─ Review: nothing is installed yet ──────────╮
│  Instance   shop                            │
│  Odoo       19.0 Enterprise                 │
│  Purpose    Development (on this computer)  │
│  Runs in    PyCharm                         │
╰─────────────────────────────────────────────╯
? Ready to install?
 ▶ Install now - set up Odoo on this computer
   Dry run - only show the steps, nothing is set up
   Change a setting - fix one answer
   …

✓ [8/10] Test installation (contacts in a temporary database) (1m 12s)

╭──────────────── shop · Odoo 19.0 Enterprise ─────────────────╮
│ ✓ Odoo 19.0 is installed and working                         │
│                                                              │
│ Create your first database                                   │
│   1. Open http://localhost:8069/web/database/manager         │
│   2. Master password: x8Kf2...                               │
│   3. Choose name, language, country, demo data, admin login  │
╰──────────────────────────────────────────────────────────────╯

The installer does not create your database. It proves the setup works by installing a real module (contacts) in a temporary database, deletes it, and lets you create your own databases in Odoo's database manager, choosing the name, language, country, demo data and admin password yourself.

odoobuddy is a community project and is not affiliated with Odoo S.A.

Features

  • Any Odoo version, read live from Odoo's GitHub. 16.0 through 20.0 today, and new releases appear automatically.
  • Community or Enterprise. Your GitHub token is checked before cloning. If it doesn't have access, the wizard offers to retry or continues with Community. The token is never saved to disk, git config or logs.
  • Many instances side by side. Run Odoo 17, 18, 19 and 20 at the same time, or several instances of one version. Each instance gets its own Python environment, config, database user, ports, filestore and logs.
  • The right Python for each version, installed automatically with uv. Odoo 16 gets 3.10 and Odoo 19 gets 3.12, with no system Python changes.
  • A wizard that explains itself. Each question shows its place ([3/5]) and a short explanation of the highlighted choice. Nothing is installed until you confirm on the review screen, where you can change any answer, start over, cancel, or do a dry run that only shows the steps.
  • Three purposes, each with the right questions and defaults. The wizard asks what the Odoo is for, and preselects it (a desktop means development, a server over SSH means production; on a server, Development is only available with --purpose development):
    • Production: every question, then a production check that points out risky choices (no HTTPS, no backups, firewall off, too many workers for the free RAM) and applies the recommended settings with one choice.
    • Test / staging: on the same server as production, with production's version and edition, a name like erp-test, 2 workers so production keeps the server, and no backups.
    • Development: on your computer, with only the questions that matter there.
  • Checks the machine first: OS, CPUs, RAM, free disk, whether Ubuntu is busy installing updates, another web server on port 80, and the instances already there, before the first question. The worker count is capped at what the server can run next to its other instances.
  • Development on your computer: choose how Odoo runs, either inside your editor (VS Code, Cursor, Windsurf, VSCodium, PyCharm or Zed), in a terminal or in the background. With an editor, it opens automatically after the install and Odoo starts inside it, ready to debug. See Running Odoo locally.
  • Production and test servers:
    • a dedicated system user and a systemd service
    • Nginx with websocket support, also without a domain: Nginx then serves http://SERVER-IP:PORT, so live chat and notifications work with multiple workers
    • free Let's Encrypt SSL, after checking that your domain points to the server
    • a ufw firewall that never locks out your SSH port
    • worker counts tuned to your CPU and RAM
    • log rotation
    • nightly backups of every database, the last 7 kept
    • production only: the database manager and XML-RPC / JSON-RPC API are closed to the internet, and odoobuddy creates the first database (you choose its country) with a generated admin password
  • Production → local in one command: odoobuddy pull root@server:shop --into shop-dev copies the database and files over SSH and neutralizes the copy (no emails, crons or payments).
  • Tab completion for commands, options and instance names (odoobuddy st + Tab → odoobuddy start), offered after your first install (or odoobuddy --install-completion).
  • Always clear which Odoo you are touching. Every command shows a banner labelled PRODUCTION (red), TEST (orange) or DEV (green), and destructive commands on production make you type the instance name.
  • Repeatable. The review screen can show the odoobuddy install ... --yes command that repeats the same install from a script, e.g. on a second server.
  • Safe by default. --dry-run everywhere, a backup before production updates, generated passwords, and SQL and passwords passed on stdin, never on the command line.

Running Odoo locally

The wizard asks "How do you want to run Odoo?" and lists the editors installed on your computer first. Your editor's settings are never changed: only a project folder (.vscode/, .idea/ or .zed/) is written inside the instance. If the editor isn't installed, the wizard can install it for you (Zed, and VS Code / VSCodium / PyCharm through snap), or wait while you install it yourself.

Choice After the install Debugging
VS Code, Cursor, Windsurf, VSCodium The editor opens, and Odoo starts by itself in its terminal panel. The first time, trust the folder and allow automatic tasks. Run and Debug → "Attach to Odoo" → F5, at any time, without restarting
PyCharm PyCharm opens, and Odoo starts by itself (PyCharm Startup Tasks). The first time, click Trust Project. Stop it, then click Debug 🐞
Zed Zed opens; start Odoo with task: spawn → "Odoo: run NAME" (Zed can't auto-start tasks) debugger: start → "Attach to Odoo"
Terminal Run odoobuddy run NAME: live logs, and Ctrl+C stops it Any editor can still "Attach to Odoo"
Background Odoo is started for you; use odoobuddy start / stop / logs NAME Any editor can still "Attach to Odoo"

"Attach to Odoo" keeps working after Odoo reloads itself when you change Python code. Each instance has its own debug port (web port + 20000, e.g. 8069 → 28069), so several instances can be debugged side by side.

Switch or reopen an editor at any time:

odoobuddy open shop                 # open its editor again
odoobuddy open shop --with zed      # switch to another editor
odoobuddy run shop                  # or just run it in this terminal

Requirements

  • Linux: Ubuntu 22.04 / 24.04 or Debian 12 (others may work, untested)
  • Python 3.10+ to run odoobuddy itself
  • sudo rights (system packages and PostgreSQL); server mode must run as root

Managing instances

odoobuddy list                 # all instances, versions, ports and status
odoobuddy status shop          # running or stopped, and its address (no name: all)
odoobuddy info shop            # paths, ports, database, source code
odoobuddy use shop             # set the "current" instance

odoobuddy run shop                 # run in this terminal (Ctrl+C stops it)
odoobuddy open shop                # open in its editor (Odoo starts inside it)
odoobuddy start|stop|restart shop  # run in the background
odoobuddy logs shop            # follow the log (-n 500 --no-follow also work)
odoobuddy shell shop           # Odoo shell with `env` (--db to pick a database)

odoobuddy update shop          # pull latest code + upgrade modules in every database
odoobuddy pull root@erp.example.com:shop --into shop-dev   # production copy, neutralized
odoobuddy backup shop          # database + filestore → zip (Odoo's own format)
odoobuddy backup shop --nightly   # server: back up every database each night, keep 7
odoobuddy restore backup.zip --name shop --db shop_copy
odoobuddy remove shop          # asks you to type "shop" to confirm

odoobuddy doctor               # check the system and every instance
odoobuddy versions             # Odoo versions available to install
odoobuddy support              # docs, bug reports and contact

Which instance does a command use?

  1. The name you type: odoobuddy logs shop
  2. Otherwise, the instance folder you are in (cd ~/odoo/shop/addons/my_module)
  3. Otherwise, the one chosen with odoobuddy use shop
  4. Otherwise, it asks you to pick from a list. It never guesses.

Where things go

Everything about an instance lives in one folder:

~/odoo/testing20/                 (server: /opt/odoo/testing20/)
├── odoo/
│   ├── odoo/                     ← Odoo Community (branch 20.0, latest commit only)
│   └── enterprise/               ← Odoo Enterprise (if chosen)
├── custom/
│   ├── addons/                   ← your own loose modules
│   ├── web/                      ← cloned repositories (odoobuddy testing20 clone URL)
│   └── my-company-modules/
├── conf/
│   └── odoo.conf                 ← configuration (ports, DB user, addons_path, master password)
├── venv/                         ← this instance's own Python
├── data/filestore/<db>/          ← attachments of each database   (server: /var/lib/odoo/<name>/)
├── logs/odoo.log                 ← log                            (server: /var/log/odoo/<name>.log)
├── backups/                      ← backup zips                    (server: /var/backups/odoobuddy/<name>/)
├── start.sh                      ← run in the terminal (local)
├── .vscode/ .idea/ or .zed/       ← editor project (local)
└── .odoobuddy                ← marks the folder, so commands know which instance you're in

addons_path order: odoo/enterprise → custom/addons → each cloned repository → Community. Repositories are scanned for modules, so both OCA-style repos (modules at the root) and repos with an addons/ subfolder work.

On servers, each instance also has a system user odoo-<name>, a service odoo-<name>.service and, with a domain, /etc/nginx/sites-available/odoo-<name>.conf. Every instance has its own PostgreSQL user odoo_<name>, which can only see its own databases.

Custom module repositories

The wizard asks whether to clone repositories during installation. You can also add them later:

odoobuddy testing20 clone https://github.com/OCA/web.git          # branch = Odoo version
odoobuddy testing20 clone git@github.com:acme/odoo-addons.git 20.0
odoobuddy testing20 repos                                          # list them

Each repository is cloned into custom/, its requirements.txt is installed into the instance's Python, and addons_path in conf/odoo.conf is updated; your other edits to the file are kept. For private https repositories you are asked for an access token. It is used for that clone only and never saved. SSH URLs use your SSH keys. odoobuddy update also pulls every repository.

Automation (no questions)

Every question has a flag. For example:

export ODOO_GITHUB_TOKEN=ghp_...          # only for Enterprise
sudo -E odoobuddy install --purpose production --version 19.0 --edition enterprise \
    --name shop --port 8069 --domain erp.example.com --ssl \
    --email admin@example.com --workers 5 --firewall --daily-backups \
    --repo https://github.com/OCA/web.git --repo git@github.com:acme/addons.git#19.0 --yes

Add --dry-run to see every command without running anything. --purpose is production, test or development; the older --mode server|local still works (server means production). In the interactive wizard, "Show the command for scripts" on the review screen prints this command for the answers you gave.

Development

python -m venv .venv && source .venv/bin/activate
pip install -e '.[dev]'
pytest && ruff check . && mypy

License

MIT

Metadata

Release files for odoobuddy 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for odoobuddy 0.3.0
File Size Uploaded Provenance Actions
odoobuddy-0.3.0.tar.gz 120.8 kB With provenance Details for odoobuddy-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for odoobuddy 0.3.0
File Interpreter ABI Platform Actions
odoobuddy-0.3.0-py3-none-any.whl Python 3 none any Details for odoobuddy-0.3.0-py3-none-any.whl

Total release size: 219.6 kB

Release files / odoobuddy-0.3.0.tar.gz

Download URL odoobuddy-0.3.0.tar.gz
Size 120.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3f879c92a5b48626c1ccbecd385a4295a6964c57b68141c482356dc5fc41fc4d
BLAKE2b-256 checksum
How to use checksums
299beec02147fecb55db1f745044da7a2fe3c4b944d1cfce8be2bf3d3b3ba3da
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Release files / odoobuddy-0.3.0-py3-none-any.whl

Download URL odoobuddy-0.3.0-py3-none-any.whl
Size 98.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
145cbba716cf7db1b371bd5b81da386a04ca92c35768cf2aa7f3c5782b090099
BLAKE2b-256 checksum
How to use checksums
64c3785ea90df967d6f4a50bc3f775ef2fe345c6137605bef1d144583875135a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

Security for odoobuddy 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for odoobuddy-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 2, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page