Sardis payment tools for Browser Use - enable browser agents to make policy-controlled payments
Project description
sardis-browser-use
Sardis payment tools for Browser Use — enable browser automation agents to make policy-controlled USDC payments with built-in spending limits and audit trails.
Install
pip install sardis-browser-use
Quick Start
Step 1: Create a Sardis wallet with a spending policy.
Step 2: Register Sardis actions on your Browser Use controller.
Step 3: Run your agent — it can now check balances, verify policies, and pay.
import asyncio, os
from browser_use import Agent, Controller
from sardis import SardisClient
from sardis_browser_use import register_sardis_actions
controller = Controller()
# Simulation mode — no API key required
client = SardisClient()
wallet = client.wallets.create(name="shopping-agent", policy="Max $100/day")
os.environ["SARDIS_WALLET_ID"] = wallet.id
register_sardis_actions(controller)
async def main():
agent = Agent(
task="Find the cheapest USB-C cable on Amazon and buy it if under $15",
controller=controller,
)
await agent.run()
asyncio.run(main())
This gives your agent three actions:
sardis_pay(amount, merchant, purpose)— execute a paymentsardis_balance(token)— check current wallet balancesardis_check_policy(amount, merchant)— verify a purchase before committing
Docs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sardis_browser_use-1.1.0.tar.gz.
File metadata
- Download URL: sardis_browser_use-1.1.0.tar.gz
- Upload date:
- Size: 9.2 kB
- Tags: Source
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4eb4e63b18f6edccb2a262009678455d12f40a4db31a90ec212a23c52b6f359
|
|
| MD5 |
d767cfd2b6196849f5db11c2325a1a22
|
|
| BLAKE2b-256 |
5a36d7f79d6382550e111b9e060968739cc4ad8b1149ef8ac1316e66a7dc1f24
|
File details
Details for the file sardis_browser_use-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sardis_browser_use-1.1.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using 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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
affcc3ed71a0cdfc091d06ca64d7244668c5a92aeac37a7b083f622d1dae7aed
|
|
| MD5 |
090f1703bbb5c73868de1b37be43e8c5
|
|
| BLAKE2b-256 |
c9f3bed4f9cc138ac26254ef53f13ed11a2ba9f115966b5ab97e7b881df7d847
|