Open Source, But Not If You Use AI


Some developers have started publishing software under licences that prohibit the use of AI coding tools to modify it. This goes beyond restrictions on AI training and reaches into the development process itself. You can read the source, fork the repository, modify it by hand and distribute commercial derivatives, but using Claude Code or Codex to make those same modifications may violate the licence.
This is an unusual direction for open source. Two developers can produce exactly the same modification, and only one of them may be allowed to distribute it, depending on whether AI took part in the work. The restriction is about how the software was produced rather than what the software does, and that is what makes it interesting to look at closely.
When the development tool becomes a licence condition
The experimental DT-HumanDev License starts from the MIT text and adds one restriction on AI-assisted development. It keeps the permissions for commercial use, redistribution and human-written modifications, while prohibiting the use of AI systems to develop the licensed software or its derivatives. The practical distinction turns out to be quite specific.
| Development activity | DT-HumanDev |
|---|---|
| Read and study the source code | Allowed |
| Use the software commercially | Allowed |
| Fork and modify the repository manually | Allowed |
| Distribute human-developed derivatives | Allowed |
| Use AI to develop an application depending on the library | Allowed |
| Use Claude Code or Codex to modify the licensed library | Prohibited |
| Ask AI for specific instructions to modify the library manually | Prohibited |
| Use AI to identify and correct security vulnerabilities | Allowed within the security exception |
| Create a genuinely independent implementation | Not covered by the restriction |
If I use a DT-HumanDev library through its public API, an agent can still develop the surrounding application. Asking Codex to modify the library itself is prohibited, and even requesting project-specific instructions from an AI and then typing them in by hand falls within the restriction. The licence also has an exception for finding and fixing security vulnerabilities, as long as the change is limited to what the remediation requires. An agent may therefore change a function to close a vulnerability but not to make it faster.
The author describes the licence as an experiment and openly says its enforceability is unknown. A good part of the project is about testing how AI agents react when they meet a restriction like this. Earlier versions addressed AI systems directly, with wording that looked a lot like prompt injection and clashed with the protections models have against it. Later revisions moved the conditions onto the people who use or operate the agents. That distinction matters, because an agent recognising a restriction and a court enforcing it are two separate questions.
Not all anti-AI licences restrict development
The AI Use Restriction Addendum takes a different route. It adds conditions to an existing licence, targeting AI training and the use of the software inside AI-enabled products rather than the tools used to develop it.
| Activity | DT-HumanDev | AI Use Restriction Addendum |
|---|---|---|
| AI-assisted modifications | Restricted | Not inherently prohibited |
| AI training on licensed code | Not the primary restriction | Prohibited |
| Integration into AI-enabled products | Generally allowed | Restricted |
| Commercial use outside restrictions | Allowed | Allowed |
| AI-assisted security remediation | Specific exception | Depends on the use |
| OSI-approved open source | No | No |
Under the addendum, using Codex to modify a conventional application may be fine, while integrating the licensed library into an AI service could be prohibited even if every line was written by hand. The restriction explicitly reaches software that calls external LLM APIs, agent frameworks and RAG components, internal tools included. It also requires the addendum to travel with redistributed copies and terminates the licence automatically after a violation.
So the two licences address different problems. DT-HumanDev tries to control the development method, while the addendum restricts particular uses of the software. Neither qualifies as open source under the Open Source Definition, because public source code is not enough. Open source also requires freedom to modify, redistribute and use the software for any purpose, so both are more accurately described as source-available licences with additional restrictions.
Whether these restrictions can actually work
The difficulty with DT-HumanDev is that AI assistance is becoming part of almost every step of development. Coding agents analyse repositories, review code, find bugs, run tests and propose architectural changes. A developer can write every line by hand while relying on AI to understand the implementation and decide what to change, and under a licence that restricts project-specific AI assistance even that workflow may become a problem.
Enforcement is another issue. There is no reliable general method for telling human-written code from AI-generated code, and similar implementations are common anyway, because software follows established algorithms, APIs and conventions. Proving a violation would probably require development logs, repository history, contractual audit rights or other evidence about the process rather than the resulting code.
The legal situation is uncertain as well. Copyright protects the expression of software, not every idea or function it implements, and an independently developed implementation does not become a derivative work just because it does the same thing. A licence can impose contractual obligations beyond copyright, but whether they hold depends on the wording, the jurisdiction and the relationship between the parties. None of these experimental restrictions has been tested in court yet.
The economic consequences will probably arrive earlier than any ruling. Companies already run processes for dependency scanning, licence compliance and intellectual property risk. Restrictions on AI-assisted development mean more policies, possibly separate workflows, and controls that stop agents from touching certain repositories. Even when the legal validity of a clause is doubtful, managing the uncertainty has a cost.
Given two comparable libraries, one under MIT and one restricting AI-assisted development, an organisation that uses coding agents will likely pick the simpler option. That could reduce adoption and external contributions for the very projects whose maintainers are trying to protect their work.
The motivation is understandable. AI makes it much cheaper to reproduce functionality, maintain forks and build competing applications. But the underlying economic conflict existed long before generative AI, since permissive licences have always allowed commercial exploitation and proprietary derivatives. AI changes the cost of exercising those permissions, and restricting the development tools does not by itself fund open source maintenance.
It also helps not to mix up three different objectives. Preventing AI training, preventing AI-assisted development and preventing commercial appropriation need different approaches. Prohibiting Codex from modifying a repository does not stop a model from having been trained on its code, and prohibiting training does not stop agents from modifying it with capabilities learned elsewhere.
The opposite approach, licensing AI-generated code
In March 2026 the AI-MIT License 1.0 was submitted for review on the OSI mailing lists. Instead of prohibiting AI development, it tries to deal with copyright ownership when software is produced with different levels of human involvement.
| Code origin | Proposed treatment |
|---|---|
| Human-authored | Conventional copyright |
| AI-assisted with human creative contribution | Copyright for qualifying human contributions |
| Fully AI-generated without qualifying human authorship | No copyright claimed by the distributor |
The proposal was not approved, reviewers pushed back on both the name and the idea of a single project-wide authorship declaration, and it has since been reworked under a different name. It remains an experiment, but it addresses a problem that existing software licences were never designed for. Traditional licences assume that someone owns the copyright and can grant permissions to others, and with autonomously generated code that assumption becomes much less obvious.
In the United States copyright generally requires human authorship. AI-assisted works can qualify when there is enough human creative contribution, while purely machine-generated material may not be protected at all, and other jurisdictions may apply different rules. Attaching MIT or GPL to fully AI-generated code does not create copyright ownership. A licence can express the distributor's intentions, but it cannot create rights that do not exist, which raises questions about provenance, downstream licensing and the status of AI-generated contributions. The AI-MIT proposal tries to answer them without restricting AI-assisted development.
When the IDE needs to understand licences
There is another consequence for AI-native development environments. Licence compliance has traditionally been managed by developers and organisations. Tools identify licences and report conflicts, but an IDE does not normally decide whether someone is allowed to modify a repository.
Coding agents change this relationship, because they can clone repositories, inspect source code, plan changes, run commands and commit on their own. If a repository prohibits AI-assisted development, the agent may carry out exactly the operation the licence tries to restrict. Legally the responsibility stays with the people and organisations involved, but technically the agent is the one making the modification.
An AI-native IDE could check licences before allowing agents to modify files and apply policies configured by the organisation, which would extend software composition analysis into agent execution policies. The implementation needs some care. One licence might allow AI-assisted analysis while prohibiting modifications, another might restrict training but permit development, and others contain ambiguous clauses whose enforceability nobody knows.
There is also a security issue. A LICENSE file is repository content and has to be treated as untrusted input. Instructions embedded in it should never automatically become commands for an agent, otherwise licence text turns into one more prompt injection vector. A separate policy component could interpret known restrictions and decide whether to warn, block or ask for authorisation, without treating the licence text as executable instructions.
Whether this extra complexity becomes necessary depends on how widely these licences are adopted. For now they remain experimental, but they introduce a problem that agentic development environments may eventually have to handle.
Where this leaves open source
Open source has always benefited from better development tools. Compilers, code generators, static analysers, refactoring engines and automated testing have steadily reduced the manual effort needed to produce software. AI is a much larger step in automation, especially with agents that can handle complex development tasks, and trying to preserve human involvement by banning particular tools creates a boundary that will be harder and harder to maintain.
The economic concerns behind these licences are real. AI lowers the cost of producing software, including derivatives and competing implementations, while maintaining reliable software, managing dependencies, fixing vulnerabilities and supporting users still require people and money. That imbalance may grow as coding agents improve, since companies may find it cheaper to maintain their own forks or replace dependencies than to contribute upstream, which makes open source maintenance even harder to sustain.
I am not convinced that restricting AI-assisted development addresses this problem effectively. It adds compliance costs, raises unresolved legal questions and may discourage adoption without giving maintainers much real protection. For now these licences are experiments, and their relevance will depend on whether developers adopt them, whether organisations accept their restrictions and, eventually, how courts read them.
They already expose a contradiction, though. We spent decades building a software ecosystem around the freedom to study, modify and redistribute code. Now that AI makes those activities dramatically cheaper, some developers are trying to restrict the tools people use to exercise that freedom.