← Back to Blog

Connect Odoo to Hermes Agent via XML-RPC

June 29, 2026 guide odoo xml-rpc hermes video

This is the first and simplest method from the three ways to integrate Odoo with Hermes Agent — direct XML-RPC API calls. Your agent connects straight to your Odoo instance, no middleware, no MCP server, no n8n pipeline. Just your agent and your ERP talking directly.

I made a YouTube short walking through this exact setup:

Watch on YouTube →

What you'll build

By the end of this guide, your Hermes Agent will:

Prerequisites

You need a running Odoo instance and a Hermes Agent. Here are the exact credentials from my demo instance — use these to follow along, then swap in your own.

Integration — ODOO Community

These are live credentials from a demo Odoo Community instance on ODOO4projects. They work right now.

Runtime — Hermes Agent

Step 1 — Generate an Odoo API Key

1 Go to Settings → Users → Technical

In your Odoo instance, navigate to Settings → Users → select your user → Technical. Scroll to the Security section and click Generate API Key.

Name it something descriptive like hermes-agent. Copy the key immediately — Odoo only shows it once.

If you're using the demo instance above, the API key is already generated and ready.

Step 2 — Add the Connection to Hermes

Edit your Hermes config.yaml and add the Odoo connection block:

# ~/.hermes/config.yaml (or your profile config)

odoo:
  url: "https://006-003-1d9183bb-8430-41a8-85a3-842b2b4d279d.odoo4projects.com"
  db: "006-003-1d9183bb-8430-41a8-85a3-842b2b4d279d"
  user: "changeme@odoo4projects.com"
  api_key: "602e6ea0a0adda65b344a282495da3b05525f63f"
  readonly: true

Set readonly: true if the agent only needs to query data (recommended for first setup). Remove it or set false if you want the agent to create or modify records.

Step 3 — Give Your Agent the Connection Prompt

Now paste this prompt into your Hermes Agent session. It tells the agent exactly how to reach your Odoo database using the credentials from Step 2:

Connect to the ODOO 19 database with the credentials $ODOO_URL $ODOO_USER $ODOO_APIKEY
open {url}/doc and read the available models and methods. Use the JSON api to connect to ODOO and do not login to the web UI.
create a skill to access ODOO

The agent reads the environment variables (or the config block you just set up) and establishes the XML-RPC connection. Once it confirms, you're ready to query data.

Step 4 — Start Hermes and Verify

Start or restart your Hermes Agent:

hermes start

Now ask your agent something simple to verify the connection works:

> Give me a list of customers with their email addresses.

If everything is configured correctly, the agent returns live data from your Odoo instance. Here's what it looks like with the demo instance:

Here are the customers I found in your Odoo instance:

1. Azure Interior — azure.interior@example.com
2. Deco Addict — deco.addict@example.com
3. Gem Furniture — gem.furniture@example.com
4. Lumber Inc — lumber.inc@example.com
5. The Kitchen Studio — the.kitchen.studio@example.com
6. Best Design — best.design@example.com
7. Grace Interior Design Studio — grace.interior.design@example.com
8. Capital Park — capital.park@example.com

Total: 8 customers in CRM

That's it. Three minutes, one config block, and your agent talks to Odoo.

What you can do now

Once the connection is live, try these queries:

Security first

Why XML-RPC?

Direct XML-RPC is the fastest path: one hop, one config block, one less thing to break. No MCP server to maintain, no n8n workflow to debug. For simple queries, demos, and prototyping, it's the right choice.

If you need deterministic business processes with audit trails (invoice creation, order processing), the n8n pipeline approach is better. But for 80% of what you'll ask your agent to do — "who are my customers?", "what's my pipeline?", "show me pending orders" — XML-RPC is all you need.

Pro tip: The YouTube short at the top of this page shows the whole setup in under a minute. Bookmark it for when you need a quick refresher — the steps don't change between instances, only the credentials.

Try It Yourself — First Month Free

Deploy a Hermes Agent with Odoo XML-RPC integration. Use coupon code blog950 for your first month free.

Get Your Agent →

derez.ai — Deploy your AI agent in 5 minutes. · 3 Ways to Integrate Odoo + Hermes · Full Speed Run · MCP Approach