← Back to the journal

DataFocus · Journal

Self-hosted or cloud AI data platform for compliance? A data-sovereignty decision guide

No major rule mandates self-hosting, but PIPL, the Data Security Law and EU transfer rules make every byte that leaves your boundary a compliance event. Decide by data class and by where the model runs, then require the same controls in either model.

Neither China's nor the EU's main data rules require an AI data platform to be self-hosted; they regulate what leaves your boundary, on what legal basis, and what you can prove afterwards. Self-host when the platform will touch personal information or high-grade business data that you cannot lawfully or practically send to a provider's environment, and when you have the people to run it. A managed cloud service is a defensible choice for lower-grade data where the transfer mechanism and the provider's contract hold up, and in both cases the external model endpoint usually matters more than where the servers sit. This is an engineering reading of the primary texts, not legal advice.

Which regulations push data-location decisions?

Four instruments come up most in reviews of AI data platforms that touch China or the EU:

InstrumentWhat it constrainsWhy it affects hosting
China's Personal Information Protection Law (PIPL), effective 1 November 2021Article 38: personal information may leave mainland China only after a CAC security assessment, certification, a standard contract with the foreign recipient, or another condition set by law (DigiChina translation, 2021)An offshore cloud region or model API that receives prompts containing personal data is a cross-border provision
China's Data Security Law, applied from 1 September 2021Article 21 sets up categorized and graded data protection based on importance and potential harm (DigiChina translation, 2021)Higher-grade data brings stricter handling, which often rules out third-party environments
EU–US Data Privacy FrameworkThe European Commission adopted its adequacy decision on 10 July 2023 (European Commission)Gives a transfer basis to certified US recipients; your provider and its sub-processors must actually be covered
EU AI Act, Regulation (EU) 2024/1689Article 12 requires high-risk AI systems to "technically allow for the automatic recording of events (logs) over the lifetime of the system" (AI Act Explorer)You need logs you control and can keep, whoever hosts the system

PIPL penalties set the stakes. Article 66 allows fines of up to 50 million yuan or 5% of annual revenue for serious violations, plus personal fines for the managers directly responsible (DigiChina translation, 2021).

On AI Act timing, as originally adopted, Article 113 applied the regulation generally from 2 August 2026 (AI Act Explorer). A report from the Danish Society of Engineers dated 10 July 2026 says the Parliament and Council approved the Digital Omnibus for AI, which moves high-risk obligations to 2 December 2027 for standalone systems and 2 August 2028 for systems embedded in products, with Official Journal publication still to come (ds.dk, 2026). This is a secondary source, so check the Official Journal before you build plans on these dates. The logging requirement does not change with the delay.

None of these texts say "on-premises". They make data movement and evidence the things you are judged on, and hosting is one way to manage those.

What does "self-hosted" actually cover, and what changes with an external model?

Self-hosting is about a boundary, and an AI data platform has more components than a classic database. Plot each of these on a diagram, mark which side of your boundary it sits on, and you have the honest answer:

  1. Source data and the platform's own storage: tables, document stores, caches.
  2. Derived artifacts: embeddings, summaries, query results, exports.
  3. Logs and receipts: what was asked, what ran, what came back.
  4. The model endpoint: where prompts and retrieved context are sent.
  5. Operations access: who can get a shell, and from where.

A platform can be fully self-hosted for items 1–3 and 5 and still send every prompt to an overseas model API in item 4. Retrieved rows usually travel inside that prompt. For PIPL Article 38, that is the transfer that needs a basis.

DataFocus OT shows this split in its documentation. DataFocus OT is self-hosted: it runs on the customer's own servers, administrators configure the large-language-model service, and with an external model the customer should confirm what is sent to it under its own data policy (OT product brief). The vendor's deployment checklist lists "model choice" and "data egress" next to OS, capacity, data authorization and backup ownership. Treat model routing as a deployment decision you document. It is not a default to accept.

Going the other way, a cloud-hosted platform that calls a model in the same region and jurisdiction may create fewer transfers than a self-hosted one pointed at a foreign API.

What delivery options does DataFocus OT offer?

DataFocus's homepage lists three routes: self-host for free, work with a builder (an implementation partner), or discuss a hosted deployment (datafocus.ai). Separately, its deployment docs describe a cloud service run from a console where you register, purchase, activate and renew. Pricing and available editions are shown in that console, not published (download page).

RouteWhere the platform runsWhat compliance has to check
Self-hostYour serversModel endpoint and egress; your own patching, backups and access control. "Free" covers the software, not servers, model calls or third-party services
BuilderAgreed with the partner (DataFocus does not specify)DataFocus advises agreeing ownership, customer relationships, delivery scope, maintenance and commercial terms before starting; add the partner's data access to your processing records
Hosted / cloud serviceProvider environmentRegion, transfer mechanism, sub-processors, log retention and export, exit terms; ask the provider directly, since DataFocus publishes no region or certification details

DataFocus publishes no compliance certifications for any of these routes. If your framework needs one, ask for evidence in writing and don't assume it.

Which controls should you require in either model?

Hosting moves responsibility around, but it does not remove these controls. Write them into the requirements whichever route you choose.

  • Permissions enforced at the server, inherited by agents. In DataFocus, permissions travel with the ontology: an agent gets only what the authorizing user may see, requests outside the grant do not reveal whether the data exists, and revoking access takes effect at once. Its docs tell you to check server-side visibility for queries, relationships, summaries, caches, logs and exports. That list is a useful test plan for any platform, because caches and exports are where scoping often fails.
  • Data classes mapped to model routes. Following the Data Security Law's graded approach, decide which grades may reach which model endpoint. A simple rule: personal information and top-grade business data go only to a model inside the boundary. Everything else can go to an approved external endpoint with a recorded transfer basis.
  • Evidence for every answer and every change. DataFocus's homepage says every call records sources, definitions and returned scope, and every change records before and after, the diff and who approved it. It also says that approval binds a specific version and scope and has to be repeated if the version changes. Agent actions are recorded in an audit log as well. These records are the kind of material AI Act Article 12 has in mind.
  • Log ownership and retention. In a hosted model, confirm you can export logs in full and keep them for your retention period after you leave.
  • Exit path. Know how data, definitions and logs come back to you, and in what format.

A decision matrix

Hypothetical scenario: a manufacturer with plants in China and a sales office in Germany wants agents to answer questions over ERP, quality and HR data. The matrix below is how a compliance lead might route each data class. It is illustrative and not a ruling on any specific case.

Data in scopeRecommended hostingModel endpointReason
HR and customer personal information (China)Self-host in ChinaModel inside the boundaryAvoids PIPL Article 38 transfer conditions entirely
Important or high-grade production dataSelf-hostModel inside the boundaryDSL grading; regulator and customer expectations
Internal operational metrics without personal dataEitherApproved external model, transfer basis recordedLower grade; convenience can win
EU employee or customer dataSelf-host in the EU or EU-region hosted serviceEU-region or DPF-covered providerTransfer basis must cover the whole chain, including sub-processors
Public or synthetic data (demos, training)HostedAny approvedLow risk; fastest start

Turn the matrix into three questions for every new use case:

  1. Does any input or retrieved context contain personal information or high-grade data? If yes, self-host and keep the model inside the boundary, or document a valid transfer mechanism first.
  2. Can you staff patching, backups, monitoring and upgrades? If not, a hosted option with strong contractual controls may be safer than a self-hosted system nobody maintains.
  3. Can you get the logs and receipts out and keep them? If not, the option fails the AI Act logging question regardless of where it runs.

Trade-offs and when self-hosting is not the right fit

Self-hosting costs real money and time. DataFocus's own docs say so: "You pay for servers, model calls and third-party services." You also own the security patching and the on-call rota. For a team without infrastructure staff, working only with low-grade data, a well-contracted cloud service in the right region may be the more compliant result in practice. A neglected self-hosted system is a liability of its own. Self-hosting also does nothing for a prompt that still goes to an offshore API. If you can't run a model inside the boundary, much of the sovereignty benefit is lost.

Next step

Read DataFocus's OT product brief for how the self-hosted deployment and model configuration are described, and the download page for the self-host terms and the separate cloud service. Then fill in the matrix above with your own data classes before you talk to any vendor.