Skip to main content

sardis-autogpt

Sardis payment blocks for AutoGPT (180k+ stars). Gives AutoGPT agents policy-controlled access to real financial transactions via non-custodial MPC wallets.

Install

pip install sardis-autogpt

Quickstart

from sardis_autogpt import SardisPayBlock, SardisPayBlockInput

# Execute a payment (uses SARDIS_API_KEY + SARDIS_WALLET_ID env vars)
input_data = SardisPayBlockInput(
    amount=25.0,
    merchant="acme-software",
    purpose="Monthly SaaS subscription",
    token="USDC",
)

for result in SardisPayBlock.run(input_data):
    print(result.status)   # APPROVED or BLOCKED
    print(result.tx_id)    # on-chain transaction ID
    print(result.message)

Blocks

SardisPayBlock

Execute a policy-controlled stablecoin payment from a Sardis wallet.

Input Type Description
amount float Payment amount in USD
merchant str Merchant or recipient identifier
purpose str Reason for payment (default: "Payment")
token str Token to use (default: "USDC")
api_key str Sardis API key (or SARDIS_API_KEY env var)
wallet_id str Wallet ID (or SARDIS_WALLET_ID env var)
Output Type Description
status str APPROVED, BLOCKED, or ERROR
tx_id str On-chain transaction ID
message str Human-readable status
amount float Actual amount processed

SardisBalanceBlock

Check wallet balance and remaining spending limits.

Output Type Description
balance float Current token balance
remaining float Remaining spending limit for period
token str Token type checked

SardisPolicyCheckBlock

Dry-run policy check before executing a payment. Use this to guard against blocked transactions.

Output Type Description
allowed bool Whether the payment would be approved
reason str Explanation

Environment Variables

SARDIS_API_KEY=sk_...          # Your Sardis API key
SARDIS_WALLET_ID=wallet_...    # Agent wallet ID

AutoGPT Integration

Register all blocks via the BLOCKS registry:

from sardis_autogpt import BLOCKS

# BLOCKS = [SardisPayBlock, SardisBalanceBlock, SardisPolicyCheckBlock]
for block_cls in BLOCKS:
    autogpt_registry.register(block_cls)

Links

Metadata

Release files for sardis-autogpt 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-autogpt 1.1.0
File Size Uploaded
sardis_autogpt-1.1.0.tar.gz 7.2 kB Details

Built distribution (wheel)

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

Total release size: 12.6 kB

Release files / sardis_autogpt-1.1.0.tar.gz

Download URL sardis_autogpt-1.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
43a6e4ad570551ebce79f9c5ad2ad367a7a25c940c3fa0202e4900e90bd66a3d
BLAKE2b-256 checksum
How to use checksums
039624b9e77155fe4ef8f7d2a7b58f89e500b2c1acf585c2a7e106d79875c4ae
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_autogpt-1.1.0-py3-none-any.whl

Download URL sardis_autogpt-1.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37e06b9a91a0344ee78ad3f630dd9a79af2296a50d24e12814dd055a73205c9a
BLAKE2b-256 checksum
How to use checksums
a9fe649f92ac9586b45d67c889111e00775354398d5febf44f8d78b1ebfd4f0d
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

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