Skip to main content
This page is a quick start using our official SDK. For complete documentation and advanced usage examples, visit our package repositories:
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

Next Steps