Anthropic Claude Agent SDK integration for Sardis payments
Project description
sardis-agent-sdk
Anthropic Claude Agent SDK integration for Sardis payments.
Installation
pip install sardis-agent-sdk
Quick Start
import anthropic
from sardis import SardisClient
from sardis_agent_sdk import SardisToolkit
sardis = SardisClient(api_key="sk_test_demo")
wallet = sardis.wallets.create(agent_id="my-agent", chain="base", currency="USDC")
toolkit = SardisToolkit(client=sardis, wallet_id=wallet.wallet_id)
# Automated agent loop
client = anthropic.Anthropic()
result = toolkit.run_agent_loop(
client=client,
model="claude-sonnet-4-5-20250929",
system_prompt="You are a shopping assistant with a Sardis wallet.",
user_message="Buy $20 of API credits from openai.com",
)
print(result["response"])
Tools Provided
| Tool | Description |
|---|---|
sardis_pay |
Execute a policy-checked payment |
sardis_check_balance |
Check wallet balance and limits |
sardis_check_policy |
Dry-run a payment against policy |
sardis_set_policy |
Update spending policy (natural language) |
sardis_list_transactions |
View transaction history |
sardis_create_hold |
Create a temporary fund hold |
Read-Only Mode
toolkit = SardisToolkit(client=sardis, wallet_id=wallet_id, read_only=True)
# Only exposes balance, policy check, and transaction listing tools
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sardis_agent_sdk-0.1.0.tar.gz
(12.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sardis_agent_sdk-0.1.0.tar.gz.
File metadata
- Download URL: sardis_agent_sdk-0.1.0.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abd1a006d5d8115229789f2ac3e1c69084b0e8ff758f7193a29d458e7e6f0e98
|
|
| MD5 |
ecffd8721d88c0fc13909c76c6314d74
|
|
| BLAKE2b-256 |
8ade26d74753959ee6b913380549cb582782584e68675d22794e0c109caa82b9
|
File details
Details for the file sardis_agent_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sardis_agent_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea8888c823589a2387926bb7927c2abcab184e2d4f04b0daafd3873c2fda92a7
|
|
| MD5 |
f60b0642654b739bf8d8ccce882e679a
|
|
| BLAKE2b-256 |
1a50fb94cef6be08d524189754665313d2dc245fe7a5d90131c4be1b345ca3f9
|