This release is a pre-release and may not be stable for production use.
ContextOS kernel: governed context, authorization and durable effects for AI agents
pip install contextos-client==0.1.0a15 Copy PIP instructions
pip install --pre contextos-client Published on PyPI as contextos-client from 0.1.0-alpha.13; the module is still import contextos. Linux (x86_64 and aarch64, glibc 2.28 or newer) and macOS on Apple silicon get a wheel with the compiled kernel. Every other platform gets a pure-Python wheel with the HTTP client only; kernel calls there raise native_unavailable. Use the client release that matches your contextosd: before its first admission the client warns (VersionMismatchWarning) when the server is another release, and refuses (IncompatibleServer) a server with another API generation.
From a checkout instead of the package index, put the package on your path or copy bindings/python/contextos/ into your project:
export PYTHONPATH=/path/to/ContextOS/bindings/python python3 -c "from contextos.client import Client; print('ok')" Try it against a local server: ./examples/dev-server.sh prints CONTEXTOS_URL and CONTEXTOS_TOKEN, and examples/support-refund/requests/run.json is a run you can admit. examples/frameworks/ shows the client inside eleven agent frameworks.
run.check_tool_call(capability_id, args, ...) answers what run.call_tool would do with the same call (allowed, approval_required, escalation_required, blocked or rejected, with reason codes and obligations) without effect: nothing is requested, reserved or sent, and the check is audited. It is advisory; not_evaluated names what only dispatch decides.
client.plan(pack_ref, run_context, intent=None) (compile scope) answers, before any request, what a pack lets that principal do: each rule applies always, or when / unless a residual condition over request.* holds. client.reload_packs() (control scope) has the server re-read its pack sources and add new versions.
The platform wheels above include it. To build the extension yourself, use maturin (needs the Rust toolchain):
python3 -m pip install maturin python3 -m pip install ./bindings/python # or: cd bindings/python && maturin develop python3 -c "import contextos; print(contextos.__version__)" Without it, import contextos still works for the client; kernel calls raise an error that says to build the extension.
All 4 files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Enable javascript to be able to filter the list of wheel files.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.
All 4 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




