Skip to content
Runtime v0.1.0-alpha.24 · Apache-2.0

Agents act.ContextOS enforces the boundary.

An open-source Rust tool gateway (contextosd), fleet governance plane (Tower), and portable contract for enterprise AI agents across cloud infrastructure, finance & ERP, regulated data, and coding fleets. Apply configured limits, approvals, and egress rules to calls routed through the gateway. Hold uncertain outcomes and verify signed audit records offline.

Self-hosted in your own stack with your own models, credentials, and providers. Python & TypeScript SDKs for 11+ agent frameworks. Status & guarantees →

Example · contextosd · production infra boundary
prod-us-east · change freeze
sre-agent-1 → k8s.drain_node(prod-us-east-1)WITHHELD

change window active · an eligible break-glass grant can lift the freeze and is queued for independent review

mcp:terraform → apply(vpc_egress)QUARANTINED

MCP tool definition drifted from pinned digest · refused across replicas until reviewed re-pin or audited release

oncall-agent → db.failover(primary) [timeout]HELD · UNKNOWN

outcome unconfirmed · blind retry blocked until cloud state reconciles

tower kill-switch · 4 scopes readyIncident Command playbook →
Enterprise workloads

Govern consequential tool calls across four enterprise workloads.

Cluster restarts, vendor payouts, sensitive-record handling, and pull requests raise a common set of questions about concurrency, tool drift, egress, retries, and authority.

01 · Cloud, Infrastructure & SRE

Stop runaway cluster changes, drifted MCP tools, and blind failover retries.

Without a boundary: Remediation agents mutate prod during a freeze, retry a timed-out failover into a split-brain outage, or invoke a silently altered third-party MCP server.

  • Server-clock change windows, time-limited break-glass grants, and independent review afterward
  • MCP tool-definition pinning with automatic cross-replica drift quarantine
  • Unknown-outcome holds on timed-out infrastructure mutations & 4-scope kill switches
Read the Incident Command playbook
02 · Finance, Payments & ERP

Enforce shared monetary ceilings and block duplicate payouts across concurrent agents.

Without a boundary: Two agents race the same customer refund or vendor payout ceiling, a lost processor response triggers a double payment, or approvers rubber-stamp high-value transfers.

  • Atomic shared business ceilings across concurrent agents and replicas in PostgreSQL
  • Intent keys, provider recovery contracts, and at-most-once governed compensation
  • Exact action-bound approvals + Tower denial/override rubber-stamp analytics
Read the Finance & Back-Office playbook
03 · Regulated Data, Privacy & Compliance

Block prompt-injected data exfiltration and hand auditors offline-verifiable proof.

Without a boundary: An agent reads patient, KYC, or HR records and leaks them to an uncleared vendor, shadow models run unmonitored, or GDPR/DPDP erasure breaks audit trails.

  • Data-category egress boundaries (personal, health, card, secret) by tool, vendor, and region
  • Audit-computed Tower inventory & shadow detection (ctx inventory --fail-on-shadow)
  • Legal holds, chain-preserving subject erasure, and offline ctx audit-pack (SOC 2 / ISO 42001 / EU AI Act)
Read the Compliance & Risk playbooks
04 · Autonomous Coding & Engineering Fleets

Cap parallel subagent spend, narrow developer delegation, and gate agent releases.

Without a boundary: Coding swarms burn department LLM budgets overnight, inherit broad production tokens, or ship prompt/harness regressions without reliability evidence.

  • Shared usage ceilings across runs (counting metered overage) + BU/owner/tenant chargeback
  • Multi-hop delegation chains + SPIFFE/mTLS narrowing authority to the delegating engineer
  • Evaluation-gated agent releases (ctx reliability-gate pass^k) & ctx simulate dry-runs
Read the Software Delivery playbook
Try locally · v0.1.0-alpha.24

No Rust, model key, or external account needed.

Run the gateway demo with a shared refund ceiling.

Two agents race one shared ceiling against a synthetic payment provider. The gateway holds a lost response for reconciliation, and the script verifies the signed Ed25519 audit log offline. Configure the same gateway for the controls required by your cloud, ERP, or coding tools.

# Apple Silicon
asset=contextos-v0.1.0-alpha.24-aarch64-apple-darwin.tar.gz
base=https://github.com/contextosai/ContextOS/releases/download/v0.1.0-alpha.24
curl -fLO "$base/$asset" &&
  curl -fLO "$base/$asset.sha256" &&
  shasum -a 256 -c "$asset.sha256" &&
  tar xzf "$asset" &&
  cd "${asset%.tar.gz}" &&
  ./examples/shared-guarantees/run.sh
# Connect any agent framework
pip install --pre contextos-client
npm install contextos-client
What ships today

A gateway that enforces. A control plane that governs. A contract you own.

Prompt guardrails break under retries, concurrency, and tool drift. ContextOS puts deterministic enforcement in front of external effects—and pairs it with an open specification so you are never locked into one runtime.

01 · Execution gateway

contextosd + SDKs

A Rust gateway in front of your HTTP and MCP tools—works with any model and 11+ agent frameworks across cloud, ERP, CRM, and code.

  • Shared business & spend ceilings enforced across concurrent agents and replicas
  • Exact action-bound approvals, risk tiers, change windows, and SPIFFE/mTLS identity
  • Unknown timeouts held for reconciliation instead of blindly retried
  • MCP tool-definition pinning with automatic drift quarantine & data-egress boundaries
  • Ed25519 hash-chained audit records verified offline
Read gateway docs
02 · Fleet governance

Tower + ctx CLI

Give security, platform, and compliance teams live visibility and hard brakes across every connected agent deployment.

  • Live inventory of agents, tools, models, and shadow findings computed from the audit chain
  • Two-person agent lifecycle approvals and four-scope kill switches (agent, tool, tenant, global)
  • Approval inbox with denial/override analytics that surface rubber-stamp reviewers
  • ctx simulate to dry-run candidate packs against recorded traffic before rollout
  • ctx audit-pack exports a signed folder auditors verify with Python's standard library
Explore Tower & CLI
03 · No vendor lock-in

Open Contract

Versioned Apache-2.0 schemas and deterministic conformance vectors define portable execution envelopes and checks.

  • Compatible v1 envelopes (RunContext, ContextPack, ToolEnvelope, DecisionRecord, ReplayPacket)
  • Five exact control profiles from personal-proactive to high-assurance
  • Deterministic TypeScript conformance reference and golden test vectors
  • Native multidimensional ActionRisk alongside v1 ApprovalMode compatibility
  • Run contextosd today or implement the exact same contract in your own runtime
Read the open spec
Anatomy of a tool call

Every check before an action lands.

Explore three illustrative workflows from admission and dispatch to reconciliation and offline audit verification.

Illustrative trace · infra.remediate

An SRE agent proposes a production cluster rollback during an incident.

RunContext + SPIFFE + Pack

Admit & pin

Bind incident scope, on-call engineer delegation, mTLS workload identity, and signed Context Pack before the agent touches cloud APIs.

admission.jsonpinned
principal_chaineng_oncall_19 → agt_sre (spiffe://corp/agents/sre)
pack_refctxpack.sre-prod@3.4.0 · signature verified
change_windowfreeze active (Fri 20:00 UTC) · break-glass eligible
Risk Tier + MCP Pin + Break-Glass

Authorize exact action

Check the pinned tool definition and bind approval to the exact rollback. An incident grant lifts the change freeze while the approval remains required.

dispatch-gate.jsonauthorized
capabilityk8s.rollback_deployment · risk tier: high
mcp_pinsha256 digest matches pinned manifest · not quarantined
approvalexact cluster and revision approved
break_glassinc_4412 · time-bounded grant · independent review queued
Intent Key + Blast-Radius Ceiling

Claim & dispatch

Atomically claim the deployment intent key and enforce the concurrent blast-radius ceiling so two remediation agents cannot drain multiple AZs at once.

shared-ledger.jsondispatched
blast_radiusaz_mutations:prod-us-east · 1 / 1 allowed · az-2 agent withheld
intent_keyik_rollback_checkout_v84 · duplicate trigger refused
kill_switchagent / tool / tenant / global revocations clear
No Blind Retries

Reconcile uncertainty

If the control-plane API times out mid-rollout, hold the operation as unknown and block retries until cluster state confirms health or rollback.

recovery-state.jsonreconciled
on_timeouteffect = unknown · az slot held · blind retry refused
postconditiondeployment checkout-api readyReplicas = 6/6 on rev 84
tower_findingbreak-glass grant awaits independent review
Ed25519 Audit Chain

Sign offline receipt

Record the delegation path, break-glass grant ID, MCP pin, and reconciled outcome. A configured sink can export those audit events.

audit-receipt.jsonverified: true
record_iddr_sre_8b12 · trace 7df10a…91c4
siem_exportdelivered to Datadog / Splunk HEC · ed25519:valid
offline_checkctx audit-verify checks the chain against trusted keys
Progressive architecture

Start at the tool boundary. Expand only when needed.

The ContextOS specification decomposes agent systems into five logical planes—not five mandatory services. Drop contextosd and Tower onto your Action and Trust boundaries on day one; adopt Context Compilation, Orchestration, and Memory contracts as workflows scale.

Honest scope

Every capability in the runtime is tied to threat-model tests (T1–T72) and explicit limits.

Stable contract

Open Spec & Schemas

Versioned JSON schemas (Apache-2.0), normative execution contract, control profiles, and deterministic TypeScript conformance vectors.

Runtime · v0.1.0-alpha.24

Rust Gateway & Tower

Runnable binaries, Helm chart, PyPI/npm SDKs, and Sigstore-signed releases. APIs and storage formats still evolve between alpha tags.

Your deployment owns

Infrastructure & Rules

Identity providers, PostgreSQL, signing keys, provider recovery contracts, and domain approval policies. ContextOS enforces them; it does not replace them.

Start with one consequential tool

Stop guessing what your agents changed.