Documentation

Overview

The architecture of zOS — every layer of the stack, and where each component sits. Working code, June 2026.

zOS is an AI-native operating system for people and organizations: AI that knows everything you teach it and never shares it in the wrong room. The homepage tells that story; this page is the architecture — the layers of the stack, what each one does, and where every component sits. If you read nothing else, read this page — it defines the vocabulary every reference uses.

Three terms carry most of the weight. A context is one room of your life or business — work, personal, each client — declared as a plain config file. The canon is the assembled set of values, priorities, and rules your AI loads at the start of every session. The firewall is each context's declared list of things that must never leave that room, checked on every call.

The architecture

Three working layers — experience on top, trust in the middle, the brain underneath — with five supporting libraries around them and your own model providers and storage at the bottom. Every model call enters at the top and is governed on the way down and again on the way back up.

Experience layer
Apps & clients
Anything that already speaks the model APIs — chat clients, IDEs, agents, your internal tools. No SDK required. Consumer app: in design.
↓ every model call ↓
Trust layer
The self-hosted checkpoint on every call: resolve the context, firewall-check the request, check the budget, forward with your key, firewall-check the response — mid-stream included — and write the audit record.
↓ enforces what the brain declares ↓
Brain layer
What your AI knows, obeys, and remembers: contexts as config · canon assembly · attestation · disciplined memory · model routing — plain files you own.
↓ operated and measured by ↓
Your model providers & storage
Bring-your-own API keys — Anthropic, OpenAI-compatible, or local models — and audit, memory, and config land on disks you control. Your keys, your data plane: prompts and memory never transit anyone else's servers.

The division of labor is deliberate. zos‑core defines what your AI knows, obeys, and remembers; zos‑gateway is the checkpoint that enforces it on every call. The core is source-visible so the guardrails can be verified, not merely promised. The gateway is the product. Full references: zos-core library API · zos-gateway REST API.

zos-gateway — the trust layer

A self-hosted server that sits between any AI application and the model providers. It speaks the same API your tools already use, so adopting it is pointing them at a different address — and from that moment, every call is governed.

Status: working code · 40 tests · CI green · BUSL-1.1 · repository private until public launch. Full reference →

zos-core — the brain engine

Everything about how a person's (or an organization's) AI is configured lives here, as plain files you own.

Status: working code · 132 tests · CI green · BUSL-1.1 · repository private until public launch. Full reference →

The component family

Two products carry the promise; five focused libraries carry the operations around it. Each library is a standalone Python package — stdlib-only at runtime (zos-evals adds PyYAML) — usable with or without the rest of zOS.

Licensing

Every zOS component — the two products and the five libraries — is source-visible under the Business Source License 1.1. BUSL-1.1 means: free for personal, non-commercial production use; production use by or for an organization requires a commercial license; and each version automatically becomes Apache 2.0 four years after its release. Selected components may move to Apache earlier as the platform matures.

What is deliberately not built yet

The managed control plane (org, seat, and context governance dashboards), the compliance rule packs (healthcare first), and the hosted tier are roadmap, not code. These pages describe only what exists and passes tests today — the same honesty rule the rest of this site follows.

The full references — zos-core and zos-gateway — mirror docs/API.md in each repository, derived from the source at 0.1.0. Questions? Request early access.