predev-api ships both the Architect and Browser Agents surfaces — one package, one key, full type support.
Installation
Quick Start
Authentication
Get your API key
Grab a key from the Browser Agents dashboard.
API Methods
browserTasks()
Submit one or more browser tasks. Overloaded based on stream:
tasks(required):BrowserTask[]— see Task shapeoptions.concurrency(optional):number— parallel workers (1–20, default 5)options.async(optional):boolean— return immediately with a batch id; poll withgetBrowserTasks()options.stream(optional):true— return an async generator of SSE frames instead
Task shape
getBrowserTasks()
Fetch the status and results of a task submission by id. Works for in-progress and completed submissions.
id(required):string— id returned frombrowserTasks(tasks, { async: true })or from streamingoptions.includeEvents(optional):boolean— include the full per-step event timeline (navigation, plan, screenshot, action, validation). Payloads can be large.

