Catalogue No. 001By situationVerified 2026-10-10Licensing open

Our agency has old code.Can we sell it?

Our agency has old code: can we sell it? License the internal tools and products you own to AI labs, keep the code and get paid each time.

Free to join. No public listing. A real estimate in minutes once Git is connected.

Lot 003Agency ownedSpecimen

Agency CRM, retired 2024

120,340 lines. Six years of in-house client management for a 40-person agency, replaced by an off-the-shelf tool.

Languages
PHP, MySQL
Lines of code
120,340
Commits
8,775
Source tokens
1.5M
History tokens
70.0M
Last commit
Nov 2024
Source 1.5M · 2.1%History 70.0M · 97.9%
Commits per quarterActivity stopped Q4 2024
Per license, USD1.5M × $100 + 70.0M × $40≈$2,950recurring
Illustrative lotNot a live listing
Quick answer

Yes, if the agency holds the rights. Internal tools and products built on your own account usually qualify, while client work usually belongs to the client unless the contract says otherwise. You sell a license and keep the code, so the same repo can earn again, and a typical repo earns about $1,000 to $1,500 per license.

Applies to code you own Currency USD Verified 2026-10-10
§ 01Who this is for

Can our agency license old client code?

Sometimes. It depends on who owns it, and that is decided by your contracts. Most agency agreements assign the work to the client once it is paid for. If yours do, that code is not yours to license, however long it has sat on your servers. Some contracts keep the IP with the agency and give the client a license instead. Code built under those terms can qualify.

The easier wins are usually closer to home. Agencies build a lot of software for themselves: the CRM that ran the studio for six years, the deploy scripts, the reporting dashboards, the starter kit every project began from, the product you built between client jobs and then shelved. That code is yours, and it is exactly what AI labs want, because it was written by working developers under real deadlines.

If you are not sure who owns a repo, check the contract before you put it forward. You only submit code you hold the rights to, and you decide repo by repo.

Who owns code we built for a client?

Look for the IP or ownership clause in the contract or statement of work. If it assigns all work product to the client on payment, the client owns it. If it says the agency keeps ownership and grants the client a license, the agency can license it too. Many agencies also keep the rights to their own reusable components, even inside client projects, through a carve-out for pre-existing or general-purpose code. Where a repo mixes both, only the parts you own count, and it is usually simpler to leave that repo out. When in doubt, ask the client or a lawyer before you submit.

Usually qualifies
  • Internal tools: CRMs, dashboards, deploy and build scripts
  • Products the agency built and owns, live or shelved
  • Starter kits, component libraries and in-house frameworks
  • R&D, prototypes and pitch builds made on your own time
  • Client work where the contract leaves the IP with you
Stays out
  • Client work the client owns under the contract
  • Code covered by an agreement that bars reuse
  • Customer data and production databases
  • Third-party code, which is excluded from what is licensed
§ 02What it is worth

How much is old agency code worth?

Agency code is often worth more than owners expect, because agencies keep everything. A studio that has been running for ten years can have dozens of repos with long, busy histories. Value per license is set by tokens: source code pays $100 per million tokens and git history pays $40 per million. History usually carries most of the value, and agency repos tend to have a lot of it.

A typical repo earns about $1,000 to $1,500 per license. Ten typical repos come to about $10,000 to $15,000 if each is licensed once. Licenses are non-exclusive, so the same repos can be licensed again and you are paid each time. The specimen lot above, a retired agency CRM, shows the working for one deep repo.

Commercial success does not matter. A tool that only ever served your own team counts the same as a product with paying users. What matters is that the code is real and the agency holds the rights. For the full method, read how much is my code worth, and for why labs pay at all, read sell code for AI training.

Per-repo ballpark by depth, per license, USD
DepthLooks likePer repo, per license10 reposLog scale, $100 to $10k
LightShort history, small repo$400 to $700$4,000 to $7,000
TypicalA real product, a few years of commits$1,000 to $1,500$10,000 to $15,000
DeepLong-lived, deep history, tests$2,500 to $4,000$25,000 to $40,000

Illustrative, conservative · What you take home, per license · Verified 2026-10-10

Rate A · Source code

$100/M

per million tokens

Rate B · Git history

$40/M

per million tokens

Value per license = source tokens × $100/M + history tokens × $40/M

Rates can change on 30 days' notice, never retroactively · Paid within 15 days of the buyer paying

Illustrative, conservative · Last verified 2026-10-10

Find out what your repos earn.

Get a valuation

Free to join. No public listing. A real estimate in minutes once Git is connected.

§ 03The IP question

“But this is proprietary code.”

And it is yours, which is exactly what makes it licensable. You decide what is shared: only the repos you choose, only code you hold the rights to. Secrets, customer data and third-party code stay out. Within the repos you submit, secrets and personal data are stripped from the review copy before anything reaches a buyer.

  1. Fact 01You pick what is shared.
  2. Fact 02You keep full ownership.
  3. Fact 03Secrets are stripped for you.
§ 04What to do next

What do I do next?

No clean-up needed. Submit the repos as they are. Secrets and personal data are stripped from the review copy for you.

  1. Step one

    Request access

    Say who you are. You get set up and sent everything you need. Once you connect Git, you see a real per-repo estimate.

    Time A few minutes
  2. Step two

    Sign and connect

    Read the agreement and sign once. Give read-only access to GitHub, GitLab or Bitbucket and pick only the repos you want to license. Submit them as they are.

    Access Read-only
  3. Step three

    Get paid, repeatedly

    Your code is scrubbed and graded on the review copy, then taken to buyers in batches. Each time a license closes and the buyer pays, you are paid within 15 days.

    Payout Within 15 days
§ 05Questions

What else do owners ask?

Q.01Do I keep ownership of my code?

Yes. You grant a non-exclusive license and keep ownership. You can keep using, changing and shipping it.

Q.04Do I need to own the IP?

Yes. Only submit code you hold the rights to. Client work usually belongs to the client unless your contract says otherwise.

Q.09What am I responsible for?

Holding the rights to what you submit, and keeping third-party code and customer data out of the repos you select.

Q.12What if the code uses open source libraries?

That is fine. Third-party code is excluded from what is licensed. Your own code and history are what count.

§ 07  ClosingCatalogue No. 001Licensing open

What is your code worth?

Request access. Connect Git. See a real per-repo estimate in minutes, then decide.

Get a valuation

Free to join. Nothing upfront. You can withdraw a codebase at any time.

Get a valuation