Cursor, ChatGPT and HIPAA: Using AI Coding Tools Without Leaking PHI

Last reviewed:

Not legal advice, a certification, or permission to use patient data.

A debugging shortcut can become a data-sharing decision. Before asking an AI tool to inspect a clinical workflow, decide what it may see—not just which answer you want.

Use MOCK/SYNTHETIC reproductions by default. A model appearing in a menu is not proof that your organization's product, feature, and configuration are eligible for PHI. [10][11]

Establish the role before choosing the tool

HIPAA regulates covered entities and business associates, not every app built by a physician. Provider covered-entity status includes the specified standard electronic-transaction condition. Determine the app operator's role and relationships first. [1]

For applicable cloud relationships, agreements and administrative, physical, and technical safeguards remain necessary. Purchasing an eligible tool does not replace the organization's compliance program. [2][3]

Cursor: Enterprise support with defined boundaries

Cursor's public documentation says BAA support is available on Enterprise, not Teams. Before PHI use, it calls for a signed Enterprise agreement and BAA, organization-wide enabled and locked Privacy Mode, and Eligible Services with approved workflows. [10]

The public page lists Desktop IDE features, Cloud Agents, iOS, CLI, Tab, BugBot, and Automations under its stated conditions. However, the HIPAA Implementation and Configuration Guide supplies current eligible models, required controls, and responsibilities. That requested-access Trust Center guide was not inspected here. Do not infer approval for every model or feature. [10]

Cursor says third-party services and integrations are not automatically covered. Review connectors, external tools, and separately routed models against the approved architecture and agreement. Privacy Mode alone is not PHI authorization. [10]

OpenAI: there is no global Enterprise-only rule

OpenAI's current eligibility page lists ChatGPT for Healthcare, ChatGPT for Enterprise with Regulated Workspace, ChatGPT FedRAMP, ChatGPT for Clinicians, API with Modified Retention, and API FedRAMP with Modified Retention. Product, workspace, functionality, and configuration all matter. [11]

Its API BAA instructions explicitly say an enterprise agreement is not required. Eligible organizations can accept the standard BAA in the API Platform; self-serve enrollment requires established API usage history. This does not promise immediate eligibility for every account. [12]

API PHI processing requires an executed BAA and Modified Retention provisioning unless OpenAI specifies otherwise. The current page lists eligible endpoints, including /v1/responses and /v1/chat/completions. Verify the particular endpoint and functionality; an API key is not blanket permission. [11]

OpenAI's BAA guidance says ChatGPT Business does not have a BAA and describes a separate in-product BAA flow for eligible individual clinicians. It directs sales-managed Enterprise or Edu BAA questions to sales. Because the product eligibility list is more specific than those sales instructions, Edu workspace eligibility remains a confirmation item, not a blanket finding. Free or Plus should not be treated as approved PHI workflows on the basis of these sources. [11][12]

An eligible workspace still has exclusions

OpenAI lists covered and excluded functions separately. Its current page excludes improved memory and internet access in Canvas/code blocks from BAA coverage. Codex Local coverage for data processed by OpenAI does not cover execution on the customer's computer or third-party services accessed by the client. [11]

OpenAI's API BAA instructions also prohibit PHI in support requests, screenshots, or attachments. Do not turn a production error into a ticket containing patient content. [12]

A repeatable debugging workflow

These are implementation recommendations, not a claim that HIPAA prescribes a particular IDE procedure.

  1. Reproduce the issue with entirely invented records labeled MOCK/SYNTHETIC. Preserve the failure condition, not a real clinical narrative.
  2. Prepare a minimal project. Remove live credentials, exports, screenshots, request bodies, and production connections. Inspect repository context before sharing it.
  3. Limit agent permissions. Use test identities and disconnected fixtures; inspect terminal, connector, browsing, and model access.
  4. Record the approved account, agreement, feature, model, endpoint, retention settings, and data category. Keep PHI blocked while scope is unresolved.
  5. Review the patch. Test server-side authorization, tenant isolation, failure handling, and output behavior—not just whether the interface works.
  6. Inspect leftovers: traces, logs, chats, generated documentation, support exports, and preview links.

MOCK/SYNTHETIC prompt pattern

This is a MOCK/SYNTHETIC referral app. Two invented test organizations must not access one another's records. Review this minimal authorization handler and propose negative tests. Do not connect to external systems or request real records.

This is a development pattern, not a guarantee. Review what the agent actually reads and executes.

Review six boundaries, not one brand

Create a separate inventory row for each layer:

Layer Questions to resolve before PHI
Builder/code generation Which prompts, files, screenshots, repository context, and project history leave the workstation?
Preview/deployment Who can open previews? What enters build output, caches, or test connections?
Production hosting Which account, services, agreement, and configuration cover the live application?
Model endpoint Which provider, model, endpoint, retention configuration, and agreement govern inference?
Data store Where do database records, files, backups, and exports persist?
Telemetry/support Do traces, analytics, session replay, error reports, or tickets capture patient content?

This inventory is a practical recommendation, not a claim that all listed services are eligible. HHS requires appropriate business associate arrangements and safeguards for applicable cloud relationships; one vendor's BAA does not automatically cover independent providers. [2][3]

Bring the inventory and synthetic reproduction to the next architecture discussion—not a patient export.

See Fabrica and book a 30-minute call

FAQs

Does “not used for training” mean PHI is allowed?

No such inference follows. Both vendors specify additional agreement and configuration conditions. [10][11][12]

What if someone already pasted patient data?

Stop further sharing and activate the organization's incident process. Identify recipients and retained copies; have the responsible team assess mitigation and reporting. Deleting a chat should not be assumed to resolve the incident. Applicable incident and breach obligations still require assessment. [2][3]

Sources

All accessed November 7, 2026 (PT). Reference numbers are shared across these guides.

  1. HHS: Covered Entities and Business Associates.
  2. HHS: Guidance on HIPAA & Cloud Computing.
  3. HHS: Summary of the HIPAA Security Rule.
  4. Cursor: HIPAA Business Associate Agreements.
  5. OpenAI: HIPAA eligible products and functionality.
  6. OpenAI: Getting a Business Associate Agreement for the OpenAI API.

We make no guarantee of compliance or outcome.

See Fabrica and book a 30-minute call

A free 30-minute call about your app or your practice's technology. You leave with a recommended next step. It is not an audit, a certification or legal advice.

See Fabrica and book a 30-minute call

How the call works · Send a short note