Skip to content

Providers

What Yomorai uses from each external provider, what was verified and when, and what has not been verified. The primary-source research, with URLs and the date each fact was checked, is in research/providers.md (all checked on 2026-11-30). Model identifiers, limits and prices are configuration; nothing in the code assumes a model exists.

Host Provider Notes
CLI, MCP server, GitHub Action local mode Playwright’s Chromium on the machine Exercised by every end-to-end test (verification/e2e/)
Cloudflare deployment Browser Run (formerly Browser Rendering) through @cloudflare/playwright and the BROWSER binding Not yet run against Browser Run. The adapter (packages/adapters-cloudflare/src/browser.ts) is type-checked, not executed

Every execution gets a fresh browser context with service workers blocked, fixed locale (en-US) and time zone (UTC), reduced motion, and the production guard installed before the first navigation. The guard is verified with a probe request whose blocking must be observed; otherwise the execution aborts.

Facts from the research that matter here:

  • Workers Paid defaults: 200 concurrent browsers per account, 3 new browsers per second; the Free plan allows 10 browser-minutes a day.
  • Price: 10 browser-hours a month included, then $0.09 per hour; 10 concurrent browsers included, then $2.00 each (monthly average of daily peaks). Concurrency, not time, is the binding cost.
  • Unconfirmed: whether serviceWorkers: 'block' works under Browser Run (the upstream test is excluded there), and parts of routeWebSocket. If a provider cannot intercept WebSockets, production cannot be guarded and the execution fails with production_guard_failed rather than continuing.
  • Human-in-the-loop live view exists in Browser Run, but this release does not use it: human-assisted sign-in is not available on the deployment.

Lighthouse needs Node and its own Chrome; it cannot run inside a Worker isolate. It therefore runs in the performance runner (apps/perf-runner), separate from the scenario browser: in-process for the CLI, as a Cloudflare Container (or any host you point PERF_RUNNER_URL at) for the deployment. Every measurement names its provider, the Lighthouse version and a settings key; measurements with different keys are never compared.

  • Version pinned by the lockfile (Lighthouse 13.x; 13.6.0 was current on 2026-11-30). Node 22.19 or later.
  • Runs locally in verification/e2e/perf.e2e.test.ts. The container image and the PerfRunner Durable Object have not been run on Cloudflare.
  • Lighthouse against Browser Run over CDP: no evidence that it works; the option exists behind CDP_PROVIDER_ENABLED = false and a conformance check, and is off.

Models are optional. Without them, findings rest on deterministic analysis and anything the gate cannot decide alone is inconclusive. Two roles:

Role Does Typical provider
visual Describes visual differences from screenshots. Its output has no verdict field. Workers AI, Gemma (@cf/google/gemma-4-26b-a4b-it)
reasoning Adds intent items and proposes classifications, which the gate checks DeepSeek (deepseek-flash or deepseek-v4-pro)

All three providers are reached through one OpenAI-compatible chat-completions adapter (packages/ai/src/adapters.ts) using plain fetch:

provider Endpoint Key
workers-ai https://api.cloudflare.com/client/v4/accounts/<CLOUDFLARE_ACCOUNT_ID>/ai/v1 (REST), or the Worker’s AI binding when no token is set CLOUDFLARE_API_TOKEN
deepseek https://api.deepseek.com unless endpoint is set DEEPSEEK_API_KEY
openai-compatible endpoint (required) — any server speaking the chat-completions protocol, including a self-hosted Gemma MODEL_API_KEY

apiKeySecret names a different variable or secret for the key. yomorai doctor lists the provider’s /models, sends a JSON request, and for visual a one-pixel image; a model that is missing or cannot do what its role needs is a failure, and nothing is substituted.

Not yet verified against live providers. The adapters are tested against recorded response shapes (verification/contracts/model-adapters.contract.test.ts) and the pipeline against scripted fake models. No test in this repository calls Workers AI, DeepSeek or another live model. Open questions from the research: whether Gemma on Workers AI accepts data: image URLs and reliably honours JSON mode; DeepSeek’s schema-constrained output (assumed unavailable; output is validated client-side and an invalid answer is retried models.maxRetries times, then discarded).

Model identifiers and prices change; the names above are those listed by the providers on 2026-11-30.

The deployment uses a GitHub App with the permissions in Self-hosting. The REST client and webhook parsing are tested against recorded payloads (verification/contracts/github.contract.test.ts) and a fake GitHub; they have not been run against github.com in this repository’s tests.

Preview and production URLs come from GitHub Deployments, bot comments, Cloudflare Pages, Cloudflare Workers versions, or a fixed URL. Each is tested against recorded API responses (verification/contracts/deployments.contract.test.ts). A URL is never assembled by Yomorai or proposed by a model; it must come from a provider response or the configuration and pass the origin allowlist.