---
title: "Getting Started"
description: "Install the package and scrape one page with Playwright. No key and no account for the first call"
canonical_url: "https://browsers.agntn.dev/guide"
---
# Getting Started

> Install the package and scrape one page with Playwright. No key and no account for the first call

<warning title="Pre-1.0">

The API and the tool list can still move. Pin exact versions if you build on it now.

</warning>

## Why this exists

Every browser vendor has a different idea of what "get me this page" means. Steel does it in one POST. Kernel wants a live browser first and then runs Playwright inside it. Browserbase fetches without a session but hands you a CDP URL for anything else. Anchor doesn't scrape at all.

That's fine for you, you read the docs once. A model reads them never. So `@agntn/browsers` puts one `scrape()` over all of them, opens and closes the session when a vendor needs one, and lets every backend say what it can do through `capabilities()`. Same thing in TypeScript, in the terminal and in an agent.

## Install

```bash
pnpm add @agntn/browsers
```

Node.js 26 or newer.

## First call

Playwright runs Chromium on your machine, so it needs no key. It takes the Chrome or Chromium already on your `PATH`. Without one, `npx playwright-core install chromium` gets it.

```ts [first.ts]
import { create } from "@agntn/browsers";

const provider = await create("playwright");
const page = await provider.scrape("https://example.com");

page.title; // "Example Domain"
page.text; // "This domain is for use in documentation examples…"
```

`create()` is async on purpose. That's the moment the provider module gets imported, so importing the package costs nothing and a bundler splits every provider into its own chunk.

## Who scrapes, and how

<provider-roster>



</provider-roster>

A cloud provider needs its key in the environment, `STEEL_API_KEY` for Steel and so on. Cloudflare can use your `cf auth login` instead, with no token to export. [Providers](https://browsers.agntn.dev/providers) has the full list and a page per vendor.

## Let it pick

```ts
import { create, resolveProvider } from "@agntn/browsers";

const provider = await create(resolveProvider());
```

`resolveProvider()` walks the registry in order and takes the first provider whose key is set. Steel if you set `STEEL_API_KEY`. Playwright if you set nothing, because it's last and never needs a key. Pass a name and it checks that one instead, and throws `AuthError` when its key is missing, not something else quietly.

## Where next

- [Scrape](https://browsers.agntn.dev/guide/scrape) for what comes back and why it isn't the same everywhere.
- [CLI](https://browsers.agntn.dev/guide/cli) if you live in a terminal.
- [Agent tools](https://browsers.agntn.dev/guide/agents) to hand all of this to a model.


## Sitemap

See the full [sitemap](https://browsers.agntn.dev/sitemap.md) for all pages.
