Interface: ProxyServerOptions
Options shared by createProxyServer and startProxyServer.
Extended by
Section titled “Extended by”Properties
Section titled “Properties”apiKey?
Section titled “apiKey?”
optionalapiKey?:string
When set, local clients must present this value as a bearer token
(Authorization: Bearer <key>). Unset leaves the proxy open, which is fine
for a loopback bind but should be paired with a key on a wider one.
retry?
Section titled “retry?”
optionalretry?:RetryConfig
Policy for absorbing upstream 429s. Omitted defaults to DEFAULT_RETRY (retry on). See RetryConfig.