Running a fork of edx-platform with Tutor

A fork of edx-platform is a last resort for most Open edX sites. This page explains when carrying one is justified, how Tutor builds images from it, and what the patches cost to keep through each named release.

On this page

When a fork of edx-platform is justified and what it costs to run

A fork of edx-platform is a last resort. Before your team edits the platform directly, confirm that the requirement cannot be met through a Tutor plugin, the hooks API, a Django app plugin or an XBlock, because a fork carries merge and testing work for as long as you run it. Every patch you carry is code you must re-apply, test and own after each release. The useful question is not whether the change is possible, but whether the business case still holds once that recurring work is counted.

The cost comes from licensing and support rules. edx-platform is licensed under the GNU Affero General Public License version 3, so modifications you run for users over a network carry source obligations that your legal team should review before you ship changes. Open edX supports only the latest named release, and Verawood is the current one, so a patch written against an older release does not stay supported. Each named release requires your patches to be rebased onto the new code, and the upstream changes may move or remove the code you touched. Ask your team to list every patched file and the upstream module it changes before estimating any upgrade.

The maintainers recommend running Open edX in production through a service provider or with Tutor, and they note that bare-metal installation is complex and receives limited community support. A fork built on Tutor images, using tutor mounts or a custom image build, keeps the runtime reproducible, but it does not remove the patch maintenance. Before committing, ask a partner for a written estimate covering the patch inventory, the rebase and regression testing for each release, image rebuilds, and who signs off on upgrades. Confirm the expected release cadence with the Open edX release notes and plan a budget line for it.

Decision tests before forking edx-platform

A fork means your team carries every platform change you make for as long as the fork exists. Work through these tests in order, because each one that a lighter extension mechanism passes removes a patch you would otherwise maintain across releases.

Can an extension point meet the need?

Check first whether a Tutor plugin, the hooks API, a Django app plugin, an XBlock or a custom micro-frontend can deliver the behavior without touching edx-platform. Tutor plugins can patch settings and add services, openedx-events and openedx-filters can react to or change platform behavior, and frontend plugin slots cover many interface changes. If one of these fits, use it. If none does, write down the specific gap, because a fork is only justified against that named gap.

Tutor docs

Is the change blocked by a missing hook?

Distinguish a feature you truly cannot build from one that lacks a hook in the current release. A missing hook often justifies a small, targeted request to the upstream project rather than a long-lived divergence. Ask whether the gap affects only your deployment or many operators. If the answer is only you, expect to own the patch indefinitely. If others need it, the upstream route is usually cheaper.

Can the change go upstream?

Assess whether the modification can be proposed to the open-source project as a general feature or fix, with tests and documentation that meet its contribution process. Changes that are specific to your branding, identity provider or business rules rarely qualify. Changes that fix a defect or generalize a capability often do. An upstream merge removes the patch from your maintenance burden, so this test shapes the rest of the decision.

Who owns the patch each release?

Name the person or team that will rebase the patch, run regression tests and decide when to drop it. Each named release is supported only while it is the latest, so a fork must follow the release cadence, and each upgrade means resolving conflicts in edx-platform code you changed. If no owner is funded for that work across every release cycle, the fork is not ready. Ask any implementation partner for this ownership in writing, including who handles security fixes between releases.

Release notes

Do the AGPL-3.0 obligations apply?

edx-platform is licensed under AGPL-3.0, which applies to modified versions that users interact with over a network. Confirm with counsel whether your modified code is served to learners or staff, and whether you must offer the corresponding source to those users. Also confirm how your custom code and any third-party XBlocks are licensed, since Tutor plugins and hooks carry their own licenses. Treat an unclear answer as a blocker to forking until counsel has reviewed it.

AGPL-3.0 text

How Tutor builds images from a forked edx-platform

Tutor builds Open edX container images from source, and the build step is where a fork's patches become part of what runs. A team that maintains its own copy of edx-platform points the Tutor build at that source tree, so the resulting image carries the patched LMS and Studio code instead of the upstream code. The important consequence is that the image, not the working copy on a developer's laptop, is the artifact that reaches production. Before anyone relies on this path, confirm with the Tutor documentation for your installed version how the build accepts a custom source location, which configuration keys control the base image and the platform repository, and which commands rebuild and push the images. Those keys and commands change between Tutor releases, so treat any example from a blog post or older guide as a starting point only.

Tutor also supports tutor mounts, which bind local source directories or files into running containers. Mounts are a development convenience: they let engineers edit code on the host and see changes without rebuilding an image on every edit. They are a poor basis for production because the running container then depends on files outside the image, the code is not versioned as a single unit, and two environments can drift without anyone noticing. Production should run images that are built from a specific commit of the fork, tagged with a version that maps to that commit, and promoted through environments unchanged. Ask your implementation partner or internal platform team to show, for your Tutor version, how a mounted development environment and a tagged production image are kept separate, and how a rollback selects an earlier tag.

Options for customizing edx-platform, and when each fits

This table compares six ways to change Open edX behavior: a fork of edx-platform, a Tutor plugin, the openedx-events and openedx-filters hooks, a Django app plugin, XBlocks and asides, and a custom micro-frontend. Read each row for what the option changes, whether it survives upgrades, and when it is the right tool. The main takeaway is that a fork should be the last option considered, because every other option keeps your changes separate from edx-platform source.

OptionWhat it changes and what survives upgradesWhen it is the right tool
Fork of edx-platformChanges core LMS and Studio source code. Every patch must be re-applied and retested at each named release, so it carries the highest ongoing upkeep.Only when the change cannot be made through a plugin, hook or block, and the business case covers merge work for each release.
Tutor pluginPackages settings, services, patches and image changes outside edx-platform source. Survives upgrades when it uses documented plugin hooks instead of hand-edited files.Configuration, extra services and deployment-level changes that must be repeatable across environments.
openedx-events and openedx-filtersReacts to platform events or changes filtered data from a Django app plugin, without editing edx-platform files. Survives upgrades as long as the event or filter contract is kept.Behavior changes at points the platform already exposes, such as enrollment or certificate events.
Django app pluginAdds a Django app that the platform loads, with its own models, views and settings. Survives upgrades when it avoids patching core modules.Server-side features that need their own data or endpoints and cannot be done with events or filters.
XBlocks and asidesAdds new course components or adds behavior to existing blocks inside course content. Survives upgrades at the platform level, but course import and export need checking.New learner interactions or course-level components, or behavior added across many existing blocks.
Custom micro-frontendDeploys your own React app alongside the default Open edX micro-frontends. Survives platform upgrades but must be maintained through React upgrades.A new learner or instructor interface that the default micro-frontends do not cover.

Setting up a patched build pipeline with Tutor

This sequence turns a set of patches into a repeatable path from a reviewed commit to a promoted, tagged Tutor image that has been tested on the same data stores as production. Each step ends with a check so the team can tell whether the fork is still what they intended to ship.

  1. Pin the upstream release and branch the fork

    Choose the named Open edX release the fork will track and record its exact upstream commit or tag in the fork's repository. Create a long-lived branch from that point so every later change is measured against a known baseline. Confirm with the vendor and your own release calendar which named release is current, since Open edX supports only the latest named release at a time (Open edX release notes). Done when the baseline commit hash is written in the repository's documentation and a diff against upstream at that commit is empty.

  2. Record each patch as a reviewable commit

    Make every local change as a separate, small commit on top of the pinned baseline, with a message that states the business reason, the affected file paths and the upstream issue it relates to, if any. Keep patches out of generated files and avoid mixing them with configuration that belongs in a Tutor plugin. The reviewer should be able to read the full patch set as a list of commits. Done when a diff from baseline shows only the intended files and every commit has a named owner who approved it.

  3. Build a versioned Tutor image in CI

    Configure the CI pipeline to build the Open edX image from the fork using Tutor's image build process, pointing the build at the fork's source instead of the default upstream code. Tag each image with the fork's commit and a version label that names the baseline release, so no image is anonymous. Store the build log with the image. Done when the pipeline produces an image whose tag can be traced back to one commit in the repository.

  4. Verify the patches are inside the image

    After the build, run a check that inspects the built image and confirms each patch is present, for example by comparing the files changed by each commit against the files in the image. Also confirm that no unexpected files from the fork's working directory were copied in. Record the result in the pipeline output. Done when a script fails the build if any expected change is missing or any unexpected file is present.

  5. Deploy the image to a staging environment

    Run the tagged image in a staging environment built with Tutor's configuration, using the same MySQL 8.0, MongoDB 7.x and Memcached or Redis versions as production. Confirm these versions are taken from the same source as production, not from a separate test setup. Where production runs more than one node, configure a shared Django cache backend such as Redis or Memcached in staging as well, so cache behavior matches. Done when staging reports the same dependency versions as production and the cache settings are identical in both.

  6. Run the test suites against staging

    Run the fork's own unit and integration tests, plus the smoke tests that cover your custom behavior, against the staging deployment. Include Studio and LMS login, course authoring, enrollment and a certificate path if your fork changes them. Keep the results with the image tag. Done when every required test passes against the staging image and any failure has been either fixed or documented as accepted by the owner of the change.

  7. Promote only tagged, tested images

    Promote an image to production only when its tag has passed the staging tests and the approval record names the tag, the baseline release and the approver. Deploy the same image that was tested, never a rebuild, so the artifact in production is the artifact that was verified. Keep the previous tagged image available so the team can roll back to a known version. Done when the production deployment's image digest matches the staging digest and the approval record is stored with the release.

What carrying patches through each named release involves

Open edX names its releases, and the latest named release is the only one it supports. A fork therefore cannot stay on an older release while the platform moves on. Each named release means rebasing your patch set onto the new release, rebuilding your Tutor images and retesting everything your patches touch. The current named release is Open edX Verawood, published on 30 July 2026, and the next two are Willow, listed for December 2026, and Xylon, listed for June 2027. Plan the work around that cadence, and confirm the dates against the Open edX release notes before you commit a schedule, since listed dates can move.

Each cycle follows the same sequence. First, rebase the patch set onto the new release branch and list every conflict. Conflicts cluster in the places platform code changes most: Django models, settings modules, and Mako or React templates. For each conflict, decide whether the patch still needs to exist, and if it does, rewrite it against the new code rather than carrying the old diff forward. Next, run the migrations your changes add or alter, check that they apply cleanly on a copy of production-shaped data, and run the regression suite. Finally, retest each patched behavior by hand against a checklist, because automated tests rarely cover the exact customization a fork was created for.

Verawood is a useful example of why each cycle needs a fresh review of every patch. It added a new Studio sidebar, a redesigned instructor dashboard and new frontend plugin slots. A patch that changed the old sidebar or dashboard may now be redundant, or it may conflict with the new layout. A slot that a plugin can use may replace a fork-level change entirely. Before rebasing, ask your team to mark each patch as still needed, replaceable by a plugin slot or hook, or obsolete, and record the decision. Budget the rebase against that list rather than against the size of the original fork.

Security and operational risks of a patched platform

A patched edx-platform carries its own patch set through every upstream release. The risks below compound each other: a patch that lags behind upstream security fixes is harder to rebase, and an unreviewed patch is harder to trust during an incident. Each card names the control to put in place before the fork goes live.

Delayed security patches

Every upstream security fix has to be ported into the fork by hand when the fork diverges from the release line. If the rebase falls behind, the platform runs known-vulnerable code while the team works through conflicts. Set a written rule for how quickly upstream security fixes are merged into the fork, and test that rule with a recent fix before you commit to the model. Ask any partner how they track upstream security advisories and who is accountable for applying them.

edx-platform repository

Unreviewed patch code

edx-platform is licensed under AGPL, and every line your team adds becomes part of a network-facing service that learners and staff use directly. Patches written in a hurry often skip the review that upstream changes receive, so they reach production with weak input validation or permission checks. Require a second reviewer for every patch, keep patches in a version-controlled branch with a written reason, and run the platform's test suite against each change before it is built into an image.

Secrets baked into images

A Tutor image built with a database password, API key or signing secret inside a settings file can be copied from any registry that holds it. The same secret then travels to every environment built from that image. Keep secrets out of the fork and out of build arguments, and supply them at runtime from the environment or the secrets store your team operates. Confirm how your Tutor configuration separates secret values from the images built from it, and check the image layers for leaked values before a registry push.

Drift from the supported release

Open edX states that the latest named release is the only supported release. A fork that stays on an older base drifts further from that release with each patch, and the gap grows at every six-monthly cycle. Schedule a rebase onto each new named release, record the diff size at each rebase, and decide in advance when the fork will be retired or reduced. Ask for the planned rebase calendar in any quote, not only the first build.

Open edX release notes

Loss of upstream bug fixes

Upstream fixes for bugs your team never hit may still touch code your patches changed. When a fork ignores those fixes, the platform keeps defects that the community already resolved, and the team must rediscover them. Track upstream changes that touch files in your patch set, and review them at each rebase. Keep a list of patched files so that a reviewer can see at a glance which upstream fixes may interact with local code.

On-call burden on platform staff

A fork is another system for on-call engineers to understand, and the fork's behavior differs from the documented platform in ways that slow diagnosis. Incidents that look like upstream issues may be caused by a local patch, and runbooks written for the standard release may not apply. Document each patch with its owner and its rollback path, and add the fork's build and rollback steps to the runbook. Confirm who answers on-call questions about patches, and whether that person has access to the repository and build pipeline.

Questions buyers ask before forking edx-platform

How much work does a fork add with each Open edX release?

A fork adds ongoing work every release, not just at the start. Each patch you carry must be re-applied, tested and fixed against changed code in the next named release, and the amount of that work grows with how many patches you carry and how deeply they touch core files. Patches to models, migrations, shared templates or the authentication flow usually cost more to carry than changes made through plugin hooks. Ask a partner to list every patch, the files it touches and the owner who will rebase it before agreeing any figure.

Can our team maintain a fork without outside help?

Yes, if you have engineers who know Python, Django and the edx-platform codebase, and time set aside for release cycles. Open edX supports only the latest named release at a time, so your team must be ready to move the fork forward on the project's schedule. Teams that already run Tutor and carry a small, well-documented patch set usually find this manageable. Teams with no Open edX experience should expect a learning period and should confirm that the work is covered by someone with the skills in place.

What skills do our engineers need to carry a fork?

Engineers need working knowledge of Python and Django, JavaScript and React for frontend changes, Docker and Tutor for building images, and Git for rebasing patches. They also need to read edx-platform code well enough to judge whether a patch still does what it was written to do after an upstream change. Development requires Python 3.12, Node.js, MySQL 8.0, MongoDB 7.x and Memcached, so the team also needs to keep those dependencies working in its build and test environments.

How does a fork affect upgrades to the next named release?

A fork turns each upgrade into a merge project. Before you move to the next named release, you must rebase every patch onto the new code, resolve conflicts, rerun migrations and retest the features the patches change. Open edX names Verawood as the current release and lists Willow and Xylon as the next releases, so plan for at least one upgrade cycle on the published schedule. Confirm the expected upgrade window with the release notes and your partner's written scope.

Do AGPL obligations apply to our changes to edx-platform?

The edx-platform code is licensed under the GNU Affero General Public License version 3, so changes you make to it are generally covered by that license. The AGPL includes a network clause that can require you to offer the source of a modified version to users who interact with it over a network, which matters for learner-facing platforms. Have your legal team review how the clause applies to your deployment, and keep a record of every modification so you can produce its source when required. This is a legal question, so confirm the answer with counsel.

Would a Tutor plugin be cheaper than a fork?

Often, yes. Tutor plugins and the hooks system let you add settings, services and configuration without editing edx-platform, so those changes survive upgrades with far less rebasing. Tutor's plugin and hooks system is licensed under Apache 2.0, and the Django app plugin mechanism covers many behavior changes. Before choosing a fork, list each required change and check whether a plugin, hook, event or filter can deliver it. Keep a fork for changes that no supported extension point can reach.

What should we ask a partner for in a written scope?

Ask for a list of every patch with its purpose, the files and models it touches, and the reason no plugin or hook option was chosen. Request the upgrade plan for the next named release, the test coverage for each patch, the build and deployment steps through Tutor, and the handover documents your team will receive. Also ask who maintains the fork after the project ends, how security fixes are applied, and what is included in any ongoing retainer. Engagements are fixed-scope, so these items should be agreed in writing before work starts.

How DeployOpen scopes and supports a patched Open edX build

DeployOpen treats a fork of edx-platform as a long-term maintenance commitment, not a one-off build. We agree the patch list in writing, build Tutor images from the fork in infrastructure you control, and document what each patch changes so your team can carry it through each named release.

How we scope

  • Engagements are fixed-scope, with the list of patches, deliverables and timelines agreed in writing before work starts
  • Each proposed change is recorded with the reason it cannot be met by a plugin, hook, XBlock or theme
  • Scope names the Open edX release the fork starts from and the release your team expects to move to next
  • Ongoing upgrade and patch support can be included as a retainer, priced from the written scope

How we build

  • Patches are kept as a reviewable set of commits on top of the upstream edx-platform release, so changes stay traceable
  • Tutor images are built from the fork and wired in with tutor mounts, so configuration stays in version control
  • Each patch gets automated tests and a manual check of the affected learner and Studio flows before sign-off
  • Build steps, image tags and mount paths are written down so the image can be rebuilt by your own team

How we hand over

  • You receive the patch register, with each change, its owner, its files and the upstream issue it relates to
  • Runbooks cover building, deploying, rolling back and rebasing the fork onto a new named release
  • Handover includes a walkthrough with your platform and development team, so the build does not depend on one person
  • Documentation states which patches are candidates for upstream contribution and which must stay local

How we support

  • Support covers rebasing patches when a new named release is published, with conflicts and test failures reported to you
  • Open edX supports only the latest named release, so the plan should name the release you will move to and when
  • Security patches in the fork are reviewed and applied on a schedule you agree in the retainer
  • Confirm with DeployOpen what support hours, response expectations and escalation paths the retainer includes before signing

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.