Skip to main content

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 payment
  • sardis_balance(token) — check current wallet balance
  • sardis_check_policy(amount, merchant) — verify a purchase before committing

Docs

sardis.sh/docs/integrations/browser-use

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_browser_use-1.1.0.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

sardis_browser_use-1.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for sardis_browser_use-1.1.0.tar.gz
Algorithm Hash digest
SHA256 e4eb4e63b18f6edccb2a262009678455d12f40a4db31a90ec212a23c52b6f359
MD5 d767cfd2b6196849f5db11c2325a1a22
BLAKE2b-256 5a36d7f79d6382550e111b9e060968739cc4ad8b1149ef8ac1316e66a7dc1f24

See more details on using hashes here.

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

Hashes for sardis_browser_use-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 affcc3ed71a0cdfc091d06ca64d7244668c5a92aeac37a7b083f622d1dae7aed
MD5 090f1703bbb5c73868de1b37be43e8c5
BLAKE2b-256 c9f3bed4f9cc138ac26254ef53f13ed11a2ba9f115966b5ab97e7b881df7d847

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