LLM Integration Base
Connect your Odoo with leading AI providers like OpenAI, Anthropic, Grok, DeepSeek & more.
The foundation for integrating Large Language Models with your Odoo instance
What is LLM Integration Base?
Your unified AI framework for Odoo
LLM Integration Base provides a unified framework for connecting various AI providers and models with your Odoo instance. This module serves as the foundation for building AI-powered features across your Odoo applications, supporting chat completions, text embeddings, and model management.
Architecture
How all the modules fit together
External AI Clients
Odoo AI Chat
Enhanced mail.message · Security Framework
llm_tool_mis_builder · 44 MIS reporting tools
llm_tool_ocr_mistral · OCR via Mistral vision
Connect External AI Clients via MCP
Use Claude Desktop, Claude Code, Cursor, Codex CLI and more with your Odoo data
The LLM MCP Server module exposes all your Odoo tools to external AI clients via the Model Context Protocol (MCP). Install it, generate an API key from your profile, and paste the ready-made config into your AI client. That's it — your AI can now read, create, update, and analyze Odoo data with your permissions.
AI Tool Packs for Odoo
Give AI deep domain knowledge with purpose-built tool packs
LLM Tool Account
18 toolsTrial balance, journal entries, reconciliation, payments, tax reports, P&L, cash position, and period close. Built for CPAs and finance teams.
LLM Tool MIS Builder
44 toolsCreate KPIs, configure periods, compute reports, drill down into cells, compare periods, and analyze variances through natural language.
LLM Tool Knowledge (RAG)
Semantic searchRetrieve answers from your knowledge base with semantic search, source citations, and document context for grounded AI responses.
LLM Tool OCR (Mistral)
Vision OCRExtract text from invoices, receipts, scanned documents, and images using Mistral AI vision models. No knowledge base required.
6 Generic CRUD Tools Included
The LLM Tool base module ships with tools to retrieve, create, update, and delete records in any Odoo model, plus a model inspector and method executor. These work out of the box via both in-Odoo chat and the MCP server.
Key Features
Everything you need to integrate AI into Odoo
Multiple Provider Support
Connect with OpenAI, Anthropic Claude, Ollama, Replicate, and more AI providers through a unified interface.
Model Discovery
Automatically discover and import available models from connected providers with one click.
Publisher Management
Track model publishers, organizations, and their official status for better model organization.
Secure API Storage
Safely store API keys and endpoint configurations for each provider with Odoo security.
Role-Based Security
Control access to LLM features with dedicated security groups and record rules.
Tool Execution Framework
Enable AI models to execute functions through a standardized tool interface.
Supported AI Providers
Connect with leading AI providers
OpenAI
GPT-4o, GPT-4, GPT-3.5 Turbo, and text-embedding models for chat and embeddings.
Anthropic
Claude 3 Opus, Sonnet, and Haiku models for thoughtful, helpful responses.
Ollama
Run Llama, Mistral, Vicuna and other open-source models locally with full privacy.
Replicate
Access diverse open-source models hosted on the Replicate platform.
DeepSeek
DeepSeek-Coder and DeepSeek-Chat models for advanced reasoning.
Grok
xAI's Grok models for witty and informative AI responses.
Use Any OpenAI-Compatible Provider
Most AI providers now support the OpenAI API format. With the OpenAI Provider module, you can connect to Google Gemini, xAI Grok, DeepSeek, Mistral, Groq, Together AI, Fireworks AI, Perplexity, and many more — simply by changing the base URL. One module, dozens of providers!
Getting Started
Set up your AI integration in minutes
Installation
- Download the module from GitHub
- Install the module in your Odoo instance
- Verify dependencies are satisfied (mail, web)
Configuration
- Navigate to LLM → Configuration → Providers
- Create a new provider and select the service type
- Enter your API key and base URL
- Click "Fetch Models" to import available models
- Set default models for chat and embedding
Technical Details
Requirements and dependencies
Module Information
mail, web
Technical
18.0.1.5.0
LGPL-3
Key Models
- llm.provider — Manages connections to AI providers
- llm.model — Represents individual AI models
- llm.publisher — Tracks organizations that publish models
Related Modules
Extend your AI capabilities with these modules
Tool Packs
Providers & Chat
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1155 |
| Technical Name |
llm |
| License | LGPL-3 |
| Website | https://github.com/apexive/odoo-llm |
LLM Integration Base for Odoo
The foundational module for integrating Large Language Models into Odoo.
Module Type: 📦 Infrastructure (Core Foundation)
Architecture
┌─────────────────────────────────────────────────────────┐
│ Layer 2: Interfaces │
│ ┌─────────────┐ ┌───────────┐ ┌──────────────────────┐ │
│ │llm_assistant│ │llm_thread │ │ llm_mcp_server │ │
│ └──────┬──────┘ └─────┬─────┘ └──────────┬───────────┘ │
└─────────┼──────────────┼──────────────────┼─────────────┘
│ │ │
▼ ▼ ▼
┌─────────────────────────────────────────────────────────────────────────────────┐
│ ★ llm (This Module) ★ │
│ Core Odoo-LLM Base │
│ ┌─────────────────────────────────────────────────────────────────────────┐ │
│ │ • Provider Abstraction • Model Management • Enhanced mail.message │ │
│ └─────────────────────────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────────────────────────────┘
▲ ▲
┌───────────────────────┼──────────────┼───────────────────────┐
│ │ │ │
┌─────┴─────┐ ┌──────┴─────┐ ┌─────┴──────┐ ┌──────┴─────┐
│llm_openai │ │ llm_ollama │ │llm_mistral │ │llm_replicate│
└───────────┘ └────────────┘ └────────────┘ └────────────┘
Providers extend this module
Installation
What to Install
This module is auto-installed as a dependency. You typically don't install it directly.
For AI chat features, install:
odoo-bin -d your_db -i llm_assistant,llm_openai
This Module Provides
- Provider abstraction framework
- Model and publisher management
- Enhanced mail.message with llm_role field
- Security groups and access control
- Base configuration menus
Modules That Depend on This
| Category | Modules |
|---|---|
| Interfaces | llm_assistant, llm_thread, llm_mcp_server |
| Providers | llm_openai, llm_ollama, llm_mistral, etc. |
| Infrastructure | llm_tool, llm_store, llm_generate | |
Common Setups
| I want to... | Install |
|---|---|
| Chat with AI in Odoo | llm_assistant + llm_openai |
| Use local AI (privacy) | llm_assistant + llm_ollama |
| Add RAG/knowledge base | Above + llm_knowledge + llm_pgvector |
Overview
The LLM Integration Base serves as the foundation for building AI-powered features across Odoo applications. It extends Odoo's core messaging system with AI-specific capabilities.
Core Capabilities
- Enhanced Messaging System - AI-optimized message handling with 10x performance improvement
- Provider Abstraction - Unified interface for multiple AI services
- Model Management - Centralized catalog of AI models with capabilities
- Security Framework - Role-based access control and API key management
Key Features
Enhanced Mail Message System
# Performance-optimized role field (10x faster queries) llm_role = fields.Selection([ ('user', 'User'), ('assistant', 'Assistant'), ('tool', 'Tool'), ('system', 'System') ], store=True, index=True) # Structured data for tool messages body_json = fields.Json()
Provider Framework
# Dynamic method dispatch to service implementations provider._dispatch('chat', messages=messages, model=model) provider._dispatch('embedding', text=text) provider._dispatch('generate', prompt=prompt, type='image')
Technical Specifications
Module Information
- Name: LLM Integration Base
- Version: 18.0.1.4.0
- Category: Technical
- License: LGPL-3
- Dependencies: mail, web
- Author: Apexive Solutions LLC
Key Models
- ``llm.provider``: AI service provider configuration
- ``llm.model``: AI model registry
- ``llm.publisher``: Model publisher tracking
- ``mail.message`` (extended): Enhanced with llm_role and body_json
Resources
- GitHub Repository
- Architecture Overview
License
This module is licensed under LGPL-3.
© 2025 Apexive Solutions LLC. All rights reserved.
Please log in to comment on this module