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
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-1.1.0.tar.gz
(15.1 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-1.1.0.tar.gz.
File metadata
- Download URL: sardis_agent_sdk-1.1.0.tar.gz
- Upload date:
- Size: 15.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f17aef3ba7e61fe0a28304ed4b5937f31980321557f3ed4ad2819ea68000765
|
|
| MD5 |
50e0c35bbe60508b64ff1758a8617d14
|
|
| BLAKE2b-256 |
e6964e9f16d22104c64be826a433581ff117bf71ac8c52417093793b3700500e
|
File details
Details for the file sardis_agent_sdk-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sardis_agent_sdk-1.1.0-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09ddb2ed0cc7b54675d4ffba6bd4d45f6f16d0de43c09154e67aebe882a13558
|
|
| MD5 |
c8671c8e1c499e1ed722f1decdf48783
|
|
| BLAKE2b-256 |
b032d3c23656ee7226a9b18314a5e62a9f0da407aaf2ec8030bec326f3dfe333
|