> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.airtop.ai/llms.txt.
> For full documentation content, see https://docs.airtop.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.airtop.ai/_mcp/server.

# Quick Start

Welcome to Airtop! We're thrilled to guide you through connecting your AI Agent to the web using our powerful cloud browsers. In this quick-start guide, we'll walk you through:

* Setting up your project
* Creating a browser session
* Navigating the web
* Summarizing web pages using AI

By the end, you'll have created your browser session and summarized the page contents in just a few minutes. Let's get started!

### Step 1

Let's begin by installing the necessary packages. You'll need the Airtop SDK to interact with our service.

```bash NodeJS (npm)
npm i -s @airtop/sdk
```

```bash NodeJS (yarn)
yarn add @airtop/sdk
```

```bash NodeJS (pnpm)
pnpm add @airtop/sdk
```

```bash Python
pip install airtop
```

### Step 2

Get an API key from the [Airtop Developer Portal](https://portal.airtop.ai/api-keys).

You can create a **free** account if you don't already have one when you first log in.

### Step 3

Open up your favorite code editor and create a new file called `quickstart.js`. Create a new Airtop client.

```ts NodeJS
import { AirtopClient } from '@airtop/sdk';

const apiKey = 'YOUR_AIRTOP_API_KEY';
const client = new AirtopClient({ apiKey });
```

```python Python
from airtop import Airtop

client = Airtop(api_key="YOUR_AIRTOP_API_KEY")
```

### Step 4

Create a new browser session.

```ts NodeJS
const session = await client.sessions.create();
```

```python Python
session = client.sessions.create()
```

### Step 5

Create a new window, load a URL and get the window information.

```ts NodeJS
const window = await client.windows.create(session.data.id, { url: "https://www.airtop.ai" });
```

```python Python
window = client.windows.create(session.data.id, url="https://www.airtop.ai")
```

### Step 6

Get the page content and summarize using AI.

```ts NodeJS
const contentSummary = await client.windows.pageQuery(session.data.id, window.data.windowId, {
  prompt: 'Summarize the contents of the page in 1 short paragraph up to 170 characters.',
});
console.log(contentSummary.data.modelResponse);

// Terminate the session when you're done
await client.sessions.terminate(session.data.id);
```

```python Python
prompt = 'Summarize the contents of the page in 1 short paragraph up to 170 characters.'
content_summary = client.windows.page_query(session.data.id, window.data.window_id, prompt=prompt)
print(content_summary.data.model_response)

# Terminate the session when you're done
client.sessions.terminate(session.data.id)
```

### Step 7

In your terminal, run the following command:

```bash NodeJS
node quickstart.js
```

```bash Python
python quickstart.py
```

Congratulations 🎉! You've just created your first browser session, navigated to the Airtop website and summarized the page contents using AI.