This is a preview. Finic Cloud is currently in development - check out how to self-host in the meantime.
Connecting to Finic’s Browser servce is easy.

When developing, your code probably looks something like this:

from playwright.sync_api import sync_playwright

playwright = sync_playwright().start()
browser = await playwright.chromium.launch(headless=False)

page = await browser.new_page()
page.goto("https://github.com/finic-ai/finic")

All you have to do is replace this line:

browser = await playwright.chromium.launch(headless=False)

with this line:

browser = playwright.chromium.connect_over_cdp("ws://browser.finic.io/?apikey=<your-finic-api-key>")

That’s it. If it works locally, your code should still work once you deploy, as long as you container supports WebSocket connections.