Why
Let AI work under its own identity
Most AI agents today get their work done by borrowing a person's account and screen. SonataOS starts at the operating-system level and makes each AI a principal that can be managed on its own.
The usual approach
- The AI runs as some person, so the system cannot authorize, limit, audit or revoke it separately.
- It borrows the person's screen, keyboard and pointer.
- It is tied to one device and one model vendor.
The SonataOS approach
- Each AI is a persistent principal with its own keys, certificate and grants.
- Each AI works on a virtual display of its own, and every action passes one gatekeeper and is audited.
- Devices cooperate as a swarm, and models can be swapped between local models and compatible services.
Architecture
No new kernel.
A Rust core on proven foundations.
Desktop and server builds sit on Linux, and phones and tablets are planned on AOSP. Above them is Sonata Core, shared by every edition, and above that the intelligence, resources and experience layers.
AI as a principal
Every AI has an identity of its own
Keys and certificate
Each AI has its own ECDSA P-384 key pair and an X.509 certificate from the swarm's own authority. Its identity is the name in that certificate, never an IP or MAC address.
A full lifecycle
Create, configure, pause, clone, re-key, relocate and retire. A clone copies duties and profile, never keys, rank or grants; retiring revokes certificate and grants for good while the records stay.
Private keys never travel
Moving an AI to another device generates a fresh key pair on the destination; a private key never leaves the device it was created on.
Governance
Authority is data, not rank
A grant states that a principal may perform matching actions on matching resources within one authority domain. Without grants, a newly created AI can do nothing.
Nine authority domains
Grants are divided into nine authority domains. Delegation can only narrow, never widen, and owner-reserved powers such as the emergency halt are built in and cannot be granted.
A two-rank organization
AIs are organized under a Prime Minister and Ministers. Rank decides only who may direct whom and never grants access to systems or data; an AI with no superior answers directly to people.
Hash-chained audit
Every authorization decision is written to a hash-chained audit log, so each record can be verified and none can be rewritten without trace.
Cryptography
Two layers of TLS 1.3,
end to end to every AI
Devices first set up a TLS 1.3 link; two AIs then run their own end-to-end TLS 1.3 session on top of it. When traffic is relayed, the relay sees only ciphertext. Everything uses standard TLS 1.3, with no home-made protocol.
Parameters
TLS 1.3 only; cipher suite TLS_AES_256_GCM_SHA384; key exchange SecP384r1MLKEM1024 (P-384 elliptic curve combined with ML-KEM-1024). Weaker options are not compiled in.
Implementation
TLS comes from rustls and every cryptographic primitive from AWS-LC; the hybrid exchange is assembled from their existing parts, with no new cryptography. Interoperability has been tested against OpenSSL 3.5.
Limits
The key exchange is a post-quantum hybrid, while authentication still uses ECDSA P-384. Each swarm runs its own certificate authority. No third-party security audit has been done yet.
Swarm
Devices form a swarm.
The authority can be switched off.
Paired devices on one local network form a swarm and share compute, storage, models and tools. The authority device holds the swarm's root key and signs a versioned directory; devices connect directly where they can, fall back to a relay where they cannot, and deliver cross-device work durably.
Pairing you can see
When pairing, both devices show a fingerprint, and trust is established only after a person compares them.
A signed directory
A device accepts the directory only if it verifies against the pinned root and is not a rollback; by default it stays valid for one week.
No always-on authority
The authority's only irreplaceable job is to admit and remove members. It carries no traffic, and the swarm keeps working while it is switched off.
So far this has been verified only on a network of virtual machines on one host, not yet on a physical network of separate machines.
Guard and Computer Use
Every action an AI takes
goes through one gate
Guard is the only path by which an AI touches files, processes, displays, the network or the browser. Neither model output nor skills can grant authority.
Canonicalize
Resolve the real path and resource name, closing detours.
Authorize
Ask governance on the AI's behalf and allow or refuse by its grants.
Execute
On Linux, run inside a sandbox derived from the grants, with memory and time limits.
Audit
Write the outcome to the hash chain; on refusal, return the reason to the model.
A screen of its own
Each AI has its own X11 virtual display. It works through the accessibility interface first, keyboard and pointer next, and screenshots with OCR or vision only as a fallback. It never uses the person's screen.
A governed browser
Pages load in a separate process, so the web engine never shares a process with keys, and every navigation and every resource a page loads is checked against the AI's grants.
Computer Use, the sandbox and the browser are implemented on Linux (X11) only. Privilege separation for Guard is designed but not yet built.
Models
Not tied to any one model
Standard interfaces
OpenAI-compatible and Anthropic Messages interfaces are supported, with API keys stored sealed. When set to local only, it reports an error rather than falling back to the cloud.
Local models
Local models are pinned by SHA-256 with their licence stated, placed by a memory planner, supervised by the node daemon and restarted if they crash.
People first
The owner picks one of five performance modes that set processor threads and concurrent requests, and AI yields the processor whenever a person is using the device.
Inference currently runs on the processor only; the GPU path is covered by unit tests alone, and NPUs are not yet supported.
Status
Developer preview.
The core is built; it is not yet installable.
What exists today is Sonata Core and the first layer above it: security, identity, organization and networking; the AI runtime with Model Hub and Guard; and Computer Use on Linux. There is no graphical shell, installer, or update and recovery mechanism yet.
Bars show the stage (done, mostly done, in progress, not started), not a percentage. Later plans include phone and tablet editions on AOSP, a server edition, swarms across networks, long-term memory and MCP.
Specifications
- Status
- Developer preview (pre-alpha); not yet an installable operating system.
- Editions
- SonataOS Desktop (Ubuntu LTS; a development image boots in a virtual machine); Server, Mobile and Pad (AOSP) are planned. Sonata Connect lets existing Windows, macOS, Linux and Android devices join a swarm; today it is the
sonatacommand line. - Implementation
- Rust (2024 edition), 13 crates, about 27,000 lines; one SQLite database per device; networking on Tokio.
- Encryption
- TLS 1.3,
TLS_AES_256_GCM_SHA384,SecP384r1MLKEM1024hybrid key exchange; mutual X.509 authentication (ECDSA P-384); end-to-end sessions between AIs; sealed storage uses a one-time key per object. - Certificate lifetimes
- Devices 365 days, AIs 90 days, swarm root 10 years.
- Models
- OpenAI-compatible and Anthropic Messages interfaces and local models (llama.cpp); local inference is CPU-only for now.
- Interface languages
- 9 (not yet reviewed by native speakers).
- Tested environments
- x86-64 Windows, x86-64 Linux (Ubuntu 26.04 LTS) and the development image in a virtual machine. ARM64, Android and GPUs have not been tested.
- Download and licence
- Not available for download, and no source release yet; the licence has not been decided.
- Measured on an x86-64 Linux PC with a GCC build; medians across runs were 2.92–2.99 ms. Handshake time is the two sides' computation added together and excludes network round trips. Windows figures reflect the current build path rather than SonataOS itself and are not shown.
- As of November 2026: 168 tests on Linux and 163 on Windows; the difference is platform-specific tests.