Skip to main content

Licensing FAQ

CodefyUI uses a dual-path licensing model.

  • Open source pathAGPL-3.0-only for individual developers, small teams, education, research, community use, and any other use case that can comply with AGPL-3.0.
  • Commercial path — for proprietary, closed-source, SaaS, OEM, enterprise, or other use that needs terms outside AGPL-3.0. Contact the maintainers.

The copyright holder is CodefyUI (https://github.com/CodefyUI) and the CodefyUI contributors — see NOTICE.

:::note This page is not legal advice Everything below is the CodefyUI project's own reading of the license it publishes under. It is written so you can see what the project intends and check it against the license text yourself. It is not legal advice, and it does not create or modify any license. Where this page and LICENSE disagree, LICENSE governs. If your situation needs certainty rather than an interpretation, the commercial license exists for exactly that. :::

Does running CodefyUI internally, unmodified, trigger AGPL section 13?

No.

AGPL-3.0 section 2 (Basic Permissions) says:

This License explicitly affirms your unlimited permission to run the unmodified Program.

And the network clause in section 13 is conditioned on modification:

Notwithstanding any other provision of this License, if you modify the Program, your modified version must prominently offer all users interacting with it remotely through a computer network (if your version supports such interaction) an opportunity to receive the Corresponding Source of your version [...]

So a company that installs CodefyUI as published and runs it on an internal server — for any number of employees, for commercial purposes, behind the firewall or not — has no obligation under section 13 and needs no commercial license. That is the ordinary open source path working as intended, not a loophole.

Two things follow, and both are worth stating plainly because evaluators often assume the opposite:

  • "Commercial use" is not what triggers the commercial license. AGPL-3.0 places no restriction on using the software for profit. What triggers the commercial path is needing terms the AGPL does not give you — chiefly the ability to keep modifications closed.
  • Distributing an unmodified copy is also fine, provided you pass along the license and the source (section 4/6). You do not need permission from the project to hand a colleague the installer.

Does writing a custom node or a plugin count as modifying the Program?

This is the question that actually matters, and the honest answer is: probably yes, and the project treats it as yes.

The mechanics are not in dispute. A custom node is a Python file that subclasses BaseNode from app.core.node_base and is imported into the running backend. A plugin pack is, in the plugin documentation's own words, "Python that runs in the CodefyUI process." Both import CodefyUI's own API, run inside CodefyUI's process, and are meaningless without it. CodefyUI publishes no linking exception — nothing in LICENSE carves out separately-authored modules the way the LGPL or a Classpath exception would.

The project's interpretation: a custom node or plugin pack that imports CodefyUI's Python API and executes in the CodefyUI process is part of a modified version of the Program for AGPL purposes. If you then let users interact with that deployment remotely over a network, section 13's source-offer requirement is engaged, and it reaches your node or plugin code too.

What that does and does not mean in practice:

SituationThe project's reading
You write a custom node and use it yourself on your own machine.Nothing is triggered. Section 13 is about users interacting remotely over a network; private use is not conveying.
You write a custom node, deploy CodefyUI on an internal server, and colleagues use it through the browser.Section 13 is engaged. Offer the Corresponding Source — including your node — to those users. Inside one organization that is usually a link to an internal repository, not a public release.
You publish a plugin pack.Publish it under AGPL-3.0-compatible terms. This is the normal case and the one the plugin template is set up for.
You want to ship a proprietary node or plugin, or run a modified CodefyUI as a service without releasing your changes.This is what the commercial license is for.

:::caution Where the uncertainty actually sits Whether a plugin is a derivative work of its host is a genuinely contested question in copyright law, it varies by jurisdiction, and no court has settled it for the AGPL. The project states the reading above so you know what it intends and will not surprise you with a different one. It is not a legal opinion and it is not binding on anyone else's counsel. If you need an answer you can rely on, take the commercial license — it removes the question rather than answering it. :::

Do my graphs and my trained models fall under the AGPL?

No, in the project's reading. A graph.json you build on the canvas, the weights a training run produces, and any charts or exports are output from running the Program. AGPL-3.0 section 2 addresses this directly:

The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work.

A graph description and a tensor of learned weights are your data, not CodefyUI's code. Nothing in the AGPL asks you to publish them.

The one thing to keep separate is the training data you feed in and any pretrained weights you download — those carry their own licenses from wherever you obtained them, entirely independent of CodefyUI's.

What does the commercial license cover, and who grants it?

Who grants it: CodefyUI (https://github.com/CodefyUI), the copyright holder named in NOTICE. Inbound contributions are accepted under the Developer Certificate of Origin 1.1 plus an explicit dual-licensing term — see CONTRIBUTING.md — so that contributed code can be offered on either path.

What it covers: terms outside AGPL-3.0, for the cases the open source path cannot serve.

  • Proprietary or closed-source modifications you do not want to publish.
  • Offering a modified CodefyUI as a hosted or SaaS product.
  • OEM redistribution, or embedding CodefyUI in a product shipped under your own license.
  • Shipping proprietary custom nodes or plugin packs (see the question above).
  • Enterprise deployments whose internal policy forbids copyleft obligations regardless of whether they are actually triggered.

What it does not do: it does not take anything away from the open source path, and it is not a support contract. Terms and pricing are negotiated per case.

Start the conversation on the issue tracker. See also COMMERCIAL-LICENSE.md.

What do contributors agree to? Do they share in commercial revenue?

Three ground rules, stated in full in CONTRIBUTING.md:

  • Every contributor is credited. The git history keeps each contributor's name and email permanently, GitHub's contributors graph is derived from it, and contributors retain copyright in their own work.
  • The grant is voluntary and royalty-free. Contributions are licensed to the project on both paths — AGPL-3.0-only and the commercial license. When the copyright holder sells a commercial license that includes contributed code, no royalty, revenue share, or other compensation is owed to the contributors whose code is in it.
  • Outstanding contributions can be discussed. A contributor who believes a contribution is substantial enough that different recognition or terms should apply can raise it with the maintainers, before or after contributing. Anything beyond the defaults requires explicit written agreement with the copyright holder.

For a commercial licensee this means a single licensor, and a license that carries no payment claims from individual contributors.

Third-party components

CodefyUI redistributes third-party software, both as Python dependencies and as compiled assets inside the prebuilt frontend bundle (React, KaTeX and its fonts, and others). Their copyright notices and license terms are collected in THIRD_PARTY_NOTICES.md, which ships inside the release tarball alongside LICENSE and NOTICE. All of them are permissive; none imposes copyleft obligations of its own.