A repository is configured with one file, yomorai.config.yaml. This page
explains how the file is found and validated, and then lists every key. The
key tables are generated from the schema the code validates with
(packages/schemas/src/config.ts), so they cannot describe a key that does
not exist.
yomorai.config.yaml, yomorai.config.yml, yomorai.config.json or .github/yomorai.yaml on the repository’s default branch. If there is no file, the configuration saved in the dashboard applies. The branch of a pull request is never read.
CLI (yomorai review)
--config <path>, otherwise the first of the same four names in the working directory. With no file at all, a minimal built-in configuration is used and the output says so.
MCP server
yomorai.config.yaml in the working directory, otherwise the same built-in configuration.
The file is data. Nothing in it is executed, and it holds no secrets: API keys
and login credentials are referred to by name and stored elsewhere (see
Self-hosting and
Security).
yomorai init writes a commented starter file. Three complete files are in
examples/.
The file is parsed as YAML (JSON is valid YAML) and validated as a whole. An
invalid file is rejected with one message per problem, each naming the path of
the key, for example authProfiles.staff.readOnly: production authentication profiles must declare readOnly: true. Nothing is guessed or silently dropped:
unknown keys at the top level, in trust, in an authentication profile, in a
scenario step and in a viewport profile are errors.
Rules that span more than one key:
Every name in defaultViewports, and in the viewports list of a route or
scenario, must be a built-in profile or a key of viewports.
An authentication profile for production must declare readOnly: true.
An authentication profile with mode: authenticated needs a login flow.
Every origin of an authentication profile must be in the origins of the
profile’s environment.
Every authProfile named by a route or scenario must exist in
authProfiles.
Scenario ids are unique.
The URL of a static discovery source must have an origin from that
environment’s origins.
Preview origins and globs.origins are exact origins, not patterns.
A preview system that gives every pull request its own hostname needs each
hostname listed, or a stable preview alias. This is a limitation of this
release.
safeRequests apply to production only. Preview is never guarded,
because a preview is expected to be disposable. If your preview shares a
database with production, treat it as production.
Models are optional and have no default identifier. A configured model
that the provider does not offer is an error reported by yomorai doctor,
never replaced by another model.
budgets.prices replaces the built-in price table as a whole. The
built-in table and the date it was checked are listed in
Self-hosting.
retention.auditDays is validated but nothing deletes audit records in
this release (the audit table rejects deletion).
Generated from packages/schemas/src/config.ts. Do not edit this block by hand; run tsx docs/scripts/generate-config-reference.ts.
Notation: [] is an item of a list, <name> an entry of a map, <env> is production or preview, <role> is visual or reasoning. A key marked required has no default; every other key may be left out. Unknown top-level keys are rejected.
Types: path is a string starting with /; id is 1 to 64 characters from A-Z a-z 0-9 _ . : -; date is YYYY-MM-DD; URL is an absolute URL.
Globs over the base branch. Empty: every base branch.
triggers.paths
string[]
[]
Globs over changed file paths; at least one changed file must match. Empty: no path filter. When paths are configured and the changed paths are not known, no review is created.
triggers.labels
string[]
[]
The pull request must carry at least one of these labels. Empty: no label filter.
The two environments a review compares. Both are required.
environments.<env>
object
required
One environment: production (the baseline, read-only) or preview (the pull request’s deployment).
environments.<env>.origins
string[], at least 1
required
Origin allowlist: https://host[:port] with no path (http only for localhost and 127.0.0.1). A deployment URL or top-level navigation outside it is refused.
environments.<env>.discovery
object[], at least 1
required
How the deployment is found. Sources are tried in order.
Glob over the GitHub deployment environment name. Omitted: any environment. Only with type: github-deployments.
environments.<env>.discovery[].author
string
Login of the commenting account. Omitted: only comments from bot accounts are read. Only with type: comment.
environments.<env>.discovery[].pattern
string
required
Regular expression applied to the comment body; its first capture group is the URL. Only with type: comment.
environments.<env>.discovery[].accountId
string
required
Cloudflare account id. The lookup needs the CLOUDFLARE_API_TOKEN secret. Only with type: cloudflare-pages.
environments.<env>.discovery[].project
string
required
Cloudflare Pages project name. Only with type: cloudflare-pages.
environments.<env>.discovery[].accountId
string
required
Cloudflare account id. The lookup needs the CLOUDFLARE_API_TOKEN secret. Only with type: cloudflare-workers.
environments.<env>.discovery[].script
string
required
Cloudflare Workers script name. Only with type: cloudflare-workers.
environments.<env>.discovery[].url
URL
required
A fixed URL. Its origin must be in origins. Only with type: static.
environments.<env>.readiness
object
How a discovered deployment is checked before it is used.
environments.<env>.readiness.paths
path[]
["/"]
Paths that must respond before the review starts.
environments.<env>.readiness.timeoutSeconds
integer 5–1800
300
How long to wait for the deployment to become ready.
environments.<env>.readiness.buildIdPath
path
Path returning the deployed commit SHA as text or as JSON {"sha": "..."}. Lets a review confirm that the preview is the pull request’s head commit.
environments.<env>.safeRequests
object[]
[]
State-changing requests that are known to change nothing and may be sent in production. Every other non-GET/HEAD/OPTIONS request to production is blocked. Has no effect in preview.
environments.<env>.safeRequests[].method
"POST" | "PUT" | "PATCH" | "DELETE"
required
HTTP method of the allowed request.
environments.<env>.safeRequests[].url
string
required
Glob over the full URL, for example https://app.example.com/api/search*.
environments.<env>.safeRequests[].reason
string
required
Why the request is safe. Required, so the allowlist documents itself.
environments.<env>.seedSets
id[]
[]
Names of seed data sets and test identities this environment provides. A scenario that requires a name missing here is reported precondition_unavailable for that environment.
Steps that sign in. {{credentials.<key>}} in the text of a type step is replaced by the stored credential of that name.
authProfiles.<name>.login.success
string
required
Selector that exists only when signed in.
authProfiles.<name>.humanTimeoutMinutes
integer 1–1440
30
How long a human_assisted login waits for a person before the review fails with human_auth_timeout.
authProfiles.<name>.counterpart
id
The profile for the other environment that plays the same role. A scenario naming either profile then signs in on both sides and is compared; without one, a signed-in scenario runs in one environment only.
Thresholds and exclusions of the deterministic analyses.
analysis.visual
object
Screenshot comparison.
analysis.visual.pixelThreshold
number 0–1
0.1
Per-pixel colour distance, 0 to 1, above which a pixel counts as different.
analysis.visual.ignoreRatio
number 0–1
0.0005
Share of differing pixels at or below which two screenshots are treated as identical.
analysis.visual.shiftPx
number ≥ 0
4
Smallest movement of an element, in CSS pixels, reported as a layout shift.
analysis.visual.masks
object[]
[]
Regions excluded from comparison. Every mask is listed in the report.
analysis.visual.masks[].selector
string
required
CSS selector of the region.
analysis.visual.masks[].reason
string
required
Why it is masked. Required.
analysis.visual.dynamicDetectors
boolean
true
Detect dynamic content (dates and times, <time>, video, canvas, embedded frames, live regions, ad slots, carousels) and mask it automatically.
analysis.visual.maxScreenshotHeight
integer 1000–20000
10000
Full-page screenshots are cut at this height in pixels; a cut is recorded with the evidence.
analysis.readiness
object
When a page counts as ready after a navigation and after each step, before anything is judged or captured. The signal that ended each wait is recorded with the step outcomes.
analysis.readiness.mode
"events" | "legacy"
"events"
events waits for a configured application signal, otherwise for network idle observed from request events. legacy restores the fixed quiet windows of earlier versions (400 ms after a navigation, 250 ms after a step).
analysis.readiness.appSignal
boolean
false
Wait for window.__APP_READY__ === true instead of network idle.
analysis.readiness.selector
string
Wait for this selector to be visible instead of network idle.
analysis.readiness.quietMs
integer 0–2000
150
How long the network must stay idle, with no request in flight and none started, to count as idle.
analysis.readiness.maxWaitMs
integer 500–60000
8000
Longest wait after a navigation. A page that never becomes ready is captured afterwards, and the wait is recorded as timeout.
analysis.performance
object
Lighthouse comparison.
analysis.performance.runs
integer 1–15
5
Measurements per environment and form factor. The medians are compared.
analysis.performance.thresholds
object
Smallest change of each metric that is reported as a regression or an improvement.
analysis.performance.thresholds.lcpMs
number ≥ 0
250
Largest Contentful Paint, milliseconds.
analysis.performance.thresholds.fcpMs
number ≥ 0
200
First Contentful Paint, milliseconds.
analysis.performance.thresholds.tbtMs
number ≥ 0
100
Total Blocking Time, milliseconds.
analysis.performance.thresholds.speedIndexMs
number ≥ 0
300
Speed Index, milliseconds.
analysis.performance.thresholds.inpMs
number ≥ 0
50
Interaction to Next Paint, milliseconds.
analysis.performance.thresholds.cls
number ≥ 0
0.03
Cumulative Layout Shift, unitless.
analysis.performance.thresholds.bytesRatio
number ≥ 0
0.05
Transfer size, as a ratio of the production value (0.05 is five percent).
analysis.runtime
object
Console, page-error and network comparison.
analysis.runtime.ignore
object[]
[]
Runtime events that are not reported as findings. Ignored events are still counted in the report.
analysis.runtime.ignore[].pattern
string
required
Case-insensitive fragment of the event message or URL, in which * matches anything; written as /…/flags it is a regular expression.
Optional models. Without any, findings rest on deterministic analysis only.
models.<role>
object
One model role: visual describes visual differences from screenshots; reasoning infers intent and proposes classifications.
models.<role>.provider
"workers-ai" | "deepseek" | "openai-compatible"
required
Which adapter talks to the model.
models.<role>.model
string
required
The provider’s model identifier. There is no default: yomorai doctor checks that it exists.
models.<role>.endpoint
URL
Base URL of the API. Required for openai-compatible; optional for the others.
models.<role>.apiKeySecret
string matching ^[A-Z][A-Z0-9_]*$
Name of the secret (or environment variable) that holds the API key. Never the key itself. Defaults by provider: DEEPSEEK_API_KEY, CLOUDFLARE_API_TOKEN, MODEL_API_KEY.
models.<role>.maxOutputTokens
integer 64–32000
Upper limit of generated tokens per call of this role; a call profile’s limit (models.profiles) takes precedence.
models.<role>.fallback
object
A model used only after this role’s model is unavailable through all its attempts. Every finding, intent record and model I/O record it produces names it.
models.<role>.fallback.provider
"workers-ai" | "deepseek" | "openai-compatible"
required
Which adapter talks to the fallback model.
models.<role>.fallback.model
string
required
The fallback model’s identifier. It needs a price (budgets.prices) like any other.
models.<role>.fallback.endpoint
URL
Base URL of the fallback model’s API.
models.<role>.fallback.apiKeySecret
string matching ^[A-Z][A-Z0-9_]*$
Name of the secret holding the fallback model’s API key.
models.judge
object
The evaluation judge. Its model family must differ from the reasoning model’s; when it shares the visual model’s family its scores on visual descriptions are advisory.
models.judge.provider
"workers-ai" | "deepseek" | "openai-compatible"
required
Which adapter talks to the judge.
models.judge.model
string
required
The judge’s model identifier.
models.judge.endpoint
URL
Base URL of the judge’s API.
models.judge.apiKeySecret
string matching ^[A-Z][A-Z0-9_]*$
Name of the secret holding the judge’s API key.
models.retention
"full" | "metadata_only" | "none"
"metadata_only"
What is kept of each model call: prompts and responses (full), only model, token counts and outcome (metadata_only), or nothing (none).
models.maxRetries
integer 0–3
1
How often a model call is repeated after output that fails validation. After that the output is discarded and the review continues without it.
models.maxConcurrentCalls
integer 1–8
3
Independent model calls of one role (classification batches) in flight at once. Results are the same as one after another; each call is reserved and recorded on its own.
models.profiles
map
{}
How each call site calls its model: intent, visual, classify, draft, judge, repair (retries after invalid output) and fallback. Anything left out uses the defaults, which favour speed.
models.profiles.<name>
object
The settings of one call site.
models.profiles.<name>.effort
string matching ^[a-z]+$
Reasoning effort as the model documents it, e.g. low for @cf/qwen/qwen3.8-27b or none for @cf/google/gemma-4-26b-a4b-it; none for a model without reasoning control. A value the model does not document is a configuration error. Default: the lowest documented effort.
models.profiles.<name>.maxOutputTokens
integer 64–32000
Output limit of the call. Default: about 1.5 times the measured 95th percentile for the call site. A reply cut off by it is repaired once with double the limit.
models.profiles.<name>.temperature
number 0–2
Sampling temperature. Default 0.
models.profiles.<name>.timeoutMs
integer 1000–600000
Per-call timeout in milliseconds.
models.profiles.<name>.retries
integer 0–3
Attempts after the first for invalid output or an unavailable provider. Default: models.maxRetries.
models.profiles.<name>.structuredOutput
"json_schema" | "json_object" | "none"
json_schema sends the reply schema, json_object asks for JSON, none for neither. Default: json_schema where the model documents it. Replies are always validated.
models.redaction
object
What is filled in an image before any vision call, besides analysis.visual.masks: an image whose sensitive regions cannot be determined is not sent (image_not_redactable).
models.redaction.selectors
string[]
["input[type=password]"]
Elements whose pixels are never sent to a model.
models.redaction.patterns
string[]
[]
Further sensitive patterns (regular expressions) for page text; matching elements are filled like secrets.
models.gateway
object
Route Workers AI requests through this Cloudflare AI Gateway and cache identical requests. Requests under retention none skip the cache; a cached answer is recorded as cached.
models.gateway.id
string matching ^[a-z0-9][a-z0-9-]{0,63}$
required
The gateway’s id.
models.gateway.cacheTtlSeconds
integer 60–2592000
3600
How long an identical request is answered from the cache, in seconds (the gateway’s minimum is 60).
A confirmed regression or unintended change at or above this severity fails the check.
report.minCompletenessForHigh
number 0–1
0.9
Evidence completeness below which a high or critical severity is lowered to medium.
report.minConfidenceForHigh
number 0–1
0.7
Confidence below which a high or critical severity is lowered to medium.
report.costFooter
boolean
false
Add one line with the review’s estimated cost (by category, at the dated price table, with the statement that the provider’s billing is authoritative) to the pull-request comment.
DOM and accessibility snapshots, focus order, audit results, step outcomes, runtime events and resource timings.
retention.performanceDays
integer ≥ 1
90
Performance measurements.
retention.modelIoDays
integer ≥ 1
14
Stored model input and output.
retention.auditDays
integer ≥ 90
365
Minimum retention of audit records; values below 90 are rejected. This release never deletes audit records, so the value is validated but has no further effect.
Spending limits. Each metered operation reserves its estimated maximum cost against all three before it starts.
budgets.perReviewUsd
number > 0
1
Limit for one review.
budgets.perRepositoryMonthlyUsd
number > 0
50
Limit for one repository per calendar month (UTC).
budgets.perInstallationMonthlyUsd
number > 0
200
Limit for the whole GitHub App installation per calendar month (UTC).
budgets.limits
object
Hard limits on the size of one review.
budgets.limits.maxScenarios
integer 1–200
25
Scenarios per review. Scenarios beyond it are left out by priority and the review is reported as partial.
budgets.limits.maxViewports
integer 1–10
2
Viewport profiles per route or scenario; further profiles in a list are not used.
budgets.limits.maxPerformanceRoutes
integer 0–50
3
Routes measured with Lighthouse: the first ones in routes.include with performance: true. 0 turns performance measurement off.
budgets.limits.maxDurationMinutes
integer 1–240
30
A review still running after this time is cancelled with duration_limit.
budgets.limits.maxDerivedPerRoute
integer 0–10
2
Scenarios derived from controls discovered on a page, per route and viewport, taken in turn from forms, controls, selects and links. The rest is listed as not run with reason per_route_limit.
budgets.limits.deriveOn
"all_routes" | "changed_routes"
"all_routes"
Where interaction scenarios derived from a page (forms, dialogs, filters, links) run. all_routes (default): on every planned route. changed_routes (opt-in, faster): only on routes with a changed file in their import graph, and on every route when a change is global (global CSS, design tokens, configuration, manifests, lockfiles, build configuration, routing, shared state, the application shell) or cannot be placed. The other routes still get their load scenario; the interaction scenarios not run are listed as route_not_changed with the reason, and the report says which routes were limited. See concepts.
budgets.limits.maxConcurrentExecutions
integer 1–16
Browser executions of one review in flight at once, each in its own context. Unset, the host decides: 4 locally, 2 on CI runners. 1 runs them one after another.
budgets.prices
object
Prices that replace the built-in, dated price table’s entries they name (in micro-dollars, rounded up per entry). A model with no price is never called (unpriced_operation). Omitted: the built-in table and its date are used.
budgets.prices.date
date
required
Date the prices were checked (YYYY-MM-DD). Shown with every cost.
budgets.prices.browserHourUsd
number ≥ 0
required
Price of one browser hour.
budgets.prices.perfRunnerHourUsd
number ≥ 0
required
Price of one hour of the performance runner.
budgets.prices.storageGbMonthUsd
number ≥ 0
required
Price of one gigabyte of evidence storage per month.
Reuse of production captures across reviews (the production-baseline cache).
cache.productionTtlMinutes
integer 0–240
30
Minutes a production capture may be reused by a later review, on an exact key match while production still reports the same commit through readiness.buildIdPath. 0 turns reuse off.
The block between the two marker comments is written by
docs/scripts/generate-config-reference.ts, which walks the JSON Schema
produced from the RepoConfig zod schema.
Terminal window
node_modules/.bin/tsxdocs/scripts/generate-config-reference.ts# rewrite the block
node_modules/.bin/tsxdocs/scripts/generate-config-reference.ts--check# exit 1 if the block is stale
Run both from the repository root. The script fails when the schema has a key
without a description, or when a description is left over for a key that no
longer exists. verification/acceptance/docs.test.ts runs the same check, so a
schema change without a regenerated reference fails the test suite.