Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

sentisec-sdk

Public Python SDK for Sentisec.

sentisec-sdk is a thin client. You install it with pip, point it at your workspace, and wrap your existing OpenAI / Anthropic client. Your agent's tool calls then flow through Sentisec's hosted control plane, where they are evaluated and either allowed, rewritten, or blocked before they reach the world.

Install

pip install sentisec-sdk

Python 3.11+ is required.

Quick start

from sentisec_sdk import Monitor

monitor = Monitor()  # picks up ~/.sentisec/credentials.toml after `sentisec login`
client = monitor.wrap_openai(...)
client = monitor.wrap_anthropic(...)

The sentisec CLI is shipped in the same wheel:

sentisec login
sentisec status
sentisec demo run
sentisec logout

Note (alpha): the public surface is being assembled across a small set of release tasks. Calling Monitor() / Session() in this alpha pre-release raises NotImplementedError pointing at the tracking task — install the 0.1.0 (non-alpha) release for the working client.

From 0.1.0a4 onwards SENTISEC_WORKSPACE_ID is OPTIONAL — the Sentisec proxy resolves the workspace from the API key prefix, so a one-env-var setup (SENTISEC_API_KEY only) is sufficient for the wrap_anthropic / wrap_openai path.

Documentation

Building the standalone CLI

For shipping channels that cannot rely on a working pip on the user's box (curl installer, npm postinstall, GitHub Releases tarball), the sentisec console-script entry is bundled as a single shiv zipapp:

# one-time: install the build-only extra
uv pip install --system shiv          # or: pipx install shiv

# build
./scripts/build-cli.sh                # → dist/sentisec (executable)

# (optional) verify the build is reproducible
VERIFY_DETERMINISM=1 ./scripts/build-cli.sh

The build script:

  • runs shiv --console-script sentisec --output-file dist/sentisec --reproducible --compressed --python "/usr/bin/env python3" .,
  • smoke-tests ./dist/sentisec --version and asserts the output equals sentisec <version-from-pyproject>,
  • when VERIFY_DETERMINISM=1, rebuilds into a tempdir and diffs the two artifacts byte-for-byte (shiv's --reproducible flag pins all zip-entry timestamps to a fixed value).

Platform caveat. The resulting dist/sentisec shebangs to /usr/bin/env python3, but its bundled wheels include the native pydantic-core extension for the builder's (os, arch, python-minor) tuple. The artifact therefore runs on hosts matching that tuple only. The release pipeline (P-INST-02) matrix-builds one artifact per supported tuple and uploads each as a separate GitHub Release asset.

License

Apache License 2.0. See LICENSE.

Metadata

Release files for sentisec-sdk 0.1.0a9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sentisec-sdk 0.1.0a9
File Size Uploaded
sentisec_sdk-0.1.0a9.tar.gz 121.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sentisec-sdk 0.1.0a9
File Interpreter ABI Platform
sentisec_sdk-0.1.0a9-py3-none-any.whl Python 3 none any Details

Total release size: 262.1 kB

Release files / sentisec_sdk-0.1.0a9.tar.gz

Download URL sentisec_sdk-0.1.0a9.tar.gz
Size 121.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f456ef3a8b32bf213d82b23b2bda8c5aa4851bbe5176ac5ccf14b084c95c17ca
BLAKE2b-256 checksum
How to use checksums
03fb9d4b795417466f3436fdd07f024d2cf7adc94021320e4484ac1d1d420a20
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log

Release files / sentisec_sdk-0.1.0a9-py3-none-any.whl

Download URL sentisec_sdk-0.1.0a9-py3-none-any.whl
Size 140.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e5df34c23b59a4a77fc0df15bd24f2a349fe414073e50d550759a56e636dbb3f
BLAKE2b-256 checksum
How to use checksums
13c0831d99c85e618cdf301ed0f87fc9779cbf972526c13d03785da8f4bc108a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 2, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page