Coding agents and AI tools
Is Cursor HIPAA Compliant? Does Cursor Sign a BAA?
Last reviewed: . Vendor facts checked against each vendor's own pages on the dates shown.
Short answer: Cursor offers a HIPAA business associate agreement (BAA) only to Enterprise customers, and that BAA covers only listed Eligible Services with Privacy Mode enabled and locked organization-wide (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026). On any other plan, keep patient information out of Cursor: build and test with synthetic patient data, and run the live app on services that sign a BAA.
Cursor is an AI code editor. You type what you want in plain English, and its Agent writes and changes the code in your project. You might start an app in Cursor, or open one there that began in a browser-based builder. Either way, before real patients are involved you need to know where Cursor's privacy promises stop.
Two terms used throughout. PHI (protected health information) means health information that can be tied to a specific patient. A BAA (business associate agreement) is the contract HIPAA requires before an outside company handles PHI for your practice. All Cursor details below come from Cursor's own pages, checked November 15, 2026.
What Cursor says, in its own words (checked November 15, 2026)
The BAA is an Enterprise feature. Cursor's BAA page says:
“Cursor supports HIPAA Business Associate Agreements (BAAs) for Enterprise customers. Organizations that are covered entities or business associates under HIPAA can request a BAA as part of their Enterprise agreement.”
The Teams plan does not qualify. Cursor's answer to that question: “BAA support is available on Enterprise. If your organization is currently on a Teams plan, contact sales to discuss moving to Enterprise and requesting a BAA.” (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026)
No PHI before the paperwork, and none before setup is finished. Cursor states “A signed BAA is required before submitting protected health information (PHI) to Cursor.” (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026) It adds that PHI should wait until the Enterprise agreement and BAA are signed and the required setup steps are done (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026). Those steps are listed in the Enterprise part of the plan-by-plan section below.
Only some parts of Cursor are covered. Cursor calls them Eligible Services:
“The listed Eligible Services are covered for Enterprise customers with Privacy Mode enabled and locked organization-wide: Desktop IDE, including Agent, Tab, Edit, and local agent mode Cloud Agents Cursor for iOS CLI Tab BugBot Automations”
Which AI models are approved for PHI is not on the public page. Cursor says the list of Eligible Models, with the current Eligible Services and required controls, is in its HIPAA Implementation and Configuration Guide, which is part of the BAA and available on request in its Trust Center (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026). We have not seen that guide.
A BAA is not a blanket approval. Cursor says “A BAA does not automatically make every product, configuration, or workflow appropriate for PHI. Your organization is responsible for configuring Cursor and instructing users in accordance with your BAA, HIPAA requirements, and the HIPAA Guide.” (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026) Outside tools you connect are a separate question: third-party services and integrations are not automatically covered by Cursor's BAA (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026).
Without a BAA, Cursor's standard terms rule out HIPAA data. Among the things users may not do, section 1.5 of the Terms of Service lists “(x) send or otherwise provide to Anysphere data or information that is subject to specific protections under applicable laws beyond any requirements that apply to "personal information" or "personal data" generally, such as for illustrative purposes, information that is regulated by the Health Insurance Portability and Accountability Act” (Cursor (Anysphere, Inc.), Cursor · Terms of Service, verified November 15, 2026) Cursor's Data Processing Addendum says customers shall not provide sensitive or special category data under it (Cursor (Anysphere, Inc.), Cursor · Data Processing Addendum, verified November 15, 2026), and its Privacy Policy says Anysphere, the company behind Cursor, does not knowingly collect health information (Cursor (Anysphere, Inc.), Cursor · Privacy Policy, verified November 15, 2026).
What happens to your prompts and code
Privacy Mode is Cursor's setting that controls whether your data can be kept and used for training. Cursor is direct about what happens with it off:
“If you choose to turn off “Privacy Mode”: we may use and store codebase data, prompts, editor actions, code snippets, and other code data and actions to improve our AI features and train our models.”
With Privacy Mode on, Cursor says customer data will not be used for training and that it keeps zero-data-retention (ZDR) agreements with its model providers (Cursor (Anysphere, Inc.), Cursor · Data Use & Privacy Overview, verified November 15, 2026). Even then, prompts that trip Cursor's abuse detectors may be stored for investigation (Cursor (Anysphere), Cursor · Data Use & Privacy Overview, verified November 15, 2026). Other details that matter for a practice:
- Privacy Mode is on by default for Enterprise teams (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026). It is also available on individual plans, including Free (Cursor (Anysphere), Cursor · Security, verified November 15, 2026), so on those plans it is a setting to check, not something to assume.
- Team admins can turn Privacy Mode on for the whole team and enforce it so members cannot switch it off (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026).
- A few models require the model provider to retain data, outside Cursor's zero-retention agreements. With Privacy Mode on, Cursor requires admin approval before they are used (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026).
Cursor now hosts apps, too
Cursor is no longer only an editor. Its documentation describes a feature called Apps: “Cloud Agents can build a working web app, like a dashboard, portal, or microsite. You describe what you want to build, and Cursor handles the hosting, database, auth, and secrets.” (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026) If the app needs a database, Cursor sets up a Postgres database (a common type of database) for it automatically (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026). The same page says “You also agree that hosting is separate from, and is not part of, our services, and is provided "as is" and "as available."” (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026)
We could not confirm from Cursor's own pages, as of November 15, 2026, that Apps hosting, its Postgres database or its sign-in (auth) is a BAA Eligible Service (Cursor (Anysphere, Inc.): public pages we checked (9 pages), verified November 15, 2026). Apps is not named in the public Eligible Services list quoted above.
Two sides of a Cursor project: writing the code and running the app
Think of your app in two parts. The workshop is where code gets written: the Cursor editor, its Agent, Cloud Agents and the AI model answering each request. The runtime is where the finished app serves staff and patients: hosting, database, sign-in, email and texting. Patient records live in the runtime every day, so each service there needs a BAA.
The workshop can run entirely on invented patients, called synthetic data. A recall list, an intake form or a photo timeline can be built and tested with fake records, as long as they have the same fields and the same quirks as real ones. If Cursor only ever sees synthetic data, it never receives PHI, and its BAA status stops deciding your setup.
HIPAA itself draws the line by activity. A business associate is defined by what it does with PHI for a covered entity: creating, receiving, maintaining or transmitting it (HHS (eCFR), 45 CFR 160.103 -- Definitions., verified November 15, 2026). HIPAA also asks for reasonable efforts to keep PHI to the minimum necessary for the task (HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules., verified November 15, 2026). Writing or fixing code needs no PHI at all.
Cursor Apps complicates this. An App puts Cursor on both sides at once: the same vendor writes the code and hosts the app and its database. That is why the open coverage question about Apps matters more than any editor setting.
What this means for your app
On a plan without a BAA, the goal is that nothing identifying a patient reaches Cursor. The catch is that you do not have to paste anything for that to happen. The Agent searches your project, and when it opens a matching file, that file's contents can be included in the request to the model (Cursor (Anysphere), Search | Cursor Docs, verified November 15, 2026). So the project folder is the boundary. The routes PHI takes into Cursor, feature by feature:
- Agent and chat. Anything in the project the Agent decides to open, plus anything you type, paste or attach: an EHR export saved for testing, an error message that names the record it failed on, a screenshot of the live app. A settings file holding the live database's password belongs on this list too, because a debugging query run with it returns real patient rows.
- Cursor's servers. Cursor temporarily caches file contents (Cursor (Anysphere), Cursor · Data Use & Privacy Overview, verified November 15, 2026); it says the cache is never stored permanently and, with Privacy Mode on, never used for training (Cursor (Anysphere), Cursor · Data Use & Privacy Overview, verified November 15, 2026). With Privacy Mode off, prompts and code may also be stored and used for training (Cursor (Anysphere, Inc.), Cursor · Data Use & Privacy Overview, verified November 15, 2026).
- Cloud Agents. They are the one feature Cursor says requires it to store code: an encrypted copy of your repository (the project's code and its history) (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026). A spreadsheet committed to the repository goes along.
- Your own model key. Requests still pass through Cursor's backend (Cursor (Anysphere, Inc.), Cursor · Data Use & Privacy Overview, verified November 15, 2026), so a personal API key does not take Cursor out of the path.
- Connected tools. Each outside service you link to Cursor needs its own answer; Cursor's BAA does not extend to it automatically (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026).
- Cursor Apps. Once an App is in use, the names, emails and answers of the people using it sit in the Postgres database Cursor set up (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026). That is runtime data, not code.
Removing the name column from a real export is not a shortcut. HIPAA's safe harbor method lists many identifiers that must all come out, from email addresses and medical record numbers (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026) to web addresses and IP addresses (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026). Asking the Agent to invent fake patients in the same layout leaves nothing to scrub.
How this goes wrong: a signed Enterprise BAA everyone treats as covering everything
Hypothetical. Imagine a three-physician dermatology group. One partner has built a lesion-tracking tool in Cursor: staff upload follow-up photos, and the tool lines them up by date for each patient. She wants to debug it against real records, so the practice moves to Cursor Enterprise and signs the BAA. From then on, the phrase around the office is simple: we have a BAA with Cursor.
Over the next month, three ordinary decisions rest on that sentence.
- An outside tool gets connected. To speed up fixes, she connects the practice's bug-tracking service to Cursor so the agent can read staff reports. Those reports include screenshots of the tool with patient names and lesion photos on screen. Cursor says third-party services and integrations are not automatically covered by its BAA (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026), and the group never signed one with the bug tracker.
- A different model gets switched on. A colleague prefers a model that Cursor lists among the few that require the provider to keep data. An admin approves it, as Cursor requires (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026). Whether it is an approved model for PHI is answered only in Cursor's HIPAA guide (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026), which nobody in the group requested.
- The tool goes live on Cursor Apps. The nurses want it on their tablets, so it is published as a Cursor App, and real photos and names move into the Postgres database Cursor set up (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026). The public Eligible Services list does not name Apps (Cursor (Anysphere, Inc.): public pages we checked (9 pages), verified November 15, 2026), and the Apps page says hosting is not part of Cursor's services (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026).
Each step felt covered because a BAA existed. Cursor's own page warns against exactly that reading: “A BAA does not automatically make every product, configuration, or workflow appropriate for PHI. Your organization is responsible for configuring Cursor and instructing users in accordance with your BAA, HIPAA requirements, and the HIPAA Guide.” (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026) Cropping names out of the screenshots would not have fixed it on its own: full-face photos and comparable images are also on HIPAA's list of identifiers (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026).
What would have prevented all three: request the HIPAA guide before the first real record goes in, as Cursor's required steps say (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026); write down which features, models and connected tools the practice uses and check each one against that guide; and keep the app on hosting with its own BAA. Whether what did happen counts as a breach is for the group's privacy officer and counsel, who start from HIPAA's presumption that an impermissible disclosure is a breach unless a risk assessment shows a low probability of compromise (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026).
If patient information already went into Cursor
Write things down before you delete anything. Cursor lets you delete your account from Settings at any time (Cursor (Anysphere), Cursor · Security, verified November 15, 2026), but your privacy officer will need a record first. In order:
- Stop the flow. Move the file out of the project and take down any App holding real data. On a team, admins can unpublish any App (Cursor (Anysphere), Apps | Cursor Docs, verified November 15, 2026).
- Record what went in: which data, when, which feature, which model, and whether Privacy Mode was on.
- Tell your privacy officer. Their risk assessment weighs, among other things, who received the PHI and whether anyone actually viewed or acquired it (HHS (eCFR), 45 CFR 164.402 -- Definitions., verified November 15, 2026).
- Write to Cursor if your privacy officer wants that on file. Its Privacy Policy gives an address for requests such as access or deletion (Cursor (Anysphere), Cursor · Privacy Policy, verified November 15, 2026).
The full walkthrough is on I pasted patient information into Cursor. What now? For ChatGPT, see the ChatGPT version.
Using Cursor on a practice app, plan by plan
On every plan the first rule is the same: Cursor works on synthetic patients, and real ones stay in the runtime. What else to set depends on the plan.
Individual plans, including Free
- There is no BAA on these plans (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026), and the Terms of Service bar HIPAA-regulated data (Cursor (Anysphere, Inc.), Cursor · Terms of Service, verified November 15, 2026). No PHI, in any feature.
- Turn Privacy Mode on and check that it stays on (Cursor (Anysphere), Cursor · Security, verified November 15, 2026). It limits storage and training. It does not change the terms.
- If you try Cursor Apps, publish only with synthetic data. On individual plans an App can be shared publicly, with no sign-in needed to open it (Cursor (Anysphere), Apps | Cursor Docs, verified November 15, 2026).
Teams
- Still no BAA. Cursor points Teams customers to Enterprise for one (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026).
- An admin can turn Privacy Mode on for the whole team and lock it (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026).
- Models that need the provider to keep data require admin approval (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026). Approve them only for a reason you can explain.
- Public sharing of Apps is off by default on Teams (Cursor (Anysphere), Apps | Cursor Docs, verified November 15, 2026). Leave it off.
Enterprise with a signed BAA
- Finish Cursor's required steps before any PHI goes in: agreement and BAA signed, HIPAA guide reviewed, Privacy Mode enabled and locked organization-wide, users trained (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026).
- Request the HIPAA guide from the Trust Center and write down which models it approves for PHI (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026).
- Use PHI only in the listed Eligible Services (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026), and check each connected tool on its own terms.
- US-only data residency is available if your counsel wants it (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026).
- Keep patient-facing apps off Cursor Apps until Cursor confirms in writing that its hosting, database and sign-in fall under your BAA.
On every plan, the runtime is a separate decision. Hosting, database, sign-in, email and texting each need a BAA of their own. The BAA Matrix and Stack Checker help you check; see AWS, Vercel and Twilio for common choices.
Fabrica is built on the same split. Physicians and staff build with AI coding tools on synthetic patient data, PHI stays in a cloud account the practice owns under BAAs, and an expert reviews every release that touches PHI. For how other coding agents compare, see Claude Code, Windsurf and GitHub Copilot.
Keep, refactor, or rebuild?
Cursor is a coding tool first, so the code it produced is usually worth keeping. The work is around the code: patient data out of the project, and the live app on hosting, database and auth that sign a BAA. If real patients are already using an app on Cursor Apps, plan a refactor of the hosting and data layer, not a rebuild.
Code Cursor writes is ordinary code in your own repository, so it can usually stay. If you used Origin, Cursor's early-beta code hosting, the code can be copied out with git, the standard tool developers use to move code (Cursor (Anysphere, Inc.), Origin | Cursor Docs, verified November 15, 2026). The decision turns on where the app runs today.
Keep
The live app already runs on hosting, a database and sign-in your practice chose and covered with BAAs, and no real records were ever in the Cursor project. Carry on, with the plan settings above in place.
Refactor
Real users are on a Cursor App, or the Agent picked hosting and a database without anyone checking for a BAA. The screens and workflow can stay. Hosting, the Postgres data and sign-in move to BAA-covered services, and real records come out of the project and its history.
For the general decision, see Keep, refactor or rebuild.
Frequently asked questions
Does turning on Privacy Mode make Cursor HIPAA compliant?
No. Privacy Mode limits retention and training (Cursor (Anysphere, Inc.), Cursor · Data Use & Privacy Overview, verified November 15, 2026), but Cursor says a signed BAA is required before any PHI goes in (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026), and its standard terms bar HIPAA-regulated data (Cursor (Anysphere, Inc.), Cursor · Terms of Service, verified November 15, 2026). On Enterprise, Privacy Mode enabled and locked organization-wide is one condition of BAA coverage, not a substitute for it.
Can I get a BAA from Cursor on the Teams plan?
No. Cursor's BAA page says BAA support is available on Enterprise and tells Teams customers to contact sales about moving to Enterprise (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026). Cursor describes the BAA as something requested as part of an Enterprise agreement (Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs, verified November 15, 2026).
Does Cursor's BAA cover an app I publish with Cursor Apps?
We could not confirm that from Cursor's own pages as of November 15, 2026 (Cursor (Anysphere, Inc.): public pages we checked (9 pages), verified November 15, 2026). The Apps page says hosting is separate from, and not part of, Cursor's services (Cursor (Anysphere, Inc.), Apps | Cursor Docs, verified November 15, 2026). Get written confirmation from Cursor before real patients use an App.
If I use my own AI model API key in Cursor, does my data skip Cursor's servers?
No. Cursor says requests still go through its backend even when you use your own key (Cursor (Anysphere, Inc.), Cursor · Data Use & Privacy Overview, verified November 15, 2026). Whether the model provider will sign a BAA for its API is a separate question; see the OpenAI API page and the Anthropic API page.
Is it enough to delete patient names before pasting data into Cursor?
Usually not. Removing names leaves other identifiers behind: HIPAA's safe harbor list also includes email addresses, Social Security numbers and medical record numbers (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026). The other route is a documented finding by a qualified expert that the risk of identifying anyone is very small (HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information., verified November 15, 2026). That call belongs to your privacy officer. For writing code, invented records avoid the question.
Does the code Cursor writes contain PHI?
Not by itself. Code describes how the app handles records; it should not contain them. PHI ends up in code when real data is pasted into seed files, test fixtures, comments or hard-coded examples. Search the repository for those before committing it or handing it to a Cloud Agent, which Cursor says stores code while it runs (Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs, verified November 15, 2026).
Palo Alto Health Labs Fabrica
Keep building. We make it safe.
Building in Cursor and ready for real patients, without real patients in your prompts? This is the conversation to have.
Fabrica moves the patient data in your vibe-coded app into an environment your practice owns, built for HIPAA compliance, with a BAA. You keep building in the tool you already use. Start with a 30-minute call about what you have built and where patient data goes today.
See how Fabrica works and book a 30-minute call
Please do not send patient information when you get in touch. The call is a conversation, not an audit or legal advice.
Sources
Every vendor statement on this page comes from the vendor's own terms, documentation or trust pages, or from the regulator, opened and read on the date shown. Vendor terms change; confirm the current version and your own signed agreement before relying on it. This page is general information, not legal advice.
- Cursor (Anysphere, Inc.), HIPAA Business Associate Agreements | Cursor Docs. Checked November 15, 2026.
- Cursor (Anysphere, Inc.), Cursor · Terms of Service. Checked November 15, 2026. Page dated September 3, 2026.
- Cursor (Anysphere, Inc.), Cursor · Data Processing Addendum. Checked November 15, 2026. Page dated November 5, 2025.
- Cursor (Anysphere, Inc.), Cursor · Privacy Policy. Checked November 15, 2026. Page dated November 6, 2026.
- Cursor (Anysphere, Inc.), Cursor · Data Use & Privacy Overview. Checked November 15, 2026. Page dated September 3, 2026.
- Cursor (Anysphere, Inc.), Privacy and Data Governance | Cursor Docs. Checked November 15, 2026.
- Cursor (Anysphere), Cursor · Security. Checked November 15, 2026. Page dated Last updated August 25, 2026.
- Cursor (Anysphere, Inc.), Apps | Cursor Docs. Checked November 15, 2026.
- HHS (eCFR), 45 CFR 160.103 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
- HHS (eCFR), 45 CFR 164.502 -- Uses and disclosures of protected health information: General rules.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
- Cursor (Anysphere), Search | Cursor Docs. Checked November 15, 2026. Page dated no printed date.
- HHS (eCFR), 45 CFR 164.514 -- Other requirements relating to uses and disclosures of protected health information.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
- HHS (eCFR), 45 CFR 164.402 -- Definitions.. Checked November 15, 2026. Page dated eCFR text current as of 2026-11-12 (Title 45 up to date as of 2026-11-12).
- Cursor (Anysphere, Inc.), Origin | Cursor Docs. Checked November 15, 2026.