Skip to content
Press / to search

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.

Implementation GuideLast reviewed:
At a glance

Runtime · v0.1.0-alpha.24Implemented in contextosai/ContextOS (Rust gateway & Tower). APIs and storage formats still evolve between alpha tags.
Guarantees & limits

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-client

Local development server

From the unpacked release archive, start a local gateway backed by synthetic providers:

./examples/dev-server.sh

The 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:

ConcernWhat contextosd providesWhat your deployment supplies
Durable stateRevision-checked PostgreSQL schema migrations (tested on upgrade from prior alpha)Managed PostgreSQL, backups, and restore drills
Transport & identityNative TLS/mTLS with cert rotation, SPIFFE ID enforcement, Entra ID / Okta / Keycloak guidesIdentity provider, private CA / cert manager, JWT-SVIDs behind TLS proxies
Provider failoverBounded-time replica failover that never resends an effectful callProvider recovery contracts (recovery.completion) per upstream API
Privacy & erasurePaged HMAC subject index ([privacy] subject_pointers), legal holds, chain-preserving erasureConfigure subject_pointers before admitting runs you may later hold or erase
Audit & SIEMEd25519 hash-chained log, ctx audit-pack, Splunk HEC / Datadog / Elasticsearch sinksTrusted key management and independent auditor key distribution
Egress confinementAgent egress confinement manifests in the Helm chartNetwork policies and credential isolation so agents cannot bypass the gateway

See the runtime repository’s deployment guide for full configuration and metrics references.