Selling your app's codebase after the product shuts down
Yes, you can still sell it. AI companies pay for repositories, with their commits, pull requests and review threads, as material to learn from, and MIT Technology Review reports that one shut-down crypto startup sold its code base alone for about $25,000. Replay and Grepped, which we work with, both take code along with the rest of a company's records.1,2,3
Who buys
Who buys code from a shut-down startup
Replay, which we work with, licenses a company's code and commits together with its decision threads, support history and internal docs. It asks for 20+ full-time staff and English-language operations, and its valuation form asks for your peak headcount, years in operation and whether you keep your own codebase, so a team that has since shrunk can still ask.2,4
Grepped, which we work with, takes codebases along with messages, documents and tickets, from GitHub, Jira and the other systems you choose. It works through read-only access to only the sources you approve and states no headcount minimum, so a small engineering team is not ruled out.3,5,6
SimpleClosure sells code as part of a shutdown and says its buyers are AI labs and other technology companies, and Mercor lists GitHub among the 100+ tools it takes. Code usually sells best with the rest of the record, the tickets and chat that explain why each change was made, so offer them together.7,8
The quiz asks what systems you still have and how big the team was, then introduces you to the buyers we work with that take code from a company like yours.
How much is out there
A market measured in repositories and commits
Plenty of founders are already doing this. SimpleClosure says companies on its AssetHub have offered nearly 500M lines of code across 3,000 repositories, which is what has been offered, not what has sold.9
You do not need a decade of history either. The crypto startup in MIT Technology Review's report had run for about two and a half years, and its code base still found a buyer.10,1
| Fact | Value and source |
|---|---|
| A closed crypto startup's data | About $25,000 for its code base, with about $15,000 for workspace data pending |
| Code offered on AssetHub | Nearly 500M lines of code across 3,000 repositories, with 1.7M commits, 200,000 pull requests and 3,200 contributors |
| Code that drops out | Roughly 37% of raw code disappeared after removing third-party and generated code and internal duplication |
| What sets the value | Value depends on scale, quality, differentiation and scarcity; more employees and more years operating raise it, and testing and documentation can matter more than line count |
What counts
Not every line in the repository counts
Buyers only pay for code your team wrote. SimpleClosure says roughly 37% of the raw code it looked at disappeared once third-party libraries, generated files and copies were stripped out, so expect a buyer's count to come in well below the number on your dashboard.11
Size is not everything. SimpleClosure says tests and documentation can matter more than line count, and more staff and more years raise the value, so a modest repository with tests and real review threads can hold its own against a bigger one.12
Preparation
Before anyone sees a repository
Search the code and its full history for secrets, such as API keys, passwords and tokens, and revoke anything that still works. List the open-source pieces and their licenses, and note which repositories hold work done for one customer or customer data in test files.
SimpleClosure says it strips sensitive information and credentials from every dataset before it is licensed, and Grepped says it deletes the originals after processing. Ask any buyer who does the cleaning and whether you see the result first, and keep the full commit history if you can.13,5
FAQ
Questions, answered with sources
SimpleClosure says roughly 37% of raw code disappeared after removing third-party and generated code and internal duplication.11
SimpleClosure points to scale, quality, differentiation and scarcity. More employees and more years operating raise value, and testing and documentation can matter more than line count.12
SimpleClosure says nearly 500M lines across 3,000 repositories, with 1.7M commits, 200,000 pull requests and 3,200 contributors.9
Every business is different, so this one is best talked through with the buyer you're working with. Their team goes over it with you before anything is signed.
Before you sign
Questions to talk through with your buyer
Every business is different, so these are best talked through with the buyer you're working with. Their team goes over them with you before anything is signed.
Questions for this kind of business
- Do the open-source licenses in our dependencies affect licensing the repository as training data?
- Did any customer agreement give that customer rights in code we wrote for it?
- Were every contributor's rights in the code assigned to the company?
- Who owns this data: the company, an estate, or someone else?
- Do customer, supplier or platform contracts, NDAs or API terms restrict this?
Questions for any buyer
- Is the license exclusive, and for how long?
- Can you sublicense the data, and to whom?
- Which AI labs will receive it, and will you tell us?
- How long do you keep it, and how is it deleted?
- What is your liability cap, and who indemnifies whom?
- Will the contract ban re-identification of people in the data?
- Who removes personal data, by what method, and do we approve it first?