> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anchorbrowser.io/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Anchor Browser is cloud browser infrastructure for AI agents and automation: browser sessions you control over CDP or REST, natural-language web tasks, versioned automation tasks, managed authentication into third-party web apps (identities with MFA), persistent volumes and profiles, recordings, live view, batch sessions, webhooks, and network options including residential proxies, extra stealth, and captcha solving for sites that block standard browsers. The for-agents page (https://docs.anchorbrowser.io/for-agents) covers authentication and the first API calls. API keys are created at https://app.anchorbrowser.io/api-keys. Append .md to any page URL for its Markdown version. The SDKs read the API key from ANCHORBROWSER_API_KEY, and REST calls send it in the anchor-api-key header. End every session you create with DELETE /v1/sessions/{id}, because a session is billed until it ends. Location targeting, captcha solving and managed authentication need the Starter plan, and extra stealth needs the Growth plan; on the Free plan, create a session with an empty body. Plans and limits are at https://docs.anchorbrowser.io/pricing. The hosted MCP server is https://api.anchorbrowser.io/v1/mcp.

# Context.dev

> Research the public web with Context.dev, then finish the signed-in steps in an Anchor cloud browser. Python, TypeScript and MCP examples.

[Context.dev](https://www.context.dev/?utm_source=anchor) is a web data API for agents: search, scrape, crawl, brand and company data, and research answers with sources, over one API with SDKs, a CLI and a hosted MCP server.

The two products split the work:

* **Context handles search and reading pages.** It finds pages, reads them as Markdown or typed JSON against a schema, and returns company and brand data. No browser session to manage.
* **Anchor takes over when a real browser has to act.** Use it for logins with MFA or a CAPTCHA, sessions that must stay signed in, form filling, checkout, and long multi-step flows.

This guide builds one agent that does both: Context finds a vendor's pricing page and extracts its plans, then an Anchor browser signs in to an internal portal and files a purchase request with the numbers Context found. No payment step, anywhere. You can run it as code in Python or TypeScript, or as a single prompt in an MCP client.

## Prerequisites

* Python 3.10 or higher, or Node.js 22 or higher
* A Context.dev API key from [API keys](https://www.context.dev/dashboard/api-keys?utm_source=anchor)
* An Anchor API key from the [Anchor dashboard](https://app.anchorbrowser.io/api-keys)
* An Anchor [identity](https://docs.anchorbrowser.io/essentials/authenticated-applications.md) for the app you sign in to. [Managed authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md) needs the Starter plan or higher.

> [!NOTE]
>
> This guide uses **Net Sweet** (`netsweet.co`), the demo app that ships with every Anchor account, and its `demo.admin` identity. You can run every step below against it with no third-party account. Find the identity ID under [Identities](https://app.anchorbrowser.io/identities).

![The Identities page in the Anchor dashboard showing the Net Sweet application and its demo.admin identity.](https://mintcdn.com/anchor-b3ec2715/glLlnMDzlmujKm1e/images/firecrawl-anchor/anchor-identities.png?fit=max\&auto=format\&n=glLlnMDzlmujKm1e\&q=85\&s=e04dfe5ba7a2ae0cda649af79c9be0a6)

In Context.dev, open **API Keys** and click **Create API key**.

![The API Keys page in the Context.dev dashboard, with the Create API key button outlined.](https://mintcdn.com/anchor-b3ec2715/yeknFMJTI0uxq6lM/images/context-dev-anchor/context-api-keys.png?fit=max\&auto=format\&n=yeknFMJTI0uxq6lM\&q=85\&s=69ef8f8e7c8258e9157ac31fa191ee6e)

In Anchor, create a key under **API Keys**.

![The API Keys page in the Anchor dashboard, with the Create key button outlined.](https://mintcdn.com/anchor-b3ec2715/glLlnMDzlmujKm1e/images/firecrawl-anchor/anchor-api-keys.png?fit=max\&auto=format\&n=glLlnMDzlmujKm1e\&q=85\&s=c7c7a1921019cfb257e8c6a959576544)

## Setup

1. **Set your API keys:**

```bash theme={null}
export CONTEXT_DEV_API_KEY="your-context-dev-api-key"
export ANCHORBROWSER_API_KEY="your-anchor-api-key"
export ANCHOR_IDENTITY_ID="your-identity-id"
```

2. **Install dependencies:**

```bash Python theme={null}
pip install context.dev anchorbrowser
```

```bash Node.js theme={null}
npm install context.dev anchorbrowser
npm install -D tsx
npm pkg set type=module
```

The Python package is `context.dev` and imports as `from context.dev import ContextDev`. You don't run `playwright install` or launch a browser locally. The browser runs in Anchor's cloud, and the SDK drives it over Anchor's API.

## Choose your browser power

Not every page needs the same browser. Pick the session configuration for the target and move up only when a site fights back. The task is identical in each tier; only the session changes.

| Tier | Session config | Plan | Use it for |
| - | - | - | - |
| **Light** | no proxy | Free | Public pages that don't block automation |
| **Standard** | agent-vpn + captcha solving | Starter | Geo-fenced pages, captchas, most signed-in apps |
| **Max** | agent-vpn + captcha solving + extra stealth | Growth | Sites with strong bot detection |

Agent-vpn is `session.proxy`. Captcha solving needs an active proxy or a browser profile, and extra stealth needs an active proxy. Set `session.timeout` so a forgotten session ends itself. The example below reads the tier from an env var (`ANCHOR_TIER=light|standard|max`, default `standard`).

> [!WARNING]
>
> If you call `perform-web-task` over REST, pass an existing session as the **`sessionId` query parameter**, not in the request body. In the body it is ignored and Anchor opens a second, unconfigured browser for the task. The SDK calls in this guide send it as a query parameter for you.

## Part 1: Research with Context

Search the vendor's own site, then scrape its pricing page into typed JSON with a schema. No browser session yet.

```python Python theme={null}
import os

from context.dev import ContextDev

VENDOR = "Context.dev"
VENDOR_DOMAIN = "context.dev"
context = ContextDev(api_key=os.environ["CONTEXT_DEV_API_KEY"])

PRICING_SCHEMA = {
    "type": "object",
    "properties": {
        "plans": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {"type": "string"},
                    "monthly_price_usd": {"type": "number", "description": "Monthly price when billed monthly. 0 for free."},
                    "credits_per_month": {"type": "number"},
                },
                "required": ["name", "monthly_price_usd", "credits_per_month"],
            },
        }
    },
    "required": ["plans"],
}

search = context.web.search(query=f"{VENDOR} pricing", include_domains=[VENDOR_DOMAIN], num_results=3)
if not search.results:
    raise SystemExit("No search result")
pricing_url = search.results[0].url

page = context.web.scrape(
    url=pricing_url,
    formats={"json": True},
    json_params={"schema": PRICING_SCHEMA, "instructions": "List every plan on the page. Use only facts stated on the page."},
)
if not page.json_.success:
    raise SystemExit(f"Context extraction failed: {page.json_.message}")
plans = page.json_.data["plans"]
print(f"{len(plans)} plans from {pricing_url}")
```

```typescript Node.js theme={null}
import ContextDev from "context.dev";

const VENDOR = "Context.dev";
const VENDOR_DOMAIN = "context.dev";
const context = new ContextDev({ apiKey: process.env.CONTEXT_DEV_API_KEY });

const PRICING_SCHEMA = {
  type: "object",
  properties: {
    plans: {
      type: "array",
      items: {
        type: "object",
        properties: {
          name: { type: "string" },
          monthly_price_usd: { type: "number", description: "Monthly price when billed monthly. 0 for free." },
          credits_per_month: { type: "number" },
        },
        required: ["name", "monthly_price_usd", "credits_per_month"],
      },
    },
  },
  required: ["plans"],
};

const search = await context.web.search({ query: `${VENDOR} pricing`, includeDomains: [VENDOR_DOMAIN], numResults: 3 });
const pricingUrl = search.results[0]?.url;
if (!pricingUrl) throw new Error("No search result");

const page = await context.web.scrape({
  url: pricingUrl,
  formats: { json: true },
  jsonParams: { schema: PRICING_SCHEMA, instructions: "List every plan on the page. Use only facts stated on the page." },
});
if (!page.json.success) throw new Error(`Context extraction failed: ${page.json.message}`);
const plans = (page.json.data as { plans: { name: string }[] }).plans;
console.log(`${plans.length} plans from ${pricingUrl}`);
```

`include_domains` (`includeDomains` in TypeScript) keeps the search on the vendor's site. Without it, the top result for "Context.dev pricing" in our test was a third-party blog with outdated prices. `json_params.instructions` tells the extraction to list every plan and use only facts on the page. Check `success` on the JSON output before you read `data`.

## Part 2: Act on it with Anchor

Start a session signed in with your identity, then hand the chosen plan to `perform-web-task`. Anchor fills and submits the request in the portal, and the `finally` block ends the session so it stops billing.

The full, runnable script:

```python vendor_request.py theme={null}
import json
import os
import sys

from anchorbrowser import Anchorbrowser
from context.dev import ContextDev

VENDOR = sys.argv[1] if len(sys.argv) > 1 else "Context.dev"
VENDOR_DOMAIN = sys.argv[2] if len(sys.argv) > 2 else "context.dev"
MIN_CREDITS = int(os.getenv("MIN_CREDITS", "50000"))
TIER = os.getenv("ANCHOR_TIER", "standard")
IDENTITY_ID = os.environ["ANCHOR_IDENTITY_ID"]

PRICING_SCHEMA = {
    "type": "object",
    "properties": {
        "plans": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {"type": "string"},
                    "monthly_price_usd": {"type": "number", "description": "Monthly price when billed monthly. 0 for free."},
                    "credits_per_month": {"type": "number"},
                },
                "required": ["name", "monthly_price_usd", "credits_per_month"],
            },
        }
    },
    "required": ["plans"],
}

RESULT_SCHEMA = {
    "type": "object",
    "properties": {
        "submitted": {"type": "boolean"},
        "confirmation": {"type": "string", "description": "The confirmation text or request ID shown after submitting"},
    },
    "required": ["submitted", "confirmation"],
}

PROXY = {"active": True, "type": "anchor_proxy", "country_code": "us"}
TIERS = {
    "light": {"session": {}, "browser": {}},
    "standard": {"session": {"proxy": PROXY}, "browser": {"captcha_solver": {"active": True}}},
    "max": {
        "session": {"proxy": PROXY},
        "browser": {"captcha_solver": {"active": True}, "extra_stealth": {"active": True}},
    },
}
if TIER not in TIERS:
    raise SystemExit(f'Unknown ANCHOR_TIER "{TIER}" (use light, standard, or max)')

context = ContextDev(api_key=os.environ["CONTEXT_DEV_API_KEY"])
anchor = Anchorbrowser(api_key=os.environ["ANCHORBROWSER_API_KEY"])

search = context.web.search(query=f"{VENDOR} pricing", include_domains=[VENDOR_DOMAIN], num_results=3)
if not search.results:
    raise SystemExit("No search result")
pricing_url = search.results[0].url
page = context.web.scrape(
    url=pricing_url,
    formats={"json": True},
    json_params={"schema": PRICING_SCHEMA, "instructions": "List every plan on the page. Use only facts stated on the page."},
)
if not page.json_.success:
    raise SystemExit(f"Context extraction failed: {page.json_.message}")
plans = page.json_.data["plans"]
print(f"context: {len(plans)} plans from {pricing_url}")

fits = [p for p in plans if p["credits_per_month"] >= MIN_CREDITS and p["monthly_price_usd"] > 0]
if not fits:
    raise SystemExit(f"No paid plan with at least {MIN_CREDITS} credits")
plan = min(fits, key=lambda p: p["monthly_price_usd"])
print("picked:", json.dumps(plan))

config = TIERS[TIER]
session = anchor.sessions.create_session(
    session={**config["session"], "timeout": {"max_duration": 10, "idle_timeout": 3}},
    browser=config["browser"],
    identities=[{"id": IDENTITY_ID}],
)
session_id = session.data.id
print(f"anchor: session {session_id} ({TIER} tier), signed in with identity")

prompt = f"""You are signed in to https://netsweet.co. Open Operations, then New Request, and file one request:
- Title: {VENDOR} {plan['name']} plan subscription
- Priority: Medium
- Department: Engineering (or the closest option)
- Description: {VENDOR} {plan['name']} plan, {int(plan['credits_per_month'])} credits per month at ${plan['monthly_price_usd']} per month (source: {pricing_url})
- Requester Name: Procurement Agent
- Email: procurement@example.com
- Budget: {plan['monthly_price_usd'] * 12:.0f}
- Target Date: any date next month
Leave Phone and Attachments empty. Accept the terms checkbox. Submit the form once, then report the confirmation shown."""

try:
    response = anchor.tools.perform_web_task(
        session_id=session_id,
        prompt=prompt,
        output_schema=RESULT_SCHEMA,
        max_steps=30,
    )
    data = response.data
    if data.status != "success":
        raise SystemExit(f"Anchor task ended with status {data.status}: {data.result}")
    print("result:", data.result)
    print(f"steps: {data.steps}, time: {data.executionTimeMs} ms")
finally:
    anchor.sessions.delete_session(session_id)
    print("ended session", session_id)
```

```typescript vendor-request.ts theme={null}
import { client, Sessions, Tools } from "anchorbrowser";
import ContextDev from "context.dev";

const VENDOR = process.argv[2] ?? "Context.dev";
const VENDOR_DOMAIN = process.argv[3] ?? "context.dev";
const MIN_CREDITS = Number(process.env.MIN_CREDITS ?? "50000");
const TIER = process.env.ANCHOR_TIER ?? "standard";
const IDENTITY_ID = process.env.ANCHOR_IDENTITY_ID;
if (!IDENTITY_ID) throw new Error("Set ANCHOR_IDENTITY_ID");

type Plan = { name: string; monthly_price_usd: number; credits_per_month: number };

const PRICING_SCHEMA = {
  type: "object",
  properties: {
    plans: {
      type: "array",
      items: {
        type: "object",
        properties: {
          name: { type: "string" },
          monthly_price_usd: { type: "number", description: "Monthly price when billed monthly. 0 for free." },
          credits_per_month: { type: "number" },
        },
        required: ["name", "monthly_price_usd", "credits_per_month"],
      },
    },
  },
  required: ["plans"],
};

const RESULT_SCHEMA = {
  type: "object",
  properties: {
    submitted: { type: "boolean" },
    confirmation: { type: "string", description: "The confirmation text or request ID shown after submitting" },
  },
  required: ["submitted", "confirmation"],
};

const PROXY = { active: true, type: "anchor_proxy", country_code: "us" } as const;
const TIERS = {
  light: { session: {}, browser: {} },
  standard: { session: { proxy: PROXY }, browser: { captcha_solver: { active: true } } },
  max: {
    session: { proxy: PROXY },
    browser: { captcha_solver: { active: true }, extra_stealth: { active: true } },
  },
};
if (!Object.hasOwn(TIERS, TIER)) throw new Error(`Unknown ANCHOR_TIER "${TIER}" (use light, standard, or max)`);

client.setConfig({ auth: () => process.env.ANCHORBROWSER_API_KEY });
const context = new ContextDev({ apiKey: process.env.CONTEXT_DEV_API_KEY });

const search = await context.web.search({ query: `${VENDOR} pricing`, includeDomains: [VENDOR_DOMAIN], numResults: 3 });
const pricingUrl = search.results[0]?.url;
if (!pricingUrl) throw new Error("No search result");

const page = await context.web.scrape({
  url: pricingUrl,
  formats: { json: true },
  jsonParams: { schema: PRICING_SCHEMA, instructions: "List every plan on the page. Use only facts stated on the page." },
});
if (!page.json.success) throw new Error(`Context extraction failed: ${page.json.message}`);
const plans = (page.json.data as { plans: Plan[] }).plans;
console.log(`context: ${plans.length} plans from ${pricingUrl}`);

const fits = plans.filter((p) => p.credits_per_month >= MIN_CREDITS && p.monthly_price_usd > 0);
if (fits.length === 0) throw new Error(`No paid plan with at least ${MIN_CREDITS} credits`);
const plan = fits.reduce((a, b) => (a.monthly_price_usd <= b.monthly_price_usd ? a : b));
console.log("picked:", JSON.stringify(plan));

const config = TIERS[TIER as keyof typeof TIERS];
const session = await Sessions.createSession({
  body: {
    session: { ...config.session, timeout: { max_duration: 10, idle_timeout: 3 } },
    browser: config.browser,
    identities: [{ id: IDENTITY_ID }],
  },
});
const sessionId = session.data!.id!;
console.log(`anchor: session ${sessionId} (${TIER} tier), signed in with identity`);

const prompt = `You are signed in to https://netsweet.co. Open Operations, then New Request, and file one request:
- Title: ${VENDOR} ${plan.name} plan subscription
- Priority: Medium
- Department: Engineering (or the closest option)
- Description: ${VENDOR} ${plan.name} plan, ${plan.credits_per_month} credits per month at $${plan.monthly_price_usd} per month (source: ${pricingUrl})
- Requester Name: Procurement Agent
- Email: procurement@example.com
- Budget: ${Math.round(plan.monthly_price_usd * 12)}
- Target Date: any date next month
Leave Phone and Attachments empty. Accept the terms checkbox. Submit the form once, then report the confirmation shown.`;

try {
  const response = (await Tools.performWebTask({
    query: { sessionId },
    body: { prompt, output_schema: RESULT_SCHEMA, max_steps: 30 },
  })) as unknown as { data: { status: string; result: string; steps: number; executionTimeMs: number } };
  const data = response.data;
  if (data.status !== "success") throw new Error(`Anchor task ended with status ${data.status}: ${data.result}`);
  console.log("result:", data.result);
  console.log(`steps: ${data.steps}, time: ${data.executionTimeMs} ms`);
} finally {
  await Sessions.deleteSession({ path: { session_id: sessionId } });
  console.log("ended session", sessionId);
}
```

Run it. The first argument is the vendor name, the second is the domain to search:

```bash Python theme={null}
python vendor_request.py Context.dev context.dev
```

```bash Node.js theme={null}
npx tsx vendor-request.ts Context.dev context.dev
```

## Expected output

This output is from the Python script. Session IDs differ on every run, and the agent may take a different number of steps.

```text theme={null}
context: 6 plans from https://www.context.dev/pricing
picked: {"name": "Pro", "monthly_price_usd": 90, "credits_per_month": 100000}
anchor: session <session-id> (standard tier), signed in with identity
result: {"submitted": true, "confirmation": "Request Submitted \u2014 Your operational request has been submitted successfully and is now pending review."}
steps: 14, time: 108236 ms
ended session <session-id>
```

Anchor signs in, fills the New Request form with the plan Context found, and submits it:

![The New Request form in the Net Sweet demo app, filled by Anchor with the Context.dev Pro plan, its credits, price and pricing URL. The Title and Description fields are outlined.](https://mintcdn.com/anchor-b3ec2715/yeknFMJTI0uxq6lM/images/context-dev-anchor/netsweet-request-form.png?fit=max\&auto=format\&n=yeknFMJTI0uxq6lM\&q=85\&s=e8e89422fc6a2eb5f84777348186c0eb)

![The Net Sweet Operations page with a Request Submitted confirmation toast, outlined.](https://mintcdn.com/anchor-b3ec2715/yeknFMJTI0uxq6lM/images/context-dev-anchor/netsweet-request-submitted.png?fit=max\&auto=format\&n=yeknFMJTI0uxq6lM\&q=85\&s=c39f623760105089a955dcbe34e9487e)

Every run shows up on the session's page in the Anchor dashboard, with its status, credits, steps and task runs:

![An Anchor session page for the run: status Completed, 0.852 credits and 14 steps, and a successful task run for the Context.dev Pro request. The summary cards and the task run are outlined.](https://mintcdn.com/anchor-b3ec2715/yeknFMJTI0uxq6lM/images/context-dev-anchor/anchor-session.png?fit=max\&auto=format\&n=yeknFMJTI0uxq6lM\&q=85\&s=efe930a37979527b1fcc456e23fe9354)

The Context search and scrape calls appear under **Usage**:

![The Context.dev Usage page showing API calls, credits used and the split by API between Search Web, Scrape and Retrieve Brand. The totals and the By API panel are outlined.](https://mintcdn.com/anchor-b3ec2715/yeknFMJTI0uxq6lM/images/context-dev-anchor/context-usage.png?fit=max\&auto=format\&n=yeknFMJTI0uxq6lM\&q=85\&s=28cc228a878ac06b78a308b77ac29949)

## Use it from an MCP client instead

Both products run hosted MCP servers, so you can do the same thing from one prompt in Claude Code, Cursor, Codex or any MCP client, with no glue code. You add two server URLs and two API keys.

| Server | URL | Key header |
| - | - | - |
| Context | `https://mcp.context.dev/mcp` | `X-API-Key` |
| Anchor | `https://api.anchorbrowser.io/v1/mcp` | `anchor-api-key` |

Keep the keys in your environment, as in [Setup](#setup), and start the client from that shell. Each configuration below reads them by name, so no key is written into a config file.

> [tab] Claude Code
>
> Add a `.mcp.json` file to the project root. Claude Code expands `${VAR}` in headers when it starts.
>
> ```json .mcp.json theme={null}
> {
>   "mcpServers": {
>     "context": {
>       "type": "http",
>       "url": "https://mcp.context.dev/mcp",
>       "headers": { "X-API-Key": "${CONTEXT_DEV_API_KEY}" }
>     },
>     "anchor": {
>       "type": "http",
>       "url": "https://api.anchorbrowser.io/v1/mcp",
>       "headers": { "anchor-api-key": "${ANCHORBROWSER_API_KEY}" }
>     }
>   }
> }
> ```
>
> Start `claude` in that folder, approve the two project servers, and run `/mcp`. Both servers show as connected.

> [tab] Cursor
>
> Add both servers to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` for one project. Cursor reads `${env:NAME}` in headers.
>
> ```json mcp.json theme={null}
> {
>   "mcpServers": {
>     "context": {
>       "url": "https://mcp.context.dev/mcp",
>       "headers": { "X-API-Key": "${env:CONTEXT_DEV_API_KEY}" }
>     },
>     "anchor": {
>       "url": "https://api.anchorbrowser.io/v1/mcp",
>       "headers": { "anchor-api-key": "${env:ANCHORBROWSER_API_KEY}" }
>     }
>   }
> }
> ```

> [tab] Codex
>
> Add both servers to `~/.codex/config.toml`. `env_http_headers` maps a header name to the variable that holds its value.
>
> ```toml config.toml theme={null}
> [mcp_servers.context]
> url = "https://mcp.context.dev/mcp"
> env_http_headers = { "X-API-Key" = "CONTEXT_DEV_API_KEY" }
>
> [mcp_servers.anchor]
> url = "https://api.anchorbrowser.io/v1/mcp"
> env_http_headers = { "anchor-api-key" = "ANCHORBROWSER_API_KEY" }
> ```

> [!TIP]
>
> Both servers also support OAuth sign-in. Give the client only the two URLs and sign in to each account when the client asks. Use API keys for CI, headless runs, or an Anchor project other than your default.

Paste this prompt into the client. Replace the identity ID with your own.

```text theme={null}
Use Context to find Context.dev's pricing page and read its plans: name,
monthly price and monthly credits. Pick the cheapest paid plan.

Then use Anchor to file it as a purchase request. Create a session signed in
with my identity <identity-id>, with a US anchor_proxy, captcha solving on,
and a 10 minute max duration. In that session, run a web task on
https://netsweet.co: open Operations, then New Request, and file one request
titled "Context.dev <plan> plan subscription", priority Medium, department
Engineering, with the plan, price, credits and the pricing URL in the
description, requester "Procurement Agent", email procurement@example.com,
a yearly budget, and a target date next month. Accept the terms checkbox and
submit once. Never enter payment details.

Poll the task until it finishes, end the session, and report the
confirmation, the tools you called, and the session id.
```

The agent uses each server for its own half of the job:

1. **Context** `web-scrape` reads the pricing page. If the agent does not know the URL, it calls `web-search` first.
2. **Anchor** `create_session` opens a cloud browser that is already signed in with the identity, with the proxy and captcha settings from the prompt.
3. **Anchor** `perform_web_task` fills the form in that session and returns a `workflow_id`. `get_web_task_status` polls it until it completes.
4. **Anchor** `end_session` closes the browser, so billing stops.

> [!WARNING]
>
> Pass the `sessionId` from `create_session` to `perform_web_task`. Without it, the task starts a new browser that is not signed in.

> [!NOTE]
>
> A session stays open until `end_session` or its `max_duration`. If the agent stops before it ends the session, for example in a headless run that exits when the turn ends, the 10 minute limit in the prompt caps the cost. To check one, ask the agent to call `get_session` with the session id it reported, or check the [Anchor dashboard](https://app.anchorbrowser.io).

From a test run in Claude Code, with the agent's summary shortened:

```text theme={null}
Plan: Context.dev Developer, $20/month, 10,000 credits per month
Source: https://www.context.dev/pricing

Tools called:
  context  web-scrape            https://www.context.dev/pricing
  anchor   get_identity          demo.admin
  anchor   create_session        US anchor_proxy, captcha solver, max_duration 10
  anchor   perform_web_task      sessionId=<session-id>, url=https://netsweet.co
  anchor   get_web_task_status   COMPLETED after 15 steps
  anchor   end_session           success

Confirmation: "Request Submitted. Your operational request has been
submitted successfully and is now pending review."

Values entered: title "Context.dev Developer plan subscription", priority
Medium, department Engineering, budget 240 USD per year, target date next
month, terms checked. No payment details entered.
```

That run used 1 Context.dev credit for the scrape and 0.94 Anchor credits for the session and task. The plan differs from the code run because the prompt asks for the cheapest paid plan, without a credit threshold.

## Next steps

* Move up a [session tier](#choose-your-browser-power) with [proxies](https://docs.anchorbrowser.io/advanced/proxy.md), [captcha solving](https://docs.anchorbrowser.io/advanced/captcha-solving.md) and [extra stealth](https://docs.anchorbrowser.io/essentials/stealth.md) for sites that block automated browsers
* Create an identity for your own app with [Managed Authentication](https://docs.anchorbrowser.io/essentials/managed-authentication.md), including MFA
* Return structured JSON from any task with [`output_schema`](https://docs.anchorbrowser.io/agentic-browser-control/ai-task-completion)
* Watch or debug runs with [session recordings](https://docs.anchorbrowser.io/essentials/recording.md) and live view
* Drive the browser step by step with the [Anchor Browser MCP server](https://docs.anchorbrowser.io/advanced/mcp.md#anchor-browser)
* Look up a company with Context's [Brand API](https://docs.context.dev/brand.md?utm_source=anchor) before Anchor files the record
* See the same pattern with Firecrawl in the [Firecrawl guide](https://docs.anchorbrowser.io/integrations/firecrawl.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.