LiteLLM EU-only model routing for data residency: what it helps with and what it does not
A platform team that must keep certain customers or teams on EU-hosted models under GDPR Chapter V needs LiteLLM routing to do what it can, and needs its own evidence for everything routing cannot show. LiteLLM region tags on deployments, allowed_model_region set on an end user, and team-level model aliases for EU groups all help enforce where a request is sent. The region controls supported in the customer routing docs are eu and us, and deployments outside the requested region are filtered out of the model group. That is a routing decision. It is not, by itself, proof of where personal data is processed, stored, logged or viewed.
Several things sit outside what a router can establish. A region tag records the endpoint you configured, not the physical location of every processing step inside the model provider, the gateway's database and Redis, or the log sinks that receive prompt metadata. Access is also separate from location: under Article 44 and the EDPB's view in Guidelines 05/2021 (version 2.0), remote access from a third country, even only displaying data for support, counts as a transfer. Confirm which provider support staff, administrators and gateway operators can reach the data from outside the EEA, and whether any provider is subject to third-country authority powers that could reach EU-hosted data. Those questions belong to your transfer assessment, not to the allowed_model_region setting.
Before relying on this routing, check the deployments and records against your own design. Confirm that each EU-tagged deployment points to an endpoint your contract and processor terms place in the EEA, that fallback or retry paths cannot send an EU-scoped request to a worldwide group, and that the team aliases and end-user settings are tested with negative requests. Keep the configuration in version control and record the test results. DeployOpen can prepare the configuration, the test evidence and the transfer documentation for your review, but it does not issue an audit report or certification, and a GDPR compliance conclusion remains yours to reach with your counsel and, where relevant, your supervisory authority or auditor.
Mapping EU residency requirements to LiteLLM controls
This table maps each EU residency requirement to the LiteLLM routing control that supports it, the configuration it needs, and what routing cannot prove. Read the last column first: routing enforces where a request is sent, but it does not show where prompts are processed, stored or accessed.
| Requirement | Platform capability and configuration | Routing role and what remains open |
|---|---|---|
| GDPR Article 44: transfers to third countries must meet Chapter V conditions | Set allowed_model_region to eu on the customer and tag every EU deployment with an EU region in its model group | Enforcement for the routing hop only. Confirm the provider's processing and storage locations and whether any onward transfer occurs |
| Team-scoped EU groups | Define an EU model alias on the team that points only to EU deployment groups, and keep worldwide groups under separate aliases | Enforcement if no fallback route reaches a non-EU deployment. Check retry and failover settings so a request cannot spill to a worldwide group |
| Default and fallback routes | Review the router's failover priority ordering and cooldown behavior for each EU model group | Enforcement only when the EU group has no non-EU member. Test a forced failure in staging and inspect which deployment served the call |
| EDPB Guidelines 05/2021: remote access from a third country is a transfer | Restrict admin and support access to the gateway and the provider account from EU locations, and record who can view prompts in logs | Not covered by routing. Requires access controls, support procedures and documented locations for administrators and vendor staff |
| GDPR Article 48: third-country disclosure orders | No routing setting. Choose EU-headquartered providers and EU-hosted deployments, and review their contract terms for government access | Open. Routing does not stop a non-EU provider from receiving a lawful order. Obtain legal assessment of each processor's exposure |
| EDPB Recommendations 01/2020: supplementary measures when access in the clear is possible | No routing setting. Document which deployments receive data in clear text and what technical measures apply to them | Open. Routing cannot supply a supplementary measure. Ask the provider and your counsel whether one exists for your data |
| GDPR Article 32: security of processing | Use one gateway configuration file under version control, and record each EU group, region tag and alias change | Evidence only. Change history shows configured intent. It does not show that traffic followed the route in production without log review |
| Evidence of routing in production | Enable request logs that record the deployment and region used for each call, and retain them under your records of processing | Evidence only. Logs prove the route taken for sampled calls. Confirm the log store location and access before relying on them |
Choosing a routing pattern for EU customers and EU teams
This pattern sets allowed_model_region on a customer record so that the proxy only considers deployments in that region. According to LiteLLM's customer routing docs, deployments in a model group outside the configured region are filtered out, and the supported values are eu and us. The filter depends entirely on the region tag you add to each deployment in your model configuration, so the tag is the control.
- Tag every deployment explicitly: A deployment without a region tag cannot be matched to
eu, so confirm how your configured version handles untagged entries before relying on the filter. - Check the tag against the real endpoint: A deployment tagged
euthat actually points to a US endpoint produces a misleading record. Verify the region of each endpoint with the provider, not only the label in your config. - Keep the model group consistent: Filtering works within a model group. If an EU customer's model name maps to a group that also contains US-only deployments, confirm that the filter removes them before any call is made.
- Test the negative path: Send requests as the restricted customer for a model that exists only outside the EU and confirm the call fails rather than succeeding through another deployment.
- Record the configuration: Keep the customer setting, deployment tags and test results together so a reviewer can trace which region each customer was limited to.
Before going live, run the negative test against every model group the customer can reach, because a single untagged deployment in a shared group is the most common gap.
This pattern gives an EU team its own model alias that points to an EU model group, such as an EU Azure deployment group, while worldwide teams use a separate alias for a worldwide group. LiteLLM's team-based routing docs describe setting model aliases on the team so that calls from that team resolve to the group you choose. The separation happens at the naming layer, so the risk shifts to how aliases are defined and who can change them.
- Use distinct alias names: Name the EU alias so its target is obvious, and avoid giving EU and worldwide teams the same alias with different targets.
- Keep EU groups free of global fallbacks: Review whether any fallback or failover entry in the EU group points to a non-EU deployment. Routing that falls back on error can move traffic out of the region even when the primary route is correct.
- Restrict who edits aliases: Changes to team aliases should go through the admin access model and an audit trail, since one edit can redirect a whole team.
- Verify from the team's own key: Call the gateway with a key that belongs to the EU team and confirm the response comes from the EU group, using the logged deployment or provider metadata.
- Separate keys by team: Make sure EU teams do not share keys with worldwide teams, because a key that carries the wrong team context bypasses the alias.
After each alias change, repeat the test from the team key, since the alias is only as reliable as the group it points to.
A mixed setup combines region-restricted end users with team aliases, so a single gateway serves EU customers, EU teams and worldwide users without separate deployments. This is common when one team is EU-only but calls to a shared product feature from customers in several regions. The two controls overlap, and the stricter one governs, so the design needs to be checked for conflicts rather than assumed to be safe.
- Map the precedence: Decide which control wins when a team alias points to a group and the end user is restricted to a different region, and record the expected result.
- Avoid shared model names across patterns: Do not expose the same public model name to both EU-restricted users and worldwide teams unless the filter is proven to apply in both paths.
- Test each combination: Build a small matrix of team, end user and model, and confirm which combinations return a response and which are refused.
- Monitor for drift: New deployments, new aliases and new customers can each add a path, so repeat the matrix after every model or routing change.
- Document the design: Give reviewers a diagram showing which keys, teams and customers can reach each EU and non-EU group.
Confirm the precedence and the test matrix with your gateway version before production, since the behavior of combined rules is the part most likely to differ from what the individual docs describe.
Routing configuration describes intent, and tests show what the gateway actually does. A reviewer will ask for evidence that a restricted call cannot reach a non-EU deployment, including after an outage, a cooldown or a failover event. The test plan should cover normal operation and the failure paths that retries, cooldowns and priority ordering can trigger, since those features are designed to keep requests flowing.
- Force failure of the EU deployment: Disable or misconfigure the only EU endpoint and confirm the restricted call fails instead of routing to a US deployment.
- Exercise retries and cooldowns: Trigger repeated errors on the EU deployment so the router enters cooldown, then confirm no restricted request leaves the region.
- Check priority ordering: Confirm that failover lists contain only in-region deployments for restricted customers and teams.
- Inspect logs for the serving deployment: Use request logs to confirm which deployment answered each test call, and keep those records as evidence.
- Re-run after upgrades: Repeat the suite after each gateway upgrade, because routing behavior can change between releases.
Routing tests show where the gateway sends a request, not where the model provider processes it, so confirm the provider's processing location separately with its documentation or contract.
Configuring EU-only routing in a self-hosted gateway
This sequence turns an inventory of EU-hosted model deployments into a gateway configuration where EU-scoped customers, teams and keys can only reach EU model groups. It produces a tested routing setup and a record of what the gateway enforces and what it does not.
Inventory every model deployment and its processing location
The platform owner and the privacy lead list each model deployment behind the gateway, the provider and cloud region that runs it, and where prompts and completions are stored or accessed from. Include deployments reached through a provider account, private models you serve yourself and any fallback providers. Confirm the location with each provider's documentation or contract terms, not only the endpoint name. The output is a signed-off table marking each deployment as EU-processing or not, with the evidence for each mark.
Tag each deployment with its region
The gateway administrator adds a region tag to each deployment entry in the proxy configuration file, using the region values the routing feature recognizes for customer filtering, which are eu and us in the supplied documentation. Deployments with no verified EU processing receive no EU tag. Keep the configuration under version control so each change is reviewed. The check is that a configuration diff shows the EU tag only on deployments that passed the inventory.
Group EU deployments into dedicated model groups
Place EU-tagged deployments in their own model group, separate from worldwide groups that share the same model names. Mixing EU and non-EU deployments under one name makes it easy for a caller to reach a non-EU endpoint by accident. Name the groups so an operator can tell their region from the name alone. The output is a configuration where every EU group contains only EU-tagged deployments, which a reviewer can confirm by reading the file.
Set allowed_model_region on EU end users
For each end user or customer whose prompts must stay in the EU, the administrator sets allowed_model_region to eu on that customer record. The gateway then filters out deployments in model groups outside that region for that user. Work through the customer list with the team that owns those accounts, so no EU-scoped customer is left without the setting. The check is a test call as that end user that succeeds against an EU deployment and fails when only non-EU deployments are offered.
Create team model aliases for EU groups
Using team-based routing, the administrator sets model aliases on each EU team so that the model name the team's applications request resolves to the EU model group. A worldwide group can keep the same model name for other teams. Record which teams use which aliases. The check is a request from an EU team's key that reaches an EU deployment, confirmed in the request logs by deployment name or tag.
Restrict EU virtual keys to EU model groups
Create virtual keys for EU teams and restrict each key to the EU model groups only, using the per-key model restriction. This step needs a PostgreSQL database, because virtual keys are stored there, so confirm the database is in place before creating keys. Keys issued before the restriction must be reviewed and rotated or restricted. The check is an attempt to call a non-EU model name with an EU key, which should be refused.
Test fallback and retry paths for non-EU traffic
Review the routing settings for retries, cooldowns and priority-ordered failover, which the routing documentation describes. Confirm that no fallback list for an EU group contains a non-EU deployment, and that a retry after a failure stays inside the same region. Simulate a failure of each EU deployment in a test environment and check the request logs to see where traffic goes. Record the result, because routing settings are easy to change later without anyone reviewing the fallback effect.
Document what the routing setup does and does not prove
The privacy lead records the routing configuration, the test results and the inventory in the processing records, and states plainly that routing selects deployments but does not establish where prompts are processed by the provider, what access a provider's staff or authorities may have, or whether transfer conditions are met. Those questions need the provider contract, processor assessment and transfer analysis. The output is a short evidence file that a reviewer can read alongside the contract and assessment records.
How an EU-restricted request flows through the gateway
The request starts with an EU team's virtual key, which resolves to the team's model alias. The gateway then filters the model group down to deployments tagged eu, so the call only reaches EU-tagged deployments. The boundary to check is after the provider receives the prompt: routing decides where the request is sent, but it does not control remote support access, storage outside the EEA or third-country authority requests at the provider.
Routing enforces the EU deployment choice; provider-side access sits outside it.
Evidence that routing configuration produces and how to keep it
Routing settings only protect data residency if you can show what was configured, when it changed and who changed it. The cards below cover the artifacts a security or compliance reviewer will ask for, and which of them belong under change control before a model group goes live for EU-only traffic.
Exported region configuration
Export the allowed_model_region value on each customer, the region_name tags on every deployment in each model group, and the team model aliases that map EU groups to EU-hosted deployments. Store the export with a date and the gateway version it came from. A reviewer can then compare the file against the live configuration and see whether the EU-only rule matches what the gateway enforces. Confirm the export format with your own installed version, because field names can change between releases.
Key and budget change records in PostgreSQL
Virtual keys, team assignments and budget changes are stored in the PostgreSQL database that LiteLLM requires for virtual keys. Query those tables to show which keys were restricted to EU model groups, when a key was created, and when a temporary budget increase was granted. Keep these queries in version control so the same evidence can be pulled again at audit time. Check with your database team how long rows and backups are kept.
Enterprise audit logs of configuration changes
If your license covers audit logs, they record administrative changes to keys, teams and models. Confirm that the audit log captures changes to region tags and team aliases, not only key creation. If your deployment is on open source without the Enterprise license, you will need another record of configuration changes, such as the infrastructure-as-code history, and you should document that gap.
Enterprise docsTest calls showing exclusion of non-EU deployments
Keep dated test results from requests made as an EU-restricted customer and as an EU-restricted team. Each test should show that calls route only to EU-tagged deployments and that the gateway returns an error or fails over inside the EU group when none is available. Include the negative case: a request for a model that exists only outside the EU must not succeed. Repeat these tests after every upgrade or routing configuration change.
Provider data processing terms and sub-processor lists
Collect each model provider's data processing terms, sub-processor list and stated processing locations for every EU deployment you rely on. Record the version or date of each document you reviewed. A region tag shows where the gateway sends a request, but these documents show what the provider does with it, including support access and onward processing. Ask the provider to confirm which regions its sub-processors operate in, and note any terms that do not answer this.
GDPR text on EUR-LexItems to keep under change control
Put the region tags, allowed_model_region values, team model aliases, deployment definitions and the router configuration in the same version-controlled repository, with a required reviewer for any change that adds a deployment outside the EU. Keep provider terms and sub-processor records in the compliance repository with an owner and a review date. Any change to these items should link to a ticket that explains the residency impact.
Questions teams ask before EU-only LiteLLM routing
Is EU-only model routing enough to meet GDPR data residency requirements?
No. Routing decides which deployment a request is sent to, but it does not prove where prompts are processed, stored or viewed. GDPR Article 44 requires every transfer of personal data to a third country, including onward transfers, to meet Chapter V conditions. The EDPB Guidelines 05/2021 (version 2.0) treat remote access from a third country, even only displaying data on a screen for support, as a transfer, and storage in a cloud outside the EEA as a transfer too. So the team must also check the provider's support access, backups, logging sinks and sub-processors. Routing is one control in a larger transfer assessment, and the controller remains responsible for showing that assessment.
What drives the cost of configuring EU-only routing?
The work scales with the number of model deployments, the teams and customers that need EU-only access, the providers involved and the contracts behind each one. Each deployment needs a region tag and a check that its provider terms and data processing agreement cover the EU hosting you rely on. Each team needs a model alias set so its calls land only on EU groups. Each provider adds its own authentication, quota and contract review. Ask for a quote that lists each deployment, team alias and provider contract as separate line items, and separate one-time build work from any recurring retainer for upgrades and retesting.
How long does it take to scope and test EU-only routing?
The duration depends on how many deployments, teams and provider contracts are in scope, and on how quickly your legal and procurement teams confirm hosting terms. DeployOpen does not quote a timeline before the written scope exists. Most engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts. Ask for the schedule to split into inventory and contract review, configuration, negative testing (confirming that a non-EU deployment is never selected for an EU-restricted caller) and a documented sign-off.
What must our team supply before the engagement starts?
Prepare three inputs. First, a model inventory listing every deployment, its provider, its hosting region and the model group it belongs to. Second, the provider terms for each deployment, including where data is stored and processed and what support access exists. Third, the status of data processing agreements with each provider and any transfer mechanism you rely on, such as standard contractual clauses under Commission Implementing Decision (EU) 2021/914. You should also name the teams and customers that need EU-only access and the people who approve changes to routing rules.
Can an internal platform team configure EU-only routing without a partner?
Yes, if the team already runs the LiteLLM proxy and has someone who can edit its configuration and test it. The region tags, customer settings and team aliases are configuration items, so the technical part is achievable in-house. The harder parts are the contract review, the transfer assessment and the negative testing that proves an EU-restricted call never reaches a non-EU deployment. Teams often find these need legal input and a documented test record that an auditor or supervisory authority can read. Decide which of these your team can own before deciding whether to bring in outside help.
Does the EU-US Data Privacy Framework or the C-703/25 P appeal change the design?
Yes, it can change which providers and regions you can rely on without extra safeguards. Commission Implementing Decision (EU) 2023/1795 finds adequate protection only for US organizations on the Data Privacy Framework List. An appeal against the General Court's September 2025 judgment upholding it is pending as Case C-703/25 P, so the position may change. Design your routing so that an EU-only restriction does not depend on a US-hosted provider's certification alone. Keep standard contractual clauses and a documented transfer assessment as a fallback, and recheck the list and appeal status before each review.
Does using an EU-hosted provider with a non-EU parent count as a transfer?
Not by itself, but the question needs a documented answer. EDPB Guidelines 05/2021 (Example 12) say that using an EU processor subject to third-country law with extraterritorial effect is not itself a transfer. However, complying with a third-country authority request would be one, so the controller should assess that exposure before engaging such a processor. The US CLOUD Act provision at 18 U.S.C. 2713 requires covered providers to preserve or disclose data in their possession, custody or control regardless of location. Ask each provider how it responds to government requests and record your assessment alongside the routing design.
How DeployOpen works on this
DeployOpen plans and configures EU-only model routing inside your own infrastructure, so the region tags, team aliases and customer restrictions match the data flows your compliance team has approved. We document what the configuration does and what it does not prove, so the routing setup can be reviewed as one part of a wider data residency assessment.
How we scope
- We list which customers, teams and model groups must stay on EU-hosted deployments, and which may use worldwide groups.
- We map every place a prompt or log could leave the EU, including provider endpoints, fallback routes and logging destinations.
- The written scope names the LiteLLM version, configuration files and the test cases that will prove routing behavior.
How we build
- We tag each model deployment with its region and set allowed_model_region on the customers that require EU processing.
- We create team model aliases for EU groups so their calls resolve only to EU model groups, with a separate alias for worldwide use.
- We test failover and retry paths to confirm that a request cannot reach a non-EU deployment when the EU group is unavailable.
How we hand over
- You receive the routing configuration as versioned files, with a record of each region tag, alias and customer restriction.
- The handover includes a written statement of what routing enforces and what remains with your team, such as provider contracts and access from outside the EU.
- We provide test evidence and a runbook so your team can rerun the routing checks after each upgrade or configuration change.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades and continuous testing of routing changes are available as a retainer.
- Before any change to providers or regions, we can review the effect on the documented data flows with your compliance team.
Sources and further reading
- LiteLLM docs: Region-based routing for customers ↗
- LiteLLM docs: Team-based routing ↗
- Regulation (EU) 2016/679 (GDPR), EUR-Lex ↗
- EDPB Guidelines 05/2021 on the interplay between Article 3 and Chapter V (version 2.0) ↗
- EDPB Recommendations 01/2020 on measures that supplement transfer tools (version 2.0) ↗
- 18 U.S.C. 2713, Required preservation and disclosure of communications and records ↗

