Codeberg Bans AI-Generated Code Projects on Its Platform
Codeberg, the nonprofit Git hosting platform for free and open-source projects, has enacted a new policy that prohibits repositories primarily composed of code generated by artificial intelligence tools. The restriction targets projects where generative AI like Claude or OpenAI Codex produces most of the code.

What the Policy Actually Prohibits

The ban is straightforward: projects where AI generates the majority of code cannot be hosted on Codeberg. This applies regardless of whether humans review or edit the output afterward. The policy was approved through Codeberg’s community governance process following a formal proposal.

Codeberg explicitly states: You must not share projects that mostly consist of code written by “generative AI” tools (including services such as Claude, OpenAI Codex). Such projects having an unclear copyright status and furthermore have little safeguards to ensure that they do not include harmful code.

Two Core Concerns Behind the Ban

Codeberg cites two major issues driving this decision:

  • Copyright uncertainty: The legal status of AI-generated code and its training data remains unresolved. No clear legal framework exists for who owns code produced by these tools.
  • Security risks: Generative AI lacks adequate safeguards against producing harmful or malicious code. Codeberg cannot verify whether generated code contains vulnerabilities or intentional exploits.

What Developers Can Still Do

Developers can still use AI for limited assistance in software development. The restriction applies only when AI tools generate the majority of a project’s code. Using AI to help write functions, debug issues, or generate documentation appears to fall outside the ban.

However, human review provides no exception. Codeberg makes clear that the origin of the code matters, not what happens to it afterward. A developer cannot upload AI-generated code, review it, tweak it, and then claim it as human-written.

How Codeberg Differs From GitHub

This policy puts Codeberg in direct opposition to GitHub, which increasingly integrates AI coding assistants like Copilot and autonomous agents into its platform. GitHub actively encourages AI-assisted development. Codeberg is taking the opposite approach.

Codeberg’s stance represents one of the clearest platform-wide restrictions against predominantly AI-generated software. It forces projects built primarily on AI output to seek hosting elsewhere, creating a defined boundary that other platforms have not drawn.

The Enforcement Question Remains Open

Codeberg has not detailed how it will identify or verify whether code is mostly AI-generated. This is a significant challenge. Detecting AI-written code, especially after human editing or refactoring, is unreliable at best. No tool can definitively prove whether a code snippet originated from Claude or a human developer who write similar patterns.

The platform may rely on user reports, manual review of flagged projects, or automated detection tools. But without clarity on enforcement mechanisms, the policy’s real-world impact remains uncertain. Will Codeberg proactively scan repositories? Respond only to complaints? The answer will determine whether this is a meaningful boundary or a symbolic gesture.

What This Signals

Codeberg’s ban represents a philosophical choice about what a free and open-source community should value. By restricting AI-generated code, Codeberg is prioritizing copyright clarity, code quality, and security over the convenience of rapid development. Whether other platforms follow remains to be seen.

Follow Hashlytics on Bluesky, LinkedIn, Telegram and X to Get Instant Updates