The Moodle AI subsystem is the part of Moodle core, added in Moodle 4.5, that connects a site to AI services. Providers connect to an AI service (Moodle 5.3 has seven: OpenAI, Azure AI, Ollama, DeepSeek, Gemini, Amazon Bedrock and Anthropic Claude). Placements are where users see AI: the text editor and course assistance. The core actions are generate text, generate image, summarise text and explain text. An admin sets it all up under Site administration > AI.
Moodle AI subsystem at a glance (Moodle 5.3)
Moodle 5.3 source code and moodledev.io, checked 29 Nov 2026
Key takeaways
- The AI subsystem has four parts: placements (where users see AI), actions (what AI does), providers (which AI service) and the manager in between.
- Moodle 5.3 ships seven providers; Ollama, DeepSeek and Anthropic Claude do text only, the other four can also generate images.
- Placements: the TinyMCE text editor (generate text and images) and course assistance (summarise and explain).
- By default students can use every placement action; review the capabilities before you switch AI on.
- 5.1 added per-course and per-activity AI switches; 5.3 added a course-level AI usage report.
- Core has no AI chat tutor, roleplay or quiz generation; those come from plugins or LTI tools.
What is the Moodle AI subsystem?
The AI subsystem is the part of Moodle core that connects your site to AI services. It arrived in Moodle 4.5 (October 2024) and has grown with every release since. Instead of each plugin wiring up its own AI service, Moodle gives every site one shared, admin-controlled route to AI, with one user policy, one set of rate limits and one log.
Moodle's developer documentation describes it as four parts:
- Placements: the buttons and screens where people use AI, for example inside the text editor or on a course page.
- Actions: the things AI can do, such as generate text or summarise text. Actions have no screen of their own.
- Providers: the connectors to an AI service, such as OpenAI or a model you host yourself with Ollama.
- The manager: core code that sits in the middle. A placement asks for an action, the manager picks a provider that supports it, sends the request, logs the result and hands the answer back.
Moodle's rule is that placements never talk to providers directly; everything goes through the manager. That is why you can switch from one AI service to another without changing how teachers and students use the feature.
Which AI providers does Moodle support?
Moodle 5.3 ships seven provider plugins in core. Not all of them can do every action: image generation needs a provider that supports it.
| Provider (plugin name) | First in core | Generate text | Generate image | Summarise text | Explain text |
|---|---|---|---|---|---|
| OpenAI API provider | 4.5 | Yes | Yes | Yes | Yes |
| Azure AI API provider | 4.5 | Yes | Yes | Yes | Yes |
| Ollama API provider (self-hosted models) | 5.0 | Yes | — | Yes | Yes |
| DeepSeek API provider | 5.1 | Yes | — | Yes | Yes |
| Gemini API provider | 5.2 | Yes | Yes | Yes | Yes |
| Amazon Bedrock provider | 5.2 | Yes | Yes | Yes | Yes |
| Anthropic Claude API provider | 5.3 | Yes | — | Yes | Yes |
Since Moodle 5.0 you can add more than one instance of a provider (for example two OpenAI instances with different models), set options per action, and put the instances in order. When a placement asks for an action, the manager uses the first enabled provider that supports it.
If your data must not leave your own servers, Ollama is the provider to look at: it points Moodle at models you run on your own infrastructure. With the other six, the text a user sends goes to that company's AI service and is handled under its privacy terms.
What are AI placements in Moodle?
A placement is where AI shows up for users. Moodle core has two:
| Placement | Where users see it | Actions it uses |
|---|---|---|
| Text editor placement | AI buttons in the TinyMCE text editor, wherever users write formatted text in a course | Generate text, generate image |
| Course assistance placement | Summarise and Explain buttons on course content, with the answer in an AI drawer that can be copied or regenerated | Summarise text (4.5+), explain text (5.0+) |
Each action in a placement has its own capability, such as aiplacement/courseassist:summarise_text or aiplacement/editor:generate_image. In Moodle 5.3 these are allowed by default for managers, teachers, non-editing teachers and students. If you do not want students to generate images or text, change those capabilities on the Student role before you switch the placement on.
What can Moodle AI do in each version from 4.5 to 5.3?
| Version | What was added to the AI subsystem |
|---|---|
| 4.5 LTS (Oct 2024) | AI subsystem introduced. Providers: OpenAI and Azure AI. Placements: text editor (generate text, generate image) and course assistance (summarise). AI user policy that every user accepts once before first use. Per-provider rate limits. |
| 5.0 (Apr 2025) | Ollama provider. New Explain text action in course assistance. Multiple instances of the same provider, per-action settings and pre-defined models. Site reports: AI usage and AI policy acceptance. |
| 5.1 (Oct 2025) | DeepSeek provider. New course setting Allow AI tools for this course, and an activity setting Allow AI tools in this activity to choose which AI features an activity offers. Clearer error messages, including when a rate limit is hit. |
| 5.2 (Apr 2026) | Gemini and Amazon Bedrock providers. |
| 5.3 LTS (Oct 2026) | Anthropic Claude provider. A new course-level AI usage report: teachers can see AI use in their course, and students can see their own. Token counts are now logged with every AI request. |
Across all of these versions the core actions stay small: generate text, generate image, summarise text and explain text. Core Moodle does not include an AI chat tutor, AI roleplay or AI quiz generation. Those come from plugins or external tools, covered below.
If you are still choosing a version, Moodle 5.3 is the current LTS and has the most complete AI subsystem. See our Moodle LTS versions and support dates and the Moodle 5.3 requirements checklist.
How do I set up the AI subsystem in Moodle 5.3?
All AI settings sit under Site administration > AI. The order that works:
Set up the Moodle AI subsystem (5.3)
- 1Choose a provider
Site administration > AI > AI providers. Create a provider instance (OpenAI, Azure AI, Ollama, DeepSeek, Gemini, Amazon Bedrock or Anthropic Claude) and add the API key or endpoint.
- 2Pick the actions and models
In the instance's settings, enable only the actions you need (generate text, generate image, summarise, explain) and choose the model for each.
- 3Set rate limits
Turn on the per-user and site-wide hourly limits so one course or one user cannot run up the AI bill.
- 4Check capabilities
Review the aiplacement capabilities on the Student and Teacher roles. By default students can use every placement action.
- 5Enable the placements
Site administration > AI > AI placements. Turn on the Text editor placement, the Course assistance placement, or both, and pick their actions.
- 6Allow AI in the right courses
In Moodle 5.1 and later, set 'Allow AI tools for this course' in each course where AI should appear.
- 7Test, then watch the reports
Accept the AI user policy as a test user, try each action, then check the AI usage report under Site administration > Reports.
How do I control cost, privacy and who can use AI?
- Rate limits: each provider instance can cap requests per user per hour and site-wide per hour. Set both before launch.
- AI user policy: users must accept it once before they can use any AI placement. Moodle's developer docs say this is a separate policy from the site policy because acknowledgement of AI has to be made at the point of use.
- Capabilities: every placement action has its own capability, so you can allow summarise for students but keep image generation for teachers.
- Course and activity switches (5.1+): turn AI tools on only in the courses that need them.
- Reports: the site AI usage and AI policy acceptance reports (5.0+) are under Site administration > Reports; the course AI usage report arrives in 5.3.
- Where data goes: pick the provider with your data rules in mind. Ollama keeps prompts on servers you run; the others send them to the AI company's service.
What does the AI subsystem not do, and how do you add it?
The subsystem is a foundation, not a full AI learning product. Common gaps and how sites fill them:
| You want | In core? | How sites add it |
|---|---|---|
| An AI chat tutor that answers from course content | No | A Moodle chat or tutor plugin, or an external AI tutor connected to the course. See {L(TUTOR,'AI tutors for Moodle and Canvas')}. |
| AI-generated quiz questions | No | Question-bank plugins that draft questions from course files. See our {L(PLUG,'Moodle AI plugins guide')}. |
| AI roleplay practice (sales calls, customer conversations, interviews) with scoring | No | An AI roleplay tool connected to the course, usually over LTI 1.3. |
| Translation | No action class ships in 5.3 | Third-party plugins or the provider's own tools. |
Where do Gelato AI and an AI tutor fit with Moodle AI?
They sit alongside the subsystem, not inside it. The core subsystem is good at short, one-off jobs on a page: draft this text, summarise this section, explain this paragraph. It has no memory of the learner and no conversation.
- Gelato AI is edzlms's AI roleplay tool. Learners practise real conversations with an AI character, in 12+ languages, and get scored feedback against your criteria. It connects to Moodle and other LMSs over LTI 1.3, so it opens inside the course and works next to the core AI subsystem. See the Gelato AI facts page.
- An AI tutor answers learner questions in a chat and is limited to your course content. Our post on AI tutors for Moodle and Canvas explains the options for an existing Moodle site.
A sensible setup on Moodle 5.3 is: core AI for teacher drafting and on-page summaries, a tutor for learner questions, and Gelato AI for practice that needs to be scored.
Before you switch AI on for students
In Moodle 5.3 the generate text, generate image, summarise and explain capabilities are allowed for the Student role by default. Decide what students should be able to do, set rate limits, and allow AI tools only in the courses that need them.
Frequently asked questions
What is the Moodle AI subsystem?
It is the part of Moodle core, introduced in Moodle 4.5, that connects a Moodle site to AI services. It is made up of providers (the AI services), placements (where users see AI), actions (what AI does) and a manager that routes and logs every request.
Which version of Moodle has AI?
Moodle 4.5 and later. Moodle 4.5 shipped the AI subsystem with OpenAI and Azure AI. Later versions added Ollama (5.0), DeepSeek (5.1), Gemini and Amazon Bedrock (5.2) and Anthropic Claude (5.3).
Where is the official Moodle AI subsystem documentation?
The developer documentation is on moodledev.io under APIs > Subsystems > AI, and the admin and user guide is on docs.moodle.org. This post lists the source files we checked in the Sources section.
Can I use Moodle AI without sending data to OpenAI?
Yes. Choose the Ollama provider, which points Moodle at AI models you host yourself, so prompts stay on your own servers. Azure AI, Amazon Bedrock and the others are also options if your organisation already has an agreement with one of them.
Can students use Moodle AI?
Yes, by default. In Moodle 5.3 the text editor and course assistance capabilities are allowed for students. Admins can remove them per role, and in 5.1 and later AI tools can be allowed or blocked per course and per activity.
Does Moodle AI include an AI tutor or chatbot?
No. Core actions are generate text, generate image, summarise text and explain text. An AI chat tutor comes from a plugin or an external tool connected to the course.
How do I limit AI costs in Moodle?
Set the per-user and site-wide hourly rate limits on each provider instance, enable only the actions you need, allow AI tools only in the courses that need them, and check the AI usage report regularly.
How does Gelato AI work with Moodle AI?
Gelato AI is a separate AI roleplay tool from edzlms. It connects to Moodle over LTI 1.3 and runs inside the course alongside the core AI subsystem, adding scored conversation practice that core Moodle does not offer.
Sources
Checked on 29 November 2026: Moodle's AI subsystem developer documentation on moodledev.io (read from its source file on GitHub); the Moodle 5.3 code in public/ai (provider and placement plugins, actions, capabilities, language strings) and its UPGRADING.md; the new report_aiusage plugin; and the Moodle 4.5, 5.0, 5.1 and 5.2 branches for when each feature arrived (for example Moodle 4.5 ai folder). Moodle can change these features in point releases; check your own site's Site administration > AI pages.
This post is published by edzlms, which makes Gelato AI and offers Moodle DevOps support.
Need help switching on AI in Moodle?
Our Moodle DevOps support team can set up providers, rate limits and capabilities on your Moodle site, test them on a staging copy, and keep them working through upgrades. Want AI roleplay and an AI tutor ready to use instead?