Wind-downs and transitions
Can you sell source code from a company that shut down?
By SourceX Editorial · Reviewed by Noah Loul ·
Short answer
Yes, a shut-down company can usually sell or license its source code, provided the legal entity can still sign and four rights checks pass: open-source license obligations, customer-owned code, source code escrow, and signed IP assignments from employees and contractors. For AI developers, the commit history, code reviews and linked tickets often matter more than the final code.
Key takeaways
- The company, not its founders, owns the code, so a sale or license needs someone with authority to act for the entity.
- Open-source components keep their own licenses after any sale, so a dependency and vendored-code review comes first.
- Code written for a customer under an IP-assigning statement of work usually belongs to that customer and must be carved out.
- Pull request reviews and issue discussions live on the hosting platform, not in the git repository, so a plain clone loses them.
- A non-exclusive license of the engineering history lets the company keep ownership and can sit alongside a product sale if sequenced.
Who can sell code after the company has closed?#
The legal entity that employed the engineers owns the source code, so only someone authorized to act for that entity can sell or license it. Founders who wrote much of the code do not own it personally if they signed invention assignment agreements, which venture-backed startups commonly require.
Closing the business does not end the entity at once. A company that has stopped operating can usually still sign contracts to wind up its affairs, including disposing of assets, until dissolution is complete and in some states for a period after. The board, a wind-down officer, an assignee for the benefit of creditors or a bankruptcy trustee may hold that authority.
Check one more party early: the lender. Venture debt and bank facilities often take a security interest in all assets, including intellectual property. A sale or license of code may need the lender's consent or a lien release, and a buyer's counsel will usually ask to see it.
The rights checklist before any code sale or license#
A source code rights checklist covers the four rights checks plus a secrets scan, and each item can shrink or block what you are able to transfer. Most can be answered from contracts and repository metadata, without anyone opening the code itself.
Contractor gaps are a frequent surprise. An early freelancer who built the first version on a handshake may still own that code unless a written assignment exists. A confirmatory assignment signed now is often simple, but it needs a contractor you can still reach.
| Check | What to look for | Typical outcome |
|---|---|---|
| Open-source licenses | Copyleft components such as GPL or AGPL code, vendored libraries, missing attribution notices | Third-party code stays under its own license; company-written code is listed separately |
| Customer-owned code | Statements of work that assign custom development to the customer, client-specific forks and integrations | Those repositories or folders are excluded |
| Source code escrow | Escrow agreements with enterprise customers and their release conditions, which often include insolvency | Counsel confirms what each beneficiary may receive and whether it limits a sale |
| Employee and contractor IP assignment | Signed invention assignments, offshore agency contracts, code written before incorporation | Gaps are closed with confirmatory assignments or the affected code is excluded |
| Secrets and credentials | API keys, passwords and tokens committed anywhere in the history | Secrets are revoked and scrubbed before any copy leaves company control |
How open source licenses affect a code sale#
Open source licenses travel with the code they cover, so a buyer receives open-source components on the same terms the company had, not as owned property. A sale transfers the company's own code and whatever rights it held in third-party code, nothing more.
Permissive licenses such as MIT and Apache 2.0 mainly require keeping notices. Copyleft licenses such as the GPL family can require that derivative works be shared under the same license when they are distributed, and the AGPL extends similar obligations to modified versions that users reach over a network. A buyer folding your code into its product will ask which services contain copyleft code and how it was linked.
For an AI training license the question shifts. Developers want to know which files the company wrote and which it imported, so a software composition report or a dependency manifest per repository helps. Vendored third-party folders are often excluded outright to keep the package clean.
Selling the codebase vs licensing the engineering history#
Selling the codebase transfers ownership of the product to one buyer, while licensing the engineering history grants AI developers limited use of the record of how the software was built. The two paths attract different counterparties and can sometimes be combined.
Order matters. Once the code is sold outright, the company has no rights left to license unless the sale agreement reserves them, so decide before the asset purchase agreement is signed, not after.
AI developers usually care less about whether the product had customers and more about the trail of work: commit messages, pull request reviews with comments and revisions, issues linked to fixes, test results and incident write-ups. A product that failed in the market can still leave a well-documented engineering record.
A simple decision rule helps. If a product buyer exists and needs exclusive control of the code, sell the product and reserve a license right to the historical records. If no product buyer emerges, keep ownership and license the engineering history non-exclusively. If neither path clears the rights checks, preserve the paper trail and records for retention only.
| Option | Typical counterparty | What changes hands | What the company keeps |
|---|---|---|---|
| Asset sale of the code and product | A competitor, a former customer or a software holding company | Ownership of the code, trademarks and often customer contracts | Nothing in the code unless rights are reserved |
| Non-exclusive license of engineering history | AI developers training coding and agent models | A prepared copy of commits, reviews, issues and tests, under use limits | Ownership and the right to license again or sell later |
| Sale with a reserved license right | A product buyer that accepts a carve-out | Ownership to the buyer, with a retained right to license history | A defined right to license historical records |
What to preserve before GitHub and Jira are cancelled#
Preserving source code for a sale or license means more than cloning repositories, because much of the useful context lives in the hosting platform and the issue tracker. Run the exports while admin accounts and paid plans are still active.
Run a secret scan before any copy leaves your control. Open-source scanners such as Gitleaks and TruffleHog search git history for passwords, API keys and tokens, and TruffleHog says it can also check whether a found secret is still live. The Gitleaks maintainer announced in May 2026 that the tool is feature complete and will receive security patches only, so confirm which scanner your team relies on and revoke every live credential it finds.
- Full mirrors of every repository, including all branches, tags and archived repositories.
- Pull request and merge request data with review comments, approvals and linked commits, pulled through the platform's export tools or API.
- Issue tracker exports from Jira, Linear or GitHub Issues, with comments, status history and links to commits.
- CI and test history where it can be exported, plus release notes and changelogs.
- Architecture docs, runbooks and postmortems from Confluence, Notion or a docs repository.
- The paper trail: invention assignments, contractor contracts, customer statements of work, escrow agreements and any open-source scan reports.
Illustrative: a closed freight software company sorts its repositories#
Illustrative: a fictional freight-quoting software company that grew past fifty employees closes after a failed funding round. It holds a GitHub organization with several years of history, a Jira instance linked to most pull requests, and Sentry incident records. The former CTO, now the wind-down officer, wants to know whether anything can be sold.
The rights review finds three issues. One enterprise customer's integration was built under a statement of work that assigned the code to that customer, so its repository is excluded. An early contractor never signed an assignment and signs a confirmatory one. One internal service bundles AGPL code, which is documented and left out of any license package.
No buyer wants the product itself. The board instead approves a non-exclusive license of the engineering history: commits, reviewed pull requests and linked Jira issues, with customer names and employee identities replaced and secrets scrubbed. The company keeps ownership, and escrow beneficiaries receive the notices their agreements require.
How SourceX approaches code from closed companies#
SourceX treats a closed company's code and engineering history as one possible package within the SourceX five-step transaction: Supply, Rights, Preparation, Approval and Delivery. The first step is a metadata-only fit check covering the hosting platform, the tracker, years of history and repositories with known restrictions. No code is shared at that stage.
If the package proceeds, the rights findings go into a SourceX Evidence Packet covering provenance, licensing rights, permitted use, the privacy record and release authorization, so a buyer can see who approved the license and on what authority. Large repositories stay in the seller's own storage until delivery is approved, and the code is licensed, not sold.
Frequently asked questions
Can a founder sell the code personally after the company dissolves?
Usually not. If the founder signed an invention assignment agreement, the code belongs to the company, and remaining assets after dissolution are distributed under state law and the company's governing documents. A founder who wants the code should buy or license it from the entity in a documented transaction approved by whoever holds authority.
Do customers have to be told about a code sale?
Sometimes. Customer contracts may restrict assignment, may require notice of a change of control, and escrow agreements may give beneficiaries release rights on insolvency. A license of de-identified engineering history usually raises fewer customer issues than a sale of the product, but clauses that treat customer configurations or data as confidential still apply.
Should employee names be removed from commit history?
For an AI training license, usually yes. Commit authors, email addresses, reviewer names and mentions in comments are personal details. Replacing them with consistent pseudonyms keeps the structure of who reviewed what without identifying anyone. Names in code comments and configuration files need a separate pass.
Is code without its history worth licensing?
It can be, but it is usually a weaker package. A snapshot shows the end state of the software. The history shows how problems were found, discussed, fixed and tested, which is the kind of work record AI developers look for when training coding and agent models.
Can we sell the product and still license the history?
Yes, if the sale agreement allows it. Reserve a non-exclusive right to license historical engineering records before the asset purchase agreement is signed, and describe the records and restrictions clearly. Some product buyers will accept a carve-out that excludes customer-specific code and limits the reserved use to model training; others will refuse, so raise it early.
Sources
- Gitleaks is an MIT-licensed tool for detecting secrets such as passwords, API keys and tokens in git repositories, files and stdin; on May 21, 2026 its README was updated to state that Gitleaks is feature complete and future releases will be security patches only. Source
- TruffleHog is an AGPL-3.0 open-source secret scanner that, for each secret it can classify, can log in to confirm whether the secret is live, and scans sources including Git. Source
Related resources
- QuestionCan SaaS data be licensed?
- InsightCan roofing contractors sell their data to AI companies?
- InsightCan electrical contractors license their job records to AI companies?
- InsightCan mechanical contractors license project and service data to AI?
- SolutionData monetization: earning revenue from data you already have
- IndustryBPO & contact centers data
See if your company qualifies
A short company assessment. No data uploads are needed.