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.0.0.tar.gz (5.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.0.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file sardis_browser_use-1.0.0.tar.gz.

File metadata

  • Download URL: sardis_browser_use-1.0.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for sardis_browser_use-1.0.0.tar.gz
Algorithm Hash digest
SHA256 760bfdb2c547d00eafa2f0b675808d7cbf32559a3257dccc6b044b1b648c00f9
MD5 c301957d9fa68798471d818bd2100828
BLAKE2b-256 c897d1106bbf1d058d14b4f208250a61147a065d87bee2b9655704c61efb8aa3

See more details on using hashes here.

File details

Details for the file sardis_browser_use-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sardis_browser_use-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc205fa2cc5202e08588f2c6b39081073e28e233586a030a1a77ec4578ba282e
MD5 60f91e6833a2a0c69b45e818ffd2af5b
BLAKE2b-256 38e377fba13d0e537a93282b1c3e76e43df1b271a5a9aed9326f2d681f9ca057

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