Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Technical
  3. AI Base (BytesRaw) v 19.0
  4. Sales Conditions FAQ

AI Base (BytesRaw)

by Fasil https://www.bytesraw.com , Bytesraw https://www.bytesraw.com
Odoo

$ย 20.00

v 19.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
You bought this module and need support? Click here!
  • Description
  • Manifest
  • License
โ—  Available for Odoo 19.0

AI Base (BytesRaw)

Reusable AI connectivity layer: connections, provider adapters, usage logging

โญ 19.0.1.6.0 ๐Ÿ“œ OPL-1 ๐Ÿ’ฐ 50 USD ๐Ÿท๏ธ Technical
Explore Features โ†’ Contact Support
OVERVIEW

One registry for every provider.
One place for every cost.

AI Base is the connectivity foundation of the BytesRaw AI suite for Odoo 19 Community. It gives your database a single place to declare which AI providers you use, what they cost, and how much they are allowed to spend โ€” and it records every call they make.

One provider record covers Claude, any OpenAI-compatible gateway (OpenRouter, Groq, DeepSeek, vLLM, LM Studio, Azure) and a local Ollama server. Every other BytesRaw AI module reads its credentials from here, so keys, endpoints and budgets are configured once and never duplicated across screens.

๐Ÿ”Œ

One Registry, Three Provider Families

Add a provider, pick the API dialect, and the base URL fills itself in. Claude speaks the Anthropic Messages API, the OpenAI-compatible dialect covers most hosted gateways, and Ollama covers models running on your own hardware โ€” all behind the same form.

๐Ÿ’ฐ

Cost Estimation and Daily Budgets

Enter what your provider bills per million input and output tokens and every call is priced as it happens. Set a daily token budget and the provider stops accepting calls once it is exhausted, with warning banners at 80% and a hard block at 100%.

๐Ÿ“Š

A Full Audit Trail

Every completion, embedding, transcription and image generation writes a usage row โ€” tokens, cached tokens, estimated cost, latency, the model, the user and the calling agent โ€” viewable as a list, bar chart or pivot table.

FEATURES

Connect once.
Measure everything.

Nine capabilities covering connectivity, cost control and observability โ€” with no third-party Python SDK to install.

๐ŸŽฏ

Multi-Provider Connections

Create as many providers as you need, each with its own base URL, API key, chat model, embedding model and image model. Reorder them with drag handles, archive the ones you are not using, and scope them per company or share them across all companies.

โœ…

Test Connection and Fetch Models

Test Connection sends a live probe and reports the model that answered, flipping the status badge to Tested or Error with the exact failure message kept on the Status tab. Fetch Models lists the model ids the provider currently exposes, so you copy the right one instead of guessing.

๐Ÿ”’

Manager-Only Credentials

API keys live behind the AI / Manager privilege and are masked in the form. Regular AI users can run completions through a provider without ever being able to read the secret โ€” the key is resolved server-side at call time.

๐Ÿงฎ

Per-Model Pricing Overrides

Connection-level prices are the default, but a single gateway often serves models at very different rates. Per-model prices can be declared in the providerโ€™s extra parameters, and cached input tokens are billed at the discounted rate providers actually charge for them.

๐Ÿšฆ

Daily Token Budget with Clean Failover

A provider that has burned its daily allowance fails fatally rather than retrying โ€” exactly what an agentโ€™s failover chain needs to skip straight to the next provider instead of hammering an exhausted account. The block itself is audited as a zero-token error row.

๐Ÿ”„

Automatic Retry on Transient Errors

Timeouts, rate-limit responses and 5xx errors are retried with exponential backoff up to the per-connection retry count. Errors are classified as retryable or fatal so the higher layers know the difference between โ€œtry againโ€ and โ€œmove onโ€.

๐ŸŽฅ

Declared Media Capabilities

Each provider declares which attachment kinds it accepts โ€” images, PDFs, audio, plain text. Sensible per-provider defaults apply out of the box and can be overridden per connection, for example to switch vision on for an Ollama connection running a vision model.

๐Ÿ“ˆ

Usage Analytics and Retention

The Usage Logs view groups by connection, provider, model, agent, user, status or day, with token and cost totals summed in the list and plotted in graph and pivot views. Logs older than the retention window (90 days by default) are cleared automatically by autovacuum.

๐Ÿ›ก๏ธ

Endpoint Rate Limiting

Public-facing AI surfaces are protected by a sliding-window rate limiter stored in the database, so the limit holds across all Odoo workers instead of being multiplied by them. Limits and windows are adjustable per surface through system parameters.

CONFIGURATION

One form, six fields, done.

Configure at least one provider before installing or using any other BytesRaw AI module.

1

Grant access

Give users the AI / User privilege to run AI features, or AI / Manager to configure providers and see credentials.

2

Open the provider list

Navigate to AI โ†’ Configuration โ†’ AI Providers and click New.

3

Pick the provider type

Choose Claude, OpenAI Compatible or Ollama. The Base URL fills from the provider default and stays editable.

4

Enter credentials and models

Paste the API Key (not needed for Ollama), then set the default chat, embedding and image models.

5

Set prices and a budget

On Pricing & Budget, fill the two per-million-token prices and, optionally, a Daily Token Budget.

6

Tune the advanced tab

Request timeout, retries, declared supported media, and free-form extra parameters for provider-specific options.

7

Test it

Click Test Connection. A green notification naming the answering model confirms the setup.

8

Watch the spend

Open AI โ†’ Configuration โ†’ Usage Logs and group by model, agent or day.

SCREENSHOTS

See it in action

Where providers are configured, and how their consumption is reported back to you.

1
AI Provider configuration Provider type, credentials, models, pricing, budget and connection status.
AI Provider configuration form showing provider type, base URL, models and status.
2
AI Usage Logs Every call with its tokens, estimated cost, latency, user and status.
AI Usage Logs list view with token, cost and latency columns.
USAGE

From zero to a working provider

Three workflows: connect a provider, cap what it can spend, and run several side by side.

WORKFLOW ยท 01

Connect Your First Provider

Get a working AI provider into Odoo so the rest of the suite has something to call.

โœ“
Go to AI โ†’ Configuration โ†’ AI Providers and click New.
โœ“
Name the record after what it actually is, for example Claude Production or Groq โ€” Fast.
โœ“
Select the Provider and confirm the Base URL that appears.
โœ“
Paste the API Key and type the Default Chat Model used when a caller does not specify one.
โœ“
Click Save, then Fetch Models if unsure of the exact model id, and finally Test Connection.
WORKFLOW ยท 02

Put a Ceiling on AI Spending

Make AI consumption predictable before rolling it out to a wider group of users.

โœ“
Open the provider and switch to the Pricing & Budget tab.
โœ“
Fill in the two per-million-token prices from your providerโ€™s pricing page.
โœ“
Set a Daily Token Budget โ€” the total prompt plus completion tokens allowed per UTC day.
โœ“
Save. The form now shows Tokens Used Today, an amber banner past 80%, and a red banner once the budget is spent.
โœ“
Watch actual spend under AI โ†’ Configuration โ†’ Usage Logs, grouping by model or agent.
WORKFLOW ยท 03

Run Several Providers Side by Side

Combine a premium provider with a cheap or local one and let the agent layer pick.

โœ“
Create one provider per service โ€” Claude for quality, an OpenAI-compatible gateway for volume, Ollama for offline work.
โœ“
Use the drag handle in the list to order them; the sequence is what downstream failover chains follow.
โœ“
Give the low-cost provider a generous budget and the premium one a tight budget, so heavy traffic lands on the cheaper service.
โœ“
Archive a provider instead of deleting it when you stop using it โ€” its usage history stays intact.
KNOWN ISSUES

Full transparency

The current limitations, stated plainly.

๐ŸŽฅ

Media capabilities are declared, not probed

The module assumes hosted Claude and OpenAI-compatible gateways handle images, that every provider can be given a PDF (falling back to extracted text), and that only OpenAI-compatible gateways transcribe audio. If your setup differs, set supports_vision, supports_pdf, supports_audio or supports_image_generation to true/false in the connectionโ€™s Extra Parameters.

๐Ÿ’ฐ

Costs are estimates, not invoices

Figures are calculated at log time from the prices you enter, not pulled from the provider. They are frozen on each row, so correcting a price later does not rewrite history โ€” which is intentional, but means old rows keep the old estimate.

โฑ๏ธ

Budgets are per UTC day, per connection

Token budgets are counted per UTC day rather than per local business day, and are evaluated per connection rather than across a group of connections.

FAQ

Questions, answered

Quick answers to the questions buyers ask most.

Q

Which AI providers can I connect?

Anthropic Claude via the Messages API, any service exposing an OpenAI-compatible /chat/completions endpoint (OpenRouter, Groq, DeepSeek, Together, vLLM, LM Studio, Azure OpenAI), and Ollama running locally or on your own server.

Q

Do I need to install any Python SDK?

No. The provider adapters are pure Python over requests, which already ships with Odoo. There is nothing to pip install.

Q

Can this module be used on its own?

Yes. Installed alone it gives you a provider registry, cost tracking and usage analytics, and exposes a stable client API your own custom module can call for chat completions, embeddings, streaming, transcription and image generation.

Q

Who can see the API keys?

Only members of the AI / Manager privilege. Users with AI / User can trigger AI features that use a provider, but the key is never sent to their browser.

Q

Will it conflict with other AI apps I have installed?

No. Every module, model and table in the suite carries the bytesraw suffix, so it coexists cleanly with OCA ai_* add-ons or Odoo Enterprise AI features.

Q

How long is usage history kept?

90 days by default, then cleared by Odooโ€™s autovacuum. Change the window with the ai_base_bytesraw.usage_log_retention_days system parameter, or set it to 0 to keep everything.

CHANGELOG

Release history

A clean record of every release.

2026-07-23 ยท Latest release
v19.0.1.6.0
โ–ธ Prompt-injection hardening and sliding-window rate limiting for externally reachable AI endpoints
โ–ธ Prompt-cache accounting: cached input tokens logged separately and billed at the discounted rate
โ–ธ Declared media capabilities per connection, with per-provider defaults
โ–ธ Image generation support with a dedicated Default Image Model field
โ–ธ Cost estimation, per-model price overrides and daily token budgets with 80% / 100% warning banners
โ–ธ Streaming completions with canonical, provider-agnostic deltas
โ–ธ Usage log graph and pivot views, caller attribution and autovacuum retention
โ–ธ Initial release: ai.connection.bytesraw, Claude / OpenAI-compatible / Ollama adapters, retry policy and usage logging
Bytesraw logo

Bytesraw

Automate your success
๐ŸŒ www.bytesraw.com

๐Ÿ› ๏ธ Need help?

Got a question, found a bug, or need a custom enhancement? Our support team responds within 24 hours on business days.

help@bytesraw.com โ†’

๐Ÿ’ผ Custom development

Need this module tailored to your workflow, or a brand-new Odoo solution? Letโ€™s talk about your project.

info@bytesraw.com โ†’
OUR EXPERTISE
โœ“
Odoo Development
โœ“
Functional Training
โœ“
Community Upgradations
โœ“
Python & PostgreSQL
โœ“
Hosting Solutions
โœ“
Automation
โœ“
Security
โœ“
API & 3rd-Party Integrations
โœ“
E-commerce & POS Solutions
ยฉ 2026 Bytesraw ยท All rights reserved ยท Licensed under OPL-1
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 1730
Technical Name ai_base_bytesraw
LicenseOPL-1
Websitehttps://www.bytesraw.com
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

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal โ€ข Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with