Skip to main content

Python SDK for Cullis — federated agent-trust network. E2E-encrypted agent↔agent messaging, x509 mutual auth, DPoP-bound tokens.

Project description

cullis-sdk

Python SDK for the Cullis federated agent-trust network.

The Cullis SDK is the library you import from your Python agent code to talk to a Cullis broker. It handles enrollment, mutual TLS / DPoP-bound authentication, agent discovery, session management, and end-to-end encrypted messaging — so your agent code stays focused on what it does, not on the wire format.

The SDK is one of three Python distributions in the Cullis monorepo:

Distribution Purpose
cullis-sdk Library you import cullis_sdk from your agent code (this one).
cullis-connector End-user MCP server bridging Claude Code / Cursor / etc.
mcp-proxy Org-level gateway (deployed as a container, not pip-installed).

Install

pip install cullis-sdk

Python 3.10+ required.

For SPIFFE workload-API integration (enroll an agent using its SPIRE-issued SVID), install the optional extra:

pip install 'cullis-sdk[spiffe]'

Quick start

from cullis_sdk import CullisClient

with CullisClient("https://broker.example.com") as client:
    client.login(
        agent_id="myorg::reporter",
        org_id="myorg",
        cert_path="reporter.crt",
        key_path="reporter.key",
    )

    agents = client.discover(capabilities=["order.write"])
    target = agents[0]

    session = client.open_session(
        target.agent_id, target.org_id, ["order.write"],
    )
    client.send(
        session_id=session,
        from_agent="myorg::reporter",
        payload={"text": "Place order #42"},
        to_agent=target.agent_id,
    )

The SDK does the heavy lifting: x509 mutual TLS to the broker, DPoP-bound bearer tokens for replay protection, ECDH key agreement for end-to-end encryption to the recipient agent, and (on receive) hash-chain verification of the per-org audit log.


Architecture

       ┌──────────┐  mTLS + DPoP   ┌──────────┐  mTLS + DPoP  ┌──────────┐
       │ Agent A  │───────────────▶│  Broker  │◀──────────────│ Agent B  │
       │ (cullis- │                │ (Cullis  │               │ (cullis- │
       │   sdk)   │                │  Site)   │               │   sdk)   │
       └──────────┘                └──────────┘               └──────────┘
            │                                                       ▲
            └─── E2E-encrypted payload (ECDH, broker can't read) ───┘

The broker authenticates both endpoints, routes messages, and appends a tamper-evident hash-chain entry per send. It never sees the cleartext payload.


Documentation


License

Functional Source License 1.1 with Apache-2.0 future grant (LICENSE). You can use, modify, and self-host the SDK for any non-competing purpose; competing-use restriction lifts after two years to Apache 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cullis_sdk-0.1.3.tar.gz (57.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cullis_sdk-0.1.3-py3-none-any.whl (65.0 kB view details)

Uploaded Python 3

File details

Details for the file cullis_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: cullis_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 57.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for cullis_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 307592164640640e49d3265cba472efbb388fe06f43e49cbe3f7bafca64659d0
MD5 3ac4648551aa0f6c31aa60dae3a04da9
BLAKE2b-256 9d4783dddcffb88a5a4897a79732005d4a945a0d680ebe93893820c38de4d107

See more details on using hashes here.

Provenance

The following attestation bundles were made for cullis_sdk-0.1.3.tar.gz:

Publisher: release-sdk.yml on cullis-security/cullis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cullis_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: cullis_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 65.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for cullis_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9691c381b5956fca59859b37065c7c249b59e71c9e234c81beab473ee2069f28
MD5 635175847ee2983fe080bcde5fab6b5e
BLAKE2b-256 428a81a2bd47b83a0edad3806c886748335faf6452556a4730edcb13e505d13c

See more details on using hashes here.

Provenance

The following attestation bundles were made for cullis_sdk-0.1.3-py3-none-any.whl:

Publisher: release-sdk.yml on cullis-security/cullis

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page