DORA and NIS2: what they mean for where agents run

Neither law mentions AI agents or tells you where to run them. Both make you answer for every machine your code runs on and every company that operates one. What that asks of an agent's machine, and which hosting option answers it.

Laurentiu CiobanuLaurentiu Ciobanu13 min readGuides
A round creature with a ledger lifts a loose cord that trails out of a workroom door toward a lone, dim blue machine far away in the dark. Beside it, other creatures stand in a row, each holding a cord tied to its own lit machine.
On this page · 13 min

Why it matters: the provider nobody put in the register

Picture a payment institution in Utrecht with 60 developers. Last spring a few teams started giving tickets to coding agents, and the agents do their work in sandboxes rented from a startup in San Francisco. Nobody thought of it as outsourcing, because it came in as a developer tool on a team credit card.

Then internal audit updates the register of information, the list DORA makes every financial entity keep of its technology providers. The auditor has four questions for the platform lead. In which country do those sandboxes run? Which companies does the startup itself rent from? Can we, or our regulator, inspect them? And if the startup shuts down next month, how do we get our work out and carry on?

The platform lead can answer none of them. Each agent works on a machine that holds a copy of the source code and the credentials to change it, and the law expects you to know the company that operates it as well as you know your cloud provider.

Companies that aren't banks get the same questions. NIS2 asks them of energy firms, hospitals and managed service providers, and both laws pass them down to suppliers in contract annexes.

What DORA compliance means

DORA compliance means a financial company can show that it manages its own technology risk, including the part it has handed to providers. DORA is the Digital Operational Resilience Act, an EU regulation that has applied since 17 January 2025. It has nothing to do with the DORA metrics from software delivery, which come from the DevOps Research and Assessment programme and only share the acronym.

The DORA regulation applies to financial entities: banks, payment institutions, investment firms, insurers and others, 20 types in all. It also reaches the companies that sell them ICT services, short for information and communication technology, which the law defines broadly as digital and data services provided on an ongoing basis. A hosted sandbox for agents fits that definition. For most providers the rules arrive through the contract a financial customer has to impose, and only the largest are supervised directly.

The requirements are usually described as five pillars:

  1. ICT risk management: know, protect and recover your systems.
  2. Incident reporting: report major incidents to your regulator.
  3. Resilience testing: test your systems regularly.
  4. Third-party risk: keep a register of every ICT provider and put specific terms in each contract.
  5. Information sharing: firms may exchange threat intelligence.

The deadlines for a major incident are short. In the EBA's summary, the first notification is due 4 hours after you classify the incident as major and at most 24 hours after you detect it, with further reports at 72 hours and 1 month.

What happens if you don't comply depends on the country, because DORA leaves penalties for financial entities to each member state and names no amount. The largest providers are supervised at EU level: the list of critical providers published in November 2025 has 19 names, among them the European arms of Amazon Web Services, Google Cloud and Microsoft.

What NIS2 requires, and how it sits next to DORA

NIS2 requires the same kind of risk management from 18 sectors, banking among them, and it works through national law. It is a directive, which means each EU country writes it into its own legislation, so the rules you follow are your country's. The Dutch version, the Cyberbeveiligingswet, has been in force since 15 August 2026.

The NIS2 directive covers medium-sized and large organisations in sectors such as energy, health, manufacturing and digital infrastructure. Cloud providers, data centres and managed service providers are named. Each organisation counts as either "essential" or "important", and the essential ones face the higher fines. In both groups the management body has to approve the security measures and can be held liable for infringements.

Article 21 lists ten measures every such organisation must take. Four bear directly on where code and agents run: supply chain security, security in how systems are developed and maintained, access control and asset management, and backup and disaster recovery. If you are the supplier, the directive tells your customers to weigh your "secure development procedures", and an agent that writes your code on someone else's machine is part of those.

NIS2 has its own clock for a significant incident: an early warning within 24 hours, a notification within 72 hours and a final report a month after that. Unlike DORA it names a fine, which for essential entities goes up to 10 million euros or 2% of worldwide turnover, or more if a country sets it higher.

If you are a financial entity, DORA takes precedence, because NIS2 steps aside where a sector has its own EU law with equivalent requirements.

What the two laws ask about an agent's machine

The two laws ask the same things about an agent's machine as about any other system: what it is, who controls it, and what happens when it fails. Neither forbids non-EU providers, and DORA states in its preamble that it "does not impose a data localisation obligation". A vendor who says DORA requires an EU region is overstating it, because what DORA requires is a contract that names the location. A customer or a national rule can still ask for more.

An agent's machine is in scope because of what is on it: a checkout of your source code, a token that can push to it, and sometimes a database extract someone needed for a bug. It also runs code a language model wrote a moment ago, with network access. Under either law that makes it an asset you have to account for, and if another company operates it, a supplier relationship as well.

For that machine, the articles come down to seven questions.

The questionWhere it comes from
What is this machine, and what data is on it?DORA Article 8 (asset inventory); NIS2 Article 21
Who can get in, and what can it reach on the network?DORA Article 9 (access, authentication, segmentation); NIS2 Article 21
In which country does it run, and where is its data stored?DORA Article 30 (named locations, notice before they change)
Who operates it, and who do they depend on?DORA Articles 28 (the register) and 29 (subcontractors); NIS2 Article 21
Can you and your regulator inspect it?DORA Article 30 (audit rights, for critical or important functions)
Can you restore it, and can you leave the provider?DORA Articles 12 (backups), 28 (exit) and 30 (data return); NIS2 Article 21
Would you find out in time to report an incident?Both laws' reporting deadlines, which start when you become aware

How heavy the answers have to be depends on one classification. DORA sets its strictest contract terms, audit rights and exit strategies among them, for ICT services that support a "critical or important function", meaning one whose failure would materially harm the firm's finances, its continuity or its licence. Agents that write internal tooling probably don't qualify. An agent that holds deploy credentials for the payment system is a harder call, and your compliance team makes it. The register lists every ICT provider either way.

One provider stays wherever the machine runs. An agent sends your code to a model API with every request, so the company behind that API, often the agent's own vendor, gets its own line in the register.

The options: where an agent can run

An agent can run in five places, and they differ mainly in who operates the machine. That decides how many of the seven questions you can answer from your own systems, and how many depend on someone else's contract.

WhereWho operates the machineYou answer from your own systemsDepends on someone's contract
Developer laptopsThe developerAll seven, one laptop at a timeThe model API
A hosted serviceThe vendor, in its cloudWhat is on the machine and who you let inLocation, the vendor's own providers, inspection, restore and exit, incident notice
BYOCThe vendor, in your cloud accountThose two, plus location and the data itselfThe vendor's access, inspection, incident notice
Self-hostedYouAll sevenThe cloud underneath, unless you own the hardware
Air-gappedYou, with no outside connectionAll seven, with a model you run yourselfNothing outside your walls

Laptops add no infrastructure provider, but an agent on a laptop acts under the developer's identity, with no log of its own and no network boundary around it, so you can't show an auditor what the agent did as distinct from the person.

A hosted service is the quickest start, because you can start machines on boxd or E2B, both sandbox services for agents, and operate nothing yourself. A boxd machine in the Frankfurt region stays on infrastructure within the EU/EEA, which gives the contract a location to name. One of the 19 critical providers has an advantage a smaller vendor lacks, because EU supervisors already oversee it directly. Your own duties stay the same, though, and DORA asks you to weigh how much already depends on one provider.

BYOC puts the machines in your own cloud account while the vendor still operates them. boxd runs this way inside a customer's account, E2B offers it on enterprise plans, and Daytona runs workloads on your infrastructure from its own control plane. The vendor remains a provider you assess. Ask every vendor, us included, where the control plane runs, the part that schedules the machines, because it may still be in the vendor's cloud.

Self-hosting means you run the platform: you can self-host boxd on Google Cloud, AWS or bare metal; Coder, a dev-environment platform, is self-hosted by design, and E2B publishes a self-hosting guide. No other company operates the machines or holds what is on them, and the work moves to you: patching, backups and access reviews become yours, the cloud underneath is still a provider unless you own the hardware, and whether a software licence with support counts as an ICT service is a question for your lawyer. Ask the vendor what happens to your cluster if it goes out of business.

An air-gapped install is self-hosting with no connection to the outside, which means the model has to run inside the perimeter too. It is harder to run, and some defence and public-sector policies require it anyway. boxd is available air-gapped on request, and Northflank can run its control plane that way.

Wherever it runs, the machine should be a locked-down sandbox with an egress allowlist, a list of the only outside hosts it may contact. That settles what the machine can reach, and who can log in stays with whoever operates it.

How to choose where your agents run

Choose by which law reaches you and by whether the agents touch a critical or important function. Under DORA you need the register entry and the contract terms on paper. NIS2 itself prescribes neither, so the same seven answers go into your own risk documentation.

If you are in scope of neither law and don't sell to anyone who is, you don't have to change anything. Keep a list of where agents run and what they can reach.

If you sell to regulated customers, expect the seven questions in a security questionnaire or a contract annex, and expect NIS2 customers to ask how your code gets written. Have the answers ready for each place your agents run.

Stay on laptops while a handful of developers supervise their own agents. Move off them once agents run unattended or in parallel, because then the agent's actions need a record separate from the developer's.

Use a hosted service when the work isn't a critical or important function and the vendor will sign the terms: named locations, notice before they change, return of your data, and termination rights. A provider established outside the EU brings extra questions under Article 29, about EU data protection rules and whether the law can be enforced there. A European provider spares you those, and boxd is a Dutch company with contracts under Dutch courts.

Use BYOC when a customer or your own policy says the data stays in your account, and you still want someone else to keep the platform running.

Self-host when you want to remove a company from the chain, or when the exit strategy is what worries the auditor. An exit plan is easiest to believe when the hosted and the self-hosted product are the same software. A self-hosted boxd cluster runs the same release as the hosted one and keeps the CLI, and it deploys in 30 to 60 minutes, so you can stand one up and test the move before you depend on it. The platform is a single binary with no Kubernetes to run, which keeps down the amount of software you now have to patch and document. Coder is the better fit if you already run Kubernetes and want workspaces defined in Terraform, and it comes with role-based access control and audit logging.

Go air-gapped only when a written policy says so, because you give up hosted models to get it.

The decision in one line

Know which company operates every machine your agents run on, be able to answer the seven questions for each one, and run the machines yourself where a provider can't give you the answers. For the platform lead in Utrecht, that means a register entry and a signed contract for the startup, or machines the company operates itself.

This is an engineer's reading of the two laws, so have counsel confirm which one applies to you and how your country implemented it. If you want to see what running agents on your own infrastructure would take with boxd, talk to us.

Frequently asked

What is the DORA regulation?
DORA is the Digital Operational Resilience Act, an EU regulation that has applied since 17 January 2025. It makes financial entities such as banks, payment institutions, investment firms and insurers manage their technology risk, including the risk that comes from the ICT providers they use.
What are the 5 pillars of DORA?
ICT risk management, incident reporting, digital operational resilience testing, managing ICT third-party risk, and information sharing between financial entities.
What happens if you are not DORA compliant?
It depends on the country. DORA leaves penalties for financial entities to each member state and names no amount. Providers designated as critical are overseen directly and can be charged up to 1% of their average daily worldwide turnover per day, for up to six months.
What are the compliance requirements for NIS2?
Article 21 of NIS2 lists ten risk-management measures, among them incident handling, backup and disaster recovery, supply chain security, secure development, access control and asset management. Significant incidents need an early warning within 24 hours, a notification within 72 hours and a final report a month after that. Each EU country writes these into its own law.
Do DORA or NIS2 require data to stay in the EU?
No. DORA says in its recitals that it does not impose a data localisation obligation, and NIS2 has no such rule either. What DORA requires is that the contract with a provider names the countries or regions where the service runs and where data is stored, and that the provider gives notice before changing them.
Laurentiu CiobanuLaurentiu Ciobanu
PostShare
Published
Nov 30, 2026
Reading time
13 min
Words
2,618
Topic
Guides

Read next

Field notes

Subscribe for release notes and architecture write-ups

No spam, ever. Unsubscribe anytime.

Your inbox