rating-config.json configures the rating system the consumer proxy-router uses when picking which provider to route a session to. It lives in the project root by default; override path via RATING_CONFIG_PATH.
Fields
| Field | Notes |
|---|---|
providerAllowlist | Array of provider addresses. Empty = allow all providers. |
algorithm | Rating algorithm. default is the canonical built-in. |
params | Algorithm-specific parameters. For default, the weights block (see below). |
proxy-router/internal/rating/rating-config-schema.json.
Default algorithm weights
| Weight | Meaning |
|---|---|
tps | Tokens per second |
ttft | Time to first token |
duration | Session duration / stability |
success | Successful completions over total |
stake | Provider’s posted stake |
1.0.
Restricting to specific providers
To only allow the local default model:0x...). An empty array allows all.
Practical patterns
Latency-first agent
Boost
ttft and tps, lower stake.Reliability-first prod
Boost
success and duration, lower tps.Cost-first batch jobs
Pair with a low
pricePerSecond upper bound (currently outside rating-config; filter at session-open time).TEE-only
Filter at the
models layer to tee-tagged models; rating then operates over TEE providers only.
