kosa8 / Best sandboxes

Best sandbox · Data residency

The best sandbox for data residency and sovereign AI

Updated

Residency rules ask where data is stored and processed, and sovereignty asks who can be compelled to hand it over. For an AI agent sandbox that means choosing where the machine runs, where its snapshots go, and where the model calls go. kosa8 runs the same sandbox on your own computer, on your own servers, on kosa8 Cloud pinned to one region (US or EU), or air-gapped, and keeps snapshots local unless you push them.

01What residency and sovereignty need from a sandbox

A sandbox stores data in three places: the running machine, its disk and its snapshots. Each has to stay in an approved location, including copies made for forks, checkpoints and backups.

There is also a fourth path that is easy to miss: the model. If the agent calls a hosted model API, the prompt and the data in it go wherever that provider processes requests, whatever the sandbox does.

02Checklist for choosing one

  • Choice of location. Your machine, your servers, a named cloud region.
  • Region pinning. One setting that keeps every sandbox in a region.
  • Snapshots under your control. Stored where the sandbox is unless you move them.
  • Rules that follow the data. Labels that limit where snapshots may be pushed or exported.
  • Encryption for moved state. Bundles encrypted to keys you hold.
  • A local model option. So prompts need not leave the jurisdiction.
  • An audit trail of transfers. Who exported what, when.

03How kosa8 meets it

Locally, nothing leaves the machine: sandboxes, disks, checkpoints and the audit log are on your hardware. On kosa8 Cloud, name a region per sandbox or set the organisation's default region in Settings, which keeps every sandbox there. kosa8 Cloud needs an account with a payment method on file and an API key in KOSA8_API_KEY; see the Cloud quickstart.

residency.py
from kosa8 import Kosa8Cloud
 
cloud = Kosa8Cloud()                       # reads KOSA8_API_KEY
box = cloud.sandboxes.create(template="python", region="us-ash1")
print(box.info["region"])                  # us-ash1
print(box.exec(["python3", "-c", "print('processed in us-ash1')"]).stdout)
box.delete()

kosa8 Cloud has one region today, us-ash1 (Ashburn, Virginia, US East). For data that must stay in the EU or any other jurisdiction, register your own servers there as own hosts (BYOC) and manage them from the same dashboard, or run kosa8 standalone, air-gapped if you need it.

Snapshots stay where they were taken unless you run kosa8 snapshot push (to an R2 bucket you configure) or kosa8 snapshot export, which writes a bundle encrypted with AES-256-GCM that opens only where your key has been imported. A sandbox labelled above the floor level may be exported only to destinations its label allows. For the model path, kosa8 model serve runs a local model behind OpenAI- and Anthropic-compatible endpoints.

04When another option fits better

  • Your hyperscaler's sovereign regions. If your organisation has standardised on one provider's sovereign or government cloud, building on its VMs keeps you inside an authorisation you already hold.
  • Regions kosa8 Cloud does not have. kosa8 Cloud runs in US East only today. Anywhere else, use own hosts (BYOC), kosa8 air-gapped, or a local provider.
  • Model residency. If the agent must use a hosted frontier model, the model provider's regional processing options matter more than the sandbox's location.

05FAQ

Where does kosa8 Cloud run?

In one region today: us-ash1 (Ashburn, Virginia, US East). For any other jurisdiction, run sandboxes on your own hosts (BYOC) or air-gapped.

Do snapshots leave my machine?

Not unless you push or export them. kosa8 snapshot push uploads to an R2 bucket you configure; kosa8 snapshot export writes an encrypted bundle.

Does a local sandbox keep prompts local?

Only if the model is local too. The sandbox keeps code and data on your hardware; a hosted model API still receives whatever the agent sends it. kosa8 model serve serves a local model.

Is kosa8 certified for GDPR or a national sovereignty scheme?

No certification is claimed. kosa8 provides location choices and controls; whether a deployment meets a given rule is your organisation's assessment.

06Get started

Install kosa8 on a Mac, Linux or Windows (WSL2) machine, or make an account and run the same sandboxes on kosa8 Cloud.

07Sources

Related

Updated 2026-11-14