Skip to main content
The Skyvern SDK wraps the REST API in a typed client with built-in browser automation via Playwright.

Install

pip install skyvern is the lightweight SDK for Skyvern Cloud and remote API calls. Embedded local SDK features such as Skyvern.local() and local browser control require pip install "skyvern[local]". Local server and local stdio MCP commands require pip install "skyvern[server]". Guided quickstart and migrations currently require Docker Compose or a source checkout.

Initialize the client

Create a Skyvern instance with your API key. All methods are async.

Constructor parameters


Environments

Three built-in environment URLs:
For a self-hosted instance at a custom URL:

Local mode

Run Skyvern entirely on your machine - no cloud, no network calls. Skyvern.local() reads your .env file, boots the engine in-process, and connects the client to it. Prerequisite: Install the local extra with pip install "skyvern[local]". For local browser control, also run python -m playwright install chromium.
If you configured headful mode during skyvern quickstart, a Chromium window opens so you can watch the AI work.

Waiting for completion

By default, task and agent runs return immediately after queuing. You get a run ID and need to poll for results yourself. Pass wait_for_completion to have the SDK poll automatically until the run reaches a terminal state (completed, failed, terminated, timed_out, or canceled):
Supported on task runs, agent runs, and login. In TypeScript, also supported on file downloads.

Request options

Every method accepts per-request overrides for timeout, retries, and headers:
These override the client-level defaults for that single call only.

Next steps

Browser Automation

Control browsers with Playwright + AI

Tasks

Run browser automations with run_task

Workflows

Create and run multi-step automations

Error Handling

Handle errors and configure retries