Skip to main content

Installation

Requirements: Python 3.9+

Client Initialization

The Python SDK is fully async. All methods return coroutines and should be awaited.

Agents

aw.agents.create()

Create a new agent with an MPC-secured wallet.

aw.agents.get(agent_id)

aw.agents.list()

aw.agents.freeze(agent_id) / aw.agents.unfreeze(agent_id)

Payments

aw.payments.send()

Send a direct on-chain payment.

aw.payments.get(transaction_id)

aw.payments.list()

x402 Micropayments

aw.x402.create_session()

aw.x402.check()

aw.x402.pay()

aw.x402.session_pay(session_id, target_url)

aw.x402.http_interceptor()

Create an interceptor that automatically handles x402 v2 challenges:

Policies

aw.policies.update()

aw.policies.get(agent_id)

aw.policies.apply_template()

Webhooks

aw.webhooks.create()

Error Handling

Type Hints

The Python SDK includes full type hints for IDE support and static analysis:

Usage with asyncio

The SDK is async-first. Use it within an async context: