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

# Sites

> Give an agent a website as part of its treatment, set up its browser when needed, and review the pages the agent used.

UltraPrivate beta

> [!NOTE]
>
> Sites are in private beta. Email [support@oqoqo.ai](mailto:support@oqoqo.ai) to enable it for your organization.

> [!NOTE]
>
> Sites is an Ultra feature. See [what your plan includes](https://docs.oqoqo.ai/setup/billing.md#what-your-plan-includes), or [compare plans](https://oqoqo.ai/pricing).

Use Sites to give an agent a browser on a website. For example, to find out whether agents can follow your documentation, give one treatment the documentation website and another the MCP server. Run the same task with each [treatment](https://docs.oqoqo.ai/experiments/treatments.md).

## Add a Site

> [tab] Dashboard
>
> 1. Open **Manage → Tools → Sites** and select **Add website**.
> 2. Enter the **Web address** and select **Add website**.
> 3. Select **Skip for now** if runs can start from a fresh browser. If the task needs an account, a cookie choice, or other settings, select **Set up browser** and choose [**Who can use it**](#who-can-use-a-saved-browser). Then select **Open browser**, sign in, accept cookies, or change settings, and select **Save**.

> [tab] CLI
>
> Create the website and read its `siteId` and `revision`:
>
> ```bash theme={null}
> oqoqo sites create https://learn.microsoft.com --project-id "$PROJECT_ID" --output json
> ```
>
> To set up your browser, run [`oqoqo sites setup-browser`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-setup-browser) and open the dashboard link it returns. Check the saved browsers with [`oqoqo sites get`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-get).

> [tab] Plugin (MCP)
>
> Ask your AI assistant to add the website by its web address. It calls **Add a website** ([`create_site`](https://docs.oqoqo.ai/mcp-server/sites#create_site)). To set up your browser, ask for a setup link: it calls **Get the browser setup link** ([`get_browser_setup_link`](https://docs.oqoqo.ai/mcp-server/sites#get_browser_setup_link)). Open the link, set up the browser on the dashboard, and ask your AI assistant to check it with **Read a website** ([`get_site`](https://docs.oqoqo.ai/mcp-server/sites#get_site)).

Use a test account for tasks that change data. Passkeys don't work in the setup browser, so sign in with a password or a code.

To change a saved browser, select **Edit browser** on the website's **Browser** card. It opens the saved browser, and **Save** replaces it. **Reset browser** deletes it. Runs that already opened it finish, and runs that are still waiting stop, so you can [retry them](#retry-stopped-runs).

You decide when the browser is ready. **Save** keeps it exactly as you left it, and Oqoqo doesn't check whether it is still signed in, because every website signs in its own way. If a sign-in ends, the run's **Browser** tab shows the website's own sign-in page. Select **Edit browser**, sign in again, and select **Save**.

## Who can use a saved browser

A saved browser is yours unless you share it with the project. Each website, and each [web agent](https://docs.oqoqo.ai/experiments/web-agents.md#set-up-a-web-agents-browser), can have two:

| Browser | Who can use it |
| - | - |
| **Your browser** | Only you can see, use, edit, or reset it. A website's stays in its project, and a web agent's follows you to every project in your organization. |
| **Shared browser** | Everyone in the project can use, edit, and reset it. Use a test account for it, not your own. |

Your runs use your own browser if you set one up, otherwise the project's shared browser, otherwise a fresh browser. If your own browser for a web agent needs setup, you can't launch until you set it up again, because your runs don't fall back to the shared browser.

> [tab] Dashboard
>
> The **Browser** card shows the browser your runs use. When neither you nor the project has a saved browser for the website, **Set up browser** asks **Who can use it**: **Just me** (the default) or **Everyone in this project**.
>
> When your runs use the shared browser, the card says "Shared with this project · Saved by" and the teammate's name. Select **Use your own browser instead** to set up yours. When your runs use your own browser and the project has no shared one, select **Set up a shared browser** to add one. When both exist, the card shows a **Your browser** row and a **Shared browser** row, each with **Edit browser** and **Reset browser**.

> [tab] CLI
>
> `oqoqo sites setup-browser` and `oqoqo sites reset-browser` act on your browser. Add `--scope shared` for the shared browser:
>
> ```bash theme={null}
> oqoqo sites setup-browser "$SITE_ID" --project-id "$PROJECT_ID" --scope shared
> oqoqo sites get "$SITE_ID" --project-id "$PROJECT_ID" --output json
> ```
>
> `site.browsers` has `personal`, `shared`, and `runsUse`, which says whether your runs use `personal`, `shared`, or a `fresh` browser. See [`oqoqo sites setup-browser`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-setup-browser) and [`oqoqo sites reset-browser`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-reset-browser).

> [tab] Plugin (MCP)
>
> Ask your AI assistant for a setup link for the shared browser, or to reset it. It calls **Get the browser setup link** ([`get_browser_setup_link`](https://docs.oqoqo.ai/mcp-server/sites#get_browser_setup_link)) or **Reset a saved browser** ([`reset_browser`](https://docs.oqoqo.ai/mcp-server/sites#reset_browser)) with `scope: "shared"`. Without `scope`, both act on your own browser. **Read a website** ([`get_site`](https://docs.oqoqo.ai/mcp-server/sites#get_site)) returns both browsers and `runsUse` in `site.browsers`.

What happens to saved browsers over time:

* Each launch uses the browser it picked before the runs start. A browser saved or reset later doesn't change those runs: runs that already opened it finish, and runs that are still waiting stop, so you can [retry them](#retry-stopped-runs).
* Changing the website's address to another host, or deleting the website, deletes every browser saved for it, including your teammates' and the shared one.
* When an admin removes a member from the organization, that person's own browsers are deleted. A shared browser they saved stays with its project.

## Use a Site in a treatment

A treatment can include one website, pinned to the version you choose (including its address and allowed hosts).

> [tab] Dashboard
>
> In the [treatment editor](https://docs.oqoqo.ai/experiments/treatments.md#create-a-treatment), open **Sites**, choose a website using its switch (or select **Add website** to add one without leaving your draft), and save the treatment. Select a website name to open its settings in a new tab.

> [tab] CLI
>
> Read the website with [`oqoqo sites get`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-get), then set the treatment's `siteRef` to the returned `site.siteId` and `site.revision` in [`oqoqo resources apply`](https://docs.oqoqo.ai/cli/catalog#oqoqo-resources-apply):
>
> ```json theme={null}
> "siteRef": { "siteId": "site_0123456789abcdef01234567", "revision": 2 }
> ```

> [tab] Plugin (MCP)
>
> Ask your AI assistant to attach the website to a treatment. It calls **Read a website** ([`get_site`](https://docs.oqoqo.ai/mcp-server/sites#get_site)) for `siteId` and `revision`, then **Create or update a resource** ([`author_resource`](https://docs.oqoqo.ai/mcp-server/catalog-and-uploads#author_resource)) with `siteRef`.

![The Sites tab in a treatment with search, Manage Sites, Add website, and two websites, each version 1, Not set up: a Microsoft Learn page switched off and Example Domain switched on.](https://mintcdn.com/oqoqo/T_I4bqkOS0rkKKoB/images/screenshots/treatment-site-light.png?fit=max\&auto=format\&n=T_I4bqkOS0rkKKoB\&q=85\&s=c6ece4c94967897728d9915cd08d3e1d)

## Mark a website as official

Each project can designate one website version as its official website. When you mark a website version official, Oqoqo maintains a read-only **Official site** treatment that points to that version, replacing any previous official website in the project.

> [tab] Dashboard
>
> Open the website under **Manage → Tools → Sites**. For the current version, open the **More actions** menu and select **Mark as official** (or **Remove official** to clear it). To mark an older version, pick that version from the version switcher and select **Mark as official**.

> [tab] CLI
>
> Mark the current version as official with [`oqoqo sites official`](https://docs.oqoqo.ai/cli/sites#oqoqo-sites-official), or pass `--revision` for an earlier version and `--remove` to clear it:
>
> ```bash theme={null}
> oqoqo sites official "$SITE_ID" --project-id "$PROJECT_ID"
> oqoqo sites official "$SITE_ID" --project-id "$PROJECT_ID" --remove
> ```

> [tab] Plugin (MCP)
>
> Ask your AI assistant to mark the website version as official or remove the designation. It calls **Mark or unmark a website as official** ([`set_site_official`](https://docs.oqoqo.ai/mcp-server/sites#set_site_official)).

Deleting the official website removes the **Official site** treatment automatically.

## Find a website and its results

Open **Manage → Tools → Sites**. Search by name or address, or use [tags](https://docs.oqoqo.ai/experiments/tags.md) to narrow the list. Select a website to open **Overview** for its allowed hosts and saved browsers, or open **Treatments** to see which treatments use it.

![Website Overview with allowed hosts, browser setup, and tabs for treatments, experiments, runs, and frictions.](https://mintcdn.com/oqoqo/T_I4bqkOS0rkKKoB/images/screenshots/site-details-light.png?fit=max\&auto=format\&n=T_I4bqkOS0rkKKoB\&q=85\&s=f9b425624910a7ec5312d8c76c685f43)

Use **Edit website** to change the name, address, or **Allowed hosts**. The starting hostname is required. Setup also includes its subdomains and the hosts the page loaded. For example, remove `*.example.com` if the agent should reach only the hostnames you list. Save your changes to create a version. Choose an earlier version to see the settings and treatments for that version.

**Experiments**, **Runs**, and **Frictions** show results across all versions. Deleting a website deletes every browser saved for it, while past results remain readable.

## Review a run

Open the run's **Browser** tab to see its final screenshot, recording, and browser actions.

> [tab] Dashboard
>
> * Choose **Screenshot** or **Video**. Select **Open** to scroll through the original screenshot at a readable size, using **Next section** or **Previous section** for long pages, or **Download** to save the screenshot or recording you are viewing. The video's own controls change its speed and show it full screen.
> * Expand a browser tool call in **Traces** and select **Show this step in Browser** to jump to that action. The recording seeks to the model turn that issued the call (several actions from one turn can share a timestamp).
> * Turn on **Only failed or blocked** to find where an agent got stuck. If the website blocked a host the task needs, select **Allow {hostname}** beside that action, review the host, and select **Save changes** to create a new version for future runs.
> * Select **View screenshot** on a browser action to inspect the exact image the agent received, when available. Actions that returned text have no screenshot.

> [tab] CLI
>
> Read browser actions and authenticated media links with [`oqoqo runs browser`](https://docs.oqoqo.ai/cli/sites#oqoqo-runs-browser):
>
> ```bash theme={null}
> oqoqo runs browser "$RUN_ID" --project-id "$PROJECT_ID" --output json
> ```
>
> Pass `nextAfterOrdinal` to `--after-ordinal` to page through longer runs. Add `--screenshot --save-to final.png` to download the final screenshot, `--video --save-to recording.mp4` to download the MP4 recording, or `--screenshot-url` with a step's `screenshotUrls` entry and `--save-to` to save a step image.

> [tab] Plugin (MCP)
>
> Ask your AI assistant to inspect the run's browser actions or screenshots. It calls **Read browser evidence for a run** ([`get_run_browser`](https://docs.oqoqo.ai/mcp-server/sites#get_run_browser)), passing `after_ordinal` to continue or `screenshot_url` (final or step) to view the original image inline (up to 4 MiB).

If you [publish the experiment](https://docs.oqoqo.ai/evaluation/share.md), its public snapshot includes the website recording and final screenshot (step screenshots and saved browsers stay private). Review what the test account displayed before sharing.

## Retry stopped runs

If a website's browser is saved again or reset while an experiment waits to start its runs, the experiment page says which website stopped and how many runs stopped. Retrying reserves that many runs from your organization's run balance. Anyone in the project can retry runs that used the shared browser, and only the person who launched the experiment can retry runs that used their own browser or a fresh one.

> [tab] Dashboard
>
> Select **Retry N runs** for the stopped group. The retry starts a linked experiment with those runs, and they use the browser a new launch uses.

> [tab] CLI
>
> Preview stopped groups with [`oqoqo experiments recover`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-recover), then pass the group's `--revision` to retry only those runs. A website's group has no `setupUrl`:
>
> ```bash theme={null}
> oqoqo experiments recover "$EXPERIMENT_ID" --project-id "$PROJECT_ID"
> oqoqo experiments recover "$EXPERIMENT_ID" --project-id "$PROJECT_ID" --revision "$REVISION"
> ```

> [tab] Plugin (MCP)
>
> Ask your AI assistant to check stopped browser runs and retry them. It calls **Preview or retry stopped browser runs** ([`recover_browser_experiment`](https://docs.oqoqo.ai/mcp-server/experiments#recover_browser_experiment)) without `revision` to preview, then calls it again with `revision` after your approval. A website's group has no `setupUrl` to open.

## Next steps

> [card] [Treatments](https://docs.oqoqo.ai/experiments/treatments.md)
>
> Attach a website to a treatment and compare it against a baseline.

> [card] [Evals](https://docs.oqoqo.ai/evaluation/evals.md)
>
> Use the final screenshot in visual rubric criteria.

> [card] [oqoqo sites](https://docs.oqoqo.ai/cli/sites.md)
>
> CLI commands for managing websites and browser evidence.

> [card] [Site and browser tools](https://docs.oqoqo.ai/mcp-server/sites.md)
>
> Plugin (MCP) tools for Sites and browser evidence.


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