Open edX AI Extensions with self-hosted models

How to deploy the Open edX AI Extensions plugin with a self-hosted model through Ollama or vLLM, or a hosted provider, with scoped learner assistance and reviewed AI-drafted questions.

On this page

Open edX AI Extensions with self-hosted models: what it does and when to use it

A course team or platform owner who wants AI help for learners or authors usually has one constraint above the others: course content, learner questions and assessment drafts should not flow to a service the organization does not control. The Open edX AI Extensions Framework arrived with the Verawood release, and it gives the platform a place to plug in AI features. It is a framework, not a finished assistant, so the project starts with three decisions: which model host will answer requests, what the learner assistant is allowed to do, and how AI-drafted questions get reviewed by a person before any learner sees them. Each decision changes the infrastructure, the access controls and the evidence your compliance team will ask for.

The model host decision comes first because it sets where data goes. Self-hosted models through Ollama or vLLM keep prompts and course material inside your network, but they also move capacity planning, patching, GPU sourcing and monitoring onto your team. Ollama runs locally by default on 127.0.0.1 port 11434 and its local API does not require authentication, so any exposure beyond the host needs a proxy and access control you design. vLLM serves OpenAI-compatible endpoints, and its security documentation says the --api-key option does not cover every route, so you will need a reverse proxy that exposes only the endpoints users need. A hosted provider removes that operations load but moves prompts to a third party, which must be assessed against your data handling rules. Confirm the data retention and processing terms in writing before you choose.

The learner assistant scope and the question review workflow come next. Decide which course pages the assistant may draw on, whether it can see graded content, whether it logs conversations, and who can read those logs. For AI-drafted questions, define who approves a draft, where approved items are stored, and how an unapproved draft is prevented from reaching a learner. Write these rules down before configuration, because they become the test cases for your security review and the basis for the prompt templates each course will use.

Where prompts, models and learner data travel

The diagram starts with a learner or course author sending a request to the Open edX LMS or Studio. The AI Extensions plugin then builds the prompt and sends it to one of two places: a model endpoint inside the client's infrastructure, such as Ollama or vLLM, or a hosted provider outside it. AI-drafted questions return to Studio and wait for a human reviewer before they reach learners. Check which path your prompts take, whether the hosted provider is inside your approved data boundary, and who can approve a draft.

Prompts and learner data stay inside the boundary unless a hosted provider is configured.

Which model host fits which situation

This table compares Ollama, vLLM and a hosted provider on where learner and author data goes, how much operating work falls to your team, what hardware they need, how the API is reached and who controls model availability. Read each row against your data classification and your team's operating capacity, since the right host usually follows from those two constraints.

QuestionOllama (local)vLLM (self-served)Hosted provider
Where prompts and data goStays on the host you run when used locally; Ollama states it does not see prompts in local runsStays inside your cluster or servers; nodes must sit on an isolated networkLeaves your infrastructure for the provider; requires a data processing review
Licensing and cost modelMIT-licensed runtime; running models on your own hardware is unlimited per Ollama's pricing pageApache-2.0 with no paid edition; cost is accelerator capacity, infrastructure and operating staffUsage-based or plan-based fees set by the provider; confirm terms in writing
Hardware needsRuns on macOS, Windows, Linux and Docker; suited to smaller models and test environmentsNeeds GPU, AMD, Intel or supported CPU hardware; sizing depends on model and concurrent usersNone on your side; capacity and scaling belong to the provider
API accessREST API on port 11434 with OpenAI compatibility; no authentication on local APIOpenAI-compatible endpoints such as chat completions and embeddings; --api-key alone is not enoughProvider API with an API key sent as a Bearer token
Operator effortInstall, model storage, concurrency settings and a reverse proxy with authenticationServing tuning, parallelism, metrics, gateway allowlists and upgrades every few weeksKey management, budgets and contract review; little infrastructure work
Who owns model availabilityYour team, on the host you controlYour team, on the cluster you controlThe provider; confirm uptime commitments and deprecation notice periods
Typical fit (illustrative)Pilot courses or small internal author groups on one serverLarger learner audiences that need throughput on your own GPUsTeams with no GPU capacity that accept provider data terms

Learner assistant scope: what to allow and what to block

Learner help is the most visible use and the one most likely to be tested by students and reviewers. The client decides which course material the assistant may draw on, whether it can see graded content, and how it behaves when a learner asks for the answer to an assessed problem. The safest starting point is to limit answers to the current course unit and its published explanatory material, then widen scope only after the course team reviews transcripts.

  • Allowed answers: explanations of published lesson content, definitions, worked examples that the course team has already approved, and help with navigating the course.
  • Refused requests: complete solutions to graded problems, exam answers, requests to bypass milestones or prerequisites, and questions about other learners.
  • Personal data handling: decide whether learner names, grades and progress are ever sent to the model. Most designs send only the question and the unit text.
  • Logging: record the course, unit and timestamp for each exchange, with a retention period set by policy. Confirm whether transcripts are stored in the LMS, in the model service or both.
  • Escalation: define how a learner reaches a human instructor when the assistant refuses or is unsure.

Check that refusals are tested against real assessment items in a staging course before launch.

How to set up Open edX AI Extensions with a self-hosted model

This sequence takes a Verawood platform from version check to a tested course where a self-hosted model drafts learner help and questions, and a named reviewer approves anything that reaches learners.

  1. Confirm the Verawood release and Tutor version

    The platform team confirms that the running Open edX instance is on Verawood, the current named release, and that the Tutor version in use supports it and the AI Extensions Framework. Open edX supports only the latest named release, so the team should check the release notes before installing anything and record both version numbers in the change ticket. Done means the team has a written version record for the LMS, Studio and Tutor, and a staging instance that matches production. Ask the platform vendor or the Tutor plugin maintainers which plugin version pairs with Verawood before going further.

  2. Choose and size the model host

    The team picks where inference runs. Ollama suits a single host for small pilots and runs locally on port 11434 by default, while vLLM suits GPU-backed serving with an OpenAI-compatible API and Prometheus metrics. A hosted provider is an option only if the data handling terms are approved by the compliance team. Sizing depends on the model chosen, concurrent learner requests and accelerator availability, so the team should load-test with a representative model and request pattern. Done means a written host decision, a model name and a measured response time under the expected classroom load. Confirm sizing and licensing with the model host vendor, since no capacity figures are supplied here.

  3. Expose the endpoint safely to the platform

    The model endpoint is reachable from the Open edX containers but not from the public internet. For Ollama, the bind address is changed with the OLLAMA_HOST variable and placed behind a reverse proxy such as Nginx. For vLLM, the team uses a proxy that allowlists only the /v1 chat and completion routes, because the --api-key option does not protect /metrics, /health or /invocations. Hosted providers need an API key sent as a Bearer token, stored in the Tutor secrets rather than in plain configuration. Done means a curl request from the LMS container succeeds on the chat route and fails on the admin and metrics routes from outside the network.

  4. Install the plugin and set endpoint and key

    The engineer installs the AI Extensions plugin through Tutor's plugin mechanism, then sets the model endpoint URL, model name and any API key in the Tutor configuration, and rebuilds the images before running the platform update. Settings are kept in version control, with secrets referenced rather than committed. Done means Tutor reports a successful configuration run, the LMS restarts cleanly, and the plugin's settings show the intended endpoint. The check is one test request from the LMS shell that returns text from the model, which confirms that the plugin can reach the host.

  5. Write per-course prompt templates

    The course team and the instructional designer write one prompt template for each pilot course. Each template states the learner assistant's scope, such as which units it may discuss, what it must refuse, the tone and how it should point learners to course staff. Question drafting gets its own template with the expected question types and the answer format. Templates are stored in version control with the course, so changes are reviewed like content. Done means each template has a named owner and a test case list. The check is a set of ten sample learner questions that the team runs against the template, recording which responses stay within scope.

  6. Enable the reviewer workflow for drafted questions

    Before any AI-drafted question reaches a learner, a named subject matter reviewer must approve, edit or reject it. The team turns on the review step in the plugin settings or the Studio workflow, assigns reviewers by course and confirms that drafts are not published automatically. Reviewers check accuracy against the course material, the answer key and the bias or wording issues that a model may introduce. Done means a draft created in Studio is held in a review state, a reviewer can approve or reject it, and the approval is recorded with a name and timestamp. Confirm with the plugin maintainers how the review state and approval log are stored.

  7. Check logs and metrics before wider use

    The operations team confirms that the platform records assistant requests and the model host records its own metrics. On the model side, vLLM exposes request counts, token throughput, latency and KV cache use at /metrics, which the team should scrape only from the internal monitoring network. On the platform side, the team checks that prompts and responses are logged in a way that matches the privacy policy and retention rules. Done means a dashboard or log query shows a recent test request, its latency and its course identifier. Ask the compliance lead which fields may be stored and for how long.

  8. Run a test course end to end

    The team builds a small test course with two units, creates a learner account and runs the full path: the learner asks the assistant a scoped question, an out-of-scope question is refused, a draft question is generated, a reviewer approves it, and the approved question appears in the course. The test course is kept as a regression fixture for later upgrades and model changes. Done means every step passes and the results are written up with the model name, plugin version, template version and reviewer name. Those results become the baseline for the pilot decision.

How AI-drafted questions get human review before learners see them

AI-drafted assessment items should never reach learners on the model's word alone. Each generated question needs to sit in a draft state until a named reviewer on the course team has checked it and recorded an approval. That combination gives the course team a clear point of accountability, a way to pull back an item that turns out to be wrong, and evidence of who approved what when a learner, instructor or auditor later asks. The AI Extensions setup should make the draft state the default, so no generated item is visible in a course by accident.

Reviewers should check each draft against the course material it claims to cover. The question must be answerable from the unit it references, the keyed answer must match the content, and distractors must not be defensible as correct. Bias and copyright checks are separate passes. Reviewers look for wording that assumes a particular culture, region, gender or disability context, and for passages, images or examples that reproduce third-party material. Confirm with your legal and accessibility leads which review criteria they require before the first course goes live, and confirm whether the AI Extensions version you deploy records reviewer identity and timestamps natively or whether DeployOpen must add that record in your own store.

DeployOpen configures the workflow around this review: draft storage, reviewer roles, the approval record and the prompt templates that shape what the model drafts. The academic judgment stays with your course team. Decide in advance who may approve items, whether a second reviewer is needed for graded assessments, and how rejected drafts are kept for later prompt tuning. Those are policy decisions for your faculty or training leads, and the implementation should reflect them exactly.

Security and operational risks for AI in the LMS

Adding AI to a learning platform creates new network exposure, data flows and cost behavior on top of the existing Open edX stack. The cards below cover the risks that connect model serving, the LMS and the people who author and take courses, with a check for each.

Exposed model endpoints

A model server endpoint reachable from the internet or from learner networks is the most direct exposure. The vLLM --api-key option protects only the /v1, /v2, /inference and /cohere paths, while /invocations, /pause, /resume, /abort_requests, /metrics and /health remain open to anyone who can reach them. The vLLM docs advise against relying on the key alone and recommend a reverse proxy that allowlists only the endpoints meant for users. Confirm which paths your proxy exposes and that the Open edX LMS is the only caller.

vLLM security docs

Prompt injection through learner input

Learners control the text that reaches the model, so a learner can try to override instructions, extract the prompt template for a course or push the assistant outside its scope. The learner assistant should be limited to course content and should not hold tools or access to other learners' data. Test injection attempts against each course prompt template before launch, and review whether the assistant's answers can expose graded content or assessment answers.

Data sent to hosted providers

When the AI Extensions call a hosted model provider, learner prompts and course content leave your infrastructure and fall under that provider's terms. Ollama states that local runs do not expose prompts or data to it, but direct cloud inference at ollama.com requires an API key and sends requests there. Decide per course which data may leave the platform, disable cloud features where policy requires it through OLLAMA_NO_CLOUD=1, and ask any hosted provider for its data retention and training terms in writing.

API key handling

Keys for hosted providers and any proxy credentials need the same handling as other production secrets. Local Ollama requests need no authentication at localhost:11434, so a key that is not stored carefully is the main way cloud access leaks. Keep keys out of course XML, theme files and Tutor configuration committed to version control, load them from your secrets store, rotate them on staff changes and scope them to a single application.

Ollama API authentication

Cost and queue limits

Ollama defaults to one parallel request per model and a queue of 512 requests, so a busy course can build a backlog that learners experience as slow or stalled answers. The loaded model limit is three times the GPU count, or three on CPU, and that caps how many models stay in memory. Set OLLAMA_NUM_PARALLEL, OLLAMA_MAX_LOADED_MODELS and OLLAMA_MAX_QUEUE against a load test, and set per-learner request limits at the LMS or proxy layer, since the queue defaults are not a cost control.

Ollama FAQ

Monitoring through Prometheus metrics

vLLM publishes Prometheus-format metrics at /metrics, covering request counts, token throughput, latency histograms and KV cache use. These show whether the assistant is slowing down before learners complain. Because /metrics is outside the API key's protection, keep it on an internal network or behind the proxy, scrape it from your monitoring stack and alert on latency and cache pressure for each course term.

vLLM production metrics

Questions buyers ask before using a partner for AI extensions

What drives the cost of a self-hosted AI extensions setup for Open edX?

The cost comes from four places: the infrastructure that runs the model, the implementation work, the review time your teams spend, and ongoing operations. Ollama's local runtime is open source under the MIT license, and its pricing page states that running models on your own hardware is always unlimited. vLLM has no paid edition, so its cost comes from GPU or other accelerator capacity, the surrounding infrastructure, implementation and the people who operate it. Ollama's paid cloud plans are priced per month, and its Enterprise plan is custom priced and adds model access controls, per-user or per-key cost budgets, a dedicated support channel and custom security options. Ask any quote to split one-time build work from recurring hosting, model updates and support, and to state which hardware it assumes.

How long does an Open edX AI extensions project take?

Duration depends on the scope you agree: how many courses use AI, whether you run Ollama or vLLM or a hosted provider, how much accelerator capacity you need, and how many approval rounds your compliance team requires. Model-serving choices and hardware procurement often set the critical path, so they should be decided first. Most engagements are fixed-scope, which means the timeline is written into the agreement before work starts. Ask the partner to show the phases, the dependencies they expect on your side, and the point at which your review team must sign off on each stage.

What does the client team need to provide for this work?

You will usually provide the Open edX environment access, the server or cloud accounts where the model will run, GPU or accelerator capacity if you use vLLM, network rules, identity provider details for SSO, and named owners for course content and prompt approval. Your security team should also provide the policy for what learner data may reach a model. If you choose a hosted provider, you need a contract and an API key managed under your own secrets process. Ask the partner to list these inputs in writing, with the person responsible for each one.

Can a small team build this without a partner?

A small team can run a proof of concept, especially with a hosted provider or a single local Ollama instance for testing. Production use is a different matter. Open edX itself is complex to run without a distribution, and the edx-platform maintainers recommend a service provider or Tutor for production. Model serving adds its own duties, including access control, logging, patching and capacity planning. vLLM's security documentation states that node-to-node traffic in a multi-node deployment is insecure by default and must sit on an isolated network, so a small team needs time for that work too. Assess your team's experience with Tutor, Kubernetes or Docker, and your on-call coverage before deciding.

How is a partner different from building this in-house?

A partner brings the implementation, testing and documentation work as a defined package, while an in-house build keeps all of it with your staff. A partner typically starts from a written scope, delivers configuration and evidence for review, and can hand over runbooks so your team can operate the setup. In-house teams keep full control of priorities and retain knowledge within the organization, but they carry the full schedule risk and recruitment burden. DeployOpen plans, implements, hardens, documents and supports open-source platforms in infrastructure you control, and it does not issue audit reports or certifications. Ask any partner which handover items you will own at the end.

What security checks does a self-hosted model endpoint need?

A model endpoint needs authentication, network restriction and logging before learners use it. The local Ollama API at localhost:11434 does not require authentication, so it should stay on the loopback interface or behind a proxy that you configure. Cloud inference at ollama.com requires an API key sent as a Bearer token. For vLLM, the --api-key option does not protect every route, including /metrics and /health, so the documentation recommends a reverse proxy that allowlists only the endpoints meant for users. Confirm these settings with the partner and include them in your review evidence.

Which parts of the work recur after launch?

Recurring work includes model and runtime upgrades, accelerator or hosting charges, monitoring, prompt template maintenance, and periodic review of AI-drafted questions. Ollama ships frequent releases, with v0.40.5 released on 14 October 2026 and v0.40.6 published as a pre-release on 16 October 2026. vLLM ships new minor releases about every two weeks, for example v0.31.0 on October 5, 2026. Each release needs a test cycle before it reaches learners. Ask the partner whether support covers these upgrades, how often they will be tested, and what the monthly or annual retainer includes.

How DeployOpen scopes, delivers and supports this AI Extensions setup

DeployOpen plans, implements, hardens, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Open edX AI Extensions with self-hosted models, we start from the model hosting choice, the learner assistant scope and the review process for AI-drafted questions, then build and test the setup so your compliance and security teams can review it.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts
  • The written scope names the model path: self-hosted Ollama, self-hosted vLLM, or a hosted provider
  • Scope lists which courses get the learner assistant and which prompt templates each course team may use

How we build

  • We install the AI Extensions plugin on your Open edX deployment and configure it for the chosen model endpoint
  • We restrict model endpoints to the internal network and confirm API keys and access controls are set
  • We configure the human review step so AI-drafted questions cannot reach learners without approval

How we hand over

  • You receive configuration records, endpoint and access settings, and the prompt template library
  • Documentation covers the review workflow, model storage locations and the concurrency settings in use
  • Test results and fixes are delivered with a retest of the agreed learner assistant and authoring paths

How we support

  • Ongoing support, model upgrades and continuous testing are available as retainers
  • We can track Open edX release changes and plan AI Extensions updates against your current named release
  • Your team can confirm vendor support terms for Ollama or vLLM and the hosted provider separately

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.