Data licensing for US companies with 20+ employeesoffer@getdataoffer.com

Agent traces

Is it legal to sell your AI chat history?

The issues to consider before selling coding-agent or AI chat history, including employer ownership, client contracts, tool terms of service and third-party data.

A quiet law library with a green banker's lamp and closed folders on a walnut table

This guide is general information, not legal advice. The rules depend on where you live, your contracts and the specific tools you use. If you're unsure about your situation, talk to a lawyer.

Selling your AI chat history, and coding-agent sessions in particular, raises a handful of questions that are worth working through before you share anything. Most of them come down to one idea: you can only license what's yours to license. This guide sets out the issues to consider. It doesn't tell you what the answer is in your case.

The core question: whose work is it?

A coding-agent session contains your prompts, the model's output, and often code and data from the project you were working on. Each of those can belong to different people.

  • Your own words in prompts are generally yours, subject to any agreements you've signed.
  • The project's code and data belong to whoever owns the project: you, your employer, a client or an open-source community under a license.
  • The model's output is governed by the terms of the tool you used, which vary by provider.

If any part of the session belongs to someone else, you may need their permission before licensing it.

Employer work

If you're employed as a developer, your employment agreement very likely says that work you do in the course of your job belongs to your employer. That usually covers code, and often covers related material like design discussions and internal documentation. Many agreements also include confidentiality clauses that forbid sharing internal information.

A session where you used a coding agent on your employer's codebase is, in most cases, your employer's information. Scrubbing names and keys doesn't change that. It reduces the chance of identifying the source, but it doesn't give you the right to license it.

Questions to ask yourself:

  • Was this done on work time, on a work machine or in a work repository?
  • Does my employment agreement assign inventions or work product to my employer?
  • Does it include confidentiality or non-disclosure terms?
  • Does my employer have a policy on AI tools and data?

If the answer to any of those points toward your employer, leave the session out unless you have written permission. The dataoffer tool asks about every project separately so that you can do this, and the skill tells agents to keep employer work out unless you say it's yours to share.

Client and contract work

Freelancers and agencies face a similar issue. Contracts with clients commonly assign ownership of deliverables to the client and include confidentiality obligations. Even where a contract is silent, sharing a client's code or business details could damage the relationship or breach implied duties.

Treat client work like employer work: leave it out unless your contract clearly allows it, or you have the client's permission.

Open-source projects

Open-source code is published under licenses that generally allow broad use, but they come with conditions such as attribution or share-alike terms. Sessions about public open-source projects are usually lower risk than proprietary work, but the session may also contain other contributors' names, emails or unpublished discussion. Scrub those, and if the project has its own policy on AI training data, respect it.

Terms of service of the tool you used

Each AI coding tool has its own terms. They typically address who owns inputs and outputs, what you can do with outputs, and any restrictions on using outputs to build competing models. These terms differ between providers and change over time.

Before selling sessions, it's sensible to read the current terms for each tool whose history you plan to include, looking in particular for:

  • who owns the output;
  • any restriction on using output to train or develop other AI models;
  • any restriction on redistributing or selling output;
  • whether business or enterprise plans have different terms from personal plans.

We can't tell you how a particular provider's terms apply to you. If the terms are unclear, consider asking the provider or a lawyer.

Other people's personal data

Sessions often contain information about other people: a colleague's name in a commit, a customer's email in test data, a user's record in a database query. Privacy laws in many places restrict how personal data about others can be used and shared, and some categories, such as health or financial data, carry stricter rules.

Good scrubbing removes much of this before anything leaves your machine. The dataoffer tool replaces emails, phone numbers, ID numbers, names and more with placeholders that can't be reversed, and blocks any trace where a detector still finds something after scrubbing. But no scrubber is perfect. If a project involves sensitive data about other people, such as patient records or financial accounts, the safest choice is usually to leave it out. Read how to remove secrets and PII from agent logs for where scrubbing falls short.

Secrets and security

Keys, passwords and tokens are not usually a legal ownership question, but sharing them can cause real harm and may breach security obligations you have to an employer or client. Scrub them, and rotate any secret you know was in a session regardless.

Taxes and income

Money from licensing data is generally income. How it's treated depends on where you live and your circumstances. Keep records and ask a tax professional if you're unsure.

Eligibility and agreements

Any service that buys traces will have its own terms, and you should read them. Things to look for include what rights you're granting, whether the license is exclusive, whether you can withdraw data, how payment works and who's eligible. Accepting terms is a decision for you, not your coding agent. The dataoffer skill explicitly tells agents not to accept terms or confirm eligibility on your behalf.

A practical approach

  1. Start with what's clearly yours. Personal projects, your own open-source work, learning exercises.
  2. Leave out employer and client work unless you have permission.
  3. Read the terms of the tools you used.
  4. Leave out projects with sensitive third-party data.
  5. Use a blocklist for company and client names that show up anyway.
  6. Review the scrubbed output before exporting.
  7. Get advice if anything about your situation is unclear.

Frequently asked questions

Can I sell sessions from my day job if I scrub them?

Scrubbing doesn't change ownership. If your employer owns the work, you'd generally need its permission. Check your employment agreement and company policy, and ask a lawyer if unsure.

Do I own what an AI model writes for me?

It depends on the tool's terms and on the law where you live, which is still developing. Read the current terms of each provider whose output you plan to include.

Privacy laws may restrict sharing other people's personal data. Scrubbing reduces the risk, but if a session centers on sensitive information about others, leaving it out is the safer choice.

Can my coding agent agree to the terms for me?

It shouldn't. Accepting terms, confirming eligibility and approving uploads are decisions for you. The dataoffer skill tells agents not to do any of these, and agent uploads are held until you approve them by email.

Do I have to pay tax on money from selling traces?

Generally, income is taxable, but the rules vary. Ask a tax professional about your situation.

No. This guide is general information. For advice about your situation, talk to a qualified lawyer.

Start with what's yours

If you have personal projects in your agent history, a no-network preview is a good way to see what's there. See the traces page.

Contribute your agent sessions

The dataoffer tool scrubs every session on your machine before anything leaves it. Start with a preview: it makes no network calls and writes nothing.

This guide is general information, not legal, tax or financial advice. Figures and ranges are illustrative; talk to qualified advisors about your situation.