anti-detect-browser
v0.1.4
Published
Anti-detect browser client SDK with Playwright + CDP fingerprint injection
Maintainers
Readme
anti-detect-browser
Anti-detect browser client SDK with Playwright + CDP fingerprint injection.
Install
npm install anti-detect-browser playwrightQuick Start
import { AntiDetectBrowser } from 'anti-detect-browser'
const ab = new AntiDetectBrowser({
key: 'your-api-key',
})
const { browser, page } = await ab.launch({
fingerprint: {
tags: ['Windows 10', 'Chrome'],
minBrowserVersion: 130,
},
proxy: 'http://user:pass@host:port',
profile: 'my-account',
label: '[email protected]',
headless: false,
})
// Standard Playwright API from here
await page.goto('https://example.com')
await browser.close()Apply to Existing Context
import { chromium } from 'playwright'
import { applyFingerprint } from 'anti-detect-browser'
const browser = await chromium.launch()
const context = await browser.newContext()
await applyFingerprint(context, {
key: 'your-api-key',
fingerprint: { tags: ['Windows 10', 'Chrome'] },
profile: 'my-account',
})
const page = await context.newPage()
await page.goto('https://example.com')MCP Server
Run as an MCP server for AI agent integration:
{
"mcpServers": {
"anti-detect-browser": {
"command": "npx",
"args": ["anti-detect-browser", "--mcp"],
"env": {
"ANTI_DETECT_BROWSER_KEY": "your-api-key"
}
}
}
}Documentation
Visit antibrow.com for full documentation.
