/odoo:setupfrom Odoo
Walk through connecting this plugin to an Odoo instance for the first time
Ships in Odoo. Installing the plugin adds it to Claude Code.
Help the user connect the plugin to their Odoo instance.
First call odoo_whoami. If it already works, say so, report who they are
connected as and in which mode, and stop — there is nothing to set up.
Otherwise walk them through it. Keep it to the steps they still need:
1. The Odoo user. Ask whether Claude should act as their own account or a dedicated one. Recommend a dedicated user on a shared or production database: every record Claude touches is stamped with that account, so a separate user keeps the audit trail honest and can be switched off in one click. Note that on Odoo Online an internal user costs a billable seat, so their own account is a reasonable choice for personal use.
2. The API key. First check whether they already have one rather than sending them to generate a duplicate. Offer to look in the macOS login keychain:
security find-generic-password -s odoo -w 2>/dev/null
Try a few plausible service names (odoo, odoo-api, odoo-api-key, their
Odoo host). security dump-keychain 2>/dev/null | grep -i odoo lists candidates
without printing secrets. Nothing found is the normal case — move on without
making it a big deal, and never print a key you do find into the transcript any
further than handing it to the config step.
Otherwise they generate one in Odoo: avatar → My Profile → Account Security → New API Key, confirming with that user's password. Odoo shows the key exactly once. Three things worth stating plainly, because each causes failed setups:
api_key_duration). The plugin will
stop authenticating when it lapses, so either have an admin issue the key or
plan on rotating it.3. The configuration. Tell them to run /plugin config, select the odoo
plugin, and fill in the URL, login and API key. The database name can stay blank
on Odoo Online.
4. Permissions. Explain that the plugin starts read-only, and that "Allow writes" and "Allow deletes" are separate toggles in the same place. Suggest leaving both off until they have seen it read their data correctly.
Then have them run /odoo:doctor to confirm.
Mention once, without labouring it, that the Odoo user's own access rights are the real limit on what Claude can reach — the plugin's toggles sit on top of those, they do not widen them.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub scastillo/odoo-bot --plugin odoo2 commands in this plugin
Other plugins' commands for the same job