Skip to main content

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)

Source distribution for sardis-agent-sdk 1.1.0
File Size Uploaded
sardis_agent_sdk-1.1.0.tar.gz 15.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sardis-agent-sdk 1.1.0
File Interpreter ABI Platform
sardis_agent_sdk-1.1.0-py3-none-any.whl Python 3 none any Details

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}

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page