Skip to main content

1Password Agent Broker SDK

A typed, bounded mTLS client for the separately deployed 1Password Agent Broker. Service clients install this distribution to request key operations without installing the broker server, its 1Password integration or its database adapters.

Install

Requires Python 3.12 or newer, excluding 3.14.1. After the SDK release is published:

python -m pip install 1password-agent-broker-sdk

Import CryptoClient, Binding and Request from agent_broker_sdk. Construct CryptoClient(url, ca, cert, key) using operator-provided paths, then pass a typed Request to invoke. The returned bytes may contain a transient data key: keep them inside the trusted service and out of logs, agent context and persistent storage. See the key service contract for request fields and operator setup.

Inputs and authority

Input Meaning
url Fixed HTTPS broker origin; no path, credentials, query or fragment
ca Path to the trusted broker certificate authority
cert, key Paths to the workload's scoped TLS certificate and private key
Request Opaque grant, task, authority, policy and key identifiers, immutable record binding and operation payload

The client holds no 1Password service token or custodial private key. The broker checks current policy for each operation. SDK validation checks wire shape; it does not grant permission. A small dependency set does not limit the authority of an overprivileged certificate.

Compatibility and failures

The SDK owns protocol-version-one models and schemas. The server imports these same contracts. Its original agent_broker.crypto.client.CryptoClient import remains available with the original runtime exception boundary.

The SDK requires TLS 1.3, verifies server identity, presents a client certificate, limits messages to 4 KiB and decoded results to 1 KiB, and uses a 30-second socket timeout. It raises a fixed BrokerError without reflecting payloads or policy. Calls have no implicit retry; callers retain the exact request UUID and payload when explicitly recovering a request. No admin, provider or policy-edit API is included.

Development and publication

The repository's root lockfile owns the SDK test environment. Both distributions use the same release version and immutable source tag. CI tests the SDK's isolated wheel and real mTLS transport before publishing signed archives and both PyPI packages. The SDK has no server dependency; the server depends on its exact SDK version. Local Poetry development resolves that dependency from this directory, while wheel metadata names the versioned registry distribution.

Metadata

Release files for 1password-agent-broker-sdk 0.4.1

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

Source distribution (sdist)

Source distribution for 1password-agent-broker-sdk 0.4.1
File Size Uploaded
1password_agent_broker_sdk-0.4.1.tar.gz 10.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for 1password-agent-broker-sdk 0.4.1
File Interpreter ABI Platform
1password_agent_broker_sdk-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / 1password_agent_broker_sdk-0.4.1.tar.gz

Download URL 1password_agent_broker_sdk-0.4.1.tar.gz
Size 10.2 kB
Tags Source
SHA-256 checksum
How to use checksums
69d517945d3e380930084489caf87f78bb9d43743e27aac9845109e3032320bf
BLAKE2b-256 checksum
How to use checksums
ebe6751cf4cdc246fd01381a2252a38c5727544d6243de5d7a64ad56f1acf4e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / 1password_agent_broker_sdk-0.4.1-py3-none-any.whl

Download URL 1password_agent_broker_sdk-0.4.1-py3-none-any.whl
Size 13.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60241f4909d7af3f58d9cba51bb1a72d93640164c3149cc1e6a471b13c723f7c
BLAKE2b-256 checksum
How to use checksums
e8840fbd7631504728c7d946f6f573ae85010e0db9278aa83b6bccacf4e9c626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4.0

2 release files

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