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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sardis_autogpt-1.1.0.tar.gz | 7.2 kB | Without provenance | Details for sardis_autogpt-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sardis_autogpt-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for sardis_autogpt-1.1.0-py3-none-any.whl |
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}
|
Security for sardis-autogpt 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.