{"$schema":"http://json-schema.org/draft-07/schema#","type":"object","properties":{"$schema":{"description":"JSON Schema URL for editor autocomplete","type":"string"},"version":{"type":"number","const":1},"presets":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"string"},"description":"Ranked provider/model entries such as anthropic/claude-opus-4-6 or openai/gpt-5.5#high"},"description":"Named presets. Each value is the failover order for that preset"},"cooldowns":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"},"description":"Map of provider:accountKey to epoch milliseconds until the account is usable again"},"routes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"preset":{"type":"string","description":"Subrouter preset that selected this route"},"provider":{"type":"string","enum":["anthropic","openai","xai","opencode-go","github-copilot","poe","minimax","kimi","zai","alibaba"],"description":"Subscription provider id"},"modelId":{"type":"string","description":"Underlying model id for the in-flight route"}},"required":["preset","provider","modelId"],"description":"In-flight provider/model for one harness session"},"description":"Map of session id to the live route until that session goes idle"}},"required":["version","presets","cooldowns","routes"],"description":"~/.subrouter/config.json"}