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.

pipx install odoobuddy      # or: pip install odoobuddy
odoobuddy install

The wizard asks a few questions, then sets up everything:

✓ 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
? Which Odoo version?              Odoo 19.0
? Which edition?                   Enterprise
? GitHub token with access to odoo/enterprise (input hidden): ****
  ✓ access to odoo/enterprise confirmed
? Instance name:                   shop
? How do you want to run Odoo?     In PyCharm (opens automatically, Odoo runs inside it) - ✓ installed

✓ [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.
  • 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):
    • 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 → 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, 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 summary shows 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, the summary shows 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.2.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.2.0
File Size Uploaded Provenance Actions
odoobuddy-0.2.0.tar.gz 99.5 kB With provenance Details for odoobuddy-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 182.6 kB

Release files / odoobuddy-0.2.0.tar.gz

Download URL odoobuddy-0.2.0.tar.gz
Size 99.5 kB
Tags Source
SHA-256 checksum
How to use checksums
192deb69aa1de83c7f42ffd3f634ab5cd828287a1ce1a5e3b24eef255856e3d4
BLAKE2b-256 checksum
How to use checksums
8984b0b82ecfdaf222ae68d765217301a74ace474328c698f5ba0738e41b66ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

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

Download URL odoobuddy-0.2.0-py3-none-any.whl
Size 83.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
723321d6b07a806fd36c2469ba7ec71a374f88045936403c6d45c2fda73cf4d1
BLAKE2b-256 checksum
How to use checksums
4ac79980032c92f8b5bced40e299c993749a2a4055f651b0b9fa07df0cb8371b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 14, 2026.

Transparency log

Security for odoobuddy 0.2.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.2.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 Oct 14, 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