> ## 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.

# oqoqo sites

> Find and manage project websites, read their pinned versions and linked treatments, and download browser evidence.

Use the public `site_` ID to manage a website across revisions. Pass `--project-id` to select the project and `--output json` for structured results. See [Sites](https://docs.oqoqo.ai/experiments/sites.md) (Ultra, private beta) for setup and plan access.

## oqoqo sites list

Find websites by name, address, or tag.

```bash theme={null}
oqoqo sites list [flags]
```

**Plugin (MCP) tool:** [`list_sites`](https://docs.oqoqo.ai/mcp-server/sites#list_sites)

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--search` | string | none | Match part of the current name or address, ignoring case. |
| `--tag` | string | none | Match any of these comma-separated tag names or IDs. |
| `--untagged` | flag | `false` | Include websites without tags. With `--tag`, either group matches. |
| `--include-tags` | flag | `false` | Return current tags on each website. |
| `--limit` | integer | `50` | Results per page, up to 100 (default 50). |
| `--cursor` | string | none | The `nextCursor` from the previous page. |

**Examples**

```bash theme={null}
oqoqo sites list --project-id "$PROJECT_ID" --search example.org --include-tags --output json
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `sites` | Matching websites with their current definition and `browsers` (see [`sites get`](#oqoqo-sites-get)). With `--include-tags`, each website includes `tags` with IDs and names. |
| `totalCount` | Total matching websites for the active filters. Returned on the first page. |
| `nextCursor` | Continue the list, or `null` at the end |
| `access` | After a plan downgrade, `reset_only` lists and counts only websites with a saved browser you can reset: your own or the shared one |

**Notes**

Without `--output json`, each row shows the state of the browser your runs use, such as `Saved` or `Saved · Shared` when it is the shared browser. Tag filters and tag details require full Sites access.

## oqoqo sites get

Read the current website or a previous revision.

```bash theme={null}
oqoqo sites get <site-id> [flags]
```

**Plugin (MCP) tool:** [`get_site`](https://docs.oqoqo.ai/mcp-server/sites#get_site)

**Arguments**

`<site-id>` is the public `site_` ID from [`sites list`](#oqoqo-sites-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--revision` | integer | current | Return the immutable definition at this numeric revision. |
| `--include-tags` | flag | `false` | Include current record tags in `site.tags`. |

**Examples**

```bash theme={null}
oqoqo sites get "$SITE_ID" --project-id "$PROJECT_ID" --revision 2 --output json
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `site` | Current `siteId`, `name`, `address`, `allowedHosts`, `revision`, `isOfficial`, `officialRevision`, and `browsers`. May also include `iconUrl`, `discoveredHosts`, and requested `tags`. |
| `site.browsers.personal`, `site.browsers.shared` | Your own browser and the project's [shared browser](https://docs.oqoqo.ai/experiments/sites.md#who-can-use-a-saved-browser). Each has `state`: `not_set_up` or `saved`. Oqoqo doesn't check a website's sign-in, so a website's browser is never `needs_setup`. A saved browser has a `setupId`, `savedAt`, `savedBy` (the user ID of the person who saved it), and `thumbnailUrl`. `lastCheckedAt` and `signedIn` are always `null` for a website. |
| `site.browsers.runsUse` | The browser your launches use: `personal` when you saved one, otherwise `shared` when the project has one, otherwise `fresh` |
| `version` | Immutable website definition for the requested revision. Tags and the saved browsers belong to the current `site`. |
| `access` | After a plan downgrade, `reset_only` permits reading the website with its saved browsers. Tags, pinned revisions, and treatment lists require full access. |

**Notes**

Without `--output json`, the command prints a `Browser:` line with the state of the browser your runs use, then a `Your browser:` line and a `Shared browser:` line for each saved browser, with its state, `setupId`, and when it was saved and checked. The shared line also says who saved it.

To list treatments that use any version of this website, use [`oqoqo catalog list --uses`](https://docs.oqoqo.ai/cli/catalog#oqoqo-catalog-list):

```bash theme={null}
oqoqo catalog list --uses "$SITE_ID" --project-id "$PROJECT_ID" --output json
```

To find past use across all revisions, pass the website ID to [`experiments list --tool-id`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-list), [`runs list --tool-id`](https://docs.oqoqo.ai/cli/runs#oqoqo-runs-list), or [`frictions list --tool-id`](https://docs.oqoqo.ai/cli/frictions#oqoqo-frictions-list).

## oqoqo sites create

Add a website to the project.

```bash theme={null}
oqoqo sites create <address> [flags]
```

**Plugin (MCP) tool:** [`create_site`](https://docs.oqoqo.ai/mcp-server/sites#create_site)

**Arguments**

`<address>` is the public web address. You can omit `https://`.

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--request-id` | string | generated | An ID you choose, so that an exact retry with the same address doesn't create a duplicate. |

**Examples**

```bash theme={null}
oqoqo sites create https://example.org --project-id "$PROJECT_ID" --output json
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `site` | The new website, including its public `siteId` and first `revision` |

## oqoqo sites update

Change the website name, address, or allowed hosts.

```bash theme={null}
oqoqo sites update <site-id> --expected-revision <revision> [flags]
```

**Plugin (MCP) tool:** [`update_site`](https://docs.oqoqo.ai/mcp-server/sites#update_site)

**Arguments**

`<site-id>` is the public `site_` ID from [`sites list`](#oqoqo-sites-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--expected-revision` | integer | | Required. Current `site.revision` from your last read. |
| `--name` | string | unchanged | New display name. |
| `--address` | string | unchanged | New starting web address. Changing the host resets every saved browser for the website, including your teammates' and the shared one. |
| `--allowed-hosts` | string | unchanged | Replace the optional hosts with a comma-separated list. Pass `""` to keep only the starting hostname. |

**Examples**

```bash theme={null}
oqoqo sites update "$SITE_ID" --project-id "$PROJECT_ID" --expected-revision "$REVISION" --allowed-hosts ""
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `site` | Updated website with its public ID, name, address, allowed hosts, new revision, and `browsers` |

**Notes**

The starting hostname is always allowed. An empty host list keeps only that hostname. If the website changed since your read, the command returns `configuration_changed`. Read it again before retrying.

## oqoqo sites official

Mark a website version as the project's official website, or remove the designation.

```bash theme={null}
oqoqo sites official <site-id> [flags]
```

**Plugin (MCP) tool:** [`set_site_official`](https://docs.oqoqo.ai/mcp-server/sites#set_site_official)

**Arguments**

`<site-id>` is the public `site_` ID from [`sites list`](#oqoqo-sites-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--revision` | integer | current | Website version number to mark or unmark. |
| `--remove` | flag | `false` | Remove the official designation from this website. |
| `--expected-revision` | integer | current | Bind the change to `site.revision` from your last read. The CLI reads the current version when omitted. |

**Examples**

```bash theme={null}
oqoqo sites official "$SITE_ID" --project-id "$PROJECT_ID"
oqoqo sites official "$SITE_ID" --project-id "$PROJECT_ID" --revision 2
oqoqo sites official "$SITE_ID" --project-id "$PROJECT_ID" --remove
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `site` | Updated website, including `isOfficial` and `officialRevision` |
| `version` | Immutable website definition for `--revision`, when requested |

**Notes**

Each project has at most one official website version. Marking a website official replaces any previous official website in the project and updates the managed **Official site** treatment automatically. If the website changed since your read, the command returns `configuration_changed`.

## oqoqo sites setup-browser

Get the authenticated dashboard link to set up your browser for this website, or the project's shared browser: sign in, accept cookies, or change settings.

```bash theme={null}
oqoqo sites setup-browser <site-id> [flags]
```

**Plugin (MCP) tool:** [`get_browser_setup_link`](https://docs.oqoqo.ai/mcp-server/sites#get_browser_setup_link)

**Arguments**

`<site-id>` is the public `site_` ID from [`sites list`](#oqoqo-sites-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--scope` | string | `personal` | `personal`: your own browser, which only you can use. `shared`: the project's browser, which everyone in the project can use, edit, and reset. |

**Examples**

```bash theme={null}
oqoqo sites setup-browser "$SITE_ID" --project-id "$PROJECT_ID"
oqoqo sites setup-browser "$SITE_ID" --project-id "$PROJECT_ID" --scope shared
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `subject` | The website identified by `kind: "site"` and `siteId` |
| `scope` | The browser the link sets up: `personal` or `shared` |
| `setupUrl` | Authenticated dashboard link where you set up the browser |

**Notes**

Without `--output json`, the command prints "Open this link to set up your browser:" (or "the shared browser:") and the link. When you open the link on a saved browser, you edit it, and **Save** replaces it. Your runs use your own browser, otherwise the shared one, otherwise a fresh browser ([Who can use a saved browser](https://docs.oqoqo.ai/experiments/sites.md#who-can-use-a-saved-browser)).

## oqoqo sites reset-browser

Delete your saved browser for this website, or the project's shared browser. Runs that already opened it finish.

```bash theme={null}
oqoqo sites reset-browser <site-id> [flags]
```

**Plugin (MCP) tool:** [`reset_browser`](https://docs.oqoqo.ai/mcp-server/sites#reset_browser)

**Arguments**

`<site-id>` is the public `site_` ID from [`sites list`](#oqoqo-sites-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--scope` | string | `personal` | `personal`: your own browser. `shared`: the project's browser, which this deletes for everyone in the project. |
| `--expected-setup-id` | string | current | The `setupId` you read for that browser (`browsers.personal.setupId` or `browsers.shared.setupId`, `bcn_…`), or `none` when nothing is saved. The CLI reads the current ID when omitted. |
| `--yes` | flag | `false` | Confirm without a terminal prompt. Required when using JSON output or without a terminal. |

**Examples**

```bash theme={null}
oqoqo sites reset-browser "$SITE_ID" --project-id "$PROJECT_ID"
oqoqo sites reset-browser "$SITE_ID" --project-id "$PROJECT_ID" --scope shared --yes
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `subject` | The website |
| `scope` | The browser you reset: `personal` or `shared` |
| `browsers` | Both browsers after the reset, with `personal`, `shared`, and `runsUse`, as in [`sites get`](#oqoqo-sites-get) |

**Notes**

In a terminal, the command asks you to confirm. You can't undo a reset. Runs that already opened the browser finish, and runs that are still waiting stop, so you can retry them with [`oqoqo experiments recover`](https://docs.oqoqo.ai/cli/experiments#oqoqo-experiments-recover). Without `--output json`, the command prints "Browser reset." and which browser your runs use now. If the saved browser changed since your read, the command returns `configuration_changed`.

## oqoqo sites delete

Delete a website and every browser saved for it, including your teammates' and the shared one. Past run evidence remains readable on each trial.

```bash theme={null}
oqoqo sites delete <site-id> [flags]
```

**Plugin (MCP) tool:** [`delete_site`](https://docs.oqoqo.ai/mcp-server/sites#delete_site)

**Arguments**

`<site-id>` is the public `site_` ID from [`sites list`](#oqoqo-sites-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--expected-revision` | integer | current | Bind deletion to the revision from an earlier read. The CLI reads the current revision when omitted. |
| `--yes` | flag | `false` | Confirm without a terminal prompt. Required when using JSON output or without a terminal. |

**Examples**

```bash theme={null}
oqoqo sites delete "$SITE_ID" --project-id "$PROJECT_ID" --expected-revision "$REVISION"
```

**Result fields**

| Field | Meaning |
| - | - |
| `projectId` | The project used for this call |
| `siteId` | Public ID of the removed website |
| `deleted` | `true` after removal |

## oqoqo runs browser

Read a trial's browser actions, final screenshot, and recording.

```bash theme={null}
oqoqo runs browser <run-id> [flags]
```

**Plugin (MCP) tool:** [`get_run_browser`](https://docs.oqoqo.ai/mcp-server/sites#get_run_browser)

**Arguments**

`<run-id>` identifies the trial. Use `trialId` from [`runs list`](https://docs.oqoqo.ai/cli/runs#oqoqo-runs-list).

**Flags**

| Flag | Type | Default | Description |
| - | - | - | - |
| `--project-id` | string | active project | Project for this call. |
| `--after-ordinal` | integer | start | Return browser actions after this step ordinal. |
| `--screenshot` | flag | `false` | Read or save the run's final screenshot. |
| `--video` | flag | `false` | Download the run's MP4 browser recording (requires `--save-to`). |
| `--screenshot-url` | string | none | Read an original image from this trial's `screenshotUrl` or `steps[].screenshotUrls`. |
| `--save-to` | path | none | Save the verified original screenshot or MP4 recording to this new file path (use with `--screenshot`, `--screenshot-url`, or `--video`). |
| `--offset` | integer | `0` | First byte of the image page (use with `--screenshot` or `--screenshot-url`). |
| `--limit-bytes` | integer | `12288` | Bytes per image page, up to 12,288 (use with `--screenshot` or `--screenshot-url`). |
| `--limit` | integer | `50` | Browser actions per page, up to 100 (default 50). |

**Examples**

```bash theme={null}
oqoqo runs browser "$TRIAL_ID" --project-id "$PROJECT_ID" --output json

oqoqo runs browser "$TRIAL_ID" --project-id "$PROJECT_ID" \
  --screenshot --save-to final.png

oqoqo runs browser "$TRIAL_ID" --project-id "$PROJECT_ID" \
  --video --save-to recording.mp4

oqoqo runs browser "$TRIAL_ID" --project-id "$PROJECT_ID" \
  --screenshot-url "$SCREENSHOT_URL" --save-to step-image.png
```

**Result fields**

| Field | Meaning |
| - | - |
| `runId`, `state`, `account` | Selected trial, browser state (`recording`, `ready`, `not_opened`, or `unavailable`), and whether the run was signed in (`account`: `signed_in` or `signed_out`), when known |
| `recordingStartedAt`, `videoUrl`, `screenshotUrl` | Recording start and authenticated links for the recording and final screenshot, when available |
| `steps` | Each action's `ordinal`, `action`, `status` (`ok`, `failed`, `blocked`, or `unknown`), and available `address`, `durationMs`, and `pageText`. `offsetMs` marks the model turn that issued the action. `pageTextTruncated` identifies an excerpt. If the hostname was blocked by the website's allowed hosts, `allowHost` gives the site, hostname, and setup link. |
| `steps[].screenshotUrls` | Original images returned to the agent, in order. A positive `unavailableScreenshotCount` counts other images the run could not retain. |
| `nextAfterOrdinal` | Pass to `--after-ordinal` for more actions, or `null` at the end |
| `screenshotPage` | When requested, the image `url`, `mimeType`, and a `content` page. Continue from `content.nextOffsetBytes` until `content.eof` is `true`. |

**Notes**

Step images require project access. A [public experiment link](https://docs.oqoqo.ai/evaluation/share.md) can include the final screenshot and recording, while step screenshots and saved browsers stay private.

## Related

> [card] [Sites](https://docs.oqoqo.ai/experiments/sites.md)
>
> Set up a website for a treatment and find its run evidence.

> [card] [Tags](https://docs.oqoqo.ai/experiments/tags.md)
>
> Organize websites and other project records with tags.


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