Does an employment NDA stop me from using open source code I wrote before joining?

Generally, an NDA does not claim ownership of your pre-existing open source code, but IP assignment clauses might. Use TermScore to verify your contract.

May 10, 2026TermScore Research623 words

Generally, an employment NDA does not restrict your use of open source code created before your start date. However, your employment agreement likely contains an Inventions Assignment clause, which is distinct from an NDA. If you fail to explicitly exclude your prior work, your employer may legally claim ownership of your pre-existing code.

Understanding the Difference: NDA vs. IP Assignment

Employees often confuse Non-Disclosure Agreements (NDAs) with Intellectual Property (IP) Assignment Agreements. An NDA is designed to prevent the unauthorized sharing of company secrets. It does not inherently grant the company ownership of your personal creative output.

The real risk lies in the Proprietary Information and Inventions Agreement (PIIA). This document typically includes a clause stating that any invention, code, or software developed during your employment—or sometimes even using company equipment—belongs to the employer. If your contract lacks an "Excluded Inventions" schedule, you may inadvertently assign your prior open source work to your new employer.

Key takeaway: An NDA protects the company's secrets; an IP Assignment clause determines who owns your code. Always check for an "Excluded Inventions" exhibit in your contract.

Action Item: Locate your employment contract and search for the term "Inventions" or "Assignment of IP." If you find a broad definition of "Company Inventions," you must ensure your prior work is formally excluded.

The "Excluded Inventions" Schedule

Most standard employment contracts include an exhibit or schedule specifically designed to list pre-existing intellectual property. This is your primary legal shield.

What to include in your disclosure:

  • Project Name: The official name of the repository or project.
  • URL: A link to the public repository (e.g., GitHub, GitLab).
  • License Type: Clearly state the open source license (e.g., MIT, GPLv3, Apache 2.0).
  • Development Date: A timeframe indicating the work was completed prior to your start date.
  • Brief Description: A high-level summary of the code's functionality.

Action Item: Draft a simple document listing your projects and request that your HR department or legal counsel attach it as an addendum to your employment agreement.

Legal Risks and Jurisdictional Nuances

The enforceability of IP assignment clauses varies significantly by jurisdiction. Understanding these differences is critical for software engineers.

JurisdictionKey Protection
CaliforniaLabor Code Section 2870 protects inventions developed on your own time without company resources.
WashingtonRCW 49.44.140 provides similar protections for employee inventions.
New YorkGenerally follows contract law; broader assignment clauses are often upheld.

Even in states with strong protections, "self-help" is risky. Relying on state statutes often requires litigation to prove you didn't use company resources. A written disclosure is always superior to relying on statutory protections after a dispute arises.

Key takeaway: Never assume your state's labor laws will automatically protect your side projects. Explicit written exclusion is the only way to guarantee ownership.

Action Item: If you live in a state like California, verify that your contract does not attempt to waive your rights under local labor codes.

Steps to Protect Your Open Source Portfolio

  1. Audit your repositories: Document every project you intend to maintain while employed.
  2. Review your offer letter: Look for "Inventions Assignment" or "Conflict of Interest" sections.
  3. Disclose early: Submit your list of excluded inventions during the onboarding process.
  4. Maintain separation: Never use company hardware, software licenses, or proprietary tools to update your personal open source projects.
  5. Get written confirmation: Ensure the employer acknowledges receipt of your disclosure.

Action Item: Create a "Personal IP Log" that tracks the development history of your projects, including commit timestamps, to provide a clear "paper trail" of your work.

How TermScore Simplifies Contract Analysis

Navigating complex legal language in employment contracts is difficult, especially when your career and personal projects are at stake. TermScore uses advanced AI to instantly scan your employment agreements, identifying aggressive IP assignment clauses and missing "Excluded Inventions" schedules. By using TermScore, you can flag potential ownership risks before you sign, ensuring your open source contributions remain yours. Upload your contract to TermScore today to get a clear, plain-English breakdown of your IP rights.

T

TermScore Research

Our legal AI analyzes thousands of contracts to surface market standards, common pitfalls, and actionable insights for anyone who signs agreements.

Don't guess. Get your TermScore.

Upload your lease, employment contract, or agreement and let our AI flag every risk in seconds.

Score my document free