guanghu-ice-heart/server-tools/persona-model-smart-router
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-08 20:01:54 +08:00
..
openlux_router.py feat: unify TCS mother and Zero Core cognition shelf 2026-09-08 20:01:54 +08:00
README.md feat: bind all agent slots to active persona model routing 2026-09-08 14:30:51 +08:00
test_openlux_router.py feat: bind all agent slots to active persona model routing 2026-09-08 14:30:51 +08:00

OpenLux cost-first persona model router

The router uses the OpenAI-compatible endpoint at https://api.openlux.ai/v1. Its API key is read at call time from macOS Keychain service ai.openlux.api, account guanghu-persona-agent-router; no secret is stored in this repository.

Each call must carry the active parent persona, derived child Agent ID, controller, channel, job role, bounded authority and task. The router tries the configured low-cost healthy models first and escalates only after a transport, empty-response or downstream validation failure. Provider pricing is not exposed by the current /models response, so the configured order is explicitly a heuristic rather than a verified price table.