- uses your
PREDEV_API_KEYenv var - hits the live API at
https://api.pre.dev - extracts the H1 from
example.comas the simplest possible task - completes in ~3 seconds warm, ~8s cold
1. curl
2. TypeScript
3. Python
4. MCP (Claude Code, Cursor)
Add pre.dev as an MCP server (one-line in~/.claude.json or
~/.cursor/mcp.json):
browser_agent tool it can call directly.
Example prompt to the agent:
Use the browser_agent tool to extract the product title and price
from https://www.apple.com/shop/buy-iphone/iphone-15-pro and return
the JSON.
Full MCP reference: MCP Tool
What happens under the hood
- POST lands, we check credits + enqueue your tasks in Mongo.
- Scheduler dispatches each task to a sandbox (Daytona → E2B → Modal fallback chain, cheapest first).
- Inside the sandbox, a planner LLM (
gemini-2.5-flash-lite) drives Playwright through navigation + actions + extraction. - Result streams back as structured JSON, validated against your
outputschema. - Billed per task (~$0.011 on simple tasks, 10× margin on long tasks — see Pricing).

