- The SamurAI
- Posts
- 🛑 Stop Paying $200 to OpenAI for Operator – Here’s How I Get It for $0
🛑 Stop Paying $200 to OpenAI for Operator – Here’s How I Get It for $0
Full step-by-step guide to setting it up for free 💻️

Good day! 🫡 🥷
Right now you might be asking yourself, 'Where have I been?'
Well, life happened. Unexpected moments, work, Christmas, New Year, family—you name it. I've always been committed to sending you only top-quality content, and honestly, I just couldn't find enough time to deliver that level of quality...
But now I'm back, and back for good!

Let's have a look at today's menu ↓
Today we're diving into 🤿
• Browser-Use - What is it? What can I use it for? 🤔
• Browser-Use - Full guide to set it up 💻️
• Prompt Share - Flux 🎨
• Fresh AI News 🗞️
• New Trending AI tools 🧰
Let's go! ↓
🤔 What is ‘Browser-Use’ and what can you use it for:
First of all, wtf is Browser-Use???

Screenshot of Browser-Use in action (on my computer).
Browser-Use is a tool that allows AI to interact with websites, performing tasks that normally would require a human. This means AI can browse the internet, click on links, fill out forms, and more, automating many online activities.
In simple terms, it replaces the human sitting in front of the computer controlling it!

You can carefully watch and analyze each of the steps and actions it takes.
A few examples of what it can be used for:
Finding and Applying for Jobs:
What It Does: The AI searches job websites for positions that match your interests and submits applications on your behalf.
Interacting with Real Websites:
What It Does: The AI navigates through actual websites, clicking buttons, entering information, and performing tasks just like a human user.
Starting with Specific Actions:
What It Does: You can set the AI to begin by opening certain websites or performing specific tasks as soon as it starts, streamlining your workflow.
Additional Creative Ways to Use Browser-Use:
Monitoring News Updates:
Idea: The AI can visit your favorite news sites, summarize the latest articles, and provide you with concise updates.
Tracking Online Shopping Deals:
Idea: The AI can keep an eye on products you're interested in across various online stores and alert you when there's a price drop or special offer.
Managing Social Media:
Idea: The AI can log into your social media accounts, post updates, respond to messages, and even analyze engagement metrics to help you stay connected.
Organizing Online Learning:
Idea: The AI can access your online courses, track your progress, remind you of upcoming assignments, and compile summaries of your learning materials.
Planning Travel Itineraries:
Idea: The AI can search for flights, hotels, and activities, compare prices, and help you put together a comprehensive travel plan tailored to your preferences.
So, now I’ll show you how to set it up - (I have described the process very much in details, but it only takes a few minutes to do it) :
💻️ How to set up Browser-Use for FREE
FULL step-by-step Guide:
Step 1: Install Python
Browser Use is a Python package. Make sure you have Python 3.7 or later installed.
Download Python:
Visit the official Python website.
Download the version for your operating system (Windows, macOS, or Linux).
Install Python:
Windows: Run the installer and check the box “Add Python to PATH”.
macOS/Linux: Follow the installation instructions provided on the site.
Verify Installation:
Open your terminal by (Win + R, type cmd, and press Enter) and run:
python --version
Verify that the response is saying which Python version you just installed
Python version verified
If you use macOS:
Press Command + Spacebar to open Spotlight Search, type “Terminal,” and press Enter.
Step 2: Set Up a Virtual Environment
Creating a virtual environment helps manage dependencies.
Create a new folder called “BrowserUse” for this project. (E.g. on your desktop.)
Open your Terminal (using the instructions above).
Navigate to your project folder:
cd path\to'\your\project
(If desktop:)cd C:\Users\”NAME OF YOUR USER”\Desktop\BrowserUse
Create and activate the virtual environment:
Create the environment:
python -m venv env
Activate the environment:
Windows:
env\Scripts\activate
macOS/Linux:
source env/bin/activate
Your prompt should now indicate that you’re in your virtual environment showing “(env)” like this:
(env) C:\Users\”NAME OF YOUR USER”\Desktop\BrowserUse
Step 3: Install Browser Use and Dependencies
Browser Use depends on Python packages as well as Playwright for browser automation.
Install Browser Use:
pip install browser-use
Install Playwright (and its browser binaries):
playwright install

Downloading dependencies and installing Browser-Use
If you encounter issues during installation, verify your Python version and system dependencies.
Step 4: Setting Up Your API Keys
Browser Use uses LLMs like OpenAI to control the browser. You need to add your API key to a file named .env (without any prefix or additional text before .env).
If you want this to be cost-effective, I recommend to use the GPT-4o-mini model API. If you want better performance at a good price, I recommend to use Mixtral 8x7B API.
How to Find and Add Your OpenAI API Key
Obtain Your API Key:
Go to the OpenAI API page.
If you don’t have an account, sign up and then log in.
In your account dashboard, navigate to the API Keys section.
Click “Create new secret key” to generate an API key.
Copy the API key (it will only be shown once, so make sure to copy and save it to a safe location).
Add the API Key to Your .env File:
In your project folder, create a file named “.env” (without any prefix or additional text before .env) (Right click → New → Text Document, and then rename the file to have the ending “.env” and NOTHING before .env).
Open the file in a text editor and add:
OPENAI_API_KEY=your_openai_api_key_here
Replace “your_openai_api_key_here” with the key you just copied.
Save the file in your project folder: “BrowserUse”.
Step 5: Run a Basic Example
Create a Python script (e.g., app.py) with the following content:
from langchain_openai import ChatOpenAI
from browser_use import Agent
import asyncio
import time
import openai # Needed for catching API errors
from dotenv import load_dotenv
load_dotenv()
async def run_agent_with_retries(max_retries=5, delay=10):
for attempt in range(max_retries):
try:
agent = Agent(
task="Go to Reddit, search for 'browser-use', click on the first post and return the first comment.",
llm=ChatOpenAI(model="gpt-4o-mini"),
)
result = await agent.run()
print(result)
return result # Success, exit function
except openai.error.RateLimitError:
print(f"Rate limit reached. Retrying in {delay} seconds... (Attempt {attempt+1}/{max_retries})")
time.sleep(delay) # Wait before retrying
print("Max retries reached. Could not complete the task.")
async def main():
await run_agent_with_retries()
asyncio.run(main())
Run the Script:
Open your terminal in the directory where app.py is saved.
Run:
python app.py
You should see output from the agent completing the defined task:

If you want to try other use cases, you can download some from here:
🎯 Prompt Share:
I love generating AI images, so below I'll share some prompts with you:

Prompt: snake with bright colors in a mosaic pattern, dynamically positioned diagonally across a reflective surface, creating interesting light reflections and shadows.
Credit: Ivalantiejute. 📸 Flux 1.1 Pro - Freepik

Prompt: Surrealist, a melting skull emerging from liquid glass, enveloped in ethereal reflections and soft opalescence, exuding distorted tranquility, directed towards a fluid horizon, all beneath shimmering abstract ripples.
Credit: samuraipreneur. 📸 Flux Mystic 2.5 Flexible - Freepik

Prompt: A person walking through a city street, their head a swirling orb of liquid silver. The liquid flows endlessly without dripping, reflecting distorted images of the surrounding world.
Credit: samuraipreneur. 📸 Flux Mystic 2.5 Pro - Freepik
📰 Latest AI News
🧰 Tools of the Week
1. ChatLLM by Abacus
Access to all the biggest LLMs.
Artifacts directly in browser, just like with Claude.
Build complex AI Agents.
Save me $10 each month compared to other LLMs.
2. Gamma AI
AI-powered presentation and document creator.
Transform text into stunning slides and webpages instantly.
No design skills needed, with built-in collaboration features.
3. King AI
Professional AI video generator.
Create custom videos in minutes.
No video editing skills needed. Turn text into engaging video content.
Thank you for reading!

What's on your mind?
Feel free to share your ideas with me at: [email protected]
If your idea is good, I’ll make sure to bring it to life. Just send them to the above e-mail and I’ll get to work on making them a reality.
Did you like / find any value in today's newsletter?Your feedback is valuable and makes me create better content for you! |
That's all for now!
See you soon :-)
Hit your target 🎯
- Samur