Rightshold Sign up

Can I train an AI model on code from GitHub?

Short answer: MIT code: Needs review. GPL-3.0 code: Needs review.

Each repository's license decides; training is not named in most code licenses.

MIT code: Needs review

License: MIT License (MIT, curated)

Duties: attribution, license_notice

GPL-3.0 code: Needs review

License: GNU General Public License v3.0 (GPL-3.0-only, curated)

Duties: attribution, license_notice, state_changes, share_alike, source_disclosure

Context

Sources

Check it yourself (free, no key)

{
  "tool": "check_license",
  "arguments": {
    "license": "MIT",
    "intended_use": {
      "model_training": true
    }
  }
}

Computed from Rightshold's license profiles; not legal advice. Updated 2026-10-19. JSON · Markdown