# Oya Browser

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/OyadotAI/oya-browser  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/oya-browser

## Description
Real Chrome for agents: start a browser, read pages as numbered markdown, click, type, hand off.

## Claude Desktop Quick Installation
Heuristic fallback — verify the package name and runner against the repository README before running it. Uses `npx` (confidence: low):

```json
"mcpServers": {
  "oya-browser": {
    "command": "npx",
    "args": ["-y","oya-browser"]
  }
}
```

## Documentation & README

<p align="center">
  <img src="https://raw.githubusercontent.com/OyadotAI/oya-browser/HEAD/assets/oya-banner.svg" alt="Oya Browser: the automation lives inside the browser, not attached to it" width="100%">
</p>

<h3 align="center">Everyone else drives Chrome from the outside. We built the browser.</h3>

<p align="center">
  The automation lives inside it, not attached over the debugging protocol, so your agents stop<br>
  looking like a harness. Sign in once and every browser you start is already signed in.<br>
  Do the task once and Oya replays it forever, with no model in the loop.
</p>

<p align="center">
  <a href="https://github.com/OyadotAI/oya-browser/actions/workflows/deploy-dev.yaml"><img src="https://img.shields.io/github/actions/workflow/status/OyadotAI/oya-browser/deploy-dev.yaml?branch=main&label=build&logo=github" alt="Build"></a>
  <a href="https://codecov.io/gh/OyadotAI/oya-browser"><img src="https://img.shields.io/codecov/c/github/OyadotAI/oya-browser?label=coverage&logo=codecov" alt="Coverage"></a>
  <a href="https://github.com/OyadotAI/oya-browser/releases/latest"><img src="https://img.shields.io/github/v/release/OyadotAI/oya-browser?label=release&color=39ed35" alt="Latest release"></a>
  <a href="https://www.npmjs.com/package/@oya-ai/browser"><img src="https://img.shields.io/npm/v/@oya-ai/browser?color=39ed35&label=@oya-ai/browser&logo=npm" alt="npm: @oya-ai/browser"></a>
  <a href="https://www.npmjs.com/package/@oya-ai/browser"><img src="https://img.shields.io/npm/dm/@oya-ai/browser?label=downloads" alt="npm downloads"></a>
  <br>
  <a href="https://www.npmjs.com/package/@oya-ai/browser"><img src="https://img.shields.io/npm/types/@oya-ai/browser" alt="TypeScript types included"></a>
  <a href="https://www.npmjs.com/package/@oya-ai/browser"><img src="https://img.shields.io/node/v/@oya-ai/browser" alt="Node version"></a>
  <a href="https://github.com/OyadotAI/oya-browser/blob/HEAD/LICENSE.md"><img src="https://img.shields.io/badge/license-Sustainable_Use_%2B_MIT_SDK-157a13" alt="License"></a>
  <a href="https://github.com/OyadotAI/oya-browser/stargazers"><img src="https://img.shields.io/github/stars/OyadotAI/oya-browser?logo=github" alt="GitHub stars"></a>
  <a href="https://oyabrowser.com"><img src="https://img.shields.io/badge/hosted-oyabrowser.com-141410?logo=googlechrome&logoColor=39ed35" alt="Hosted"></a>
  <a href="https://discord.gg/wqSeXJPygn"><img src="https://img.shields.io/badge/Discord-join-5865F2?logo=discord&logoColor=white" alt="Discord"></a>
</p>

<p align="center">
  <a href="https://discord.gg/wqSeXJPygn">Join the Discord</a> ·
  <a href="https://calendly.com/d/dvrm-r65-kkx/oya-founder-call">Talk to the founders</a>
</p>

## Start

```bash
npm i @oya-ai/browser
```

```js
import { Oya } from "@oya-ai/browser";

const browser = await new Oya().browser.start();     // real Chrome, yours for the session
await browser.goto("https://news.ycombinator.com");
console.log(await browser.ask("What are the top 3 stories?"));
await browser.stop();
```

```
DONE: The top 3 stories on Hacker News are:
1. Google's Open Agentic Orchestrator
2. Samsung is expected to more than double output of its HBM4 and HBM4E DRAM
3. What happened to the Snowden archive
```

Set `OYA_API_KEY` from [oyabrowser.com](https://oyabrowser.com), or let your agent sign itself up
([below](#for-ai-agents)). Node 20+.

No provider set up yet? Open the [desktop browser](https://oyabrowser.com) on the same
key and `start()` hands that one over, so those five lines work with nothing else
configured. `npx @oya-ai/cli init` picks where browsers run when you want it to start them.

## For AI agents

Are you an AI agent (OpenClaw, Hermes, Claude Code, Codex, Cursor or any other) looking for a
browser? Everything below works with no person at a dashboard. Full reference, written for you:
[oyabrowser.com/llms.txt](https://oyabrowser.com/llms.txt).

**As a skill**, for any agent that reads `SKILL.md`:

```bash
npx skills add OyadotAI/oya-browser
```

**In code** (Node 22.3+). Sign yourself up with your person's email, then use their own
browser, already signed in to their sites:

```js
import { Oya } from "@oya-ai/browser";

await Oya.signup({ email: "person@example.com" });   // your own key, saved to ~/.oya/config.json
const browser = await new Oya().desktop.connect();   // pairs the Oya desktop app, imports their logins
await browser.goto("https://example.com");
const { markdown, elements } = await browser.analyze();
```

`desktop.connect()` asks your person to install the [desktop app](https://oyabrowser.com/#download)
if it is missing, and to click Connect when it opens.

**Over MCP**, for tools that cannot run code (Claude Desktop, Cursor, Windsurf and the rest):
`https://oyabrowser.com/mcp/pool` with `Authorization: Bearer <key>`. In Claude Code:

```bash
claude mcp add --transport http oya https://oyabrowser.com/mcp/pool \
  --header "Authorization: Bearer $OYA_API_KEY"
```

Then just ask: *"Start a browser, open Hacker News and summarise the top 3 stories."* Oya is in
the MCP registry as `io.github.OyadotAI/oya-browser`, on [Smithery](https://smithery.ai/skills/oyaai/oya-browser)
and on ClawHub as `oya-browser`.

## Record it once, replay it forever

`ask()` costs a model call every time. Save the run and it never costs one again.

```js
await browser.ask("Log in with {{user}} and {{pass}}. Open New Request for {{name}}.",
  { data: { name: "Alex Example" }, secrets: { user, pass } });
await browser.toPlaybook("new-request");             // the steps it just took

await replay.play("new-request", { name: "Sam Example", user, pass });   // no model, new inputs
```

Nine of ten public sites replay every recorded step with no model and no repair.
[The tenth is named, with its error](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/replay-benchmark.md). When a page really has changed,
the agent finishes the run and its fix replaces the broken steps, so the next replay runs clean.
A replay that meets a login signs in with the profile's saved credentials and carries on.

Values you gave in the prompt become variables. A free-text field the agent wrote itself, a
comment or the answer to a question, is written fresh by your model on every replay instead of
repeating the first run's words. Every playbook is also a Playwright module you can read and keep:

```js
export default async function run(page, vars = {}, oya) {
  await page.getByLabel("Customer name:").first().fill(`${vars["custname"]}`);
  await page.getByLabel("Delivery instructions:").first().fill(vars["comments"] ?? (await oya.llm.answer("Delivery instructions:", vars)));
}
```

Move one to another environment with `oya.playbooks.export(name)` and `oya.playbooks.import(doc)`,
`oya playbooks export|import` on the command line, or Export and Import in the dashboard.

## Sign in once

Scripted logins break on Google SSO, Okta, passkeys and Cloudflare. Don't script them. Import
the logins you already have from Chrome, Arc, Brave, Edge or Firefox when you connect the
[desktop app](https://oyabrowser.com), or sign in by hand once in it. Every browser you start on
that persona is then already signed in: the session travels as cookies **and localStorage**,
sealed at rest, because half the portals worth automating keep you signed in with neither one
alone. [Every way in and out](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/logins.md).

For the portals that end the session server-side anyway, store the login and Oya signs in itself,
and stops rather than retrying a password the site has already refused, because that is how a
real account gets locked out.

## Why it isn't flagged as a bot

Everyone else ships an SDK that drives headless Chrome over the debugging protocol. That is the
easy way, and it is the shape anti-bot vendors have learned to look for. Oya is a real headful
browser a person can sit in front of, and the automation runs inside the process:

- The persona's platform, timezone, locale, cores and screen are set through **Chrome's own
  emulation** before the first document, and again in workers and cross-site iframes. A value
  Chrome reports about itself cannot be caught lying.
- Reading a page uses an isolated world, so it needs no `Runtime.enable`, which is a known detection
  vector. Replay never turns it on.
- Console and network come from browser-process APIs, not the `Log` and `Network` domains, so
  watching a run adds nothing a page can see.

Measured, not asserted: **0% CreepJS headless score** (bare headless Chrome: 100%) and
**31 of 31** Bot.Sannysoft, re-run on 2026-09-20. Nobody can promise you are never detected ([our own numbers
page says so](docs/stealth.md)), but you can run the harness yourself and see what it says.

## Self-host

```bash
curl -fsSL https://raw.githubusercontent.com/OyadotAI/oya-browser/main/install.sh | sh
```

It checks for git, Docker and Node 20+, asks six questions, then clones, writes the config, builds and waits for `/readyz`.
Storage is SQLite (the default), Postgres or JSON files; browsers run on Docker, Kubernetes or your
own machines. For production, [`deployments/`](https://github.com/OyadotAI/oya-browser/blob/HEAD/deployments) deploys the control plane and its
browsers to one Docker host, Amazon ECS on Fargate, any Kubernetes cluster, or GKE Autopilot, with
one `deploy.sh` each.

Self-hosting is free up to 5 cloud browsers running at once. Past that, or if you are using it
seriously, write to **sales@getoya.ai** for a license key (`OYA_LICENSE_KEY`). A self-hosted server
sends Oya one anonymous ping a day (a random install id, the version and browser counts, nothing
about your users or pages); see [telemetry](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/self-hosting.md#telemetry).

<p align="center">
  <img src="https://raw.githubusercontent.com/OyadotAI/oya-browser/HEAD/assets/oya-demo.gif" alt="The Oya browser: a task asked in plain language, answered, and kept as a playbook" width="100%">
</p>
<p align="center"><sub>The browser itself, filmed in real time: a task asked in the Ask pane, the answer, and the run kept as a playbook. The green boxes are the page as the agent reads it: every element it can act on, numbered. <a href="https://github.com/OyadotAI/oya-browser/blob/HEAD/assets/oya-demo.mp4">The four-minute version</a> goes on to LinkedIn already signed in, Amazon, and a login it completes by itself (subtitles included).</sub></p>

## The rest

| | |
|:--|:--|
| **CAPTCHA and 2FA** | Solved where they can be, handed to a person where they can't |
| **Record it yourself** | The desktop recorder keeps a draft you edit step by step, validate in fresh tabs and save as a playbook ([how](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/workflow-studio.md)) |
| **Routines** | Saved prompts the desktop agent runs every N minutes or daily at a set time, with each run's steps and answer kept |
| **It proves what it did** | A hash-chained audit trail the database won't let you rewrite, host allow-listing, [regenerable evidence](https://github.com/OyadotAI/oya-browser/blob/HEAD/compliance/EVIDENCE.md) |
| **It isn't one vendor** | Oya Cloud, Browserbase, Steel, Anchor, Browser Use or your own Chrome ([why](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/why-oya.md)) |
| **It keeps your tools** | Every browser has a `cdpUrl`, so Playwright and Puppeteer connect unchanged |
| **Full docs** | [SDK](https://github.com/OyadotAI/oya-browser/blob/HEAD/packages/sdk) · [CLI](https://github.com/OyadotAI/oya-browser/blob/HEAD/packages/cli) · [self-hosting](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/self-hosting.md) · [deployments](https://github.com/OyadotAI/oya-browser/blob/HEAD/deployments) · [moving logins](https://github.com/OyadotAI/oya-browser/blob/HEAD/docs/logins.md) · [examples](https://github.com/OyadotAI/oya-browser/blob/HEAD/examples) · [oyabrowser.com/docs](https://oyabrowser.com/docs) · [for agents](https://oyabrowser.com/llms.txt) |

## Packages

| Package | |
|:---|:---|
| [`@oya-ai/browser`](https://github.com/OyadotAI/oya-browser/blob/HEAD/packages/sdk) | TypeScript SDK. ESM and CJS, typed, zero runtime dependencies. |
| [`@oya-ai/cli`](https://github.com/OyadotAI/oya-browser/blob/HEAD/packages/cli) | The fleet, the live view, the installer. |
| [`server`](https://github.com/OyadotAI/oya-browser/blob/HEAD/server) · [`ui`](https://github.com/OyadotAI/oya-browser/blob/HEAD/ui) · [`browser`](https://github.com/OyadotAI/oya-browser/blob/HEAD/browser) | Control plane, console, and the browser itself. |
| [`skills/oya-browser`](https://github.com/OyadotAI/oya-browser/blob/HEAD/skills/oya-browser) | The agent skill: `npx skills add OyadotAI/oya-browser`. |
| [`deployments`](https://github.com/OyadotAI/oya-browser/blob/HEAD/deployments) | Production deploys: Docker, ECS, Kubernetes, GKE. |

```bash
npm test                 # server, CLI and packages; ui and browser run their own (see AGENTS.md)
cd server && npm run stealth -- --live   # the stealth numbers, on your machine
```

## License

The [SDK](https://github.com/OyadotAI/oya-browser/blob/HEAD/packages/sdk) and [CLI](https://github.com/OyadotAI/oya-browser/blob/HEAD/packages/cli) are MIT. Embed them in commercial agents.
Everything else is source-available under the [Sustainable Use License](https://github.com/OyadotAI/oya-browser/blob/HEAD/LICENSE.md): free for
internal business use, research and non-commercial use, self-hosted up to 5 cloud browsers at once.
Beyond that, write to sales@getoya.ai.

