SDKs & Production Deployment
Install contextos-client for Python or TypeScript, integrate with 11+ agent frameworks, verify Sigstore releases, and deploy contextosd with PostgreSQL and Helm.
ContextOS runs inside your own infrastructure with your own models, credentials, and providers. This guide covers installing the client SDKs, connecting existing agent frameworks, verifying release artifacts, and running contextosd and Tower in production.
Install the client SDKs
The clients auto-key unkeyed effects so identical re-sent calls return their recorded result rather than duplicating upstream writes.
# Python (module name: contextos)
pip install --pre contextos-client
# Node / TypeScript
npm install contextos-clientLocal development server
From the unpacked release archive, start a local gateway backed by synthetic providers:
./examples/dev-server.shThe script prints the local gateway URL and bearer token so you can point your agent at contextosd immediately without standing up PostgreSQL or external payment accounts.
Framework integrations
The runtime repository maintains 11 framework integration guides showing how to wrap tool calls through contextos-client without rewriting your agent loop, plus starter control packs (ctx init-tool, ctx test, ctx plan, ctx build) for spend caps, egress boundaries, PII, destructive actions, environment separation, change freezes, and approvals.
Verify a release before deploying
Published releases include SHA-256 checksums, GitHub build-provenance attestations, and keyless Sigstore bundles. Use the current download and checksum commands for your platform. See Verify a release for cosign verify-blob and gh attestation verify steps.
Production deployment checklist
Production deployments use PostgreSQL for compare-and-swap ledgers, built-in TLS/mTLS (or private CAs via CONTEXTOS_CA_BUNDLE), and the Kubernetes Helm chart:
| Concern | What contextosd provides | What your deployment supplies |
|---|---|---|
| Durable state | Revision-checked PostgreSQL schema migrations (tested on upgrade from prior alpha) | Managed PostgreSQL, backups, and restore drills |
| Transport & identity | Native TLS/mTLS with cert rotation, SPIFFE ID enforcement, Entra ID / Okta / Keycloak guides | Identity provider, private CA / cert manager, JWT-SVIDs behind TLS proxies |
| Provider failover | Bounded-time replica failover that never resends an effectful call | Provider recovery contracts (recovery.completion) per upstream API |
| Privacy & erasure | Paged HMAC subject index ([privacy] subject_pointers), legal holds, chain-preserving erasure | Configure subject_pointers before admitting runs you may later hold or erase |
| Audit & SIEM | Ed25519 hash-chained log, ctx audit-pack, Splunk HEC / Datadog / Elasticsearch sinks | Trusted key management and independent auditor key distribution |
| Egress confinement | Agent egress confinement manifests in the Helm chart | Network policies and credential isolation so agents cannot bypass the gateway |
See the runtime repository’s deployment guide for full configuration and metrics references.
Related documentation
- 5-Minute Quickstart — run the shared-ceiling demo first
- Tool Gateway (contextosd) — gateway controls and shared guarantees
- Fleet Governance (Tower & ctx) — inventory, approvals, kill switches, and audit packs
- Project Status & Guarantees — release notes, upgrade breaking changes, and explicit limits