Templates
Ravi Iyer7 min read14 views

Master Service Agreement Template for Software and AI Agencies (2026)

A master service agreement template built for software and AI-app agencies, with the five AI-native clauses most generic MSAs still miss, and how it pairs with your statement of work.

Updated on July 5, 2026

Illustration of a master agreement document branching into multiple statement-of-work documents in a clean org-chart hierarchy
Illustration of a master agreement document branching into multiple statement-of-work documents in a clean org-chart hierarchy
On this page

Quick answer (2026): A master service agreement (MSA) is the master contract that sets the terms your agency and a client agree to once, so every future project runs off a short statement of work instead of a fresh negotiation. This template is written for software and AI-app agencies, not for generic vendors, so it includes the five clauses most off-the-shelf MSAs still miss: ownership of AI-generated code, model and vendor deprecation, AI-assisted work disclosure, training-data confidentiality, and warranty limits on probabilistic output. Copy the structure below, have a lawyer in your jurisdiction review it, and pair it with a per-project statement of work. It is not legal advice; it is a starting point that saves you the blank page.

Why agencies split the contract into two layers

The agencies that scale past a handful of concurrent clients almost never re-sign a full contract per project. They sign one MSA per client, then hang a lightweight statement of work off it for each engagement. The MSA carries the terms that rarely change: liability, IP, confidentiality, payment mechanics, termination. The statement of work carries the terms that change every time: scope, deliverables, timeline, price.

This two-layer split does three things. It shortens your sales cycle, because the second and third projects with a client need only a one-page scope document. It reduces legal risk, because the hard clauses are negotiated once by people paying attention rather than rushed at the end of every deal. And it makes your pricing legible, because scope lives in a document a client can read in five minutes.

If you have read our statement of work template for agencies, this is the other half of that pair. The MSA is the constitution; the statement of work is the bill you pass under it.

The master service agreement template

Below is a section-by-section skeleton. Fill the bracketed fields, delete what does not apply, and send it to counsel before it touches a client. Keep the numbering; clients and their lawyers expect it.

1. Parties and effective date. Name both legal entities, their registered addresses, and the date the agreement takes effect. State that the MSA governs all statements of work executed under it.

2. Structure and order of precedence. Say plainly that this MSA sets master terms, that each project is defined in a separate statement of work, and that if a statement of work conflicts with the MSA, the MSA controls unless the statement of work explicitly overrides a named section. This one sentence prevents most future disputes.

3. Services. Describe services in general terms only ("software design, development, and related consulting"). Specifics belong in the statement of work, never here.

4. Fees and payment. Set the payment window (net 15 or net 30), late-payment interest, the currency, and who covers third-party pass-through costs such as hosting, model API usage, and paid infrastructure. For AI work, name model API usage explicitly, because those costs are variable and clients forget they exist.

5. Intellectual property. State who owns the delivered work product on final payment, what pre-existing tools and libraries you retain, and the license the client receives to your background IP. See the AI-specific version in the next section; a generic IP clause is where most agency MSAs quietly fail in 2026.

6. Confidentiality. Mutual confidentiality, a defined term, standard carve-outs (public knowledge, independently developed, legally compelled). Add an explicit line that client data will not be submitted to third-party AI models for training without written consent.

7. Warranties and disclaimers. Warrant that you will perform in a professional and workmanlike manner. Disclaim implied warranties beyond that. For AI-assisted deliverables, do not warrant deterministic or error-free output; warrant the process, not the probabilistic result.

8. Limitation of liability. Cap total liability at fees paid in the trailing period (commonly the prior 12 months or the value of the relevant statement of work), and exclude indirect and consequential damages. This clause protects the survival of your business; do not sign it away lightly.

9. Term and termination. Set the term, renewal, termination for convenience with notice, and termination for cause with a cure period. State what happens to in-flight statements of work on termination.

10. Indemnification. Mutual indemnities for third-party claims. Address AI-output indemnity explicitly, as covered below.

11. General. Governing law, dispute resolution, assignment, notices, entire-agreement, and severability. Standard, but do not skip severability; it keeps the rest of the contract alive if one clause is struck.

For a formatting reference, a well-structured commercial example is DocuSign's MSA template and the drafting explainer from Thomson Reuters legal is a solid plain-language primer. Both are generic; the value your agency adds is the AI section below.

The five AI-native clauses generic MSAs still miss

Every template ranking on the first page of Google in July 2026 was written for a world where humans typed all the code. Software and AI-app agencies now ship deliverables that were partly generated by models, depend on third-party model providers, and behave probabilistically. Add these five.

Scroll to see more

ClauseThe risk it coversThe one line to add
AI-generated code ownershipAmbiguity over whether model output is "your work product"State that deliverables include AI-assisted output and that ownership transfers to the client on final payment, same as hand-written code
Model and vendor dependencyA provider deprecates or reprices a model mid-engagementDisclaim liability for third-party model changes; define who pays to migrate
AI-assisted disclosureClient later claims they were misled about how work was producedDisclose that AI tools are used in delivery; make it a stated fact, not a hidden one
Training-data confidentialityClient data leaks into a model training setProhibit submitting client data to models for training without written consent
Probabilistic-output warranty limitClient expects deterministic, bug-free AI featuresWarrant workmanlike process, not error-free output, for AI-driven functionality

These are not exotic. They are the 2026 version of clauses agencies already have for scope creep and payment. If your current MSA predates them, that is the gap to close this quarter.

MSA, statement of work, change request: which document does what

The three documents work as a stack. Confusing them is how agencies end up doing unpaid work.

Scroll to see more

DocumentSignedGovernsChanges how often
Master service agreementOnce per clientMaster legal termsRarely
Statement of workOnce per projectScope, price, timelinePer engagement
Change requestWhenever scope movesAmendments to a live statement of workContinuously

When a client asks for "one more small thing," the answer is not an argument; it is a change request against the statement of work. The MSA already gave you the right to bill for it. If you are still setting rates that these documents will carry, our 2026 agency rate-card benchmarks show what comparable shops charge by archetype.

A five-step rollout checklist

  1. Draft from the skeleton above and add the five AI-native clauses.
  2. Send it to a lawyer licensed in your governing-law jurisdiction. Budget one review; it pays for itself on the first dispute you avoid.
  3. Template your statement of work so new projects need only scope, price, and timeline.
  4. Send the MSA once, early, ideally before the first project rather than bundled with it, so legal review does not delay the kickoff.
  5. Review annually, especially the AI clauses, which are the fastest-moving part of the contract in 2026.

A note on jurisdiction

This template is a structure, not legal advice, and contract law varies by country and by state. The liability cap, IP transfer mechanics, and enforceability of specific clauses all depend on where you and your client sit. Have a qualified lawyer adapt it. The point of a good template is not to skip the lawyer; it is to make the lawyer's hour cheaper.

If you take one thing from this: sign the hard terms once in an MSA, and let every project after that run off a one-page statement of work. The agencies that do this close faster and argue less.

Ravi Iyer

Written by

Ravi Iyer

Ravi Iyer writes on agency operations, packaging, and the commercial mechanics of running a profitable software and AI-app studio.

Frequently asked questions

What does a master service agreement include?

A standard MSA covers the parties and effective date, the contract structure and order of precedence, a general services description, fees and payment terms, intellectual property, confidentiality, warranties, limitation of liability, term and termination, indemnification, and general legal provisions such as governing law. Project-specific scope, deliverables, and price live in a separate statement of work, not in the MSA.

What is the difference between an MSA and a statement of work?

An MSA is signed once per client and sets the master legal terms that rarely change, such as liability, IP, and confidentiality. A statement of work is signed per project and defines scope, deliverables, timeline, and price. The MSA is the constitution; the statement of work is what you pass under it for each engagement.

Is a master service agreement legally binding?

Yes. A properly executed MSA is a binding contract. Its enforceability, including the liability cap and IP transfer mechanics, depends on your governing-law jurisdiction, so have a qualified lawyer review it before signing. A template is a starting structure, not legal advice.

Do I need an MSA if I already have a statement of work?

For a single one-off project, a well-written statement of work with legal terms can be enough. But if you expect repeat work with the same client, an MSA saves time and reduces risk, because you negotiate the hard clauses once and then hang short statements of work off it for every future project.

What AI-specific clauses should a software agency add to its MSA in 2026?

Add five clauses most generic templates miss: ownership of AI-generated code, liability handling for model and vendor deprecation or repricing, disclosure that AI tools are used in delivery, a prohibition on submitting client data to models for training without consent, and a warranty that limits guarantees on probabilistic AI output to a workmanlike process rather than error-free results.