You've built an AI tool. It works. Users like it. But you're ready to move on—or you need the capital for your next project. Before listing it for sale, you need to prepare it for handover. A messy codebase, missing credentials, and unclear setup instructions will tank the deal or tank your reputation. Here's what to do.
1. Audit and Clean Your Codebase
The first thing a serious buyer will do is review your code. Make their job easy—and make your tool worth more.
- Remove personal secrets and API keys. Search your entire codebase for hardcoded credentials, auth tokens, private URLs, or environment variables. Replace them with placeholder comments or configuration files the buyer will fill in. Use a tool like
git-secretsordetect-secretsto scan automatically. - Delete commented-out dead code. It signals laziness and makes maintenance harder for the buyer. If it's not active, remove it.
- Check dependencies and licenses. List all libraries, packages, and third-party services your tool depends on. Make sure their licenses are compatible with a sale. Flag any GPL dependencies that might require source code disclosure by the buyer.
- Verify it runs from scratch. Clone your repo into a fresh directory (or fresh virtual environment). Follow your own setup instructions. Does it work? If you get stuck, the buyer will too.
- Remove sensitive logs and test data. Strip out user data, email addresses, payment info, or proprietary datasets from your repo history or bundled test files.
2. Create Clear, Complete Documentation
Documentation is your handover MVP. Without it, the buyer can't deploy, maintain, or improve the tool. They'll either ask for endless support (which you want to avoid) or walk away.
- Write a README that covers: What the tool does in one sentence. Key features. Tech stack and version requirements. Prerequisites (Python 3.10+, Node 18, etc.). Step-by-step installation and first-run instructions. Where to find config files and how to set them. Link to full docs if they exist.
- Document all integrations. If your tool connects to OpenAI, Stripe, a database, or external APIs, explain: which credentials are needed, where to get them, how to set them in the config, and what happens if they're wrong or expired.
- Create a deployment guide. Show the buyer how to run this on their own infrastructure. Include: server requirements, database setup, environment variables, SSL/HTTPS setup, backup procedures, and monitoring recommendations.
- Include a troubleshooting section. List the most common errors and how to fix them. This saves the buyer time and reduces your post-sale support burden.
- Video walkthrough (optional but valuable). A 5-10 minute screen recording of you deploying and using the tool from scratch builds confidence and justifies a higher price.
3. Organize Files, Assets, and Access
The buyer needs everything to take ownership cleanly.
- Prepare a handover package. Create a folder containing: source code (clean Git repo or ZIP), all documentation, API keys/credentials template, database schema or migration scripts, any design assets (logos, screenshots, UI components), license file, and a changelog showing what's been built and any known issues.
- List all third-party accounts and services. If your tool uses a paid OpenAI API key, Supabase database, or cloud hosting, create a document with: service name, current plan/cost, login instructions (without passwords), and which assets depend on it. The buyer will want to transfer or migrate these.
- Provide user/admin credentials. If there's a demo account, test admin panel, or staging environment, include a separate password-protected document with login details. Never put this in your public repo.
- Export analytics and metrics. If you've been tracking usage, revenue, or growth, share the data. This helps the buyer understand the tool's actual value and plan next steps.
4. Verify Legality and Licensing
Unclear ownership or hidden liabilities will kill a deal—or create legal headaches later.
- Confirm you own the code. If you built this on a job, freelance project, or with a co-founder, make sure there are no claims to ownership. Get written confirmation or transfer agreements if needed.
- Check for open-source obligations. If you've used MIT, Apache, or GPL libraries, ensure your tool complies (e.g., GPL requires you to open-source derivative work). Disclose this to the buyer.
- Document data privacy and compliance. Does your tool collect user data? Process payments? If so, note: which regulations apply (GDPR, CCPA, etc.), what data retention policies are in place, and whether the buyer needs to update terms of service.
- Include a bill of sale template. This clarifies what the buyer is purchasing (source code, customer list, domain, trademarks, etc.) and what they're not (your personal brand, other projects, or ongoing support beyond the agreed period).
Conclusion
A clean handover takes 10-20 hours of work up front. It's worth every minute. Buyers will pay more for a tool they can immediately deploy, understand, and improve. You'll reduce post-sale friction, protect your reputation, and actually be able to walk away and build the next thing.
Start with the checklist above. Run through each section. If a buyer later discovers missing API docs or hidden dependencies, that's a refund request—and a bad review. When you're ready to list, bring your cleaned-up tool to clAIssified, where you'll keep 92% of the sale price and escrow handles the secure handover.