Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
183,625
playwright
scraping
Multi-SDK Support
π» Interactive CLI: Minimalist terminal interface with mode cycling (Shift+Tab)
π¦ Production Ready: Generated scripts include error handling, type hints, and documentation
πΎ Session History: All runs saved locally with full message logs
π° Cost Tracking: Detailed token usage and cost estimation with cache support
π·οΈ Tag System: Powerful tags for fine-grained control (@record-only, @codegen, @docs, @id)
Limitations
This tool executes code locally using Claude Codeβplease monitor output
Some websites employ advanced bot-detection that may limit capture or require manual interaction
π Installation
Using uv (recommended)
# Basic installation
uv tool install reverse-api-engineer
# With agent mode support (includes browser-use with HAR recording)
uv tool install 'reverse-api-engineer[agent]' --with 'browser-use @ git+https://github.com/browser-use/browser-use.git@49a345fb19e9f12befc5cc1658e0033873892455'
Using pip
# Basic installation
pip install reverse-api-engineer
# With agent mode support
pip install 'reverse-api-engineer[agent]'
pip install git+https://github.com/browser-use/browser-use.git@49a345fb19e9f12befc5cc1658e0033873892455
Post-installation
Install Playwright browsers:
playwright install chromium
Enhanced Pricing Support (Optional)
By default, Reverse API Engineer includes pricing data for the most common models (Claude 4.6, Gemini 3). For extended model coverage (100+ additional models including OpenAI GPT, Mistral, DeepSeek, and more), install with pricing extras:
# With uv
uv tool install 'reverse-api-engineer[pricing]'
# With pip
pip install 'reverse-api-engineer[pricing]'
This enables automatic pricing lookup via LiteLLM for models not in the built-in database. The pricing system uses a 3-tier fallback:
Local pricing (highest priority) - Built-in pricing for common models
LiteLLM pricing (if installed) - Extended coverage for 100+ models
Default pricing (ultimate fallback) - Uses Claude Sonnet 4.6 pricing
Cost tracking will always work, with or without the pricing extras installed.
π Quick Start
Launch the interactive CLI:
reverse-api-engineer
The CLI has four modes (cycle with Shift+Tab):
manual: Browser capture + AI generation
engineer: Re-process existing captures
agent: Autonomous AI browser agent (default: auto mode with MCP-based browser + real-time reverse engineering)
collector: AI-powered web data collection (very minimalist version for now)
Example workflow:
$ reverse-api-engineer
> fetch all apple jobs from their careers page
# Browser opens, navigate and interact
# Close browser when done
# AI generates production-ready API client
# Scripts saved to: ./scripts/apple_jobs_api/
π Usage Modes
Manual Mode
Full pipeline with manual browser interaction:
Start the CLI: reverse-api-engineer
Enter task description (e.g., "Fetch Apple job listings")
./scripts/{descriptive_name}/ (local copy with readable name)
Engineer Mode
Re-run AI generation on a previous capture:
# Switch to engineer mode (Shift+Tab) and enter run_id
# Or use command line:
reverse-api-engineer engineer <run_id>
Agent Mode
Fully automated browser interaction using AI agents:
Start CLI and switch to agent mode (Shift+Tab)
Enter task description (e.g., "Click on the first job listing")
Optionally provide starting URL
Agent automatically navigates and interacts
HAR captured automatically
API client generated automatically
Agent Provider Options:
auto (default): Uses MCP-based browser automation with Claude Agent SDK & Opencode. Combines browser control and real-time reverse engineering in a single workflow. No additional installation required beyond the base package.
browser-use: Uses browser-use library for browser automation. Requires installation with [agent] extra and browser-use from specific git commit (includes HAR recording support).
stagehand: Uses Stagehand for browser automation with Computer Use models.
Change agent provider in /settings β "agent provider".
Collector Mode
Web data collection using Claude Agent SDK:
Start CLI and switch to collector mode (Shift+Tab)
Enter a natural language prompt describing the data to collect (e.g., "Find 3 JS frameworks")
The agent uses WebFetch, WebSearch, and file tools to autonomously collect structured data
Data is automatically exported to JSON and CSV formats
./collected/{folder_name}/ (local copy with readable name)
Output files:
items.json - Collected data in JSON format
items.csv - Collected data in CSV format
README.md - Collection metadata and schema documentation
Model Configuration:
Collector mode uses the collector_model setting (default: claude-sonnet-4-6). This can be configured in ~/.reverse-api/config.json.
Example workflow:
$ reverse-api-engineer
> Find 3 JS frameworks
# Agent autonomously searches and collects data
# Data saved to: ./collected/js_frameworks/
π·οΈ Tags
Tags provide additional control and functionality within each mode:
Manual/Agent Mode Tags
@record-only - Record HAR file only, skip reverse engineering step
Example: @record-only navigate checkout flow
Useful when you want to capture traffic for later analysis
@codegen - Record browser actions and generate Playwright automation script
Example: @codegen navigate to google
Captures clicks, fills, and navigations to create a reusable Playwright script
Engineer Mode Tags
@id <run_id> - Switch context to a specific run ID
Example: @id abc123
Loads a previous capture session for re-engineering
@id <run_id> <prompt> - Run engineer on a specific run with instructions
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.