odoo-code-radar
Protect your Odoo intellectual property: find unauthorized copies of your proprietary apps on GitHub.
When a customer buys your app and pushes their addons to a public repo, anyone can take it from there. odoo-code-radar watches GitHub for your proprietary Odoo apps, tells you about each new unauthorized copy once, and hands you a ready DMCA notice draft. You decide what to do with it.
Free and open source. It runs only on your machine or in your own GitHub Actions. There is no server, no account and no service behind it, so your token and results never reach the authors of this tool.
$ odoo-code-radar scan --author "Your Company"
Watching 30 modules (12 open-license modules skipped, see --include-lgpl)
Searching GitHub. Code search allows 10 queries a minute, so this takes about 8 min.
Module License Repository Confidence Forks
🔴 your_module_accountant OPL-1 https://github.com/someone/odoo18-addons high (110) 3
1 new unauthorized copy, 0 already reported. DMCA drafts are in the report.
Report: reports/odoo-code-radar-2026-10-19-061502.md
Three ways to use it
| For | Setup | |
|---|---|---|
| Template | most vendors: nothing to install | Use this template → Private, add your author name and a token in Settings, run |
| CLI | a one-off check or your own server | pipx install odoo-code-radar, then odoo-code-radar scan --author "Your Company" |
CLI + schedule |
automatic scans set up from the terminal | odoo-code-radar schedule weekly (this machine) or --github (GitHub Actions) |
The template: weekly scans without installing anything
- Open odoo-code-radar-template → Use this template → Create a new repository → choose Private.
- In your new repo: Settings → Secrets and variables → Actions:
- Variables tab:
RADAR_AUTHOR= your author name on apps.odoo.com - Secrets tab:
RADAR_TOKEN= a fine-grained token (Public repositories, read-only, no extra permissions)
- Variables tab:
- Actions → Odoo Code Radar → Run workflow.
It then runs every Monday. Each unauthorized copy becomes an issue in your repo, with a DMCA draft, and GitHub emails you.
How it works
-
Your module list comes from one of two places:
- Your author name on apps.odoo.com. Quick to set up. Results stay on your machine.
- Your own GitHub repo (or a local addons folder). More accurate, since it reads your real manifests. New unauthorized copies become GitHub issues in that repo, so GitHub emails you.
Only the technical name, the manifest name, the license and the author are read. Your code is never read or uploaded.
-
Searching. For each module, GitHub is searched for manifests in a folder with your technical name, for manifests with your module name and author, and for repos named after your module.
-
Checking. Every hit's manifest is read (parsed, never executed) and scored:
Evidence Points Folder name is your technical name 40 Manifest name matches (any Odoo version) 40 Manifest author is you 30 Manifest website is yours 10 80+ is high confidence, 50+ medium. Medium and up are reported by default.
-
Licenses. OPL-1 and other proprietary modules are always watched. LGPL-3 and other open-source licenses allow buyers to share the module, so those are off by default (
--include-lgplturns them on). -
Reporting. Each unauthorized copy (one module in one repo) is reported once. Every run writes a Markdown and JSON report to
reports/, ending with one DMCA notice draft for all new copies, laid out like GitHub's takedown form: whole repositories and single folders listed separately, and only the forks that still contain your module.
odoo-code-radar never files takedowns itself. Many copies are published by accident, and a friendly message to the repo owner is often enough. A takedown is a legal statement that you make.
Install
pip install odoo-code-radar
GitHub only allows code search when logged in, so a token is needed. If you use the GitHub CLI
(gh auth login), it is picked up automatically. Otherwise set GITHUB_TOKEN:
| Mode | Token |
|---|---|
--author |
Any token. A fine-grained token with no permissions is enough. |
--repo |
Fine-grained token on that repo with Contents: Read and Issues: Read and write. |
Your token and your data
odoo-code-radar is a program you run yourself. The people who publish it run no server or service, and receive nothing from you.
- Your token is used only by the program running on your machine (or in your own GitHub Actions
run). It is read from your environment, the GitHub CLI, or the saved token file, kept in memory,
sent only to GitHub (
api.github.comandraw.githubusercontent.com), and never printed or logged. The code refuses to send it to any other host. - It is saved only if you schedule scans on this machine, because nobody is there to type it in.
It then goes to one file,
~/.config/odoo-code-radar/token, created readable only by you (chmod 600). If that file ever becomes readable by others, odoo-code-radar refuses to use it. It never goes into the config file, the scheduler entry or the logs.schedule removeoffers to delete it. - With
schedule --github, nothing is saved on your machine. The token is stored as an encrypted secret in your own private repo, through your GitHub CLI login. - There is deliberately no
--tokenoption, because command-line arguments end up in your shell history. The config file refuses token or password keys, because config files get committed. - Requests to apps.odoo.com never carry your token.
- What leaves your machine: search queries to GitHub (your technical names, module names and author name) and reads of public manifests. Nothing else, and nothing to us.
- What stays local: your module list, the results,
reports/and.odoo-code-radar/. With--repo, issues are opened in your own repo with your own token. - Issues only go to private repos. They show where copies of your apps are, so odoo-code-radar checks the repo's visibility first and refuses to open issues in a public one.
- Least privilege: use a fine-grained token limited to the repos it needs, with only the permissions above, and an expiry date. Revoke it at any time in your GitHub settings.
The code is short and open, so you can check all of this yourself: the token handling is in
github.py and tokens.py.
Use
By author name: results on your machine
odoo-code-radar modules --author "Your Company" # check which modules it found
odoo-code-radar scan --author "Your Company"
Already-reported copies are remembered in .odoo-code-radar/reported.json.
From your repo: unauthorized copies become issues
odoo-code-radar scan --repo you/odoo-apps --branch 17.0 --branch 18.0
Each new unauthorized copy opens an issue in you/odoo-apps with the evidence and a DMCA draft, and GitHub emails
you as usual. The issues are the memory: once an issue exists (open or closed), that copy is never
reported again. Close it when it is handled.
Use --issues-repo you/radar-reports to send issues elsewhere, or --no-issues to keep results local.
Config file
odoo-code-radar init asks a few questions and writes odoo-code-radar.yml, which scan then picks
up on its own:
author: Your Company
sources:
- repo: you/odoo-apps
branches: ["17.0", "18.0"]
- path: ~/odoo/custom_addons
include_lgpl: false
min_confidence: medium
ignore_owners: [you, your-company] # your own accounts
ignore_repos: [customer/allowed-repo]
exclude_modules: [some_free_module]
# issues_repo: you/radar-reports
Options given on the command line override the file.
Run it automatically: daily, weekly or monthly
Run schedule in the folder with your odoo-code-radar.yml. There are two ways.
On this machine
odoo-code-radar schedule weekly # or daily, monthly; --at 07:30 for another time
-
Asks for your token (hidden while you type) and saves it to a file only you can read.
-
Checks that the token works and can read your module repo.
-
Asks where results should go, when you use
authoronly:- issues in a private repo, so GitHub emails you, or
- only files on this machine:
reports/plus a desktop notification.
With a module repo, issues go to that repo, which must be private.
-
Installs a job with your system's scheduler: a systemd timer on Linux (cron where systemd is missing), launchd on macOS, Task Scheduler on Windows. With systemd and launchd, a scan missed while the machine was off runs when it is back.
On a Linux server, also run sudo loginctl enable-linger $USER so scans run while you are logged out.
odoo-code-radar schedule status # next run, last result, recent log lines
odoo-code-radar schedule remove # stop it (and optionally delete the saved token)
On GitHub Actions (no server, your machine can be off)
-
Create an empty private repo for the results: https://github.com/new
-
Run:
odoo-code-radar schedule weekly --githubIt asks for the repo name, checks that it is private, adds the workflow and your
odoo-code-radar.ymlto it, stores your token as the encryptedRADAR_TOKENsecret, and starts the first scan. Times are in UTC (default 05:17).
The setup uses your GitHub CLI login (gh auth login, plus
gh auth refresh -s workflow once). The scan token can therefore stay read-only: Contents: Read on
your module repo, or no permissions with author only. Issues are opened with the workflow's own
token. New unauthorized copies become issues in that repo, and GitHub emails you.
Without the GitHub CLI, the command writes the workflow into your folder and lists the remaining steps: push it, add the secret, start the first run.
schedule status and schedule remove work here too. remove deletes the workflow and the secret
from the repo and keeps the existing issues.
Or add the action to any workflow yourself:
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v4
- uses: niyasraphy/odoo-code-radar@v1
with:
token: ${{ secrets.RADAR_TOKEN }}
| Input | Default | |
|---|---|---|
token |
(required) | Token for search and for reading your module repo |
issues-token |
github.token |
Token used to open issues |
config |
odoo-code-radar.yml |
Config file |
author |
Author name on apps.odoo.com (the template passes vars.RADAR_AUTHOR) |
|
repos |
Module repos, space separated | |
include-lgpl |
false |
Also watch open-license modules |
issues-repo |
the current repo | Where issues go (none to disable) |
A full scan takes about 6.5 seconds per search query because of GitHub's search limit, roughly 10 minutes for 40 modules, well inside the free Actions minutes.
Limits
- GitHub code search only indexes default branches, and not every repo. A copy on another branch or in a very large repo can be missed.
- Other sites (GitLab, Bitbucket, download sites) are not searched yet.
- Scores are evidence, not proof. Look before you file anything.
Development
python -m venv .venv && .venv/bin/pip install -e '.[dev]'
.venv/bin/pytest
.venv/bin/ruff check src tests && .venv/bin/mypy
License
MIT
Metadata
Release files for odoo-code-radar 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| odoo_code_radar-0.1.3.tar.gz | 50.1 kB | With provenance | Details for odoo_code_radar-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_code_radar-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for odoo_code_radar-0.1.3-py3-none-any.whl |
Total release size: 94.5 kB
Release files / odoo_code_radar-0.1.3.tar.gz
| Download URL | odoo_code_radar-0.1.3.tar.gz |
|---|---|
| Size | 50.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
892a8b3db89f446a084dc9cfb53a677e9145fc76e0a4cc08398470cdec5c0e67
|
|
BLAKE2b-256 checksum How to use checksums |
e8b5f2cfdd43fb3a0ac46586413769339da4b4a58f82137ef5e8de34cfc6b605
|
| 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 19, 2026.
Transparency logRelease files / odoo_code_radar-0.1.3-py3-none-any.whl
| Download URL | odoo_code_radar-0.1.3-py3-none-any.whl |
|---|---|
| Size | 44.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d76c4362a7384a630df22a8768d6cf60fb017cf174a647a95b82336c536a3577
|
|
BLAKE2b-256 checksum How to use checksums |
091d0466970e5dcd4d91119969494b05e3cb274cb5f036ae7598e244b1aba0f3
|
| 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 19, 2026.
Transparency logSecurity for odoo-code-radar 0.1.3
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.
Attestation for odoo_code_radar-0.1.3.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 19, 2026.
Transparency logA 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.