GDPR compliant AI agents and coding tools

Claude, OpenAI and Copilot can all be used under GDPR. What you have to set up, tool by tool, and why the machine your agent runs on matters as much as the model.

Laurentiu CiobanuLaurentiu Ciobanu12 min readGuides
A records room of filing drawers: one creature works at a machine, ribbons run from the opened drawers to a ledger a second creature is writing in, a third cuts the ribbon on a drawer being emptied, and a loaded cart stands stopped at a barred gate.
On this page · 12 min

What GDPR compliant AI actually means

No AI tool is GDPR compliant on its own: GDPR compliant AI means your company's use of the tool meets the law, and the duty sits with you. The General Data Protection Regulation is the EU law on personal data: any information about a person who can be identified, such as a name, an email address or a customer ID. When your team uses a coding agent, you are the controller (you decide why and how the data is processed) and the vendor is a processor (it handles the data on your behalf).

Take an agent that picks up a bug report at 2 a.m. It clones the repo, loads a staging database dump to reproduce the bug, and finds that a signup fails for one customer. It sends the stack trace and three rows of the users table, names and emails included, to the model so it can reason about them. It writes its session transcript to disk, opens a pull request and leaves a log. By morning, personal data from your production system sits with the model provider and on the agent's machine, in its transcript, and in the CI logs and pull request on your code host.

Each of those copies is processing under GDPR. You need a legal basis for it, a contract with whoever holds it, a lawful way to move it out of the EU if it leaves, and a way to delete it when someone asks. Asking "is Claude GDPR compliant?" only checks the copy that went to the model.

Where your data goes when a coding agent works

A coding agent splits its work between two places, and they have different owners. (Your code host and CI provider hold copies too, but you probably signed their contracts long ago; the two below are the new ones.)

The model call. Every step, the agent sends its context to a model API: your prompt, the files it read, the output of the commands it ran. That's how it decides what to do next. Whatever the agent saw, the model provider sees, so a test fixture with real emails goes too.

The agent's machine. The agent also works on a computer: a laptop, a CI runner, a VM or a vendor's sandbox. That machine holds the repo clone, environment variables and secrets, test data, build logs and the agent's own transcript. Claude Code, for example, keeps session transcripts in plain text under ~/.claude/projects/ for 30 days by default, according to Anthropic's data usage page. If the agent runs on a hosted service, such as Claude Code cloud sessions or the Copilot cloud agent, the vendor holds both the model call and the machine. If you run the agent yourself, the machine is yours to place.

GDPR gives you a small set of rules for both:

  • Article 28 requires a contract with every processor, called a data processing agreement (DPA), and the processor needs your authorisation before using sub-processors. Anthropic, OpenAI and GitHub all offer one for business customers.
  • Data leaving the EU needs an adequacy decision (the European Commission's ruling that a country protects data well enough) or safeguards such as Standard Contractual Clauses (SCCs), which are contract terms the European Commission wrote for this. The EU-US Data Privacy Framework is an adequacy decision for US companies that sign up to it; the EU General Court upheld it on 3 September 2025, and that ruling is under appeal at the Court of Justice, so keeping SCCs in the contract as a fallback is a sensible precaution.
  • Minimisation and retention mean you send the agent only the data the task needs, and know how long each copy lives.
  • When a customer asks for their data to be deleted, the request reaches transcripts and logs too.

A transfer basis makes it legal to send data to the US. It doesn't change who can reach it once it's there: under the US CLOUD Act, a US provider can be ordered to hand over data it controls wherever that data is stored. That's the gap between data residency (where data sits) and sovereignty (whose law can reach it), and it's why some customers ask who operates the infrastructure as well as where it is.

In practice the model call is usually covered by a contract you already signed, and the agent's machine is the part teams forget.

Is Claude, OpenAI or Copilot GDPR compliant? Tool by tool

All three can be used under GDPR, and all three now offer a way to keep the model call in Europe. What differs is how you get there.

Claude (Anthropic)OpenAI (API, Codex)GitHub Copilot
DPA with SCCsBuilt into the Commercial TermsYes, for business customersYes, for business customers
EU processing of the model callNot on Anthropic's own API, which offers US-only or global routing; EU processing through Amazon Bedrock or Google CloudEurope projects for the API; ChatGPT Enterprise and Edu stored in EuropeEU data residency since April 2026
How you switch it onUse Bedrock or Vertex in an EU region, and point Claude Code at itCreate a new API project with Europe as the region; existing projects can't switchAn admin turns on the data residency policy; it's off by default
What it coversInference in the EU region you pickAPI requests handled in Europe with zero data retention; check OpenAI's list for which Codex products are includedChat, inline suggestions, agent mode, the cloud agent, code review and Copilot CLI
Training on your dataNot on commercial terms unless you opt inNot on API and business data by defaultNot on business data

Claude. Anthropic's own API lets you choose between us and global for where inference (the model processing your request) runs, and global can route anywhere without promising a region, and stores workspace data in the US only, as its data residency docs state. For processing in the EU, you call Claude through Amazon Bedrock or Google Cloud in an EU region, where the region you pick sets where inference runs. Claude Code supports that directly:

Terminal
export CLAUDE_CODE_USE_BEDROCK=1
export AWS_REGION=eu-central-1

With an eu- region, Claude Code prefers Bedrock's eu. inference profiles, which spread requests over a fixed list of European regions. AWS warns not to rely on that prefix alone if you have residency requirements, so check the regions a profile can route to before you promise a customer anything. Run /status in Claude Code to see the region it uses, list the eu. profile IDs there, and look up one of them:

Terminal
aws bedrock list-inference-profiles --region eu-central-1
aws bedrock get-inference-profile \
  --region eu-central-1 \
  --inference-profile-identifier <profile-id> \
  --query 'models[].modelArn'

The second command prints one model ARN per region a request can land in, and the region is part of each ARN. Claude Code also turns off its telemetry and error reporting to Anthropic by default when it runs on Bedrock, though its web fetch tool still sends the hostname of each URL to Anthropic for a safety check.

OpenAI. Since February 2025, eligible API customers can create a project with Europe as its region; requests to it are handled in Europe and not stored at rest. It has to be a new project. ChatGPT Enterprise and Edu customers can keep their content stored in Europe. OpenAI keeps a list of which products are covered, and it treats Codex products differently from each other, so check OpenAI's residency list before you rely on it.

Copilot. GitHub's April 2026 changelog added EU data residency, covering EU and EFTA countries, for every generally available Copilot feature, including the cloud agent. An admin has to turn the policy on, and Gemini models aren't available under it. Of the three it's the simplest path, because one setting covers every feature. If your team already uses Copilot's cloud agent, that setting may cover both halves at once; GitHub says inference and its associated data stay in the region, so ask GitHub where the agent's own runner sits before you load customer data into it.

The tools differ most in who runs the agent's machine. With Copilot's cloud agent or Claude Code cloud sessions, the vendor runs the machine, so its terms decide where the clone and the transcript live. When you run Claude Code or Codex yourself, the model call goes to the provider and everything else stays where you put it: on boxd in the EU, on your own servers, or in your own cloud account. Anthropic and OpenAI also let the vendor run the agent loop while every tool call runs on a machine you pick; our docs show that setup on boxd for Claude Managed Agents and for OpenAI's Codex harness. Either way, the model still sees the commands and their output, because it has to.

How to choose: a rule for each situation

Start with one question: will personal data reach the agent? Most coding agents never need it, and keeping it out is the simplest control there is.

The agent only sees code. No customer data in the repo, fixtures or logs, and secrets that give no access to personal data. A DPA with SCCs or the Data Privacy Framework covers the model call, and you don't need EU residency. You still need the DPA, because commit history carries developers' names and email addresses, which are personal data too. Use business plans, not personal accounts, so the no-training terms apply. This is the right answer for most teams, and it needs no new infrastructure.

Personal data can reach the agent, or a contract says EU-only processing. Personal data gets in through staging dumps, support tickets or production logs. First, cut it down: synthetic test data, masked dumps, read-only access to only the tables the task needs. Then keep both flows in the EU: the model call on an EU endpoint from the table above, and the agent's machine in an EU region. A boxd machine in the Frankfurt cluster stays on infrastructure within the EU/EEA, so the checked-out repo, the test data and the transcript stay there too. Start each task from a clean snapshot (a saved copy of a ready environment that new machines start from), build that snapshot without customer data in it, and delete the machine when the task is done, so a run never inherits another task's data. Whichever machine provider you pick, boxd included, ask for its DPA and its list of sub-processors, as you would for the model vendor. If your machines must sit in your own cloud account, look for BYOC (bring your own cloud), where the vendor operates the cluster inside your account.

A customer asks for a European operator, or no outside operator at all. Residency is no longer enough here, because a US company can be ordered to hand over data from its EU region. That applies to the EU endpoints in the table, since AWS, Google, OpenAI and GitHub are all US companies, and to VMs in your own AWS or Google Cloud account. So both halves change. For the model, use a provider incorporated in the EU, such as the French company Mistral, or host an open-weight model yourself. For the machines, use an operator incorporated in the EU, or run them on hardware you or a European host control. boxd is a Dutch company with contracts under Dutch courts. If no outside operator is allowed, you can self-host boxd on bare metal or ask for an air-gapped install, which has no connection to the internet. A self-hosted cluster deploys in 30 to 60 minutes; the larger job is hosting the model. This is the most work of the three, so make sure a contract or regulator actually requires it.

Whichever case you're in, check these before agents run unattended:

  • A legal basis recorded for each use of personal data (Article 6 lists them), with your data protection officer.
  • A DPA signed with each AI vendor and machine provider, and a transfer basis for each one outside the EU. Your code host, CI provider and issue tracker hold the agent's pull requests and logs, so check theirs too.
  • Residency settings switched on where you need them; Copilot's and OpenAI's are opt-in.
  • Business accounts only, with training on your data turned off.
  • Retention set for transcripts, agent logs, CI artefacts, snapshots and backups, and a way to delete them on request.
  • The agent tools in your record of processing activities, and a data protection impact assessment (DPIA) if agents handle sensitive or large-scale personal data.

The EU AI Act, in force since 1 August 2024, applies on top of GDPR, and its heaviest duties are for high-risk uses. Check where your agent use falls; the record of processing and the DPIA above serve both laws. This article explains how the rules apply in practice, and it isn't legal advice, so have your data protection officer or a lawyer read your setup.

The decision

Sign the DPAs, keep personal data out of what your agents see, and when data or a contract requires it, put both the model endpoint and the agent's machine in the EU. When a customer asks who operates the infrastructure, move both to a European operator or your own hardware. If you're deciding where your background agents' machines should run, boxd can run them in Frankfurt, in your cloud account or on your own servers: talk to us.

Frequently asked

Is Claude GDPR compliant?
Claude can be used under GDPR, but compliance is the responsibility of the company using it. Anthropic's DPA with Standard Contractual Clauses is part of its Commercial Terms, and Anthropic doesn't train on code or prompts sent under commercial terms unless you opt in. Anthropic's own API runs inference in the US or globally; for processing in the EU, use Claude through Amazon Bedrock or Google Cloud in an EU region.
Does GitHub Copilot offer EU data residency?
Yes. Since April 2026, Copilot supports data residency in the EU, covering EU and EFTA countries, for its generally available features including chat, inline suggestions, agent mode and the cloud agent. An admin has to turn the policy on, because it is off by default, and Gemini models are not available under it.
Does OpenAI offer data residency in Europe?
Yes. Since February 2025, eligible API customers can create a new project with Europe as its region, and requests to it are handled in Europe with zero data retention. Existing projects can't be switched. ChatGPT Enterprise and Edu customers can have their content stored in Europe. Check OpenAI's help centre for which Codex products are covered.
What does GDPR mean in simple terms?
GDPR is the EU law on personal data, meaning any information about a person who can be identified, such as a name or email address. It says you need a reason to process that data, must use only what you need, must protect it, must have a contract with anyone who processes it for you, and must have a lawful basis to move it outside the EU.
Do I need EU data residency to use AI coding tools under GDPR?
Not usually. GDPR regulates transfers out of the EU rather than requiring data to stay there, so a processor agreement plus Standard Contractual Clauses or the EU-US Data Privacy Framework covers most use. Residency becomes necessary when a customer contract or sector rule requires EU-only processing, or when agents handle personal data you have promised to keep in the EU.
Laurentiu CiobanuLaurentiu Ciobanu
PostShare
Published
Nov 27, 2026
Reading time
12 min
Words
2,490
Topic
Guides

Read next

Field notes

Subscribe for release notes and architecture write-ups

No spam, ever. Unsubscribe anytime.

Your inbox