A simple checkout agent written in Python using the Browser Use library.
A Python-based automation tool that uses browser automation to complete Shopify store checkouts programmatically.
-
Clone the repository:
git clone <repository-url> cd shopify-checkout
-
Install
uvif you don't already have it installed. -
Install dependencies:
uv init uv pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env # Edit .env with your OpenAI API key -
Run it!
uv run agent.py
Edit the main() function in agent.py with your order details:
request = Request(
first_name="Your Name",
last_name="Your Last Name",
email_address="your.email@example.com",
shipping_address="123 Main St, City, Country 12345",
# Payment details (use test card for development)
card_number="4242424242424242",
card_expiry_month="12",
card_expiry_year="25",
card_cvv="123",
store_password="your_store_password", # Leave empty if no password
product_urls=["https://your-store.myshopify.com/products/product-name"]
)This tool is for educational and development purposes. Always comply with Shopify's terms of service and applicable laws when using automation tools.