Closing your company
Selling a closed company's codebase
The product is dead and the code will never run again, so it looks worthless. That is a mistake.
Repositories, including commits, pull requests and review discussions, are something AI companies pay for as training material.
In this guide
01
How much code is on the market
SimpleClosure says companies listing on AssetHub have put up close to 500M lines of code in 3,000 repositories. Those are listings, not completed sales.
Ten years of history is not required. The crypto startup MIT Technology Review described lasted roughly two and a half years and still received about $25,000 for its codebase.
02
Not every line counts
Only code your own team wrote counts. In SimpleClosure's experience, roughly 37% of raw code vanished after removing third-party libraries, generated files and duplicates. A buyer's tally will likely be lower than what your dashboard shows.
Bigger is not automatically better. Tests and documentation may count for more than raw line totals, and genuine code review discussions raise the value.
03
Who buys code from closing companies
- [Grepped](/sell-your-data/buyers/grepped): takes codebases with messages, documents and tickets, through read-only access to sources you approve. No stated headcount minimum.
- [SimpleClosure](/sell-your-data/buyers/simpleclosure): as part of shutting a company down, it sells the code to AI labs and other tech firms.
- [Mercor](/sell-your-data/buyers/mercor): lists GitHub among the tools it takes.
Code usually sells best with the tickets and chat that explain why it was written.
04
Preparing the repository
- Keep the GitHub or GitLab organization paid and intact
- Remove secrets, keys and credentials, or ask the buyer how they handle them
- Check licenses on any third-party or client-owned code
- Confirm the company, not a contractor or client, owns the code
- Note years of history, number of contributors and test coverage
FAQ
Questions, answered
What is a dead startup's code worth?
Reported examples start around $25,000 for a small startup. Most wind-down deals, code and data together, run $10K to $100K.
Do buyers pay for open-source libraries in my repo?
No. They count code your team wrote. About 37% of raw code dropped out in SimpleClosure's analysis.
Should code be sold with Slack and tickets?
It usually sells better that way, since the discussion explains the code.
Find the buyers that fit your company
Answer a few questions about your size, tools and history. We show which buyers want a company like yours. Free, no files.
Keep reading
Sources
Every number on this page links back to one of these.
- 1SimpleClosure: what your startup's assets are worthsimpleclosure.com
- 2SimpleClosure: AssetHubsimpleclosure.com
- 3MIT Technology Review: AI labs are buying data from dead startups (13 Oct 2026)technologyreview.com
- 4Greppedgrepped.ai
- 5Grepped: for businessesgrepped.ai
- 6Grepped: securitygrepped.ai
- 7Mercor: data program for companiesmercor.com
Spot something wrong? See our corrections policy. Some buyers pay us a referral fee. How we make money.