Skip to main content

Developer quickstart

uv add tzafon
from tzafon import Computer

client = Computer(api_key="<api-key-here>")
with client.create(kind="browser") as computer:
    computer.navigate("https://wikipedia.org")
    computer.type("Ada Lovelace")
    computer.hotkey("enter")
    computer.wait(1)
    computer.click(200, 200)

    result = computer.screenshot()
    url = computer.get_screenshot_url(result)
    print(f"Screenshot: {url}")
    # Automatically terminates on exit

Get Started

Install the SDK and make your first request

Key Features

Control multiple browser tabs within a single session. Open, switch, and manage tabs programmatically for complex workflows like comparison shopping, multi-site form filling, and dashboard monitoring. Learn more →
Get detailed page state with every action using include_context=True. Access viewport dimensions, scroll position, page size, URL, title, and more. Perfect for debugging coordinates and building smart automation. Learn more →
Use computer.wait(seconds) for explicit delays. Great for waiting on page loads, animations, and rate limiting.

What is Tzafon?

Tzafon Computer is a package for controlling Chromium browsers and Linux desktop environments. Execute actions like clicking, typing, and navigating programmatically. Available for Python and TypeScript.
Bot Detection Notice: Many websites (Google, Amazon, social media) actively block automation. Always check the site’s robots.txt file.

Explore more

Quickstart

Get up and running in 30 seconds

Core Concepts

Learn execution modes and computer types

Actions Reference

Explore available actions

Pricing

View usage-based pricing

Example

See a working example

Libraries

Python and TypeScript SDKs