| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_app)
• Discuss (mail) |
| Lines of code | 1651 |
| Technical Name |
rm_ai_claude_anthropic |
| License | OPL-1 |
| Website | https://github.com/roldyy |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_app)
• Discuss (mail) |
| Lines of code | 1651 |
| Technical Name |
rm_ai_claude_anthropic |
| License | OPL-1 |
| Website | https://github.com/roldyy |
Claude AI (Anthropic) for Odoo
Use Anthropic's Claude as a full AI provider in Odoo — alongside or instead of OpenAI & Google.
Key Features
Drop-in Claude Integration
Adds Claude Opus 4.6, Sonnet 4.6 and Haiku 4.5 to every AI feature in Odoo: Chat agents, AI Fields, Server Actions, RAG and more. Works through the standard Odoo AI pipeline — no custom controllers needed.
Force Claude Mode
One toggle in Settings to route ALL AI requests through Claude, even if OpenAI or Google keys are configured. No more accidental calls to the wrong provider. Also auto-detects invalid API keys and redirects transparently.
Prompt Caching (up to 90% savings)
System prompts are cached via Claude's cache_control API.
Repeated conversations reuse cached tokens at 1/10th the cost.
Enabled by default, toggle per agent.
Extended Thinking
Enable Claude's multi-step reasoning for complex tasks. The model "thinks" before answering, producing higher-quality results on specs, code generation and analytical tasks. Toggle per agent (Opus & Sonnet).
Token Usage Dashboard
Track every API call: model, user, input/output tokens, cache hits and estimated USD cost. List, pivot and graph views with filters by provider, model, date and user. Accessible at Settings > Technical > AI Usage Logs.
Robust & Production-Ready
- API key validation — rejects garbage keys at save time
- Header sanitization — auto-fixes non-ASCII chars in keys
- Thread-safe provider routing for concurrent workers
- Configurable timeout via system parameter (
ai.claude_timeout) - Graceful fallback — RAG/embedding errors never crash the response
Supported Models
| Model | Best for | Input / Output (per 1M tokens) |
|---|---|---|
| Claude Opus 4.6 | Complex reasoning, code generation, specs | $15 / $75 |
| Claude Sonnet 4.6 | Best speed/intelligence balance (recommended) | $3 / $15 |
| Claude Haiku 4.5 | Fast responses, simple tasks, high throughput | $0.80 / $4 |
Legacy models (Opus 4.5, Sonnet 4.5, Opus 4.1, Sonnet 4, Opus 4, Haiku 4.5 full ID, Claude 3 Haiku) are also available.
Setup (2 minutes)
- Install this module
- Go to Settings > AI > Providers
- Enable "Use your own Claude account"
- Paste your API key from console.anthropic.com
- Click Verify Connection
- (Optional) Enable "Force Claude as sole AI provider" to route everything through Claude
System Parameters
| Key | Default | Description |
|---|---|---|
ai.claude_key |
— | Anthropic API key (sk-ant-...) |
ai.claude_force_provider |
False | Route all AI calls through Claude |
ai.claude_timeout |
900 | HTTP timeout in seconds for Claude API calls |
Requirements
- Odoo 19.0 Enterprise with AI (
ai) and AI App (ai_app) modules installed - An Anthropic API key — Get one here
Claude AI (Anthropic) for Odoo — Built by Roldyy
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