Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.
Rust ai-agentsai-gatewayclaude-codecodexcoding-agentcost-optimizationdeepseekllm-gatewayllm-routerlocal-firstmodel-routingrusttask-routingtauri
{
"$id": "hiroute://contracts/cli/session-list-query.v1.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"agent_id": {
"minLength": 1,
"type": "string"
},
"cursor": {
"maxLength": 512,
"minLength": 1,
"type": "string"
},
"from_ms": {
"type": "integer"
},
"include_unlinked": {
"type": "boolean"
},
"limit": {
"maximum": 200,
"minimum": 1,
"type": "integer"
},
"model_switch": {
"enum": [
"any",
"only",
"exclude"
]
},
"query": {
"minLength": 1,
"type": "string"
},
"to_ms": {
"type": "integer"
}
},
"type": "object"
}