Skip to main content
Providers are defined under the top-level providers key in config.yml. Each entry is a named block that describes how MonoRelay connects to a specific upstream API — its base URL, authentication keys, timeout, and optional features like retry logic or request cloaking. You can enable or disable any provider at runtime; the configuration is hot-reloaded without a server restart.

Provider configuration tabs

OpenRouter aggregates hundreds of models behind a single OpenAI-compatible endpoint. It is the recommended default provider.
config.yml

Common provider fields

Retry configuration

Retry logic is disabled by default. Enable it per-provider to automatically retry failed requests with exponential backoff.
config.yml
boolean
default:"false"
Enable automatic request retries.
number
default:"3"
Maximum number of retry attempts per request.
number[]
default:"[429, 500, 502, 503, 504]"
HTTP status codes that trigger a retry.
string[]
Error type strings that trigger a retry (e.g., "rate_limit_error", "timeout_error").
number
default:"1.5"
Multiplier for exponential backoff delay between attempts.
number
default:"60"
Maximum backoff delay in seconds.

Ignore configuration

When certain upstream error types should be silently swallowed rather than surfaced to the client, use the ignore block.
config.yml
boolean
default:"false"
Enable error ignoring.
string[]
Error type strings to suppress. Requests that trigger these errors return an empty successful response.

Request cloaking

Cloaking lets you override HTTP headers so outbound requests appear to originate from a different client. This is most useful with the chatgpt_web provider or when a provider restricts access by User-Agent.
config.yml
string
Override the User-Agent header sent to the upstream provider.
string
Override the Referer header.
string
Override the Origin header.
string
Override the Accept header.
string
Override the Accept-Language header.

ChatGPT web reverse-proxy fields

The web_reverse block is only used when provider_type: "web_reverse".
string
default:"\"00003a\""
Proof-of-work difficulty string required by the ChatGPT web gateway.
boolean
default:"false"
When true, only the conversation endpoint is used (no streaming backend).
boolean
default:"true"
Prevent conversations from appearing in the ChatGPT history sidebar.
string
default:"\"\""
Optional HTTP/SOCKS proxy URL for outbound ChatGPT web requests.
string
default:"\"https://chatgpt.com\""
Base URL for the ChatGPT web interface.
object
Maps OpenAI model names in the request to internal ChatGPT web model identifiers. For example, "gpt-3.5-turbo" maps to "text-davinci-002-render-sha".