Skip to main content

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


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.0.0.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sardis_agent_sdk-1.0.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file sardis_agent_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: sardis_agent_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sardis_agent_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a897db7ec4ea5ddd92d675ce2b6dc8b42e0e65215695c3d7b21704f11ebf234e
MD5 645e203bd8d9eb8533dfba1dfe8251a1
BLAKE2b-256 e08491b53c3a3b1fe5396e6ddb9597619190e3a141959e23986953ed62ee1a29

See more details on using hashes here.

File details

Details for the file sardis_agent_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sardis_agent_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a0c6accce5bd98ce58897dc1419e2b01d5cad6edffd8526999a6d7223a47cb1
MD5 731bc6efd64f4c86a748af0543a39e6f
BLAKE2b-256 4ab057b8af956e655b725a580395e4b6bbbb8adec7846b7f5de6fc385ffc3295

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page