- Node.js: anchorbrowser on npm
- Python: anchorbrowser on PyPI
1
Fetch API Key
In Anchor UI, copy your API key
2
Install the SDK
3
Initialize the SDK
Set up the Anchor Browser client with your API key:
4
AI Agent Browser Automation
Use AI agents to automate browser tasks with natural language commands:
Additional Usage
Structured Data Extraction
Extract structured data from webpages using schemas:Screenshots
Capture screenshots of your current session view.Advanced Configuration
Configure browser sessions with proxies, timeouts, and other options:From SDK to Browser: Run Extra Playwright Code
Standalone Browser Creation
Create a standalone browser instance:Browser Task with Session Control
Use AI agents with direct browser control:Manual Session Management
Create and manage browser sessions manually:Key SDK Benefits
The Anchor Browser SDK provides several advantages over direct API usage:- AI Agent Integration: Use natural language to automate complex browser tasks
- Structured Data Extraction: Define schemas and extract data in a predictable format
- Seamless Playwright Integration: Full access to Playwright’s powerful browser automation capabilities
- Session Management: Easy creation and management of persistent browser sessions
- Built-in Tools: Screenshot capture, proxy management, and more
- Type Safety: Full TypeScript support with proper type definitions
Retries
The Node.js client retries status408, 409, 429, and any 5xx, plus connection failures and request timeouts, up to 2 more times (maxRetries defaults to 2). The default timeout is 1 hour. It does not send an Idempotency-Key. Pass maxRetries: 0 to turn retries off for a call.
A retried 5xx, 409, or timeout on session create can start a second session, because the server may still be provisioning. A 429 from the per-minute session-create limiter is safe to retry.
Next Steps
- Explore the API Reference for detailed documentation
- Learn about Managed Authentication
- Check out Advanced Proxy Configuration for location-specific browsing

