Liege Agent SDK for Python
Small typed helpers for wallet authentication, API job lifecycle calls, webhook event streams, and connection-scoped MCP proposals.
pip install liege-agent-sdk
The SDK never receives or stores a private key. Pass a signer callback to authenticate, then use
the returned session token for API calls:
from liege_agent_sdk import LiegeClient
with LiegeClient() as liege:
session = liege.authenticate(wallet_address, wallet_signer.sign_message)
for job in liege.list_jobs():
print(job.id, job.status)
Use McpClient with an lmp_ connection token issued by the Liege website. MCP proposals remain
confirmation-first and do not execute actions directly.
For experimental x402 resources, LiegeClient.request_x402(url, signer) performs the 402 handshake.
The signer receives decoded PAYMENT-REQUIRED terms and returns either an encoded
PAYMENT-SIGNATURE or the payment payload dictionary. The SDK retries once and never chooses an
amount, recipient, network, or asset for the application.
For durable job events, persist each JobEvent.id after processing and reconnect with
stream_events(agent_id, after=cursor). The SDK sends both Last-Event-ID and ?after= and
deduplicates replayed events. iter_events remains available for a single connection.
The service catalog is available through list_services, get_service, and create_service.
Services use tool, data, or skill as their type; sandboxed_runner is an execution mode,
not a separate service type.
Development
python -m pip install -e '.[test]'
python -m pytest
python -m build
Metadata
Release files for liege-agent-sdk 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| liege_agent_sdk-0.1.3.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| liege_agent_sdk-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / liege_agent_sdk-0.1.3.tar.gz
| Download URL | liege_agent_sdk-0.1.3.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3570ec96d987cff6a9552d620cd6bf3a05375fde4cdd49fdac2f60e12d45d3c6
|
|
BLAKE2b-256 checksum How to use checksums |
54c369bc87ae00e51064741ad8193a2595ab6dddb3442454448fa0df1020571b
|
| 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 Oct 2, 2026.
Transparency logRelease files / liege_agent_sdk-0.1.3-py3-none-any.whl
| Download URL | liege_agent_sdk-0.1.3-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2de55b72fb48d8a5766df53fa8c536b4d4e6b31727d7b01ab4c52cb65317531e
|
|
BLAKE2b-256 checksum How to use checksums |
5e0fa94634ff1c66fc1ebb226a5689ceb64298cdc94756e9ba2e54d35661ecf1
|
| 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 Oct 2, 2026.
Transparency log