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/value-query.v1.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"properties": {
"agent_plan_id": {
"minLength": 1,
"type": "string"
},
"currency": {
"minLength": 1,
"type": "string"
},
"from_ms": {
"type": "integer"
},
"group_by": {
"enum": [
"none",
"day"
]
},
"period": {
"enum": [
"today",
"seven_days",
"thirty_days"
]
},
"session_id": {
"minLength": 1,
"type": "string"
},
"to_ms": {
"type": "integer"
}
},
"type": "object"
}