CLI Tool Setup
Run Vibe from the command line for server-side automation.
Prerequisites
- Node.js 18+
- OpenAI API key
Installation
# Clone and install
git clone https://github.com/AISidePanel/vibe-browser.git
cd vibe-browser/src/chrome/browser/resources/vibe.2
npm install
Configuration
Create a .env file:
OPENAI_API_KEY=sk-your-api-key-here
Load the environment:
export $(< .env)
Usage
Basic Command
node cli.js run "find the cheapest raspberry pi zero on amazon"
With Verbose Output
node cli.js --verbose run "search for flights from NYC to LAX"
Available Options
| Option | Description |
|---|---|
--verbose | Show detailed agent reasoning |
--model | Specify model (default: gpt-5-mini) |
--timeout | Max execution time in seconds |
Examples
# Price comparison
node cli.js run "compare iPhone 15 prices on Amazon vs Best Buy"
# Data extraction
node cli.js run "get the weather in San Francisco"
# Multi-step task
node cli.js run "find a 3-star hotel in Paris for Dec 25-27 under $200/night"
Headless Mode
For server environments:
HEADLESS=true node cli.js run "your task here"
Next Steps
- Tools Reference - All available browser tools
- Troubleshooting - Common issues and fixes