Claude AI Integration
by Odoo DevHouse https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse$ 199.05
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_app)
• Discuss (mail) |
| Lines of code | 457 |
| Technical Name |
claude_ai_odoo_dh |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_app)
• Discuss (mail) |
| Lines of code | 457 |
| Technical Name |
claude_ai_odoo_dh |
| License | OPL-1 |
| Website | https://apps.odoo.com/apps/modules/browse?author=Odoo%20DevHouse |
Odoo 19 Enterprise Anthropic Claude Native AI Provider
Anthropic Claude - Opus, Sonnet & Haiku - as a first-class AI provider
inside every Odoo AI feature, exactly like OpenAI and Gemini.
After installing, Odoo AI recognises three providers: OpenAI, Google, and Anthropic. Select any Claude model from the same dropdown you already use - and Claude handles everything from chat to document analysis to automated actions.
- Native Provider Registration: Anthropic appears alongside OpenAI and Google in every Odoo AI selector - no hacks, no overrides
- Six Claude Models: Opus 4, Sonnet 4, Haiku 4.5, Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus - selectable per agent or feature
- Full AI Feature Coverage: Works in AI Agents, AI Fields, AI Composer, Server Actions, Discuss, CRM AI, Knowledge, Documents
- Tool Calling & Agentic Loop: Claude can search records, create entries, navigate menus, and execute multi-step tasks - exactly like GPT agents
- Multimodal Input: Accept PNG, JPG, WebP images and PDF documents - Claude analyzes visual content natively
- Structured Output: Returns JSON matching any schema for AI Fields and Server Actions - with automatic schema injection
- Prompt Caching: System prompts exceeding 1 024 tokens are automatically cached - up to 90% cost reduction on repeated calls
- Pre-built Claude Assistant: A ready-to-use agent (Claude 3.5 Haiku) appears in Discuss - mention @Claude Assistant to start chatting
- Usage Tracking Dashboard: Every request logs model, input/output/cached tokens, estimated USD cost, user, and company
- API Key Security: Key stored encrypted in the Odoo database; env-var fallback
ODOO_AI_ANTHROPIC_TOKENsupported - Base URL Override: Point the provider at any Claude-compatible endpoint - AWS Bedrock, Vertex AI, or a local mock server
- Zero Core Modifications: Fully additive - uninstalling the module leaves Odoo exactly as it was
Install the Module
Install Claude AI for Odoo from the Apps menu. The module automatically installs its dependencies (ai, ai_app, mail). At startup, Anthropic is registered as a third native provider - no server restart needed after install.
Add Your Anthropic API Key
Go to Settings -> General Settings -> AI. A new section "Use your own Anthropic (Claude) account" appears beneath the Google section. Check the toggle, paste your API key (sk-ant-api03-...) from console.anthropic.com, and save.
Create or Configure an AI Agent
Go to AI -> Agents -> New. In the LLM Model dropdown you will now see all Claude models listed alongside GPT and Gemini. Select your preferred Claude model, write a system prompt, optionally add Topics (tools), and save.
Claude Responds - Tools, Vision, and Caching Activate Automatically
Start chatting or trigger the agent from any Odoo workflow. The module converts Odoo's message format to Anthropic's API format, sends the request, parses tool calls, executes them in Odoo, loops until Claude gives a final text answer - then returns it. Prompt caching and usage logging happen transparently in the background.
Monitor Usage in the Dashboard
Every API call is recorded in AI -> Configuration -> Claude Usage. See input tokens, cached tokens, output tokens, estimated USD cost, and status per request - filterable by user, model, company, and date. Cache hits appear as cached_tokens, showing you your savings.
AI Agents & Discuss
Create Sales Assistants, HR Bots, or Finance Advisors using Claude. Pre-built @Claude Assistant is available in every Discuss channel immediately after install.
AI Fields (Smart Fields)
Auto-fill form fields using Claude: summarise a record, classify urgency, extract structured data from notes, or generate product descriptions - powered by Claude's 200K context window.
AI Composer
Draft customer emails, payment reminders, proposal responses, and support replies with Claude - context-aware, pulling record data automatically into the prompt.
Document & Image Analysis
Upload invoices, contracts, or product photos and ask Claude to extract totals, dates, obligations, or descriptions - using Anthropic's native vision and document API.
Server Actions & Automation
Trigger Claude from scheduled crons, record save, or button clicks. Classify support tickets, auto-tag leads, generate delivery notes, or summarise meetings at scale.
Ask AI - Natural Language
"Show me the top 5 overdue customers" or "Open a graph of sales by product for Q3" - Claude translates plain English into Odoo filters, group-bys, and view actions automatically.
Up to 90% Cost Reduction - Automatically
When the same AI agent answers many requests in a day, Anthropic reuses its instructions from the first call - so each follow-up costs far less. This happens automatically with no setup required.
Usage Tracking Dashboard
Every Claude request is logged automatically. Go to AI -> Configuration -> Claude Usage to see how much is being used and by whom.
| What is tracked | Details |
|---|---|
| Who made the request | User & Company |
| Which Claude model | Haiku, Sonnet, Opus⦠|
| Volume used | Input & output tokens |
| Estimated cost | USD per request |
Installation & Configuration
- Prerequisites: Odoo 19 Enterprise with the
aiandai_appmodules installed. PostgreSQL withpgvectorextension (required byai) - Install: Go to Apps -> Search "Claude AI" -> Install. Dependencies are pulled automatically
- API Key: Get your key from console.anthropic.com - new accounts receive $5 free credits
- Configure: Settings -> General Settings -> AI -> "Use your own Anthropic (Claude) account" - enter key and save
- Test: Go to AI -> Agents -> Claude Assistant -> Chat and send a message - Claude should respond immediately
- Use everywhere: Create new agents, add Claude to AI Fields, use in Server Actions - select any Claude model from the dropdown
pgvector: If not already installed, run apt-get install postgresql-17-pgvector in your PostgreSQL container, then CREATE EXTENSION IF NOT EXISTS vector; in psql. This is a one-time setup required by the base ai module.
Enterprise deployment: The module supports routing Claude requests through AWS Bedrock or Google Vertex AI for organisations with data-residency requirements. Contact support for configuration details.
Step 1 - Add Your Anthropic API Key in Settings
Go to Settings -> General Settings -> AI. A new "Use your own Anthropic (Claude) account" section appears. Check the toggle, paste your API key, and save. That is all the configuration needed.
Step 2 - Claude Assistant Ready in AI Agents
After install, a pre-configured Claude Assistant agent appears in AI -> Agents alongside your other agents. It uses Claude 3.5 Haiku by default and is immediately available in Discuss.
Step 3 - Chat with Claude Assistant Directly from Any Screen
Click the Claude Assistant card to open a chat window. The assistant floats over the current page so you can ask questions without leaving your workflow. Mention @Claude Assistant in any Discuss channel to bring it into a conversation.
Step 4 - Select Any Claude Model When Creating an Agent
When creating a new AI Agent, the LLM Model dropdown lists all Claude models alongside GPT and Gemini. Choose Claude Opus 4 for deep analysis, Claude Sonnet 4 for everyday tasks, or Claude Haiku for fast, cost-effective responses.
Step 5 - Monitor Usage and Cost in the Claude Usage Dashboard
Every Claude request is logged automatically in AI -> Configuration -> Claude Usage. See which model was used, how many tokens were sent and received, how many were served from cache (saving cost), the estimated USD cost per request, and the success status - all in one place.
Step 6 - Anthropic Section in Odoo Settings
The Anthropic configuration block sits in Settings -> General Settings -> Integrations, right alongside the existing OpenAI and Google sections. Enable the toggle to reveal the key input field. The API key is stored securely and never displayed in plain text.
Does this module modify any Odoo core or enterprise files?
No. The integration is 100% additive - it only adds new behaviour on top of what Odoo already has. No Odoo or enterprise files are changed on disk. Uninstalling the module completely removes the integration and leaves Odoo exactly as it was before.
Can I use Claude and OpenAI simultaneously in the same database?
Yes. Each AI Agent, AI Field, and AI Feature independently selects its model. You can have one agent on Claude Sonnet, another on GPT-4o, and a third on Gemini Flash - all active at the same time with their own API keys.
Do Claude agents support Knowledge Sources (RAG)?
Not in v1. Anthropic does not have an embeddings API. Agents using Knowledge Sources require an embeddings provider (OpenAI or Google). Claude agents work without sources - for RAG-enabled agents, use OpenAI or Google as the model, and configure a separate Claude-only agent for conversational tasks.
Is my API key stored securely?
Yes. The key is stored encrypted inside Odoo's database - the same secure location used for OpenAI and Google keys - and is displayed only as a hidden password field. Access is restricted to Administrators only. The key can also be provided as a server environment variable so it never touches the database at all.
How much does using Claude through Odoo cost?
Costs depend on model and usage volume. Claude Haiku (the default for @Claude Assistant) costs about $0.25 per 1M input tokens - typical chat messages cost fractions of a cent. The Claude Usage dashboard in Odoo shows per-request cost estimates. New Anthropic accounts receive $5 free credits.
Does tool calling work the same as with OpenAI agents?
Yes, identically. The module translates Odoo's tool schema to Anthropic's input_schema format, handles the multi-round tool loop, merges parallel tool results into a single user turn (Anthropic's requirement), and returns tool output back to Claude - all transparently. Agents with Topics behave the same regardless of whether the underlying model is Claude, GPT, or Gemini.
Can I add more Claude models in the future?
Yes. New Claude models released by Anthropic can be added to the module without reinstalling it. Contact support and we will provide an update as soon as new models become available.
Vendor Diversification
Reduce dependency on a single AI provider. Use Claude for reasoning-heavy tasks and GPT or Gemini where they excel - within the same Odoo database.
Cost Efficiency
Claude Haiku costs a fraction of GPT-4o for conversational tasks. Prompt caching delivers up to 90% savings on repeated system prompts. The usage dashboard makes cost visible and controllable.
Superior Long-Context Handling
Claude's 200K token context window excels at processing entire contracts, financial reports, or support transcripts in a single call - without chunking or truncation.
Enterprise Compliance Ready
Anthropic is SOC 2 Type II certified with strong data-handling commitments. The module supports routing through AWS Bedrock or Google Vertex AI for organisations with strict data-residency or sovereignty requirements.
Need Help or Have a Feature Request?
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module