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 raisesNotImplementedErrorpointing at the tracking task — install the0.1.0(non-alpha) release for the working client.From
0.1.0a4onwardsSENTISEC_WORKSPACE_IDis OPTIONAL — the Sentisec proxy resolves the workspace from the API key prefix, so a one-env-var setup (SENTISEC_API_KEYonly) is sufficient for thewrap_anthropic/wrap_openaipath.
Documentation
- Product overview: https://sentisec.ch
- Developer docs: https://docs.sentisec.ch
- Dashboard: https://app.sentisec.ch
- Support: mailto:support@sentisec.ch
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 --versionand asserts the output equalssentisec <version-from-pyproject>, - when
VERIFY_DETERMINISM=1, rebuilds into a tempdir anddiffs the two artifacts byte-for-byte (shiv's--reproducibleflag 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.0a8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sentisec_sdk-0.1.0a8.tar.gz | 116.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sentisec_sdk-0.1.0a8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 251.4 kB
Release files / sentisec_sdk-0.1.0a8.tar.gz
| Download URL | sentisec_sdk-0.1.0a8.tar.gz |
|---|---|
| Size | 116.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e73aa3f0ca934c1e5c56775dbc14698d0ad96152d0269f99b98633b280167966
|
|
BLAKE2b-256 checksum How to use checksums |
e3130168c3f20637d7a7f4424c10e1e34659434eac67adcd05a3e2cb509fdec0
|
| 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 Jul 30, 2026.
Transparency logRelease files / sentisec_sdk-0.1.0a8-py3-none-any.whl
| Download URL | sentisec_sdk-0.1.0a8-py3-none-any.whl |
|---|---|
| Size | 135.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acdaaef36e01ea2ad97e1c21e087718102ec57838ee343e3793c157e6ef0db74
|
|
BLAKE2b-256 checksum How to use checksums |
324ee715ca0e9de2ff046b38acc718ebc2d18058cc5c8173f76b56f245429de3
|
| 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 Jul 30, 2026.
Transparency log