Can you license your company’s source code for AI training?

Yes, if your company can grant the required rights. A private repository may be licensed as code, engineering history or runnable tasks. Keep ownership separate from permission to train, run and share. Start with a description, not a repository upload.

Can you license your company’s source code for AI training?

Yes, if your company holds the relevant rights and the proposed use fits its contracts and confidentiality obligations. You can negotiate a license rather than sell ownership of the software. Define which repositories and records are included, what the buyer may do and who else may receive them. A private repository is not automatically valuable or ready to license.

Source files are only part of the possible asset. Issues, commits, review discussions, tests and debugging outcomes can show how a team solved problems. Some buyers want an archive to process themselves. Others need tasks that an agent can attempt and a separate system can score. These are different deliveries, with different preparation costs. Neither format guarantees an offer.

Mercor’s public company-data page lists GitHub repositories, commits, pull requests and issues. That establishes a publicly advertised acquisition route, not a promise that Mercor or any lab wants your code. The research examples below explain possible uses. They are not evidence of a price for private repositories.

What can sit alongside the source files?

Describe the engineering record, not just its size
AssetWhat it can showWhat to check
Repository snapshotsCode structure and domain-specific implementationsVersion, provenance, duplicate and generated files
Commits and linked issuesThe problem, change and sequence of attemptsCorrect links, missing context and contributor rights
Pull requests and reviewsAlternatives considered and reasons for a changeThird-party comments and confidential discussions
Tests and CI resultsExpected behavior and recorded failures or passesWhether tests actually cover the requirement
Debugging and incident recordsObserved failures, attempted fixes and outcomesCustomer information, security details and log retention
Build and runtime materialHow a buyer could reproduce and score a taskDependency versions, execution rights and external services

A green CI run is a recorded result, not proof that every behavior is correct. A merged change may include several unrelated fixes. Preserve the connection between a task, its starting revision, the proposed change and the relevant tests. Count usable linked records separately from raw commits.

How code can support pretraining, SFT, RL and evaluation

  • Pretraining. A lab trains on code and related text to learn patterns. Hugging Face’s StarCoder2 explainer describes repository-grouped training data in The Stack v2. A runnable environment is not required for every use of source text.
  • Supervised fine-tuning, or SFT. A model learns from examples of an input and a desired response, such as a bug report, relevant code and a verified fix. SWE-smith also describes training on successful agent trajectories. A commit records a change, but does not by itself reveal every step the developer took.
  • Reinforcement learning, or RL. A model tries a task and receives a reward. Tests can supply a signal when the environment runs reliably. Not all software RL uses execution rewards. SWE-RL used a rule-based patch-similarity reward, which differs from proving that a patch works.
  • Evaluation. A buyer measures an agent on held-back tasks. SWE-bench applies proposed patches and runs tests. Keep answers and grading material separate from what the tested agent sees. Agree whether the buyer may later use evaluation material for training.

These labels describe uses, not four automatic revenue streams. The same records may support several uses, but a held-back evaluation loses its purpose if the answer has already entered training. Ask the buyer which use it needs before preparing the package.

Archive-only license or scored task package?

Two possible deliveries, neither automatically better
QuestionArchive-only deliveryScored task package
What changes hands?An agreed code snapshot or history and selected supporting recordsA starting revision, task statement, environment, tests, reference fix and scoring rules
Who prepares tasks?Usually the buyer, if it needs themThe owner or an agreed preparation team
Main advantageLess task-building work before interest is establishedA buyer can inspect reproducibility and grading directly
Main drawbackThe buyer must clean, link and validate the archiveBuild repair, test review and environment maintenance add work
What must acceptance specify?Included records, completeness, exclusions and usable formatsRepeatable setup, valid tests, runtime limits and handling of setup failures

OpenAI’s SWE-bench Verified explainer identifies underspecified issues, overly narrow tests and unreliable environments as problems in software evaluation. Anthropic’s account also describes grading and setup failures. A scored package should distinguish a wrong solution from an environment that never worked. Passing tests should mean the stated task was met, not that the patch matched one developer’s exact wording.

In a fictional example, a warehouse software company licenses a retired scheduling module with selected issues and review history. One buyer wants the archive for its own processing. Another asks for isolated bug-fix tasks with synthetic inputs and repeatable tests. The second package needs more engineering and broader running permissions. Its higher preparation cost does not establish a higher sale price. Public benchmark scores do not predict either buyer’s willingness to pay.

Who can grant rights to employee, contractor and third-party code?

Check the chain of rights for each included component. A company account, repository administrator role or paid invoice does not settle copyright. Review employee terms, founder contributions, contractor assignments, agency agreements and acquired assets. Issues, documentation and review comments can have a different rights history from the program itself.

For Germany, section 69b of the Copyright Act gives the employer the exclusive exercise of economic rights in a computer program created by an employee in the course of duties or under instructions, unless otherwise agreed. Do not apply that rule automatically to freelance work or every document in the repository. Other jurisdictions have their own rules. Counsel should check missing assignments and the intended grant.

Inventory copied snippets, vendored libraries, open-source dependencies, SDKs, generated code and customer-owned modules. GitHub’s licensing guide explains that making code public does not by itself turn it into open source. An open-source license may permit certain uses while imposing conditions. Your company cannot replace those conditions with a promise that it owns everything.

Separate your license grant from third-party licenses. Decide what to exclude, what the buyer must obtain separately and what notices or obligations travel with permitted material. Do not assume every dependency must be shipped, or that every permissive dependency is automatically compatible with a buyer’s proposed terms.

This overview is general information, not legal advice on a particular repository or transaction.

Copyright, confidentiality and security are separate checks

Copyright answers who may authorize uses of protected code. Confidentiality answers what may be disclosed and under which restrictions. A company can hold software rights yet owe a customer a duty not to reveal its workflow, schema or security design. An NDA with a buyer does not override that customer contract or supply missing rights.

For German trade secrets, section 2 of the Trade Secrets Act includes reasonable secrecy measures in the definition. Decide which technical details must remain protected, who can access them and whether the intended training use fits that decision. Keeping ownership does not guarantee that a model cannot reproduce code or expose useful details.

Review the release copy across branches, history, attachments, CI artifacts, fixtures and logs. Remove credentials, private keys, real customer records and excluded security information. GitHub’s sensitive-data guide explains why deleting a file from the latest revision does not remove earlier copies. Do not give a buyer production access to make a test run.

Names and email addresses in commits are not the only personal information. Tickets and logs can identify people through context. Consistent pseudonyms can preserve links, but they do not alone make records anonymous. Check privacy separately, then rerun the cleaned task to confirm that redaction has not broken it.

Can the buyer run the tests and reproduce the environment?

Permission to read code is not a complete execution agreement. Specify rights to copy, build, modify and run the agreed software and tests. Include the intended training, task-generation and evaluation uses. German Copyright Act section 69c expressly addresses reproduction and adaptation, including running where it requires reproduction. The exact permission needed depends on the material, applicable law and existing licenses.

List dependency versions, container base images, tools, test fixtures and any licensed databases or SDKs. A working Docker image is not proof that you may redistribute everything inside it. Replace production services with approved synthetic fixtures or local substitutes where feasible. State any remaining network access, hardware requirements and runtime limits.

SWE-bench’s evaluation guide uses containerized environments and distinguishes resolved tasks from errors. For a private package, agree how the buyer verifies the original failure, the reference fix and regression tests. An offline task is easier to isolate, but some software cannot be reproduced faithfully without systems you cannot license. Describe that limit rather than promising a runnable package.

What should the license and payment terms cover?

  • Name the exact release and exclusions. Separate access for diligence from permission to train or run tasks.
  • Specify exclusivity, duration, affiliates, contractors, sublicensing and any right to distribute source or task environments.
  • Define permitted derivatives, models and outputs. State which rights survive termination and what deletion does and does not cover.
  • Agree confidentiality, security controls, incident handling and whether the buyer may identify the company publicly.
  • Set acceptance criteria, payment dates, rejection and cure procedures, preparation responsibilities and limits on warranties and liability.

Read the grant, not just a label such as non-exclusive. micro1’s publicly posted November 23, 2026 Master Terms illustrate a broad perpetual, sublicensable grant, alongside retained owner rights and provisions about derivatives and deletion. Its order form can change terms. That is one provider’s contract, not a market standard or a Kepler agreement.

Start with a description, not an upload

For an initial assessment, describe the software’s purpose, languages, approximate size, years of history and whether issues link to fixes and tests. State whether the company still uses the software, which components are off limits and whether someone can reproduce builds. Note rights gaps without sending the underlying agreements.

Do not submit source code, secrets, repository access, customer records or production credentials upfront. If interest develops, agree recipients, confidentiality and a limited review scope before preparing any sample. Clear the sample for that purpose too. Expensive task packaging can wait until a buyer has explained what it needs.

Kepler brokers the license. The lab pays the owner directly. Kepler’s agreed percentage fee is due only after the owner is paid, with no upfront fee. We help review and anonymize at our cost. Buyer interest, price and timing remain uncertain.

Sources

Frequently asked questions

Can we keep using the software after licensing it?
Yes, if the agreement preserves that use. A license need not transfer ownership. Check exclusivity, continuing development, sublicensing and restrictions on future transactions rather than relying on a non-exclusive label alone.
Do we need the full commit history?
Not for every buyer or use. History can connect problems to fixes, but a source snapshot can also support training. Agree the scope before exporting every branch, attachment and historical record.
Can we include open-source dependencies?
Only under the applicable terms. Separate third-party material from your own grant, check notices and other obligations, and decide what the buyer should obtain separately. Repository access does not make all included code yours.
Are passing tests enough to sell runnable tasks?
No. Check that tasks are clear, tests fit the requirements and environments reproduce reliably. You also need the rights to deliver and run the software, dependencies and fixtures. Setup failures must not be scored as failed solutions.
Should we upload code for a first valuation?
No. Start with a non-confidential description of the software, history, tests and exclusions. Agree recipients, confidentiality, rights and a limited scope before preparing any sample. No price or buyer interest is guaranteed.

Describe the software, history, linked tests and known exclusions for an initial assessment. Please do not send code, files, secrets or repository access.

Get a free assessment