Is Claude Code GDPR compliant? Claude Code, Cursor and Codex for UK teams
By Dr Aadam Ul-Haq, Dentist & Co-founder of Groundwork · Updated 7 Nov 2026
It depends on your plan, and on whether personal data ever reaches the tool. Claude Code, Cursor and Codex mostly see your code. They see personal data only if it's in your prompts, your files or a database you connect.
On a business plan, none of the three trains on your data by default. Each company also offers a DPA (data processing agreement). That's the contract UK GDPR (the UK General Data Protection Regulation) requires with any supplier that handles personal data for you.
On a personal plan, those business terms don't apply.
Who this guide is for
UK founders and developers who build with Claude Code, Cursor or Codex on a product that holds customers' personal data. It often comes up when a customer asks which AI tools can see their data. For the suppliers your app runs on, such as OpenAI's API, Supabase and Vercel, see our supplier GDPR guide.
The short answer for each tool
Tool | DPA covers | Trains on your code? | How long data is kept |
|---|---|---|---|
Claude Code | Team, Enterprise and API accounts | Not on those accounts, unless your organisation opts in. Personal plans: yes, if the setting is on | Business accounts: 30 days. Personal plans: 30 days, or 5 years with training on |
Cursor | Teams and Enterprise. Not individual plans | Not with Privacy Mode, which is on by default for teams | File contents cached briefly; zero data retention agreements with its model providers |
Codex | ChatGPT business plans (OpenAI supports signing one) and the API | Not on ChatGPT Business, Enterprise, Edu or the API, by default | API: abuse-monitoring logs for up to 30 days |
If none of your users' personal data reaches the tool, it isn't handling that data for you. If it does, treat the tool like any other supplier: a DPA that covers your plan, and a line in your list of suppliers. If you'd like that list drafted and kept up to date as your tools change, see how Groundwork works for startups.
Is Claude Code GDPR compliant?
On a Team, Enterprise or API account, Anthropic's Commercial Terms apply, and its DPA is automatically part of them.
- Training: Anthropic doesn't train on code or prompts sent to Claude Code under commercial terms unless your organisation chooses to share them, for example through its Development Partner Program. On Free, Pro and Max plans, it trains on your data when that setting is on.
- Retention: 30 days on business accounts. On personal plans, 30 days with training off, or 5 years with it on. Zero data retention is available to qualifying Claude for Enterprise accounts.
- On your own machine: Claude Code keeps session transcripts in plain text under
~/.claude/projects/for 30 days by default. - Feedback: sessions you send with
/feedback,/bugor/shareinclude your code and are kept for 5 years. I wouldn't send one from a session that touched real customer data. - Location: Claude Code is built on Anthropic's API, which stores data at rest in the US. There's no UK or EU option, so record the US as its location.
Is Cursor GDPR compliant?
Only on a team plan. Cursor's DPA covers Teams and Enterprise, and says plainly that it doesn't apply to individual plans.
- Training: with Privacy Mode on, Cursor says your data won't be used for training. It's on by default for team members, and admins can enforce it. With it off, Cursor may store and use your codebase data, prompts and code snippets to train its models.
- Where your code goes: Cursor sends prompts and code context to model providers such as OpenAI, Anthropic and Google. It has zero data retention agreements with all of them. Requests made with your own API key still pass through Cursor's servers.
- Location: its privacy pages don't name the regions it uses, and its sub-processors are listed on its trust centre. I'd ask Cursor before real customer data goes anywhere near it.
Is Codex GDPR compliant?
Codex works with ChatGPT Plus, Pro, Business, Edu and Enterprise plans, or with an OpenAI API key (Codex on GitHub). Use it through a business plan or the API.
- Training: OpenAI says it doesn't train on business data by default from ChatGPT Business, Enterprise, Edu or the API. Plus and Pro are personal plans, so check your data settings before using one on company code.
- DPA: OpenAI says it supports business customers in signing a DPA. On the API, its DPA is part of the services agreement and covers UK transfers with the UK Addendum.
- Retention: on the API, abuse-monitoring logs are kept for up to 30 days.
- Location: ChatGPT Business has no UK data residency. Eligible Enterprise customers can store content in the UK.
What to do before your coding tool sees customer data
- Keep real customer data out of it, since that removes most of the question. Use made-up test data, and don't connect the tool to your production database. Our guides to vibe coding and GDPR and the vibe coding security checklist cover the rest of your app.
- Put the team on a business plan: Claude Team or Enterprise, Cursor Teams, or ChatGPT Business. That's where the DPA and the no-training terms apply.
- Check the settings: have an admin enforce Cursor's Privacy Mode, don't join Anthropic's Development Partner Program unless you mean to, and don't send feedback from sessions with real data.
- Add the tool to your supplier list if personal data does reach it, with where it's processed. Our data processing agreement guide covers what that list needs.
- Re-check every three months. These terms change often, and every fact here is dated.
What will it cost?
The DPAs cost nothing extra. The cost is the business plan. All three bill in US dollars, so the pounds below use HMRC's November 2026 rate ($1.3396 to £1), with prices as listed on 7 November 2026:
Plan | Per user, per month |
|---|---|
Claude Team, which includes Claude Code | About £15 billed annually ($20), or £19 monthly ($25) |
From about £22 ($30) | |
ChatGPT Business, which includes Codex | About £15 billed annually ($20), or £19 monthly ($25) |
Then there's your time: keeping your supplier list, DPA and privacy notice in line whenever a tool or its terms change.
Groundwork's AI agent drafts your UK GDPR documents with you in a chat, including your supplier list, DPA and privacy notice. Connect GitHub and it can use your codebase as context when it lists your suppliers.
Its MCP server lets Claude Code and Cursor read your Groundwork documents, so your coding tool can work from what they say. If you've drafted these in ChatGPT or Claude, that's the difference.
Your documents stay in step with each other. Changes wait in the review queue until you approve them, and each approved version is kept with its full history.
It won't make you compliant: choosing plans and settings, and deciding what data your tools can reach, stay with you.
See how Groundwork works for startups
About the author
Dr Aadam Ul-Haq - Dentist & Co-founder of Groundwork