Skip to main content

sardis-openai-agents

Sardis payment tools for the OpenAI Agents SDK. Gives your agents policy-controlled spending via non-custodial MPC wallets.

Install

# Core only (plain functions)
pip install sardis-openai-agents

# With OpenAI Agents SDK integration (@function_tool decorated)
pip install 'sardis-openai-agents[agents]'

Quickstart

from agents import Agent, Runner
from sardis_openai_agents import get_sardis_tools

agent = Agent(
    name="ProcurementAgent",
    instructions="You are a procurement agent. Check policy before paying.",
    tools=get_sardis_tools(),
)

Set env vars:

export SARDIS_API_KEY=sk_...
export SARDIS_WALLET_ID=wid_...

Or configure programmatically:

from sardis_openai_agents import configure
configure(api_key="sk_...", wallet_id="wid_...")

Tools

Tool Description
sardis_pay(amount, merchant, purpose) Execute a payment; blocked if policy denies
sardis_check_balance(token) Check wallet balance and remaining spend limit
sardis_check_policy(amount, merchant) Dry-run policy check without executing

Example

See examples/payment_agent.py for an interactive agent demo.

How It Works

Every payment is validated against the wallet's spending policy before execution. If a transaction would exceed daily limits or violate policy rules, it is blocked and the agent receives a clear explanation — no funds move.

Metadata

Release files for sardis-openai-agents 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-openai-agents 1.1.0
File Size Uploaded
sardis_openai_agents-1.1.0.tar.gz 8.1 kB Details

Built distribution (wheel)

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

Total release size: 14.3 kB

Release files / sardis_openai_agents-1.1.0.tar.gz

Download URL sardis_openai_agents-1.1.0.tar.gz
Size 8.1 kB
Tags Source
SHA-256 checksum
How to use checksums
c365317389482ed73f0fa06d38a65d4c23a741b6340192f000d20d8fc36b30b6
BLAKE2b-256 checksum
How to use checksums
5c85659d3ebe2c7f30eb5b317e1d851c20e89f6b05e4109af14488dc35a0e328
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_openai_agents-1.1.0-py3-none-any.whl

Download URL sardis_openai_agents-1.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae9960d51f212f35cc21f2604af728d914351d8f381990a632a5bd14ea7a037d
BLAKE2b-256 checksum
How to use checksums
311557046dd0bd14386fe4312aa67ba0f1f119ba2192ada1207fc86324a70420
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