@bctrl/sdk package provides a TypeScript client for the BCTRL platform. It covers session management, browser profiles, AI agents, script execution, credential vault, file storage, and extension management. By default it targets https://api.bctrl.ai; use environment: 'development' for a local control plane on http://localhost:3000.
Installation
Authentication
Set your API key via environment variable or pass it directly:Quick Start
Reference
| Section | Description | Endpoints |
|---|---|---|
| Sessions | Ephemeral browser sessions | POST /v1/sessions, GET /v1/sessions, etc. |
| Profiles | Persistent browsers with fingerprints | POST /v1/profiles, GET /v1/profiles, etc. |
| AI Agents | Stagehand & Browser-use AI | POST /v1/sessions/{id}/automation |
| Captcha | Detect and solve captchas | POST /v1/sessions/{id}/automation |
| Execute | One-shot script execution | POST /v1/sessions/{id}/automation |
| Vault | Credential & TOTP management | GET /v1/vault, GET /v1/vault/{key}, PUT /v1/vault/{key}, DELETE /v1/vault/{key} |
| Storage | Workspace file storage | POST /v1/storage/objects, GET /v1/storage/objects, DELETE /v1/storage/objects |
| Extensions | Browser extension management | POST /v1/extensions/upload, GET /v1/extensions, DELETE /v1/extensions/{id} |

