Strong agent. Short leash.
牛可以干活,但不能让它乱跑。
Oxrail is an experimental, native-preserving control layer for agent browser work. It does not replace Chrome or Computer Use, and it never owns the pointer or keyboard. Its job is to add only the browser guard behavior proven for the current host profile.
Benchmark in progress. No performance claim yet.
The authoritative product contract is spec/OXRAIL_SPEC.md. Any shorter description here yields to that specification.
| Surface | Plugin / Skill | Oxrail lifecycle hooks | Native Chrome route | Current public claim |
|---|---|---|---|---|
| Codex CLI | GitHub marketplace install; Skill loads in a new session | Public Codex hook framework | Must be verified for the installed build/profile | ADVISORY_ONLY until doctor and route evidence say otherwise |
| Codex in the ChatGPT desktop app | Plugin surface supported | Codex hooks require manual trust | Must be verified independently | No enforcement claim without a VERIFIED profile |
| ChatGPT Work / ChatGPT web | Public plugins/skills depend on the available directory | No public Codex lifecycle-hook contract established for this surface | Unproven | No Oxrail hook enforcement claim |
| Codex IDE extension | Plugins are not supported by the current public docs | Not applicable | Not applicable | Unsupported install surface |
Native Interaction Fidelity and real-host benchmark evidence are still in progress. Secure Handoff is not active merely because the plugin is installed.
Requires a current Codex CLI with plugin marketplace support and Node.js 20 or newer.
main is the latest accepted stable line; ongoing development happens on dev and reaches main only after a milestone gate passes.
The default main marketplace continues to install v0.1.0-alpha.0. The dev marketplace installs the product-only immutable product-v0.1.0-alpha.8 development preview; it is not an accepted stable release.
codex plugin marketplace add regrevia/Oxrail
codex plugin add oxrail@oxrailFor the current development preview on a clean test profile, pin the marketplace checkout to dev:
codex plugin marketplace add regrevia/Oxrail@dev
codex plugin add oxrail@oxrailThen:
- For native Chrome work, install/enable Computer Use in the ChatGPT desktop app, then connect the ChatGPT Chrome extension under Settings > Computer Use. Review the host and browser permission prompts.
- Start Codex and open
/hooks. - Review the Oxrail hook source and commands, then manually trust the current definition.
- Start a new thread/session so the installed Skill is available.
- Ask:
Use Oxrail to run setup verification (oxrail doctor).
For alpha.5, the installed Skill can perform an exact package-integrity and readiness check before any Browser action:
node skills/oxrail/scripts/trial-check.mjsRun it from the installed plugin root, or ask the Oxrail Skill to run its
bundled trial-check.mjs. It verifies the product-only allowlist and hashes,
then executes the read-only doctor. It does not grant Hook trust or browser
permissions.
Invoking doctor through that Skill is the evidence that the Skill is available in the current thread. The alpha CLI does not query the host plugin/Skill registry. Oxrail never auto-trusts its hooks. A changed hook definition/hash returns to the host's normal review flow; each Hook command carries the manifest version as a build stamp so a version update changes that definition. Do not bypass the review.
The current public Host contract does not expose a machine-readable Hook trust
query or Chrome Computer Use tool-inventory export. Alpha.5 therefore reports
these separately under hostDiagnostics: /hooks remains the trust authority,
while OBSERVED_CURRENT_DEFINITION means only that a recent current-hash Hook
actually executed. Missing inventory is HOST_INVENTORY_EXPORT_UNAVAILABLE, not
a guessed Browser tool name.
For an agent given only this repository URL: run the two marketplace commands above, report any missing Computer Use/Chrome prerequisite, stop for the human /hooks review, then start a new thread and run setup verification. Installation is not authorization to alter host trust state or browser permissions.
Oxrail does not guess private Computer Use tool names. If doctor reports host profile not found, provide an exact, host-exported tool inventory and ask the Oxrail Skill to bootstrap it. Example inventory shape:
{
"schemaVersion": 1,
"source": "host-tool-inventory",
"capturedAt": "2026-09-04T00:00:00.000Z",
"surface": "codex-desktop",
"hostBuild": "<exact host build>",
"codexVersion": "<exact Codex version>",
"computerUsePluginVersion": "<exact Computer Use version>",
"browserPath": "chrome-extension",
"os": "macos",
"toolRoute": "direct-mcp",
"browserToolNames": ["<exact host-exported browser tool name>"]
}The installed Skill runs node scripts/bootstrap.mjs <host-inventory.json>. A source checkout uses:
pnpm run bootstrap host-inventory.json
pnpm run doctor -- --host-inventory host-inventory.jsonBootstrap records a candidate matcher and current Hook definition hash, but it leaves lifecycle INSTALLED, Optimization BYPASSED, and trust/Safety/Handoff unclaimed. Doctor promotes the profile only after current-hash Hook execution proves the remaining setup checks. If the host cannot export a reliable exact inventory, do not invent one; remain fail-open in INSTALLED/BYPASSED.
Reuse a freshly exported inventory with doctor so any enforcement capability is bound to the exact host/Codex/Computer Use/browser/OS tuple. Without that current tuple, doctor may report passive route evidence but keeps Optimization, Safety, and Handoff bypassed/inactive. Regenerate the inventory after any bound version or route changes.
Installed Skill commands and Hooks share the permission-restricted ~/.oxrail state directory. This avoids relying on Hook-only environment variables when an agent invokes doctor from the Skill.
oxrail doctor reports each item independently. Its first three checks are deliberately package-level file checks, not claims about a private host registry:
- plugin package manifest present;
- Oxrail Skill definition present (current-thread availability is proven only by invoking the Skill);
- required Hook definitions present;
- hooks trusted for the current hash, inferred only from recent execution;
PreToolUseandPostToolUseavailability;- Chrome Computer Use detectability;
- matcher/profile validity;
- Handoff capabilities;
- resulting Oxrail mode.
Because the alpha CLI is not connected to host plugin/Skill/trust registry APIs, doctor treats only recent execution of the current Hook hash as Hook trust/availability evidence. Those current-availability markers expire after 30 seconds; completed route evidence remains bound to its profile ID, Hook definition hash, and host tuple. The host /hooks UI remains authoritative.
The lifecycle states mean:
| State | Meaning |
|---|---|
INSTALLED |
The plugin files are present. Hooks and protection are not implied. |
CONFIGURED |
Skill, trusted hooks, host detection, and profile configuration are present. |
VERIFIED |
A harmless synthetic probe or a passive real-route observation proved the expected hook path. |
When only the final route observation is missing, doctor prints:
READY — awaiting first native browser call
The alpha library reserves an interface for a harmless host-provided synthetic probe, but the installed alpha CLI has no public host probe adapter yet and does not claim to run one. It therefore waits for the first browser call that occurs naturally in the user's work. That call is passive verification only: Oxrail records first_browser_hook_seen=true and passes the native action/result through unchanged. It does not block, rewrite, replay, or create a browser action just to test installation.
For a source checkout, the package-level local check is:
pnpm install --frozen-lockfile
pnpm build
pnpm run doctorIf an Oxrail hook is missing, untrusted, disabled, unavailable, or fails, Native Chrome Computer Use continues normally:
Oxrail optimization unavailable / BYPASSED
Safety protection: INACTIVE
Handoff protection: INACTIVE
BYPASSED is fail-open for the native browser capability, not proof of Oxrail protection. Safety and Handoff are shown as ACTIVE only when their required capabilities are verified and currently effective. Host-native approvals and safety controls remain authoritative.
The current 0.1.0-alpha.8 public runtime adapter is passive-only, so even a verified route remains ADVISORY_ONLY, with Optimization BYPASSED and Safety/Handoff/Credential protection INACTIVE. Retrieval filtering and the secure credential window are not product-active in this preview. The repository-only macOS Lab fixture does not change that status and is not shipped in the product artifact. Internal fixture foundations cannot become active until a real adapter and its version-bound evidence are accepted.
The preview also ships a dependency-free stdio MCP server,
dist/browser-control/mcp.mjs, that a host may start only when its owner
configures it explicitly. It drives one Chrome process in its own profile, visible
unless told to hide the window, serves both MCP eras, and stays outside the Hook/Guard lifecycle — it
is not a Native Computer Use substitute and no lifecycle claim moves when it is
running. Setup for Codex CLI and Claude Code, the tool list, and the reclaim
policy are in Browser Control and
ADR-BROWSERCTL-001.
- ordinary native browser input remains unchanged;
- the actual host route and granularity can be measured honestly;
- repeat/no-progress and stale-target decisions can be tested without becoming a second browser executor;
- hook failure cannot disable native Computer Use;
- status copy never presents inactive secret/Handoff protection as active.
No token reduction, cross-surface coverage, per-click interception, or end-to-end secret guarantee is claimed without reproducible evidence.
Browser Control is measured against other browser MCP servers on four fixture pages, given only the question and not its answer. Characters each product returned:
| Fixture (page size) | Oxrail | Playwright | Chrome DevTools |
|---|---|---|---|
long-page (14766) |
1827 | 1219 | 13087 |
wide-page (10360) |
2030 | 450 | 5427 |
huge-dom (65022) |
112 | 422 | 432 |
huge-label (60744) |
213 | 219 | 60217 |
Playwright is cheaper on two of four, by 1.5× and 4.5×, because a keyword
search beats ranking a question when the caller can name the word. Oxrail is
cheaper on the other two; the 3% on huge-label is a tie. Benchmarking is in
progress and no general speed or size claim follows from this table.
What is claimed is a bound. One button on huge-label has a 60000-character
accessible name; Chrome DevTools returns it, 60217 characters in a single
result, and Oxrail returns 213 because a name has a ceiling. Every reading is
capped by budgets it declares, and a page cannot make one cost more than its
caps. The caps, the commands that reach each of them, and the full comparison
are in Browser Control.
pnpm install --frozen-lockfile
pnpm check
pnpm release:gateInternal evidence tools, controlled probes, and fixture-only credential demos
live under lab/, use ~/.oxrail-lab, and are not included in the product
artifact. See lab/README.md for development-only commands.
See CONTRIBUTING.md, SECURITY.md, the alpha.5 macOS trial, the alpha.4 Chrome diagnostic, the v0.1 status, the macOS real-host validation handoff, and the compatibility policy.
- Plugins: install, supported surfaces, and new-session loading
- Package plugins and bundle lifecycle hooks
- Codex hooks, trust review, events, and tool coverage
- Codex plugin and marketplace commands
- Computer Use
Apache-2.0. See LICENSE.