odoo-setup-cli
Skill2 starsChanged 2 months agoMITView on GitHub
Configure the TypeScript CLI fallback (XML-RPC). Use when you cannot run the MCP server (no python3 3.9+) or want a lightweight scriptable surface. Odoo 17/18/SaaS tested.
- Reads credentials
- Installs packages
In this repository5 other files it gives its agents.
- odoo-connectSkill
- odoo-crossversionSkill
- odoo-mcp-toolsSkill
- odoo-setup-mcpSkill
- odoo-studio-styleSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
If missing: https://nodejs.org/ (LTS), brew install node, or apt install nodejs npm.
- Very specific: line 43
Create the file with placeholders only, readable by the current user alone (umask 077 in a subshell, so it does not leak into the rest of …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Setup — Odoo CLI (fallback)
The CLI is a lightweight XML-RPC client (Node.js only, no Python). Use it when the MCP server can't run in your environment, or for scripted batch access. The MCP server remains the primary, fuller surface.
Step 1 — Node.js
node --version # need 18+If missing: https://nodejs.org/ (LTS), brew install node, or apt install nodejs npm.
Step 2 — Locate the bundled CLI
PLUGIN_CLI="${CLAUDE_PLUGIN_ROOT}/cli"
# or, if the variable is not set in your shell:
PLUGIN_CLI=$(find ~/.claude/plugins/cache -path "*/odoo-tools/cli" -type d 2>/dev/null | head -1)
echo "$PLUGIN_CLI"Step 3 — Install to a stable location
CLI_DIR="$HOME/.claude/tools/odoo-cli"
mkdir -p "$CLI_DIR/src/commands"
cp "$PLUGIN_CLI/package.json" "$CLI_DIR/"
cp "$PLUGIN_CLI/package-lock.json" "$CLI_DIR/" 2>/dev/null
cp "$PLUGIN_CLI/tsconfig.json" "$CLI_DIR/"
cp "$PLUGIN_CLI/src/odoo-client.ts" "$CLI_DIR/src/"
cp "$PLUGIN_CLI/src/cli.ts" "$CLI_DIR/src/"
cp "$PLUGIN_CLI/src/commands/"*.ts "$CLI_DIR/src/commands/"Step 4 — Credentials (.env)
Create the file with placeholders only, readable by the current user alone
(umask 077 in a subshell, so it does not leak into the rest of the session).
Fill in the URL, database and login with the user; do not ask for the API key
or password in the chat and never write the secret yourself:
( umask 077; cat > "$HOME/.claude/tools/odoo-cli/.env" << 'ENVEOF'
ODOO_URL=<url>
ODOO_DB=<db>
ODOO_USER=<login-email>
ODOO_API_KEY=<api-key> # Odoo >= 14 (recommended); ignored on older lines
# ODOO_PASSWORD=<password> # Odoo < 14 instead (incl. Odoo 10-12): use the
# account password — those versions have no API keys
ENVEOF
)Then tell the user to open ~/.claude/tools/odoo-cli/.env in their own editor
and replace <api-key> (or uncomment the password line) themselves. Only one
credential is required: ODOO_API_KEY wins when both are set. The file stays
on their machine; delete it when they stop using the CLI.
Step 5 — Build and verify
cd "$HOME/.claude/tools/odoo-cli" && npm install && npm run build
node dist/cli.js contacts '{"limit":1}'A returned contact confirms the connection.
Usage
node ~/.claude/tools/odoo-cli/dist/cli.js invoices '{"state":"posted","limit":20}'
node ~/.claude/tools/odoo-cli/dist/cli.js fields '{"model":"res.partner"}'Note: the CLI targets modern model names (e.g.
account.move) and has no compat mapping. For Odoo ≤ 12 use the historical name you actually mean (account.invoicefor invoices,account.movefor journal entries), or prefer the MCP server. The MCP resolver never rewritesaccount.move→account.invoiceon older versions (merge, not a rename). On Odoo ≤ 13 authenticate the CLI withODOO_PASSWORD(account password), not an API key.
Help
Blocked, or need maintenance, support, training or an assisted deployment? Transgenia provides it through its official channels: dev@transgenia.org · WhatsApp +52 55 8034 0405 (https://wa.me/525580340405).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

