TokenRouter AI Provider
Use TokenRouter models inside Odoo 19 Enterprise AI Agents
Add TokenRouter as a native provider for the Odoo AI app and access GPT, Claude, Gemini, Llama, Mistral, DeepSeek, and other TokenRouter-compatible chat models through one configuration screen.
Native AI Agent Provider
TokenRouter models appear in the standard AI Agent model selector after setup.
Model Discovery
Fetch available TokenRouter model identifiers and add custom display labels.
Connection Test
Verify the TokenRouter API key before assigning models to production agents.
What This Module Does
- Registers TokenRouter as an Odoo AI provider.
- Stores the TokenRouter API key in Odoo settings or reads it from an environment variable.
- Supports OpenAI-compatible chat completions through TokenRouter.
- Supports Odoo AI Agent tool/function calling for compatible models.
- Provides clear user errors for unsupported file, structured output, or web-grounding requests.
- Falls back to a configured embedding provider for Knowledge Sources.
Requirements
- Odoo 19 Enterprise.
- The native AI app dependency:
ai_app. - A TokenRouter account and API key.
- A Google Gemini or OpenAI key if AI Agents use Knowledge Sources.
Setup
- Install the module in your Odoo 19 Enterprise database.
- Go to Settings > AI and enable TokenRouter.
- Enter your TokenRouter API key or set
ODOO_AI_TOKENROUTER_TOKENon the server. - Click Test Connection to confirm API access.
- Click Fetch Available Models, review the model list, and save.
- Open an AI Agent and choose one of the TokenRouter models.
External Service and Data Notice
This module sends AI prompts, conversation context, and selected tool-call payloads to TokenRouter when a TokenRouter model is used. TokenRouter may route the request to the upstream model provider selected in the AI Agent. Customers should review their own TokenRouter account, provider selection, and data policies before using the module with sensitive business information.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
AI (ai_app)
• Discuss (mail) |
| Lines of code | 473 |
| Technical Name |
tokenrouter_ai_provider |
| License | LGPL-3 |
| Website | https://github.com/iDoust |
TokenRouter AI Provider
TokenRouter AI Provider adds TokenRouter as an additional provider for the native Odoo 19 Enterprise AI app.
Requirements
- Odoo 19 Enterprise.
- The native ai_app module.
- A TokenRouter API key.
Configuration
- Install the module.
- Open Settings > AI.
- Enable TokenRouter and enter an API key.
- Click Test Connection.
- Click Fetch Available Models, save, then select a TokenRouter model on an AI Agent.
External Service Disclosure
This module sends AI prompts, conversation context, and selected tool-call payloads to TokenRouter. TokenRouter may route requests to the upstream model provider selected in the AI Agent.
Knowledge Sources
TokenRouter does not provide a standard embedding model through this module. If an AI Agent uses Knowledge Sources, the module falls back to a configured embedding provider such as Google Gemini or OpenAI.
Please log in to comment on this module