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.1.tar.gz (51.3 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.1-py3-none-any.whl (57.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cullis_sdk-0.1.1.tar.gz
  • Upload date:
  • Size: 51.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cullis_sdk-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b669414d538f3886fe98ad0496de0a919284f386b4fcac7fdd3563bf5cb76b56
MD5 ac74cd268d23dda7273f43f1ea811a5a
BLAKE2b-256 eaa8cce2ce6c03af0ea2a46f4c256ae280666b1c1bb480c48837bd264b31e262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cullis_sdk-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 57.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cullis_sdk-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 318f98237e240be84fd2782bd3ab9533532cfa80e22ca4c770d6cffae99bedf9
MD5 10bdf30d05c19f4be4656da5ddf205c8
BLAKE2b-256 0a05a916d154b53ddd93975816442d46b20af19717e5436f984850d341484c64

See more details on using hashes here.

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