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
Metadata
Release files for sardis-agent-sdk 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sardis_agent_sdk-1.1.0.tar.gz | 15.1 kB | Without provenance | Details for sardis_agent_sdk-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sardis_agent_sdk-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for sardis_agent_sdk-1.1.0-py3-none-any.whl |
Total release size: 29.2 kB
Release files / sardis_agent_sdk-1.1.0.tar.gz
| Download URL | sardis_agent_sdk-1.1.0.tar.gz |
|---|---|
| Size | 15.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f17aef3ba7e61fe0a28304ed4b5937f31980321557f3ed4ad2819ea68000765
|
|
BLAKE2b-256 checksum How to use checksums |
e6964e9f16d22104c64be826a433581ff117bf71ac8c52417093793b3700500e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / sardis_agent_sdk-1.1.0-py3-none-any.whl
| Download URL | sardis_agent_sdk-1.1.0-py3-none-any.whl |
|---|---|
| Size | 14.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
09ddb2ed0cc7b54675d4ffba6bd4d45f6f16d0de43c09154e67aebe882a13558
|
|
BLAKE2b-256 checksum How to use checksums |
b032d3c23656ee7226a9b18314a5e62a9f0da407aaf2ec8030bec326f3dfe333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for sardis-agent-sdk 1.1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.