Skip to main content

ZeroTrust Agents Python SDK

The official Python SDK for interacting with the ZeroTrust Agents Control Plane.

Installation

pip install zerotrust-agents-sdk

Usage

from zerotrust_agents import ZeroTrustAgents

client = ZeroTrustAgents(api_key="your-master-key")

# Check if an agent is allowed to execute a tool
action = client.policies.check(
    agent_id="my-agent-123",
    tool_name="execute_sql",
    arguments={"query": "SELECT * FROM users"}
)
print(action) # 'allow', 'deny', or 'require_approval'

# Wait for a human to approve an action
if action == "require_approval":
    approval_id = client.approvals.create(
        agent_id="my-agent-123",
        tool_name="execute_sql",
        arguments='{"query": "SELECT * FROM users"}'
    )
    is_allowed = client.approvals.wait(approval_id)
    print("Was approved?", is_allowed)

# Log a tool execution
client.logs.create(
    agent_id="my-agent-123",
    tool_name="execute_sql",
    arguments='{"query": "SELECT * FROM users"}',
    allowed=True
)

Metadata

Release files for zerotrust-agents-sdk 0.1.0

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

Source distribution (sdist)

Source distribution for zerotrust-agents-sdk 0.1.0
File Size Uploaded Provenance Actions
zerotrust_agents_sdk-0.1.0.tar.gz 2.4 kB With provenance Details for zerotrust_agents_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zerotrust-agents-sdk 0.1.0
File Interpreter ABI Platform Actions
zerotrust_agents_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for zerotrust_agents_sdk-0.1.0-py3-none-any.whl

Total release size: 6.8 kB

Release files / zerotrust_agents_sdk-0.1.0.tar.gz

Download URL zerotrust_agents_sdk-0.1.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
d0d82348c3b020e117e6a2b3af12879bf0bebee69e476b5dfb8961d57ba69be4
BLAKE2b-256 checksum
How to use checksums
0f496644d5137170bfc2e1a53ed46c52aa75d3fe83f18618c337bb7198aa432d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 7, 2026.

Transparency log

Release files / zerotrust_agents_sdk-0.1.0-py3-none-any.whl

Download URL zerotrust_agents_sdk-0.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6564a65e6323d989eb989b2b0520585902f3921c20372f43f39dbc3e892d6fa
BLAKE2b-256 checksum
How to use checksums
e5a8f6b42cb6a980d46cf21567530be8361776e280d1554ea2854f3103fcc485
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 7, 2026.

Transparency log

Security for zerotrust-agents-sdk 0.1.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zerotrust_agents_sdk-0.1.0.tar.gz

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 Jun 7, 2026.

Transparency log

A note on package security

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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