Chio/Docs

Introduction

Chio is a modern Rust kernel for agentic operating systems.

Overview chio@5f63e6e

On this page

Build systems of agents that can act, delegate, and keep working. Chio gives them a common foundation: the kernel enforces the relationships between computers, processes, resources, and authority.

Fork a repository for every partner you work with, give each one's agents a budget, merge the first fix that passes, and verify everything they did.

hero.tshero.pysrc/main.rs · in main
import { Computer, USD, firstPassing } from "@chio-protocol/sdk";

const project = await Computer.open("quickstart");
const partners = await Computer.partners();   // every kernel you have paired with

// Each partner's agents get a fork, five dollars, and fifteen minutes.
// The forks are granted together, and every run works at the same time.
const runs = await Promise.all(partners.map(async (partner) => {
  const fork = await project.fork();
  const authority = fork.grant({
    to: partner,
    under: partner.treaty,
    resources: { "/workspace": ["read", "write"] },
    budget: USD(5),
    expiresIn: "15m",
  });
  return partner.exec("fix issue #417", { on: fork, authority });
}));

const winner = await firstPassing(runs, { check: "pytest" });   // the first fork whose tests pass
await project.apply(winner.changes);   // the merge happens under your authority

const evidence = await project.history.export("audit/");
await evidence.verify();   // every agent, call, and dollar

You define what agents pursue and how they work together. Give each agent the authority its work requires. Chio checks governed operations before execution, constrains delegated authority, and records signed decisions. The same foundation supports a local application, durable processes that resume across worker changes, and cooperation between independent operators.

Start building
Chio / Film
A world for agents
to work in.
The Chio trailer

An agentic operating system gives agents shared rules for working with files, commands, services, and one another. Applications decide what to pursue. Chio checks authority and policy; configured adapters carry out admitted operations. Its Rust decision core is separated from the runtime that performs I/O.

The foundation of an agentic operating system

A computer brings processes, resources, and authority into one governed environment. Workers run durable processes; files, commands, and services are reached through configured adapters. The kernel connects those parts under the authority and policy the application establishes.

System anatomy Select a part to inspect its role.

grantsrunsresumesrequestsdispatchestreatysignsAapplicationCcomputerpdurable processaworkera′replacementκauthorityKkerneldexecution adapterffilesccommandssservicesρsigned decisionK′federation peeriroh transport
grantsrunsresumesrequestsdispatchestreatysignsresourcesAapplicationCcomputerpprocessaworkera′replacementκauthorityKkerneldadapterffilesccommandssservicesρsigned decisionK′federation peeriroh transport
Process identity outlives a worker. Resource operations pass through configured adapters. Treaties connect independent kernels.

A process host retains identity, checkpoints, and named calls across worker changes. A federation peer extends cooperation beyond one operator: each kernel keeps its own authority and policy, while a treaty sets their shared requirements.

Admission comes before execution

An agent presents a request and a capability: a signed grant of authority. Chio decides whether that request may reach the execution adapter.

One request. Two possible outcomes.
κAuthoritygPolicyτApproval*BBudget*All required checks passA check refusesdExecuteThrough the adapterStopNo executionrRequestKChio kernel* Where requiredκAuthoritygPolicyτApproval*BBudget*rRequestKChio kerneldExecuteAll checks passStopA check refuses* Where required

Either way, a signed decision.

The adapter performs the admitted operation, followed by configured output checks. A refusal stops the operation before dispatch. The kernel signs a receipt of the decision and its available evidence.

What the kernel checks

Authority & policy Scope, caller binding, lifetime, and revocation. Rules for the operation and its inputs. Every required check must pass.

Approval & budget Checked where required. Approval can pause the call. A refusal stops the operation before dispatch.

Checks after execution cannot reverse an external effect.

Work can branch. Authority stays bounded.

A process can delegate work, and its children can delegate again. Chio verifies that authority narrows at each step, while the signed task graph bounds depth and fan-out. Many processes can work in parallel with distinct grants and allocations.

Recursive workInspect a relationship.
OperatorIndependent operatorallocatesrequeststreatyadmitsBPoolpProcessmay delegateKKernelp₁Child processnarrower grantp₂Child processnarrower grantp₃Descendantnarrower againp₄Descendantnarrower againK′Receiving kernelp′Processown authorityOperatorIndependent operatorallocatesrequeststreatyadmitsBPoolpProcessmay delegateKKernelp₁Child processnarrower grantp₂Child processnarrower grantp₃Descendantnarrowerp₄DescendantnarrowerK′Receiving kernelp′Processown authority

Authority narrows with each generation

A process can delegate work, and a child can delegate again. Every grant stays within its parent’s authority. The signed task graph bounds depth and fan-out and records how the work is connected. Signed task graphs.

Shared budget pools retain task allocations as work branches. A treaty sets the shared requirements for work between independent operators; each receiving kernel checks its own configured trust, policy, and evidence.

The application defines goals and composes work. Chio supplies the authority, allocation, graph issuance, recovery, and evidence contracts that keep it governed. Explore federation and swarms.

Decisions leave a verifiable history

Chio retains signed decisions and their connections to authority. Receipt commitments, checkpoint history, and witness signatures let another operator verify the retained records under its own trust policy.

Verifiable historySelect a record to inspect its role.
ρ₀ρρ₂ρ₃Receipt batchκ₀root authorityκdelegated authorityρsigned decisionRcheckpointR₀earlierw₁w₂w₃witness signaturesρ₀ρρ₂ρ₃Receipt batchκ₀root grantκcapabilityρdecisionRcheckpointR₀earlierw₁w₂w₃witness signatures

Signed decision

A receipt binds the kernel’s decision to its request, policy, and available evidence. Refused operations leave signed records too.

Authority branches through delegation. Receipt hashes converge into a Merkle commitment. Inclusion establishes batch membership; child completeness accounts for the declared child records. Consistency proofs and witness signatures establish the retained history under the verifier’s policy.

The kernel governs the paths that pass through it

Chio governs operations routed through its kernel. The host deployment establishes isolation: direct network access, local file handles, or credentials outside that route remain outside the kernel’s control. To make kernel admission mandatory for a protected resource, the deployment must prevent agents from reaching it through another path.

A signed receipt establishes what the kernel decided, not that an external effect happened as intended. The assurance model separates the two, and connecting an application shows how to close the other routes.

Start building

Start with one request to verify your installation, or embed the kernel in an application you control. Chio can run in process, behind an HTTP service, or as a local MCP bridge; choose the deployment boundary that fits your host and callers.

Already installed? Run the quickstart, then change its policy. To keep work across worker restarts, continue with Agent Processes.

Explore the system

Build systems in which agents write their own commands, delegate to sub-agents, and read untrusted text, while the kernel bounds what they reach and which data leaves. Beyond the Single Call shows how task-scoped grants, information flow, session rules, and containment combine into those systems.

Start Here · 1 of 14

NextInstallation