Open source · Odoo 17 to 20 · MIT

odoo-agent

Your agent writes Odoo from facts, not from memory.

  1. (1)What it does
  2. (2)Results and cost
  3. (3)How it works
  4. (4)Set it up
Watch the one-minute film

odoo-agent in one minute. The names on screen are real Odoo models, fields and views. The film as an MP4 file.

odoo-agent gives your coding agent exact answers about your Odoo version and your project's database, and the checks to prove its work. It runs on your machine, with the agent you already use: Claude Code, Codex, Antigravity CLI, or any agent that runs a shell command.

What it does

The skill. The odoo skill sets how your agent works on Odoo: every model, field, method, view and XML id is looked up in your own addons path and database before it is written, never guessed. After a change it runs the checks the change needs and shows their real output before it says done.

Native tools. In Claude Code, Codex and Antigravity CLI every command is also a tool call (odoo_show, odoo_where, odoo_try, ...), no shell needed. Any other agent gets a short tool card and runs the same commands from its shell.

The commands. For you and for the agent, each answer in about a second. Look-ups: show, where, uses, map, trace, fixpoints, example, compare. The live database, read-only: query, sheet, why. Proof: check, verify --patch, impact, try, test, screens, ui. Every command.

Uses it like a person. try installs the module on the project's database and uses it: views, reports, buttons, crons and routes, then rolls everything back. screens opens every screen in a real browser and reports what breaks.

The panel. A local page for your projects and their cards, databases, permissions (what the agent may do in each folder), your agents, and the Odoo Lens picker.

Watch it work: one module on Odoo 20, checked as it is written

A real run of the tool's checks and look-up on a small module, word for word; long lines shortened (...).

Results and cost

728 issues found in Odoo's own code: 388 bugs and 340 pieces of dead code. Community 105 bugs and 194 dead code, every one read by hand; Enterprise 283 bugs and 146 dead code. Each is counted once across Odoo 18, 19 and 20, over 4,385 modules. 53 more were fixed in Odoo since.

Checked with odoo-agent 0.1.0 on Odoo 18 c7de05881e, 19 439a87cce and 20 d3c2acb75e (Enterprise 126345932, 3fb834792, 2abb6906066). Later Odoo commits fix some of these and add new code, so a check on them gives other counts.

Scores out of 100, higher is better; cost per module in US dollars, lower is better.

On a strong model too. Gemini 3.8 Flash in Antigravity, the same request alone and with the tool, one run each: 22 minutes against 29, 2.6 times fewer tokens, and 9.75 of 10 for code quality read blind against 5.75. The whole run, side by side.

Big builds. A hook system for whole new modules and large builds exists too; it is private for now and will be released later, and the benchmark above ran with it.

How it works

Set it up once. Then work with your agent as usual.

  1. Open the panel, or ask your agent. The setup finds your Odoo checkouts, PostgreSQL, Chrome and agents, installs the odoo skill and connects the native tools to the agents you choose.
  2. Give each project folder its card. Pick the project's database once; look-ups, install, tests, try and screens all use it.
  3. Ask your agent for the work. The skill has it look names up instead of guessing, and check what it changed as much as the change needs.
  4. It shows its proof. The real output of check, test and try, before it says done.
Agents
Claude Code, Codex and Antigravity CLI with the skill and native tools; any other agent through the tool card and the commands
Odoo
17, 18, 19 and 20, Community and Enterprise
Where it runs
On your machine. The index and every check stay local; nothing is sent anywhere by the tool.

Set it up

With the panel. Two commands, then the panel walks you through the rest: it puts the commands on your PATH, installs the skill and connects your agents.

git clone https://github.com/AyushPatel2021/odoo-agent.git
odoo-agent/bin/odoo-agent panel

Or ask your agent. Clone the repo and tell your agent: "set up odoo-agent for this project". It runs the setup itself (./install.sh --yes) and writes the project card (odoo-agent init). Ask it later to change the card, for example the database or what it may do in that folder.

You need Linux or macOS with python3 and git (the tool uses only Python's standard library), an Odoo 17 to 20 source checkout, and your agent. For install, tests and try: a running PostgreSQL with the project database, and a Python with Odoo's packages. For screens: Chrome or Chromium.

One database per project. The card's database is used directly for install, tests, try and screens. Everything try does there is rolled back at the end; only the module's install stays. Still, give a project a development database, never a live one. No mail leaves a run.

Prefer the terminal? ./install.sh asks one question per item and removes what it added with --uninstall. The README has every command.

Questions people ask

Does it send my code anywhere?

No. The index and every check run locally. The agent you already use talks to its model as usual.

Do I need a running database?

Not for look-ups and checks: they only need the source. Yes for sheet, query, why, try, test and screens.

Which agents?

Claude Code, Codex and Antigravity CLI get the skill and the native tools. Any other agent that runs shell commands gets the tool card and uses the same commands.

Is it only for Haiku?

No. Any model gets the facts and the checks. The benchmark used Haiku to show that a small model becomes enough.

Enterprise?

It indexes whatever addons paths the project uses, Enterprise included if you have it.